@commercelayer/sdk 5.0.0-beta.5 → 5.0.0-beta.6

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 (227) hide show
  1. package/lib/cjs/commercelayer.d.ts +2 -2
  2. package/lib/cjs/commercelayer.js +1 -1
  3. package/lib/cjs/resources/addresses.js +0 -1
  4. package/lib/cjs/resources/adjustments.js +0 -1
  5. package/lib/cjs/resources/adyen_gateways.js +0 -1
  6. package/lib/cjs/resources/adyen_payments.js +0 -1
  7. package/lib/cjs/resources/application.js +0 -1
  8. package/lib/cjs/resources/attachments.js +0 -1
  9. package/lib/cjs/resources/authorizations.js +0 -1
  10. package/lib/cjs/resources/avalara_accounts.js +0 -1
  11. package/lib/cjs/resources/axerve_gateways.js +0 -1
  12. package/lib/cjs/resources/axerve_payments.js +0 -1
  13. package/lib/cjs/resources/billing_info_validation_rules.js +0 -1
  14. package/lib/cjs/resources/bing_geocoders.js +0 -1
  15. package/lib/cjs/resources/braintree_gateways.js +0 -1
  16. package/lib/cjs/resources/braintree_payments.js +0 -1
  17. package/lib/cjs/resources/bundles.js +0 -1
  18. package/lib/cjs/resources/captures.js +0 -1
  19. package/lib/cjs/resources/carrier_accounts.js +0 -1
  20. package/lib/cjs/resources/checkout_com_gateways.js +0 -1
  21. package/lib/cjs/resources/checkout_com_payments.js +0 -1
  22. package/lib/cjs/resources/cleanups.js +0 -1
  23. package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -1
  24. package/lib/cjs/resources/coupon_recipients.js +0 -1
  25. package/lib/cjs/resources/coupons.js +0 -1
  26. package/lib/cjs/resources/customer_addresses.js +0 -1
  27. package/lib/cjs/resources/customer_groups.js +0 -1
  28. package/lib/cjs/resources/customer_password_resets.js +0 -1
  29. package/lib/cjs/resources/customer_payment_sources.js +0 -1
  30. package/lib/cjs/resources/customer_subscriptions.js +0 -1
  31. package/lib/cjs/resources/customers.js +0 -1
  32. package/lib/cjs/resources/delivery_lead_times.js +0 -1
  33. package/lib/cjs/resources/event_callbacks.js +0 -1
  34. package/lib/cjs/resources/events.js +0 -1
  35. package/lib/cjs/resources/exports.js +0 -1
  36. package/lib/cjs/resources/external_gateways.js +0 -1
  37. package/lib/cjs/resources/external_payments.js +0 -1
  38. package/lib/cjs/resources/external_promotions.js +0 -1
  39. package/lib/cjs/resources/external_tax_calculators.js +0 -1
  40. package/lib/cjs/resources/fixed_amount_promotions.js +0 -1
  41. package/lib/cjs/resources/fixed_price_promotions.js +0 -1
  42. package/lib/cjs/resources/free_gift_promotions.js +0 -1
  43. package/lib/cjs/resources/free_shipping_promotions.js +0 -1
  44. package/lib/cjs/resources/geocoders.js +0 -1
  45. package/lib/cjs/resources/gift_card_recipients.js +0 -1
  46. package/lib/cjs/resources/gift_cards.js +0 -1
  47. package/lib/cjs/resources/google_geocoders.js +0 -1
  48. package/lib/cjs/resources/imports.js +0 -1
  49. package/lib/cjs/resources/in_stock_subscriptions.js +0 -1
  50. package/lib/cjs/resources/inventory_models.js +0 -1
  51. package/lib/cjs/resources/inventory_return_locations.js +0 -1
  52. package/lib/cjs/resources/inventory_stock_locations.js +0 -1
  53. package/lib/cjs/resources/klarna_gateways.js +0 -1
  54. package/lib/cjs/resources/klarna_payments.js +0 -1
  55. package/lib/cjs/resources/line_item_options.js +0 -1
  56. package/lib/cjs/resources/line_items.d.ts +2 -2
  57. package/lib/cjs/resources/line_items.js +0 -1
  58. package/lib/cjs/resources/manual_gateways.js +0 -1
  59. package/lib/cjs/resources/manual_tax_calculators.js +0 -1
  60. package/lib/cjs/resources/markets.js +0 -1
  61. package/lib/cjs/resources/merchants.js +0 -1
  62. package/lib/cjs/resources/order_amount_promotion_rules.js +0 -1
  63. package/lib/cjs/resources/order_copies.js +0 -1
  64. package/lib/cjs/resources/order_subscriptions.js +0 -1
  65. package/lib/cjs/resources/order_validation_rules.js +0 -1
  66. package/lib/cjs/resources/orders.d.ts +2 -2
  67. package/lib/cjs/resources/orders.js +0 -1
  68. package/lib/cjs/resources/organization.js +0 -1
  69. package/lib/cjs/resources/packages.js +0 -1
  70. package/lib/cjs/resources/parcel_line_items.js +0 -1
  71. package/lib/cjs/resources/parcels.js +0 -1
  72. package/lib/cjs/resources/payment_gateways.js +0 -1
  73. package/lib/cjs/resources/payment_methods.js +0 -1
  74. package/lib/cjs/resources/paypal_gateways.js +0 -1
  75. package/lib/cjs/resources/paypal_payments.js +0 -1
  76. package/lib/cjs/resources/percentage_discount_promotions.js +0 -1
  77. package/lib/cjs/resources/price_lists.js +0 -1
  78. package/lib/cjs/resources/price_tiers.js +0 -1
  79. package/lib/cjs/resources/price_volume_tiers.js +0 -1
  80. package/lib/cjs/resources/prices.js +0 -1
  81. package/lib/cjs/resources/promotion_rules.js +0 -1
  82. package/lib/cjs/resources/promotions.js +0 -1
  83. package/lib/cjs/resources/refunds.js +0 -1
  84. package/lib/cjs/resources/return_line_items.js +0 -1
  85. package/lib/cjs/resources/returns.js +0 -1
  86. package/lib/cjs/resources/satispay_gateways.js +0 -1
  87. package/lib/cjs/resources/satispay_payments.js +0 -1
  88. package/lib/cjs/resources/shipments.js +0 -1
  89. package/lib/cjs/resources/shipping_categories.js +0 -1
  90. package/lib/cjs/resources/shipping_method_tiers.js +0 -1
  91. package/lib/cjs/resources/shipping_methods.js +0 -1
  92. package/lib/cjs/resources/shipping_weight_tiers.js +0 -1
  93. package/lib/cjs/resources/shipping_zones.js +0 -1
  94. package/lib/cjs/resources/sku_list_items.js +0 -1
  95. package/lib/cjs/resources/sku_list_promotion_rules.js +0 -1
  96. package/lib/cjs/resources/sku_lists.js +0 -1
  97. package/lib/cjs/resources/sku_options.js +0 -1
  98. package/lib/cjs/resources/skus.js +0 -1
  99. package/lib/cjs/resources/stock_items.js +0 -1
  100. package/lib/cjs/resources/stock_line_items.js +0 -1
  101. package/lib/cjs/resources/stock_locations.js +0 -1
  102. package/lib/cjs/resources/stock_transfers.js +0 -1
  103. package/lib/cjs/resources/stripe_gateways.js +0 -1
  104. package/lib/cjs/resources/stripe_payments.js +0 -1
  105. package/lib/cjs/resources/tax_calculators.js +0 -1
  106. package/lib/cjs/resources/tax_categories.js +0 -1
  107. package/lib/cjs/resources/tax_rules.js +0 -1
  108. package/lib/cjs/resources/taxjar_accounts.js +0 -1
  109. package/lib/cjs/resources/transactions.js +0 -1
  110. package/lib/cjs/resources/voids.js +0 -1
  111. package/lib/cjs/resources/webhooks.js +0 -1
  112. package/lib/cjs/resources/wire_transfers.js +0 -1
  113. package/lib/esm/commercelayer.d.ts +2 -2
  114. package/lib/esm/commercelayer.js +1 -1
  115. package/lib/esm/resources/addresses.js +0 -1
  116. package/lib/esm/resources/adjustments.js +0 -1
  117. package/lib/esm/resources/adyen_gateways.js +0 -1
  118. package/lib/esm/resources/adyen_payments.js +0 -1
  119. package/lib/esm/resources/application.js +0 -1
  120. package/lib/esm/resources/attachments.js +0 -1
  121. package/lib/esm/resources/authorizations.js +0 -1
  122. package/lib/esm/resources/avalara_accounts.js +0 -1
  123. package/lib/esm/resources/axerve_gateways.js +0 -1
  124. package/lib/esm/resources/axerve_payments.js +0 -1
  125. package/lib/esm/resources/billing_info_validation_rules.js +0 -1
  126. package/lib/esm/resources/bing_geocoders.js +0 -1
  127. package/lib/esm/resources/braintree_gateways.js +0 -1
  128. package/lib/esm/resources/braintree_payments.js +0 -1
  129. package/lib/esm/resources/bundles.js +0 -1
  130. package/lib/esm/resources/captures.js +0 -1
  131. package/lib/esm/resources/carrier_accounts.js +0 -1
  132. package/lib/esm/resources/checkout_com_gateways.js +0 -1
  133. package/lib/esm/resources/checkout_com_payments.js +0 -1
  134. package/lib/esm/resources/cleanups.js +0 -1
  135. package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -1
  136. package/lib/esm/resources/coupon_recipients.js +0 -1
  137. package/lib/esm/resources/coupons.js +0 -1
  138. package/lib/esm/resources/customer_addresses.js +0 -1
  139. package/lib/esm/resources/customer_groups.js +0 -1
  140. package/lib/esm/resources/customer_password_resets.js +0 -1
  141. package/lib/esm/resources/customer_payment_sources.js +0 -1
  142. package/lib/esm/resources/customer_subscriptions.js +0 -1
  143. package/lib/esm/resources/customers.js +0 -1
  144. package/lib/esm/resources/delivery_lead_times.js +0 -1
  145. package/lib/esm/resources/event_callbacks.js +0 -1
  146. package/lib/esm/resources/events.js +0 -1
  147. package/lib/esm/resources/exports.js +0 -1
  148. package/lib/esm/resources/external_gateways.js +0 -1
  149. package/lib/esm/resources/external_payments.js +0 -1
  150. package/lib/esm/resources/external_promotions.js +0 -1
  151. package/lib/esm/resources/external_tax_calculators.js +0 -1
  152. package/lib/esm/resources/fixed_amount_promotions.js +0 -1
  153. package/lib/esm/resources/fixed_price_promotions.js +0 -1
  154. package/lib/esm/resources/free_gift_promotions.js +0 -1
  155. package/lib/esm/resources/free_shipping_promotions.js +0 -1
  156. package/lib/esm/resources/geocoders.js +0 -1
  157. package/lib/esm/resources/gift_card_recipients.js +0 -1
  158. package/lib/esm/resources/gift_cards.js +0 -1
  159. package/lib/esm/resources/google_geocoders.js +0 -1
  160. package/lib/esm/resources/imports.js +0 -1
  161. package/lib/esm/resources/in_stock_subscriptions.js +0 -1
  162. package/lib/esm/resources/inventory_models.js +0 -1
  163. package/lib/esm/resources/inventory_return_locations.js +0 -1
  164. package/lib/esm/resources/inventory_stock_locations.js +0 -1
  165. package/lib/esm/resources/klarna_gateways.js +0 -1
  166. package/lib/esm/resources/klarna_payments.js +0 -1
  167. package/lib/esm/resources/line_item_options.js +0 -1
  168. package/lib/esm/resources/line_items.d.ts +2 -2
  169. package/lib/esm/resources/line_items.js +0 -1
  170. package/lib/esm/resources/manual_gateways.js +0 -1
  171. package/lib/esm/resources/manual_tax_calculators.js +0 -1
  172. package/lib/esm/resources/markets.js +0 -1
  173. package/lib/esm/resources/merchants.js +0 -1
  174. package/lib/esm/resources/order_amount_promotion_rules.js +0 -1
  175. package/lib/esm/resources/order_copies.js +0 -1
  176. package/lib/esm/resources/order_subscriptions.js +0 -1
  177. package/lib/esm/resources/order_validation_rules.js +0 -1
  178. package/lib/esm/resources/orders.d.ts +2 -2
  179. package/lib/esm/resources/orders.js +0 -1
  180. package/lib/esm/resources/organization.js +0 -1
  181. package/lib/esm/resources/packages.js +0 -1
  182. package/lib/esm/resources/parcel_line_items.js +0 -1
  183. package/lib/esm/resources/parcels.js +0 -1
  184. package/lib/esm/resources/payment_gateways.js +0 -1
  185. package/lib/esm/resources/payment_methods.js +0 -1
  186. package/lib/esm/resources/paypal_gateways.js +0 -1
  187. package/lib/esm/resources/paypal_payments.js +0 -1
  188. package/lib/esm/resources/percentage_discount_promotions.js +0 -1
  189. package/lib/esm/resources/price_lists.js +0 -1
  190. package/lib/esm/resources/price_tiers.js +0 -1
  191. package/lib/esm/resources/price_volume_tiers.js +0 -1
  192. package/lib/esm/resources/prices.js +0 -1
  193. package/lib/esm/resources/promotion_rules.js +0 -1
  194. package/lib/esm/resources/promotions.js +0 -1
  195. package/lib/esm/resources/refunds.js +0 -1
  196. package/lib/esm/resources/return_line_items.js +0 -1
  197. package/lib/esm/resources/returns.js +0 -1
  198. package/lib/esm/resources/satispay_gateways.js +0 -1
  199. package/lib/esm/resources/satispay_payments.js +0 -1
  200. package/lib/esm/resources/shipments.js +0 -1
  201. package/lib/esm/resources/shipping_categories.js +0 -1
  202. package/lib/esm/resources/shipping_method_tiers.js +0 -1
  203. package/lib/esm/resources/shipping_methods.js +0 -1
  204. package/lib/esm/resources/shipping_weight_tiers.js +0 -1
  205. package/lib/esm/resources/shipping_zones.js +0 -1
  206. package/lib/esm/resources/sku_list_items.js +0 -1
  207. package/lib/esm/resources/sku_list_promotion_rules.js +0 -1
  208. package/lib/esm/resources/sku_lists.js +0 -1
  209. package/lib/esm/resources/sku_options.js +0 -1
  210. package/lib/esm/resources/skus.js +0 -1
  211. package/lib/esm/resources/stock_items.js +0 -1
  212. package/lib/esm/resources/stock_line_items.js +0 -1
  213. package/lib/esm/resources/stock_locations.js +0 -1
  214. package/lib/esm/resources/stock_transfers.js +0 -1
  215. package/lib/esm/resources/stripe_gateways.js +0 -1
  216. package/lib/esm/resources/stripe_payments.js +0 -1
  217. package/lib/esm/resources/tax_calculators.js +0 -1
  218. package/lib/esm/resources/tax_categories.js +0 -1
  219. package/lib/esm/resources/tax_rules.js +0 -1
  220. package/lib/esm/resources/taxjar_accounts.js +0 -1
  221. package/lib/esm/resources/transactions.js +0 -1
  222. package/lib/esm/resources/voids.js +0 -1
  223. package/lib/esm/resources/webhooks.js +0 -1
  224. package/lib/esm/resources/wire_transfers.js +0 -1
  225. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  226. package/lib/tsconfig.tsbuildinfo +1 -1
  227. package/package.json +1 -1
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Cleanups extends ApiResource {
3
- // static readonly PATH = 'cleanups'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Cleanups.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class CouponCodesPromotionRules extends ApiResource {
3
- // static readonly PATH = 'coupon_codes_promotion_rules'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: CouponCodesPromotionRules.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class CouponRecipients extends ApiResource {
3
- // static readonly PATH = 'coupon_recipients'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: CouponRecipients.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Coupons extends ApiResource {
3
- // static readonly PATH = 'coupons'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Coupons.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class CustomerAddresses extends ApiResource {
3
- // static readonly PATH = 'customer_addresses'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: CustomerAddresses.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class CustomerGroups extends ApiResource {
3
- // static readonly PATH = 'customer_groups'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: CustomerGroups.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class CustomerPasswordResets extends ApiResource {
3
- // static readonly PATH = 'customer_password_resets'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: CustomerPasswordResets.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class CustomerPaymentSources extends ApiResource {
3
- // static readonly PATH = 'customer_payment_sources'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: CustomerPaymentSources.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class CustomerSubscriptions extends ApiResource {
3
- // static readonly PATH = 'customer_subscriptions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: CustomerSubscriptions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Customers extends ApiResource {
3
- // static readonly PATH = 'customers'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Customers.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class DeliveryLeadTimes extends ApiResource {
3
- // static readonly PATH = 'delivery_lead_times'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: DeliveryLeadTimes.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class EventCallbacks extends ApiResource {
3
- // static readonly PATH = 'event_callbacks'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: EventCallbacks.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Events extends ApiResource {
3
- // static readonly PATH = 'events'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Events.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Exports extends ApiResource {
3
- // static readonly PATH = 'exports'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Exports.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ExternalGateways extends ApiResource {
3
- // static readonly PATH = 'external_gateways'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ExternalGateways.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ExternalPayments extends ApiResource {
3
- // static readonly PATH = 'external_payments'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ExternalPayments.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ExternalPromotions extends ApiResource {
3
- // static readonly PATH = 'external_promotions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ExternalPromotions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ExternalTaxCalculators extends ApiResource {
3
- // static readonly PATH = 'external_tax_calculators'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ExternalTaxCalculators.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class FixedAmountPromotions extends ApiResource {
3
- // static readonly PATH = 'fixed_amount_promotions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: FixedAmountPromotions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class FixedPricePromotions extends ApiResource {
3
- // static readonly PATH = 'fixed_price_promotions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: FixedPricePromotions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class FreeGiftPromotions extends ApiResource {
3
- // static readonly PATH = 'free_gift_promotions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: FreeGiftPromotions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class FreeShippingPromotions extends ApiResource {
3
- // static readonly PATH = 'free_shipping_promotions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: FreeShippingPromotions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Geocoders extends ApiResource {
3
- // static readonly PATH = 'geocoders'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Geocoders.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class GiftCardRecipients extends ApiResource {
3
- // static readonly PATH = 'gift_card_recipients'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: GiftCardRecipients.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class GiftCards extends ApiResource {
3
- // static readonly PATH = 'gift_cards'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: GiftCards.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class GoogleGeocoders extends ApiResource {
3
- // static readonly PATH = 'google_geocoders'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: GoogleGeocoders.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Imports extends ApiResource {
3
- // static readonly PATH = 'imports'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Imports.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class InStockSubscriptions extends ApiResource {
3
- // static readonly PATH = 'in_stock_subscriptions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: InStockSubscriptions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class InventoryModels extends ApiResource {
3
- // static readonly PATH = 'inventory_models'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: InventoryModels.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class InventoryReturnLocations extends ApiResource {
3
- // static readonly PATH = 'inventory_return_locations'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: InventoryReturnLocations.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class InventoryStockLocations extends ApiResource {
3
- // static readonly PATH = 'inventory_stock_locations'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: InventoryStockLocations.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class KlarnaGateways extends ApiResource {
3
- // static readonly PATH = 'klarna_gateways'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: KlarnaGateways.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class KlarnaPayments extends ApiResource {
3
- // static readonly PATH = 'klarna_payments'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: KlarnaPayments.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class LineItemOptions extends ApiResource {
3
- // static readonly PATH = 'line_item_options'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: LineItemOptions.TYPE }, params, options);
6
5
  }
