@commercelayer/sdk 3.2.1 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/commercelayer.js +1 -1
  3. package/lib/cjs/model.d.ts +1 -1
  4. package/lib/cjs/resources/bundles.d.ts +5 -0
  5. package/lib/cjs/resources/external_promotions.d.ts +3 -0
  6. package/lib/cjs/resources/fixed_amount_promotions.d.ts +3 -0
  7. package/lib/cjs/resources/fixed_price_promotions.d.ts +3 -0
  8. package/lib/cjs/resources/free_gift_promotions.d.ts +3 -0
  9. package/lib/cjs/resources/free_shipping_promotions.d.ts +3 -0
  10. package/lib/cjs/resources/gift_cards.d.ts +1 -1
  11. package/lib/cjs/resources/payment_methods.d.ts +4 -1
  12. package/lib/cjs/resources/percentage_discount_promotions.d.ts +3 -0
  13. package/lib/cjs/resources/promotions.d.ts +1 -0
  14. package/lib/cjs/resources/shipping_methods.d.ts +4 -2
  15. package/lib/cjs/resources/sku_options.d.ts +3 -0
  16. package/lib/esm/api.d.ts +1 -1
  17. package/lib/esm/commercelayer.js +1 -1
  18. package/lib/esm/model.d.ts +1 -1
  19. package/lib/esm/resources/bundles.d.ts +5 -0
  20. package/lib/esm/resources/external_promotions.d.ts +3 -0
  21. package/lib/esm/resources/fixed_amount_promotions.d.ts +3 -0
  22. package/lib/esm/resources/fixed_price_promotions.d.ts +3 -0
  23. package/lib/esm/resources/free_gift_promotions.d.ts +3 -0
  24. package/lib/esm/resources/free_shipping_promotions.d.ts +3 -0
  25. package/lib/esm/resources/gift_cards.d.ts +1 -1
  26. package/lib/esm/resources/payment_methods.d.ts +4 -1
  27. package/lib/esm/resources/percentage_discount_promotions.d.ts +3 -0
  28. package/lib/esm/resources/promotions.d.ts +1 -0
  29. package/lib/esm/resources/shipping_methods.d.ts +4 -2
  30. package/lib/esm/resources/sku_options.d.ts +3 -0
  31. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  32. package/lib/tsconfig.tsbuildinfo +1 -1
  33. package/package.json +1 -1
package/lib/cjs/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2022 Commerce Layer Inc.
3
- * OpenAPI schema, version 2.8.0
3
+ * OpenAPI schema, version 2.8.1
4
4
  **/
5
5
  export { default as Addresses } from './resources/addresses';
6
6
  export { default as Adjustments } from './resources/adjustments';
