UNPKG

trailpack-proxy-cart

Version:

eCommerce - Trailpack for Proxy Engine

96 lines (95 loc) 2.69 kB
/** * Proxy-Cart Configuration * * @see {@link https://github.com/CaliStyle/trailpack-proxy-cart} */ module.exports = { // The default Shop address (Nexus) nexus: { name: '', host: '', address: { address_1: '', address_2: '', address_3: '', company: '', city: '', province: '', country: '', postal_code: '' } }, // Allow certain events allow: { // Allows a product to be destroyed, Recommended false destroy_product: false, // Allows a product variant to be destroyed, Recommended false destroy_variant: false }, // The default currency used default_currency: 'USD', // The countries to load by default default_countries: ['USA'], // Emails to send emails: { customerRetarget: true, customerAccountBalanceDeducted: true, customerAccountBalanceCredited: true, orderCreated: true, orderUpdated: true, orderPaid: true, orderFulfilled: true, orderRefunded: true, orderCancelled: true, sourceExpired: true, sourceWillExpire: true, sourceUpdated: true, subscriptionCreated: true, subscriptionUpdated: true, subscriptionActivated: true, subscriptionDeactivated: true, subscriptionCancelled: true, subscriptionWillRenew: true, subscriptionRenewed: true, subscriptionFailed: true, transactionFailed: true }, notifications: { admin: { orderCreated: true } }, // Events to allow "publish" events: {}, // Orders orders: { // Restock default for refunded order items refund_restock: false, // The default function for an automatic order payment: manual, immediate payment_kind: 'immediate', // the default function for transaction kind: authorize, sale transaction_kind: 'authorize', // The default function for an automatic order fulfillment: manual, immediate fulfillment_kind: 'manual', // The amount of times a Order will retry failed transactions retry_attempts: 5, // The amount of days before a Order will cancel from failed transactions grace_period_days: 5 }, // Subscriptions subscriptions: { // The amount of times a Subscription will retry failed transactions retry_attempts: 5, // The amount of days before a Subscription will cancel from failed transactions grace_period_days: 5, // The amount of days before a subscription will renew that notice is given. renewal_notice_days: 3 }, // Transactions transactions: { // The amount of days before authorization expires authorization_exp_days: 5, // The amount of times a Transaction will retry failed retry_attempts: 5 } }