@@ -77,7 +77,7 @@ interface LineItem extends Resource {
77
77
  discount_breakdown?: object;
78
78
  tax_rate?: number;
79
79
  tax_breakdown?: object;
80
- item_type?: string;
80
+ item_type?: 'sku' | 'bundle' | 'shipment' | 'payment_method' | 'adjustment' | 'gift_card' | 'percentage_discount_promotion' | 'free_shipping_promotion' | 'free_gift_promotion' | 'fixed_price_promotion' | 'external_promotion' | 'fixed_amount_promotion';
81
81
  order?: Order;
82
82
  item?: Adjustment | Bundle | ExternalPromotion | FixedAmountPromotion | FreeShippingPromotion | GiftCard | PaymentMethod | PercentageDiscountPromotion | Shipment | Sku;
83
83
  line_item_options?: LineItemOption[];
@@ -97,7 +97,7 @@ interface LineItemCreate extends ResourceCreate {
97
97
  unit_amount_cents?: number;
98
98
  name?: string;
99
99
  image_url?: string;
100
- item_type?: string;
100
+ item_type?: 'sku' | 'bundle' | 'shipment' | 'payment_method' | 'adjustment' | 'gift_card' | 'percentage_discount_promotion' | 'free_shipping_promotion' | 'free_gift_promotion' | 'fixed_price_promotion' | 'external_promotion' | 'fixed_amount_promotion';
101
101
  order: OrderRel;
102
102
  item?: AdjustmentRel | BundleRel | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel | PaymentMethodRel | PercentageDiscountPromotionRel | ShipmentRel | SkuRel;
103
103
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class LineItems extends ApiResource {
3
- // static readonly PATH = 'line_items'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: LineItems.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ManualGateways extends ApiResource {
3
- // static readonly PATH = 'manual_gateways'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ManualGateways.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ManualTaxCalculators extends ApiResource {
3
- // static readonly PATH = 'manual_tax_calculators'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ManualTaxCalculators.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Markets extends ApiResource {
3
- // static readonly PATH = 'markets'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Markets.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Merchants extends ApiResource {
3
- // static readonly PATH = 'merchants'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Merchants.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class OrderAmountPromotionRules extends ApiResource {
3
- // static readonly PATH = 'order_amount_promotion_rules'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: OrderAmountPromotionRules.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class OrderCopies extends ApiResource {
3
- // static readonly PATH = 'order_copies'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: OrderCopies.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class OrderSubscriptions extends ApiResource {
3
- // static readonly PATH = 'order_subscriptions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: OrderSubscriptions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class OrderValidationRules extends ApiResource {
3
- // static readonly PATH = 'order_validation_rules'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: OrderValidationRules.TYPE }, params, options);
6
5
  }
@@ -79,8 +79,8 @@ interface Order extends Resource {
79
79
  number?: number;
80
80
  autorefresh?: boolean;
81
81
  status?: 'draft' | 'pending' | 'placed' | 'approved' | 'cancelled';
82
- payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded';
83
- fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled';
82
+ payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded' | 'free';
83
+ fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled' | 'not_required';
84
84
  guest?: boolean;
85
85
  editable?: boolean;
86
86
  customer_email?: string;
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Orders extends ApiResource {
3
- // static readonly PATH = 'orders'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Orders.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiSingleton } from '../resource';
2
2
  class Organizations extends ApiSingleton {
3
- // static readonly PATH = 'organization'
4
3
  isOrganization(resource) {
5
4
  return resource.type && (resource.type === Organizations.TYPE);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Packages extends ApiResource {
3
- // static readonly PATH = 'packages'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Packages.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ParcelLineItems extends ApiResource {
3
- // static readonly PATH = 'parcel_line_items'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ParcelLineItems.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Parcels extends ApiResource {
3
- // static readonly PATH = 'parcels'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Parcels.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PaymentGateways extends ApiResource {
3
- // static readonly PATH = 'payment_gateways'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PaymentGateways.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PaymentMethods extends ApiResource {
3
- // static readonly PATH = 'payment_methods'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PaymentMethods.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PaypalGateways extends ApiResource {
3
- // static readonly PATH = 'paypal_gateways'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PaypalGateways.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PaypalPayments extends ApiResource {
3
- // static readonly PATH = 'paypal_payments'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PaypalPayments.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PercentageDiscountPromotions extends ApiResource {
3
- // static readonly PATH = 'percentage_discount_promotions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PercentageDiscountPromotions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PriceLists extends ApiResource {
3
- // static readonly PATH = 'price_lists'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PriceLists.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PriceTiers extends ApiResource {
3
- // static readonly PATH = 'price_tiers'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PriceTiers.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PriceVolumeTiers extends ApiResource {
3
- // static readonly PATH = 'price_volume_tiers'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PriceVolumeTiers.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Prices extends ApiResource {
3
- // static readonly PATH = 'prices'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Prices.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class PromotionRules extends ApiResource {
3
- // static readonly PATH = 'promotion_rules'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: PromotionRules.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Promotions extends ApiResource {
3
- // static readonly PATH = 'promotions'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Promotions.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Refunds extends ApiResource {
3
- // static readonly PATH = 'refunds'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Refunds.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ReturnLineItems extends ApiResource {
3
- // static readonly PATH = 'return_line_items'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ReturnLineItems.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Returns extends ApiResource {
3
- // static readonly PATH = 'returns'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Returns.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class SatispayGateways extends ApiResource {
3
- // static readonly PATH = 'satispay_gateways'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: SatispayGateways.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class SatispayPayments extends ApiResource {
3
- // static readonly PATH = 'satispay_payments'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: SatispayPayments.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class Shipments extends ApiResource {
3
- // static readonly PATH = 'shipments'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: Shipments.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ShippingCategories extends ApiResource {
3
- // static readonly PATH = 'shipping_categories'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ShippingCategories.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ShippingMethodTiers extends ApiResource {
3
- // static readonly PATH = 'shipping_method_tiers'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ShippingMethodTiers.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ShippingMethods extends ApiResource {
3
- // static readonly PATH = 'shipping_methods'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ShippingMethods.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ShippingWeightTiers extends ApiResource {
3
- // static readonly PATH = 'shipping_weight_tiers'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ShippingWeightTiers.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class ShippingZones extends ApiResource {
3
- // static readonly PATH = 'shipping_zones'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: ShippingZones.TYPE }, params, options);
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import { ApiResource } from '../resource';
2
2
  class SkuListItems extends ApiResource {
3
- // static readonly PATH = 'sku_list_items'
4
3
  async list(params, options) {
5
4
  return this.resources.list({ type: SkuListItems.TYPE }, params, options);
6
5
  }