@@ -1 +1 @@
1
- "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,s,i){i===void 0&&(i=s),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,i){i===void 0&&(i=s),e[i]=t[s]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&__createBinding(t,e,s);return __setModuleDefault(t,e),t},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,s,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,s):n?n.value=s:t.set(e,s),s},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(e):i?i.value:t.get(e)},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_CommerceLayerClient_adapter,_CommerceLayerClient_organization;Object.defineProperty(exports,"__esModule",{value:!0});const api=__importStar(require("./api")),static_1=require("./static"),resource_1=__importDefault(require("./resource")),OPEN_API_SCHEMA_VERSION="2.8.0";class CommerceLayerClient{constructor(t){_CommerceLayerClient_adapter.set(this,void 0),_CommerceLayerClient_organization.set(this,void 0),__classPrivateFieldSet(this,_CommerceLayerClient_adapter,new resource_1.default(t),"f"),__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f"),this.addresses=new api.Addresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adjustments=new api.Adjustments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_gateways=new api.AdyenGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_payments=new api.AdyenPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.application=new api.Applications(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.attachments=new api.Attachments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.authorizations=new api.Authorizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.avalara_accounts=new api.AvalaraAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.billing_info_validation_rules=new api.BillingInfoValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bing_geocoders=new api.BingGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_gateways=new api.BraintreeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_payments=new api.BraintreePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bundles=new api.Bundles(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.captures=new api.Captures(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.carrier_accounts=new api.CarrierAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_gateways=new api.CheckoutComGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_payments=new api.CheckoutComPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_codes_promotion_rules=new api.CouponCodesPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_recipients=new api.CouponRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupons=new api.Coupons(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_addresses=new api.CustomerAddresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_groups=new api.CustomerGroups(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_password_resets=new api.CustomerPasswordResets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_payment_sources=new api.CustomerPaymentSources(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_subscriptions=new api.CustomerSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customers=new api.Customers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.delivery_lead_times=new api.DeliveryLeadTimes(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.event_callbacks=new api.EventCallbacks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_gateways=new api.ExternalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_payments=new api.ExternalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_promotions=new api.ExternalPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_tax_calculators=new api.ExternalTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_amount_promotions=new api.FixedAmountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_price_promotions=new api.FixedPricePromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_gift_promotions=new api.FreeGiftPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_shipping_promotions=new api.FreeShippingPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.geocoders=new api.Geocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_card_recipients=new api.GiftCardRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_cards=new api.GiftCards(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.google_geocoders=new api.GoogleGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.imports=new api.Imports(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.in_stock_subscriptions=new api.InStockSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_models=new api.InventoryModels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_return_locations=new api.InventoryReturnLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_stock_locations=new api.InventoryStockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_gateways=new api.KlarnaGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_payments=new api.KlarnaPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_item_options=new api.LineItemOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_items=new api.LineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_gateways=new api.ManualGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_tax_calculators=new api.ManualTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.markets=new api.Markets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.merchants=new api.Merchants(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_amount_promotion_rules=new api.OrderAmountPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_copies=new api.OrderCopies(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_subscriptions=new api.OrderSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_validation_rules=new api.OrderValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.orders=new api.Orders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.organization=new api.Organizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.packages=new api.Packages(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcel_line_items=new api.ParcelLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcels=new api.Parcels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_gateways=new api.PaymentGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_methods=new api.PaymentMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_gateways=new api.PaypalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_payments=new api.PaypalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.percentage_discount_promotions=new api.PercentageDiscountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_lists=new api.PriceLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.prices=new api.Prices(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotion_rules=new api.PromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotions=new api.Promotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.refunds=new api.Refunds(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.return_line_items=new api.ReturnLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.returns=new api.Returns(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipments=new api.Shipments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_categories=new api.ShippingCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_methods=new api.ShippingMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_zones=new api.ShippingZones(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_items=new api.SkuListItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_promotion_rules=new api.SkuListPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_lists=new api.SkuLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_options=new api.SkuOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.skus=new api.Skus(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_items=new api.StockItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_line_items=new api.StockLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_locations=new api.StockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_transfers=new api.StockTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_gateways=new api.StripeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_payments=new api.StripePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_calculators=new api.TaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_categories=new api.TaxCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_rules=new api.TaxRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.taxjar_accounts=new api.TaxjarAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.transactions=new api.Transactions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.voids=new api.Voids(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.webhooks=new api.Webhooks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.wire_transfers=new api.WireTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f"))}static get openApiSchemaVersion(){return OPEN_API_SCHEMA_VERSION}get currentOrganization(){return __classPrivateFieldGet(this,_CommerceLayerClient_organization,"f")}config(t){t.organization&&__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f"),__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").config(t)}resources(){return static_1.CommerceLayerStatic.resources()}isApiError(t){return static_1.CommerceLayerStatic.isApiError(t)}addRequestInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.request.use(t,s)}addResponseInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.response.use(t,s)}removeInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors[t].eject(s)}addRawResponseReader(){const t={id:void 0,rawResponse:void 0};function s(n){return t.rawResponse=n==null?void 0:n.data,n}const i=this.addResponseInterceptor(s);return t.id=i,t}removeRawResponseReader(t){const s=typeof t=="number"?t:t.id;if(s)return this.removeInterceptor("response",s)}}_CommerceLayerClient_adapter=new WeakMap,_CommerceLayerClient_organization=new WeakMap;const CommerceLayer=e=>new CommerceLayerClient(e);exports.default=CommerceLayer;
1
+ "use strict";var __createBinding=this&&this.__createBinding||(Object.create?function(e,t,s,i){i===void 0&&(i=s),Object.defineProperty(e,i,{enumerable:!0,get:function(){return t[s]}})}:function(e,t,s,i){i===void 0&&(i=s),e[i]=t[s]}),__setModuleDefault=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),__importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)s!=="default"&&Object.prototype.hasOwnProperty.call(e,s)&&__createBinding(t,e,s);return __setModuleDefault(t,e),t},__classPrivateFieldSet=this&&this.__classPrivateFieldSet||function(e,t,s,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(e,s):n?n.value=s:t.set(e,s),s},__classPrivateFieldGet=this&&this.__classPrivateFieldGet||function(e,t,s,i){if(s==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?i:s==="a"?i.call(e):i?i.value:t.get(e)},__importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},_CommerceLayerClient_adapter,_CommerceLayerClient_organization;Object.defineProperty(exports,"__esModule",{value:!0});const api=__importStar(require("./api")),static_1=require("./static"),resource_1=__importDefault(require("./resource")),OPEN_API_SCHEMA_VERSION="2.8.1";class CommerceLayerClient{constructor(t){_CommerceLayerClient_adapter.set(this,void 0),_CommerceLayerClient_organization.set(this,void 0),__classPrivateFieldSet(this,_CommerceLayerClient_adapter,new resource_1.default(t),"f"),__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f"),this.addresses=new api.Addresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adjustments=new api.Adjustments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_gateways=new api.AdyenGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.adyen_payments=new api.AdyenPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.application=new api.Applications(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.attachments=new api.Attachments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.authorizations=new api.Authorizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.avalara_accounts=new api.AvalaraAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.billing_info_validation_rules=new api.BillingInfoValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bing_geocoders=new api.BingGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_gateways=new api.BraintreeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.braintree_payments=new api.BraintreePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.bundles=new api.Bundles(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.captures=new api.Captures(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.carrier_accounts=new api.CarrierAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_gateways=new api.CheckoutComGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.checkout_com_payments=new api.CheckoutComPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_codes_promotion_rules=new api.CouponCodesPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupon_recipients=new api.CouponRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.coupons=new api.Coupons(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_addresses=new api.CustomerAddresses(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_groups=new api.CustomerGroups(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_password_resets=new api.CustomerPasswordResets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_payment_sources=new api.CustomerPaymentSources(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customer_subscriptions=new api.CustomerSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.customers=new api.Customers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.delivery_lead_times=new api.DeliveryLeadTimes(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.event_callbacks=new api.EventCallbacks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_gateways=new api.ExternalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_payments=new api.ExternalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_promotions=new api.ExternalPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.external_tax_calculators=new api.ExternalTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_amount_promotions=new api.FixedAmountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.fixed_price_promotions=new api.FixedPricePromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_gift_promotions=new api.FreeGiftPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.free_shipping_promotions=new api.FreeShippingPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.geocoders=new api.Geocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_card_recipients=new api.GiftCardRecipients(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.gift_cards=new api.GiftCards(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.google_geocoders=new api.GoogleGeocoders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.imports=new api.Imports(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.in_stock_subscriptions=new api.InStockSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_models=new api.InventoryModels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_return_locations=new api.InventoryReturnLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.inventory_stock_locations=new api.InventoryStockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_gateways=new api.KlarnaGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.klarna_payments=new api.KlarnaPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_item_options=new api.LineItemOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.line_items=new api.LineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_gateways=new api.ManualGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.manual_tax_calculators=new api.ManualTaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.markets=new api.Markets(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.merchants=new api.Merchants(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_amount_promotion_rules=new api.OrderAmountPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_copies=new api.OrderCopies(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_subscriptions=new api.OrderSubscriptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.order_validation_rules=new api.OrderValidationRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.orders=new api.Orders(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.organization=new api.Organizations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.packages=new api.Packages(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcel_line_items=new api.ParcelLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.parcels=new api.Parcels(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_gateways=new api.PaymentGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.payment_methods=new api.PaymentMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_gateways=new api.PaypalGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.paypal_payments=new api.PaypalPayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.percentage_discount_promotions=new api.PercentageDiscountPromotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.price_lists=new api.PriceLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.prices=new api.Prices(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotion_rules=new api.PromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.promotions=new api.Promotions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.refunds=new api.Refunds(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.return_line_items=new api.ReturnLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.returns=new api.Returns(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipments=new api.Shipments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_categories=new api.ShippingCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_methods=new api.ShippingMethods(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.shipping_zones=new api.ShippingZones(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_items=new api.SkuListItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_list_promotion_rules=new api.SkuListPromotionRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_lists=new api.SkuLists(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.sku_options=new api.SkuOptions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.skus=new api.Skus(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_items=new api.StockItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_line_items=new api.StockLineItems(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_locations=new api.StockLocations(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stock_transfers=new api.StockTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_gateways=new api.StripeGateways(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.stripe_payments=new api.StripePayments(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_calculators=new api.TaxCalculators(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_categories=new api.TaxCategories(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.tax_rules=new api.TaxRules(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.taxjar_accounts=new api.TaxjarAccounts(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.transactions=new api.Transactions(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.voids=new api.Voids(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.webhooks=new api.Webhooks(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f")),this.wire_transfers=new api.WireTransfers(__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f"))}static get openApiSchemaVersion(){return OPEN_API_SCHEMA_VERSION}get currentOrganization(){return __classPrivateFieldGet(this,_CommerceLayerClient_organization,"f")}config(t){t.organization&&__classPrivateFieldSet(this,_CommerceLayerClient_organization,t.organization,"f"),__classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").config(t)}resources(){return static_1.CommerceLayerStatic.resources()}isApiError(t){return static_1.CommerceLayerStatic.isApiError(t)}addRequestInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.request.use(t,s)}addResponseInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors.response.use(t,s)}removeInterceptor(t,s){return __classPrivateFieldGet(this,_CommerceLayerClient_adapter,"f").interceptors[t].eject(s)}addRawResponseReader(){const t={id:void 0,rawResponse:void 0};function s(n){return t.rawResponse=n==null?void 0:n.data,n}const i=this.addResponseInterceptor(s);return t.id=i,t}removeRawResponseReader(t){const s=typeof t=="number"?t:t.id;if(s)return this.removeInterceptor("response",s)}}_CommerceLayerClient_adapter=new WeakMap,_CommerceLayerClient_organization=new WeakMap;const CommerceLayer=e=>new CommerceLayerClient(e);exports.default=CommerceLayer;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2022 Commerce Layer Inc.
3
- * OpenAPI schema, version 2.8.0
3
+ * OpenAPI schema, version 2.8.1
4
4
  **/
5
5
  export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
6
6
  export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
@@ -16,6 +16,7 @@ declare type SkuListRel = ResourceId & {
16
16
  interface Bundle extends Resource {
17
17
  code?: string;
18
18
  name?: string;
19
+ currency_code?: string;
19
20
  description?: string;
20
21
  image_url?: string;
21
22
  price_amount_cents?: number;
@@ -33,10 +34,12 @@ interface Bundle extends Resource {
33
34
  interface BundleCreate extends ResourceCreate {
34
35
  code: string;
35
36
  name: string;
37
+ currency_code?: string;
36
38
  description?: string;
37
39
  image_url?: string;
38
40
  price_amount_cents: number;
39
41
  compare_at_amount_cents: number;
42
+ _compute_price_amount?: boolean;
40
43
  _compute_compare_at_amount?: boolean;
41
44
  market?: MarketRel;
42
45
  sku_list: SkuListRel;
@@ -44,10 +47,12 @@ interface BundleCreate extends ResourceCreate {
44
47
  interface BundleUpdate extends ResourceUpdate {
45
48
  code?: string;
46
49
  name?: string;
50
+ currency_code?: string;
47
51
  description?: string;
48
52
  image_url?: string;
49
53
  price_amount_cents?: number;
50
54
  compare_at_amount_cents?: number;
55
+ _compute_price_amount?: boolean;
51
56
  _compute_compare_at_amount?: boolean;
52
57
  }
53
58
  declare class Bundles extends ApiResource {
@@ -26,6 +26,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
26
26
  };
27
27
  interface ExternalPromotion extends Resource {
28
28
  name?: string;
29
+ currency_code?: string;
29
30
  starts_at?: string;
30
31
  expires_at?: string;
31
32
  total_usage_limit?: number;
@@ -41,6 +42,7 @@ interface ExternalPromotion extends Resource {
41
42
  }
42
43
  interface ExternalPromotionCreate extends ResourceCreate {
43
44
  name: string;
45
+ currency_code?: string;
44
46
  starts_at: string;
45
47
  expires_at: string;
46
48
  total_usage_limit: number;
@@ -53,6 +55,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
53
55
  }
54
56
  interface ExternalPromotionUpdate extends ResourceUpdate {
55
57
  name?: string;
58
+ currency_code?: string;
56
59
  starts_at?: string;
57
60
  expires_at?: string;
58
61
  total_usage_limit?: number;
@@ -26,6 +26,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
26
26
  };
27
27
  interface FixedAmountPromotion extends Resource {
28
28
  name?: string;
29
+ currency_code?: string;
29
30
  starts_at?: string;
30
31
  expires_at?: string;
31
32
  total_usage_limit?: number;
@@ -43,6 +44,7 @@ interface FixedAmountPromotion extends Resource {
43
44
  }
44
45
  interface FixedAmountPromotionCreate extends ResourceCreate {
45
46
  name: string;
47
+ currency_code?: string;
46
48
  starts_at: string;
47
49
  expires_at: string;
48
50
  total_usage_limit: number;
@@ -55,6 +57,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
55
57
  }
56
58
  interface FixedAmountPromotionUpdate extends ResourceUpdate {
57
59
  name?: string;
60
+ currency_code?: string;
58
61
  starts_at?: string;
59
62
  expires_at?: string;
60
63
  total_usage_limit?: number;
@@ -31,6 +31,7 @@ declare type SkuListRel = ResourceId & {
31
31
  };
32
32
  interface FixedPricePromotion extends Resource {
33
33
  name?: string;
34
+ currency_code?: string;
34
35
  starts_at?: string;
35
36
  expires_at?: string;
36
37
  total_usage_limit?: number;
@@ -50,6 +51,7 @@ interface FixedPricePromotion extends Resource {
50
51
  }
51
52
  interface FixedPricePromotionCreate extends ResourceCreate {
52
53
  name: string;
54
+ currency_code?: string;
53
55
  starts_at: string;
54
56
  expires_at: string;
55
57
  total_usage_limit: number;
@@ -63,6 +65,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
63
65
  }
64
66
  interface FixedPricePromotionUpdate extends ResourceUpdate {
65
67
  name?: string;
68
+ currency_code?: string;
66
69
  starts_at?: string;
67
70
  expires_at?: string;
68
71
  total_usage_limit?: number;
@@ -31,6 +31,7 @@ declare type SkuListRel = ResourceId & {
31
31
  };
32
32
  interface FreeGiftPromotion extends Resource {
33
33
  name?: string;
34
+ currency_code?: string;
34
35
  starts_at?: string;
35
36
  expires_at?: string;
36
37
  total_usage_limit?: number;
@@ -48,6 +49,7 @@ interface FreeGiftPromotion extends Resource {
48
49
  }
49
50
  interface FreeGiftPromotionCreate extends ResourceCreate {
50
51
  name: string;
52
+ currency_code?: string;
51
53
  starts_at: string;
52
54
  expires_at: string;
53
55
  total_usage_limit: number;
@@ -61,6 +63,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
61
63
  }
62
64
  interface FreeGiftPromotionUpdate extends ResourceUpdate {
63
65
  name?: string;
66
+ currency_code?: string;
64
67
  starts_at?: string;
65
68
  expires_at?: string;
66
69
  total_usage_limit?: number;
@@ -26,6 +26,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
26
26
  };
27
27
  interface FreeShippingPromotion extends Resource {
28
28
  name?: string;
29
+ currency_code?: string;
29
30
  starts_at?: string;
30
31
  expires_at?: string;
31
32
  total_usage_limit?: number;
@@ -40,6 +41,7 @@ interface FreeShippingPromotion extends Resource {
40
41
  }
41
42
  interface FreeShippingPromotionCreate extends ResourceCreate {
42
43
  name: string;
44
+ currency_code?: string;
43
45
  starts_at: string;
44
46
  expires_at: string;
45
47
  total_usage_limit: number;
@@ -51,6 +53,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
51
53
  }
52
54
  interface FreeShippingPromotionUpdate extends ResourceUpdate {
53
55
  name?: string;
56
+ currency_code?: string;
54
57
  starts_at?: string;
55
58
  expires_at?: string;
56
59
  total_usage_limit?: number;
@@ -37,7 +37,7 @@ interface GiftCard extends Resource {
37
37
  }
38
38
  interface GiftCardCreate extends ResourceCreate {
39
39
  code?: string;
40
- currency_code: string;
40
+ currency_code?: string;
41
41
  balance_cents: number;
42
42
  balance_max_cents?: string;
43
43
  single_use?: boolean;
@@ -15,6 +15,7 @@ declare type PaymentGatewayRel = ResourceId & {
15
15
  interface PaymentMethod extends Resource {
16
16
  payment_source_type?: string;
17
17
  name?: string;
18
+ currency_code?: string;
18
19
  moto?: boolean;
19
20
  disabled_at?: string;
20
21
  price_amount_cents?: number;
@@ -26,13 +27,15 @@ interface PaymentMethod extends Resource {
26
27
  }
27
28
  interface PaymentMethodCreate extends ResourceCreate {
28
29
  payment_source_type: string;
30
+ currency_code?: string;
29
31
  moto?: boolean;
30
32
  price_amount_cents: number;
31
- market: MarketRel;
33
+ market?: MarketRel;
32
34
  payment_gateway: PaymentGatewayRel;
33
35
  }
34
36
  interface PaymentMethodUpdate extends ResourceUpdate {
35
37
  payment_source_type?: string;
38
+ currency_code?: string;
36
39
  moto?: boolean;
37
40
  price_amount_cents?: number;
38
41
  market?: MarketRel;
@@ -31,6 +31,7 @@ declare type SkuListRel = ResourceId & {
31
31
  };
32
32
  interface PercentageDiscountPromotion extends Resource {
33
33
  name?: string;
34
+ currency_code?: string;
34
35
  starts_at?: string;
35
36
  expires_at?: string;
36
37
  total_usage_limit?: number;
@@ -48,6 +49,7 @@ interface PercentageDiscountPromotion extends Resource {
48
49
  }
49
50
  interface PercentageDiscountPromotionCreate extends ResourceCreate {
50
51
  name: string;
52
+ currency_code?: string;
51
53
  starts_at: string;
52
54
  expires_at: string;
53
55
  total_usage_limit: number;
@@ -61,6 +63,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
61
63
  }
62
64
  interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
63
65
  name?: string;
66
+ currency_code?: string;
64
67
  starts_at?: string;
65
68
  expires_at?: string;
66
69
  total_usage_limit?: number;
@@ -11,6 +11,7 @@ declare type PromotionRel = ResourceId & {
11
11
  };
12
12
  interface Promotion extends Resource {
13
13
  name?: string;
14
+ currency_code?: string;
14
15
  starts_at?: string;
15
16
  expires_at?: string;
16
17
  total_usage_limit?: number;
@@ -19,8 +19,8 @@ declare type ShippingCategoryRel = ResourceId & {
19
19
  };
20
20
  interface ShippingMethod extends Resource {
21
21
  name?: string;
22
- disabled_at?: string;
23
22
  currency_code?: string;
23
+ disabled_at?: string;
24
24
  price_amount_cents?: number;
25
25
  price_amount_float?: number;
26
26
  formatted_price_amount?: string;
@@ -38,14 +38,16 @@ interface ShippingMethod extends Resource {
38
38
  }
39
39
  interface ShippingMethodCreate extends ResourceCreate {
40
40
  name: string;
41
+ currency_code?: string;
41
42
  price_amount_cents: number;
42
43
  free_over_amount_cents?: number;
43
- market: MarketRel;
44
+ market?: MarketRel;
44
45
  shipping_zone: ShippingZoneRel;
45
46
  shipping_category: ShippingCategoryRel;
46
47
  }
47
48
  interface ShippingMethodUpdate extends ResourceUpdate {
48
49
  name?: string;
50
+ currency_code?: string;
49
51
  price_amount_cents?: number;
50
52
  free_over_amount_cents?: number;
51
53
  market?: MarketRel;
@@ -10,6 +10,7 @@ declare type MarketRel = ResourceId & {
10
10
  };
11
11
  interface SkuOption extends Resource {
12
12
  name?: string;
13
+ currency_code?: string;
13
14
  description?: string;
14
15
  price_amount_cents?: number;
15
16
  price_amount_float?: number;
@@ -22,6 +23,7 @@ interface SkuOption extends Resource {
22
23
  }
23
24
  interface SkuOptionCreate extends ResourceCreate {
24
25
  name: string;
26
+ currency_code?: string;
25
27
  description?: string;
26
28
  price_amount_cents?: number;
27
29
  delay_hours?: number;
@@ -30,6 +32,7 @@ interface SkuOptionCreate extends ResourceCreate {
30
32
  }
31
33
  interface SkuOptionUpdate extends ResourceUpdate {
32
34
  name?: string;
35
+ currency_code?: string;
33
36
  description?: string;
34
37
  price_amount_cents?: number;
35
38
  delay_hours?: number;
package/lib/esm/api.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2022 Commerce Layer Inc.
3
- * OpenAPI schema, version 2.8.0
3
+ * OpenAPI schema, version 2.8.1
4
4
  **/
5
5
  export { default as Addresses } from './resources/addresses';
6
6
  export { default as Adjustments } from './resources/adjustments';
@@ -1 +1 @@
1
- var c=this&&this.__classPrivateFieldSet||function(o,i,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?o!==i||!a:!i.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(o,n):a?a.value=n:i.set(o,n),n},s=this&&this.__classPrivateFieldGet||function(o,i,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?o!==i||!r:!i.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(o):r?r.value:i.get(o)},t,h;import*as e from"./api";import{CommerceLayerStatic as f}from"./static";import w from"./resource";const u="2.8.0";class p{constructor(i){t.set(this,void 0),h.set(this,void 0),c(this,t,new w(i),"f"),c(this,h,i.organization,"f"),this.addresses=new e.Addresses(s(this,t,"f")),this.adjustments=new e.Adjustments(s(this,t,"f")),this.adyen_gateways=new e.AdyenGateways(s(this,t,"f")),this.adyen_payments=new e.AdyenPayments(s(this,t,"f")),this.application=new e.Applications(s(this,t,"f")),this.attachments=new e.Attachments(s(this,t,"f")),this.authorizations=new e.Authorizations(s(this,t,"f")),this.avalara_accounts=new e.AvalaraAccounts(s(this,t,"f")),this.billing_info_validation_rules=new e.BillingInfoValidationRules(s(this,t,"f")),this.bing_geocoders=new e.BingGeocoders(s(this,t,"f")),this.braintree_gateways=new e.BraintreeGateways(s(this,t,"f")),this.braintree_payments=new e.BraintreePayments(s(this,t,"f")),this.bundles=new e.Bundles(s(this,t,"f")),this.captures=new e.Captures(s(this,t,"f")),this.carrier_accounts=new e.CarrierAccounts(s(this,t,"f")),this.checkout_com_gateways=new e.CheckoutComGateways(s(this,t,"f")),this.checkout_com_payments=new e.CheckoutComPayments(s(this,t,"f")),this.coupon_codes_promotion_rules=new e.CouponCodesPromotionRules(s(this,t,"f")),this.coupon_recipients=new e.CouponRecipients(s(this,t,"f")),this.coupons=new e.Coupons(s(this,t,"f")),this.customer_addresses=new e.CustomerAddresses(s(this,t,"f")),this.customer_groups=new e.CustomerGroups(s(this,t,"f")),this.customer_password_resets=new e.CustomerPasswordResets(s(this,t,"f")),this.customer_payment_sources=new e.CustomerPaymentSources(s(this,t,"f")),this.customer_subscriptions=new e.CustomerSubscriptions(s(this,t,"f")),this.customers=new e.Customers(s(this,t,"f")),this.delivery_lead_times=new e.DeliveryLeadTimes(s(this,t,"f")),this.event_callbacks=new e.EventCallbacks(s(this,t,"f")),this.external_gateways=new e.ExternalGateways(s(this,t,"f")),this.external_payments=new e.ExternalPayments(s(this,t,"f")),this.external_promotions=new e.ExternalPromotions(s(this,t,"f")),this.external_tax_calculators=new e.ExternalTaxCalculators(s(this,t,"f")),this.fixed_amount_promotions=new e.FixedAmountPromotions(s(this,t,"f")),this.fixed_price_promotions=new e.FixedPricePromotions(s(this,t,"f")),this.free_gift_promotions=new e.FreeGiftPromotions(s(this,t,"f")),this.free_shipping_promotions=new e.FreeShippingPromotions(s(this,t,"f")),this.geocoders=new e.Geocoders(s(this,t,"f")),this.gift_card_recipients=new e.GiftCardRecipients(s(this,t,"f")),this.gift_cards=new e.GiftCards(s(this,t,"f")),this.google_geocoders=new e.GoogleGeocoders(s(this,t,"f")),this.imports=new e.Imports(s(this,t,"f")),this.in_stock_subscriptions=new e.InStockSubscriptions(s(this,t,"f")),this.inventory_models=new e.InventoryModels(s(this,t,"f")),this.inventory_return_locations=new e.InventoryReturnLocations(s(this,t,"f")),this.inventory_stock_locations=new e.InventoryStockLocations(s(this,t,"f")),this.klarna_gateways=new e.KlarnaGateways(s(this,t,"f")),this.klarna_payments=new e.KlarnaPayments(s(this,t,"f")),this.line_item_options=new e.LineItemOptions(s(this,t,"f")),this.line_items=new e.LineItems(s(this,t,"f")),this.manual_gateways=new e.ManualGateways(s(this,t,"f")),this.manual_tax_calculators=new e.ManualTaxCalculators(s(this,t,"f")),this.markets=new e.Markets(s(this,t,"f")),this.merchants=new e.Merchants(s(this,t,"f")),this.order_amount_promotion_rules=new e.OrderAmountPromotionRules(s(this,t,"f")),this.order_copies=new e.OrderCopies(s(this,t,"f")),this.order_subscriptions=new e.OrderSubscriptions(s(this,t,"f")),this.order_validation_rules=new e.OrderValidationRules(s(this,t,"f")),this.orders=new e.Orders(s(this,t,"f")),this.organization=new e.Organizations(s(this,t,"f")),this.packages=new e.Packages(s(this,t,"f")),this.parcel_line_items=new e.ParcelLineItems(s(this,t,"f")),this.parcels=new e.Parcels(s(this,t,"f")),this.payment_gateways=new e.PaymentGateways(s(this,t,"f")),this.payment_methods=new e.PaymentMethods(s(this,t,"f")),this.paypal_gateways=new e.PaypalGateways(s(this,t,"f")),this.paypal_payments=new e.PaypalPayments(s(this,t,"f")),this.percentage_discount_promotions=new e.PercentageDiscountPromotions(s(this,t,"f")),this.price_lists=new e.PriceLists(s(this,t,"f")),this.prices=new e.Prices(s(this,t,"f")),this.promotion_rules=new e.PromotionRules(s(this,t,"f")),this.promotions=new e.Promotions(s(this,t,"f")),this.refunds=new e.Refunds(s(this,t,"f")),this.return_line_items=new e.ReturnLineItems(s(this,t,"f")),this.returns=new e.Returns(s(this,t,"f")),this.shipments=new e.Shipments(s(this,t,"f")),this.shipping_categories=new e.ShippingCategories(s(this,t,"f")),this.shipping_methods=new e.ShippingMethods(s(this,t,"f")),this.shipping_zones=new e.ShippingZones(s(this,t,"f")),this.sku_list_items=new e.SkuListItems(s(this,t,"f")),this.sku_list_promotion_rules=new e.SkuListPromotionRules(s(this,t,"f")),this.sku_lists=new e.SkuLists(s(this,t,"f")),this.sku_options=new e.SkuOptions(s(this,t,"f")),this.skus=new e.Skus(s(this,t,"f")),this.stock_items=new e.StockItems(s(this,t,"f")),this.stock_line_items=new e.StockLineItems(s(this,t,"f")),this.stock_locations=new e.StockLocations(s(this,t,"f")),this.stock_transfers=new e.StockTransfers(s(this,t,"f")),this.stripe_gateways=new e.StripeGateways(s(this,t,"f")),this.stripe_payments=new e.StripePayments(s(this,t,"f")),this.tax_calculators=new e.TaxCalculators(s(this,t,"f")),this.tax_categories=new e.TaxCategories(s(this,t,"f")),this.tax_rules=new e.TaxRules(s(this,t,"f")),this.taxjar_accounts=new e.TaxjarAccounts(s(this,t,"f")),this.transactions=new e.Transactions(s(this,t,"f")),this.voids=new e.Voids(s(this,t,"f")),this.webhooks=new e.Webhooks(s(this,t,"f")),this.wire_transfers=new e.WireTransfers(s(this,t,"f"))}static get openApiSchemaVersion(){return u}get currentOrganization(){return s(this,h,"f")}config(i){i.organization&&c(this,h,i.organization,"f"),s(this,t,"f").config(i)}resources(){return f.resources()}isApiError(i){return f.isApiError(i)}addRequestInterceptor(i,n){return s(this,t,"f").interceptors.request.use(i,n)}addResponseInterceptor(i,n){return s(this,t,"f").interceptors.response.use(i,n)}removeInterceptor(i,n){return s(this,t,"f").interceptors[i].eject(n)}addRawResponseReader(){const i={id:void 0,rawResponse:void 0};function n(a){return i.rawResponse=a==null?void 0:a.data,a}const r=this.addResponseInterceptor(n);return i.id=r,i}removeRawResponseReader(i){const n=typeof i=="number"?i:i.id;if(n)return this.removeInterceptor("response",n)}}t=new WeakMap,h=new WeakMap;const m=o=>new p(o);export default m;
1
+ var c=this&&this.__classPrivateFieldSet||function(o,i,n,r,a){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?o!==i||!a:!i.has(o))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?a.call(o,n):a?a.value=n:i.set(o,n),n},s=this&&this.__classPrivateFieldGet||function(o,i,n,r){if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?o!==i||!r:!i.has(o))throw new TypeError("Cannot read private member from an object whose class did not declare it");return n==="m"?r:n==="a"?r.call(o):r?r.value:i.get(o)},t,h;import*as e from"./api";import{CommerceLayerStatic as f}from"./static";import w from"./resource";const u="2.8.1";class p{constructor(i){t.set(this,void 0),h.set(this,void 0),c(this,t,new w(i),"f"),c(this,h,i.organization,"f"),this.addresses=new e.Addresses(s(this,t,"f")),this.adjustments=new e.Adjustments(s(this,t,"f")),this.adyen_gateways=new e.AdyenGateways(s(this,t,"f")),this.adyen_payments=new e.AdyenPayments(s(this,t,"f")),this.application=new e.Applications(s(this,t,"f")),this.attachments=new e.Attachments(s(this,t,"f")),this.authorizations=new e.Authorizations(s(this,t,"f")),this.avalara_accounts=new e.AvalaraAccounts(s(this,t,"f")),this.billing_info_validation_rules=new e.BillingInfoValidationRules(s(this,t,"f")),this.bing_geocoders=new e.BingGeocoders(s(this,t,"f")),this.braintree_gateways=new e.BraintreeGateways(s(this,t,"f")),this.braintree_payments=new e.BraintreePayments(s(this,t,"f")),this.bundles=new e.Bundles(s(this,t,"f")),this.captures=new e.Captures(s(this,t,"f")),this.carrier_accounts=new e.CarrierAccounts(s(this,t,"f")),this.checkout_com_gateways=new e.CheckoutComGateways(s(this,t,"f")),this.checkout_com_payments=new e.CheckoutComPayments(s(this,t,"f")),this.coupon_codes_promotion_rules=new e.CouponCodesPromotionRules(s(this,t,"f")),this.coupon_recipients=new e.CouponRecipients(s(this,t,"f")),this.coupons=new e.Coupons(s(this,t,"f")),this.customer_addresses=new e.CustomerAddresses(s(this,t,"f")),this.customer_groups=new e.CustomerGroups(s(this,t,"f")),this.customer_password_resets=new e.CustomerPasswordResets(s(this,t,"f")),this.customer_payment_sources=new e.CustomerPaymentSources(s(this,t,"f")),this.customer_subscriptions=new e.CustomerSubscriptions(s(this,t,"f")),this.customers=new e.Customers(s(this,t,"f")),this.delivery_lead_times=new e.DeliveryLeadTimes(s(this,t,"f")),this.event_callbacks=new e.EventCallbacks(s(this,t,"f")),this.external_gateways=new e.ExternalGateways(s(this,t,"f")),this.external_payments=new e.ExternalPayments(s(this,t,"f")),this.external_promotions=new e.ExternalPromotions(s(this,t,"f")),this.external_tax_calculators=new e.ExternalTaxCalculators(s(this,t,"f")),this.fixed_amount_promotions=new e.FixedAmountPromotions(s(this,t,"f")),this.fixed_price_promotions=new e.FixedPricePromotions(s(this,t,"f")),this.free_gift_promotions=new e.FreeGiftPromotions(s(this,t,"f")),this.free_shipping_promotions=new e.FreeShippingPromotions(s(this,t,"f")),this.geocoders=new e.Geocoders(s(this,t,"f")),this.gift_card_recipients=new e.GiftCardRecipients(s(this,t,"f")),this.gift_cards=new e.GiftCards(s(this,t,"f")),this.google_geocoders=new e.GoogleGeocoders(s(this,t,"f")),this.imports=new e.Imports(s(this,t,"f")),this.in_stock_subscriptions=new e.InStockSubscriptions(s(this,t,"f")),this.inventory_models=new e.InventoryModels(s(this,t,"f")),this.inventory_return_locations=new e.InventoryReturnLocations(s(this,t,"f")),this.inventory_stock_locations=new e.InventoryStockLocations(s(this,t,"f")),this.klarna_gateways=new e.KlarnaGateways(s(this,t,"f")),this.klarna_payments=new e.KlarnaPayments(s(this,t,"f")),this.line_item_options=new e.LineItemOptions(s(this,t,"f")),this.line_items=new e.LineItems(s(this,t,"f")),this.manual_gateways=new e.ManualGateways(s(this,t,"f")),this.manual_tax_calculators=new e.ManualTaxCalculators(s(this,t,"f")),this.markets=new e.Markets(s(this,t,"f")),this.merchants=new e.Merchants(s(this,t,"f")),this.order_amount_promotion_rules=new e.OrderAmountPromotionRules(s(this,t,"f")),this.order_copies=new e.OrderCopies(s(this,t,"f")),this.order_subscriptions=new e.OrderSubscriptions(s(this,t,"f")),this.order_validation_rules=new e.OrderValidationRules(s(this,t,"f")),this.orders=new e.Orders(s(this,t,"f")),this.organization=new e.Organizations(s(this,t,"f")),this.packages=new e.Packages(s(this,t,"f")),this.parcel_line_items=new e.ParcelLineItems(s(this,t,"f")),this.parcels=new e.Parcels(s(this,t,"f")),this.payment_gateways=new e.PaymentGateways(s(this,t,"f")),this.payment_methods=new e.PaymentMethods(s(this,t,"f")),this.paypal_gateways=new e.PaypalGateways(s(this,t,"f")),this.paypal_payments=new e.PaypalPayments(s(this,t,"f")),this.percentage_discount_promotions=new e.PercentageDiscountPromotions(s(this,t,"f")),this.price_lists=new e.PriceLists(s(this,t,"f")),this.prices=new e.Prices(s(this,t,"f")),this.promotion_rules=new e.PromotionRules(s(this,t,"f")),this.promotions=new e.Promotions(s(this,t,"f")),this.refunds=new e.Refunds(s(this,t,"f")),this.return_line_items=new e.ReturnLineItems(s(this,t,"f")),this.returns=new e.Returns(s(this,t,"f")),this.shipments=new e.Shipments(s(this,t,"f")),this.shipping_categories=new e.ShippingCategories(s(this,t,"f")),this.shipping_methods=new e.ShippingMethods(s(this,t,"f")),this.shipping_zones=new e.ShippingZones(s(this,t,"f")),this.sku_list_items=new e.SkuListItems(s(this,t,"f")),this.sku_list_promotion_rules=new e.SkuListPromotionRules(s(this,t,"f")),this.sku_lists=new e.SkuLists(s(this,t,"f")),this.sku_options=new e.SkuOptions(s(this,t,"f")),this.skus=new e.Skus(s(this,t,"f")),this.stock_items=new e.StockItems(s(this,t,"f")),this.stock_line_items=new e.StockLineItems(s(this,t,"f")),this.stock_locations=new e.StockLocations(s(this,t,"f")),this.stock_transfers=new e.StockTransfers(s(this,t,"f")),this.stripe_gateways=new e.StripeGateways(s(this,t,"f")),this.stripe_payments=new e.StripePayments(s(this,t,"f")),this.tax_calculators=new e.TaxCalculators(s(this,t,"f")),this.tax_categories=new e.TaxCategories(s(this,t,"f")),this.tax_rules=new e.TaxRules(s(this,t,"f")),this.taxjar_accounts=new e.TaxjarAccounts(s(this,t,"f")),this.transactions=new e.Transactions(s(this,t,"f")),this.voids=new e.Voids(s(this,t,"f")),this.webhooks=new e.Webhooks(s(this,t,"f")),this.wire_transfers=new e.WireTransfers(s(this,t,"f"))}static get openApiSchemaVersion(){return u}get currentOrganization(){return s(this,h,"f")}config(i){i.organization&&c(this,h,i.organization,"f"),s(this,t,"f").config(i)}resources(){return f.resources()}isApiError(i){return f.isApiError(i)}addRequestInterceptor(i,n){return s(this,t,"f").interceptors.request.use(i,n)}addResponseInterceptor(i,n){return s(this,t,"f").interceptors.response.use(i,n)}removeInterceptor(i,n){return s(this,t,"f").interceptors[i].eject(n)}addRawResponseReader(){const i={id:void 0,rawResponse:void 0};function n(a){return i.rawResponse=a==null?void 0:a.data,a}const r=this.addResponseInterceptor(n);return i.id=r,i}removeRawResponseReader(i){const n=typeof i=="number"?i:i.id;if(n)return this.removeInterceptor("response",n)}}t=new WeakMap,h=new WeakMap;const m=o=>new p(o);export default m;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2022 Commerce Layer Inc.
3
- * OpenAPI schema, version 2.8.0
3
+ * OpenAPI schema, version 2.8.1
4
4
  **/
5
5
  export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
6
6
  export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
@@ -16,6 +16,7 @@ declare type SkuListRel = ResourceId & {
16
16
  interface Bundle extends Resource {
17
17
  code?: string;
18
18
  name?: string;
19
+ currency_code?: string;
19
20
  description?: string;
20
21
  image_url?: string;
21
22
  price_amount_cents?: number;
@@ -33,10 +34,12 @@ interface Bundle extends Resource {
33
34
  interface BundleCreate extends ResourceCreate {
34
35
  code: string;
35
36
  name: string;
37
+ currency_code?: string;
36
38
  description?: string;
37
39
  image_url?: string;
38
40
  price_amount_cents: number;
39
41
  compare_at_amount_cents: number;
42
+ _compute_price_amount?: boolean;
40
43
  _compute_compare_at_amount?: boolean;
41
44
  market?: MarketRel;
42
45
  sku_list: SkuListRel;
@@ -44,10 +47,12 @@ interface BundleCreate extends ResourceCreate {
44
47
  interface BundleUpdate extends ResourceUpdate {
45
48
  code?: string;
46
49
  name?: string;
50
+ currency_code?: string;
47
51
  description?: string;
48
52
  image_url?: string;
49
53
  price_amount_cents?: number;
50
54
  compare_at_amount_cents?: number;
55
+ _compute_price_amount?: boolean;
51
56
  _compute_compare_at_amount?: boolean;
52
57
  }
53
58
  declare class Bundles extends ApiResource {
@@ -26,6 +26,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
26
26
  };
27
27
  interface ExternalPromotion extends Resource {
28
28
  name?: string;
29
+ currency_code?: string;
29
30
  starts_at?: string;
30
31
  expires_at?: string;
31
32
  total_usage_limit?: number;
@@ -41,6 +42,7 @@ interface ExternalPromotion extends Resource {
41
42
  }
42
43
  interface ExternalPromotionCreate extends ResourceCreate {
43
44
  name: string;
45
+ currency_code?: string;
44
46
  starts_at: string;
45
47
  expires_at: string;
46
48
  total_usage_limit: number;
@@ -53,6 +55,7 @@ interface ExternalPromotionCreate extends ResourceCreate {
53
55
  }
54
56
  interface ExternalPromotionUpdate extends ResourceUpdate {
55
57
  name?: string;
58
+ currency_code?: string;
56
59
  starts_at?: string;
57
60
  expires_at?: string;
58
61
  total_usage_limit?: number;
@@ -26,6 +26,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
26
26
  };
27
27
  interface FixedAmountPromotion extends Resource {
28
28
  name?: string;
29
+ currency_code?: string;
29
30
  starts_at?: string;
30
31
  expires_at?: string;
31
32
  total_usage_limit?: number;
@@ -43,6 +44,7 @@ interface FixedAmountPromotion extends Resource {
43
44
  }
44
45
  interface FixedAmountPromotionCreate extends ResourceCreate {
45
46
  name: string;
47
+ currency_code?: string;
46
48
  starts_at: string;
47
49
  expires_at: string;
48
50
  total_usage_limit: number;
@@ -55,6 +57,7 @@ interface FixedAmountPromotionCreate extends ResourceCreate {
55
57
  }
56
58
  interface FixedAmountPromotionUpdate extends ResourceUpdate {
57
59
  name?: string;
60
+ currency_code?: string;
58
61
  starts_at?: string;
59
62
  expires_at?: string;
60
63
  total_usage_limit?: number;
@@ -31,6 +31,7 @@ declare type SkuListRel = ResourceId & {
31
31
  };
32
32
  interface FixedPricePromotion extends Resource {
33
33
  name?: string;
34
+ currency_code?: string;
34
35
  starts_at?: string;
35
36
  expires_at?: string;
36
37
  total_usage_limit?: number;
@@ -50,6 +51,7 @@ interface FixedPricePromotion extends Resource {
50
51
  }
51
52
  interface FixedPricePromotionCreate extends ResourceCreate {
52
53
  name: string;
54
+ currency_code?: string;
53
55
  starts_at: string;
54
56
  expires_at: string;
55
57
  total_usage_limit: number;
@@ -63,6 +65,7 @@ interface FixedPricePromotionCreate extends ResourceCreate {
63
65
  }
64
66
  interface FixedPricePromotionUpdate extends ResourceUpdate {
65
67
  name?: string;
68
+ currency_code?: string;
66
69
  starts_at?: string;
67
70
  expires_at?: string;
68
71
  total_usage_limit?: number;
@@ -31,6 +31,7 @@ declare type SkuListRel = ResourceId & {
31
31
  };
32
32
  interface FreeGiftPromotion extends Resource {
33
33
  name?: string;
34
+ currency_code?: string;
34
35
  starts_at?: string;
35
36
  expires_at?: string;
36
37
  total_usage_limit?: number;
@@ -48,6 +49,7 @@ interface FreeGiftPromotion extends Resource {
48
49
  }
49
50
  interface FreeGiftPromotionCreate extends ResourceCreate {
50
51
  name: string;
52
+ currency_code?: string;
51
53
  starts_at: string;
52
54
  expires_at: string;
53
55
  total_usage_limit: number;
@@ -61,6 +63,7 @@ interface FreeGiftPromotionCreate extends ResourceCreate {
61
63
  }
62
64
  interface FreeGiftPromotionUpdate extends ResourceUpdate {
63
65
  name?: string;
66
+ currency_code?: string;
64
67
  starts_at?: string;
65
68
  expires_at?: string;
66
69
  total_usage_limit?: number;
@@ -26,6 +26,7 @@ declare type CouponCodesPromotionRuleRel = ResourceId & {
26
26
  };
27
27
  interface FreeShippingPromotion extends Resource {
28
28
  name?: string;
29
+ currency_code?: string;
29
30
  starts_at?: string;
30
31
  expires_at?: string;
31
32
  total_usage_limit?: number;
@@ -40,6 +41,7 @@ interface FreeShippingPromotion extends Resource {
40
41
  }
41
42
  interface FreeShippingPromotionCreate extends ResourceCreate {
42
43
  name: string;
44
+ currency_code?: string;
43
45
  starts_at: string;
44
46
  expires_at: string;
45
47
  total_usage_limit: number;
@@ -51,6 +53,7 @@ interface FreeShippingPromotionCreate extends ResourceCreate {
51
53
  }
52
54
  interface FreeShippingPromotionUpdate extends ResourceUpdate {
53
55
  name?: string;
56
+ currency_code?: string;
54
57
  starts_at?: string;
55
58
  expires_at?: string;
56
59
  total_usage_limit?: number;
@@ -37,7 +37,7 @@ interface GiftCard extends Resource {
37
37
  }
38
38
  interface GiftCardCreate extends ResourceCreate {
39
39
  code?: string;
40
- currency_code: string;
40
+ currency_code?: string;
41
41
  balance_cents: number;
42
42
  balance_max_cents?: string;
43
43
  single_use?: boolean;
@@ -15,6 +15,7 @@ declare type PaymentGatewayRel = ResourceId & {
15
15
  interface PaymentMethod extends Resource {
16
16
  payment_source_type?: string;
17
17
  name?: string;
18
+ currency_code?: string;
18
19
  moto?: boolean;
19
20
  disabled_at?: string;
20
21
  price_amount_cents?: number;
@@ -26,13 +27,15 @@ interface PaymentMethod extends Resource {
26
27
  }
27
28
  interface PaymentMethodCreate extends ResourceCreate {
28
29
  payment_source_type: string;
30
+ currency_code?: string;
29
31
  moto?: boolean;
30
32
  price_amount_cents: number;
31
- market: MarketRel;
33
+ market?: MarketRel;
32
34
  payment_gateway: PaymentGatewayRel;
33
35
  }
34
36
  interface PaymentMethodUpdate extends ResourceUpdate {
35
37
  payment_source_type?: string;
38
+ currency_code?: string;
36
39
  moto?: boolean;
37
40
  price_amount_cents?: number;
38
41
  market?: MarketRel;
@@ -31,6 +31,7 @@ declare type SkuListRel = ResourceId & {
31
31
  };
32
32
  interface PercentageDiscountPromotion extends Resource {
33
33
  name?: string;
34
+ currency_code?: string;
34
35
  starts_at?: string;
35
36
  expires_at?: string;
36
37
  total_usage_limit?: number;
@@ -48,6 +49,7 @@ interface PercentageDiscountPromotion extends Resource {
48
49
  }
49
50
  interface PercentageDiscountPromotionCreate extends ResourceCreate {
50
51
  name: string;
52
+ currency_code?: string;
51
53
  starts_at: string;
52
54
  expires_at: string;
53
55
  total_usage_limit: number;
@@ -61,6 +63,7 @@ interface PercentageDiscountPromotionCreate extends ResourceCreate {
61
63
  }
62
64
  interface PercentageDiscountPromotionUpdate extends ResourceUpdate {
63
65
  name?: string;
66
+ currency_code?: string;
64
67
  starts_at?: string;
65
68
  expires_at?: string;
66
69
  total_usage_limit?: number;
@@ -11,6 +11,7 @@ declare type PromotionRel = ResourceId & {
11
11
  };
12
12
  interface Promotion extends Resource {
13
13
  name?: string;
14
+ currency_code?: string;
14
15
  starts_at?: string;
15
16
  expires_at?: string;
16
17
  total_usage_limit?: number;