@commercelayer/sdk 2.3.8 → 2.3.12

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 (415) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/api.js +1 -1
  3. package/lib/cjs/client.js +1 -1
  4. package/lib/cjs/commercelayer.js +1 -1
  5. package/lib/cjs/common.js +1 -1
  6. package/lib/cjs/config.d.ts +7 -3
  7. package/lib/cjs/config.js +1 -1
  8. package/lib/cjs/error.js +1 -1
  9. package/lib/cjs/index.js +1 -1
  10. package/lib/cjs/interceptor.js +1 -1
  11. package/lib/cjs/jsonapi.js +1 -1
  12. package/lib/cjs/model.d.ts +1 -1
  13. package/lib/cjs/model.js +1 -1
  14. package/lib/cjs/query.d.ts +0 -35
  15. package/lib/cjs/query.js +1 -1
  16. package/lib/cjs/resource.js +1 -1
  17. package/lib/cjs/resources/addresses.d.ts +1 -1
  18. package/lib/cjs/resources/addresses.js +1 -1
  19. package/lib/cjs/resources/adjustments.d.ts +1 -1
  20. package/lib/cjs/resources/adjustments.js +1 -1
  21. package/lib/cjs/resources/adyen_gateways.d.ts +1 -1
  22. package/lib/cjs/resources/adyen_gateways.js +1 -1
  23. package/lib/cjs/resources/adyen_payments.d.ts +1 -1
  24. package/lib/cjs/resources/adyen_payments.js +1 -1
  25. package/lib/cjs/resources/application.d.ts +1 -1
  26. package/lib/cjs/resources/application.js +1 -1
  27. package/lib/cjs/resources/attachments.d.ts +1 -1
  28. package/lib/cjs/resources/attachments.js +1 -1
  29. package/lib/cjs/resources/authorizations.d.ts +1 -1
  30. package/lib/cjs/resources/authorizations.js +1 -1
  31. package/lib/cjs/resources/avalara_accounts.d.ts +1 -1
  32. package/lib/cjs/resources/avalara_accounts.js +1 -1
  33. package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -1
  34. package/lib/cjs/resources/billing_info_validation_rules.js +1 -1
  35. package/lib/cjs/resources/bing_geocoders.d.ts +1 -1
  36. package/lib/cjs/resources/bing_geocoders.js +1 -1
  37. package/lib/cjs/resources/braintree_gateways.d.ts +1 -1
  38. package/lib/cjs/resources/braintree_gateways.js +1 -1
  39. package/lib/cjs/resources/braintree_payments.d.ts +1 -1
  40. package/lib/cjs/resources/braintree_payments.js +1 -1
  41. package/lib/cjs/resources/bundles.d.ts +1 -1
  42. package/lib/cjs/resources/bundles.js +1 -1
  43. package/lib/cjs/resources/captures.d.ts +1 -1
  44. package/lib/cjs/resources/captures.js +1 -1
  45. package/lib/cjs/resources/carrier_accounts.d.ts +1 -1
  46. package/lib/cjs/resources/carrier_accounts.js +1 -1
  47. package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -1
  48. package/lib/cjs/resources/checkout_com_gateways.js +1 -1
  49. package/lib/cjs/resources/checkout_com_payments.d.ts +1 -1
  50. package/lib/cjs/resources/checkout_com_payments.js +1 -1
  51. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -1
  52. package/lib/cjs/resources/coupon_codes_promotion_rules.js +1 -1
  53. package/lib/cjs/resources/coupon_recipients.d.ts +1 -1
  54. package/lib/cjs/resources/coupon_recipients.js +1 -1
  55. package/lib/cjs/resources/coupons.d.ts +1 -1
  56. package/lib/cjs/resources/coupons.js +1 -1
  57. package/lib/cjs/resources/customer_addresses.d.ts +1 -1
  58. package/lib/cjs/resources/customer_addresses.js +1 -1
  59. package/lib/cjs/resources/customer_groups.d.ts +1 -1
  60. package/lib/cjs/resources/customer_groups.js +1 -1
  61. package/lib/cjs/resources/customer_password_resets.d.ts +1 -1
  62. package/lib/cjs/resources/customer_password_resets.js +1 -1
  63. package/lib/cjs/resources/customer_payment_sources.d.ts +1 -1
  64. package/lib/cjs/resources/customer_payment_sources.js +1 -1
  65. package/lib/cjs/resources/customer_subscriptions.d.ts +1 -1
  66. package/lib/cjs/resources/customer_subscriptions.js +1 -1
  67. package/lib/cjs/resources/customers.d.ts +1 -1
  68. package/lib/cjs/resources/customers.js +1 -1
  69. package/lib/cjs/resources/delivery_lead_times.d.ts +1 -1
  70. package/lib/cjs/resources/delivery_lead_times.js +1 -1
  71. package/lib/cjs/resources/event_callbacks.d.ts +1 -1
  72. package/lib/cjs/resources/event_callbacks.js +1 -1
  73. package/lib/cjs/resources/external_gateways.d.ts +1 -1
  74. package/lib/cjs/resources/external_gateways.js +1 -1
  75. package/lib/cjs/resources/external_payments.d.ts +1 -1
  76. package/lib/cjs/resources/external_payments.js +1 -1
  77. package/lib/cjs/resources/external_promotions.d.ts +1 -1
  78. package/lib/cjs/resources/external_promotions.js +1 -1
  79. package/lib/cjs/resources/external_tax_calculators.d.ts +1 -1
  80. package/lib/cjs/resources/external_tax_calculators.js +1 -1
  81. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -1
  82. package/lib/cjs/resources/fixed_amount_promotions.js +1 -1
  83. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -1
  84. package/lib/cjs/resources/fixed_price_promotions.js +1 -1
  85. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -1
  86. package/lib/cjs/resources/free_gift_promotions.js +1 -1
  87. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -1
  88. package/lib/cjs/resources/free_shipping_promotions.js +1 -1
  89. package/lib/cjs/resources/geocoders.d.ts +1 -1
  90. package/lib/cjs/resources/geocoders.js +1 -1
  91. package/lib/cjs/resources/gift_card_recipients.d.ts +1 -1
  92. package/lib/cjs/resources/gift_card_recipients.js +1 -1
  93. package/lib/cjs/resources/gift_cards.d.ts +1 -2
  94. package/lib/cjs/resources/gift_cards.js +1 -1
  95. package/lib/cjs/resources/google_geocoders.d.ts +1 -1
  96. package/lib/cjs/resources/google_geocoders.js +1 -1
  97. package/lib/cjs/resources/imports.d.ts +1 -1
  98. package/lib/cjs/resources/imports.js +1 -1
  99. package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -1
  100. package/lib/cjs/resources/in_stock_subscriptions.js +1 -1
  101. package/lib/cjs/resources/inventory_models.d.ts +1 -1
  102. package/lib/cjs/resources/inventory_models.js +1 -1
  103. package/lib/cjs/resources/inventory_return_locations.d.ts +1 -1
  104. package/lib/cjs/resources/inventory_return_locations.js +1 -1
  105. package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -1
  106. package/lib/cjs/resources/inventory_stock_locations.js +1 -1
  107. package/lib/cjs/resources/line_item_options.d.ts +1 -1
  108. package/lib/cjs/resources/line_item_options.js +1 -1
  109. package/lib/cjs/resources/line_items.d.ts +1 -1
  110. package/lib/cjs/resources/line_items.js +1 -1
  111. package/lib/cjs/resources/manual_gateways.d.ts +1 -1
  112. package/lib/cjs/resources/manual_gateways.js +1 -1
  113. package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -1
  114. package/lib/cjs/resources/manual_tax_calculators.js +1 -1
  115. package/lib/cjs/resources/markets.d.ts +1 -1
  116. package/lib/cjs/resources/markets.js +1 -1
  117. package/lib/cjs/resources/merchants.d.ts +1 -1
  118. package/lib/cjs/resources/merchants.js +1 -1
  119. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -1
  120. package/lib/cjs/resources/order_amount_promotion_rules.js +1 -1
  121. package/lib/cjs/resources/order_copies.d.ts +1 -1
  122. package/lib/cjs/resources/order_copies.js +1 -1
  123. package/lib/cjs/resources/order_subscriptions.d.ts +2 -2
  124. package/lib/cjs/resources/order_subscriptions.js +1 -1
  125. package/lib/cjs/resources/order_validation_rules.d.ts +1 -1
  126. package/lib/cjs/resources/order_validation_rules.js +1 -1
  127. package/lib/cjs/resources/orders.d.ts +1 -1
  128. package/lib/cjs/resources/orders.js +1 -1
  129. package/lib/cjs/resources/organization.d.ts +3 -1
  130. package/lib/cjs/resources/organization.js +1 -1
  131. package/lib/cjs/resources/packages.d.ts +6 -6
  132. package/lib/cjs/resources/packages.js +1 -1
  133. package/lib/cjs/resources/parcel_line_items.d.ts +1 -1
  134. package/lib/cjs/resources/parcel_line_items.js +1 -1
  135. package/lib/cjs/resources/parcels.d.ts +1 -1
  136. package/lib/cjs/resources/parcels.js +1 -1
  137. package/lib/cjs/resources/payment_gateways.d.ts +1 -1
  138. package/lib/cjs/resources/payment_gateways.js +1 -1
  139. package/lib/cjs/resources/payment_methods.d.ts +1 -1
  140. package/lib/cjs/resources/payment_methods.js +1 -1
  141. package/lib/cjs/resources/paypal_gateways.d.ts +1 -1
  142. package/lib/cjs/resources/paypal_gateways.js +1 -1
  143. package/lib/cjs/resources/paypal_payments.d.ts +1 -1
  144. package/lib/cjs/resources/paypal_payments.js +1 -1
  145. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -1
  146. package/lib/cjs/resources/percentage_discount_promotions.js +1 -1
  147. package/lib/cjs/resources/price_lists.d.ts +1 -1
  148. package/lib/cjs/resources/price_lists.js +1 -1
  149. package/lib/cjs/resources/prices.d.ts +1 -1
  150. package/lib/cjs/resources/prices.js +1 -1
  151. package/lib/cjs/resources/promotion_rules.d.ts +1 -1
  152. package/lib/cjs/resources/promotion_rules.js +1 -1
  153. package/lib/cjs/resources/promotions.d.ts +1 -1
  154. package/lib/cjs/resources/promotions.js +1 -1
  155. package/lib/cjs/resources/refunds.d.ts +1 -1
  156. package/lib/cjs/resources/refunds.js +1 -1
  157. package/lib/cjs/resources/return_line_items.d.ts +1 -1
  158. package/lib/cjs/resources/return_line_items.js +1 -1
  159. package/lib/cjs/resources/returns.d.ts +1 -1
  160. package/lib/cjs/resources/returns.js +1 -1
  161. package/lib/cjs/resources/shipments.d.ts +1 -1
  162. package/lib/cjs/resources/shipments.js +1 -1
  163. package/lib/cjs/resources/shipping_categories.d.ts +1 -1
  164. package/lib/cjs/resources/shipping_categories.js +1 -1
  165. package/lib/cjs/resources/shipping_methods.d.ts +1 -1
  166. package/lib/cjs/resources/shipping_methods.js +1 -1
  167. package/lib/cjs/resources/shipping_zones.d.ts +1 -1
  168. package/lib/cjs/resources/shipping_zones.js +1 -1
  169. package/lib/cjs/resources/sku_list_items.d.ts +1 -1
  170. package/lib/cjs/resources/sku_list_items.js +1 -1
  171. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -1
  172. package/lib/cjs/resources/sku_list_promotion_rules.js +1 -1
  173. package/lib/cjs/resources/sku_lists.d.ts +1 -1
  174. package/lib/cjs/resources/sku_lists.js +1 -1
  175. package/lib/cjs/resources/sku_options.d.ts +1 -1
  176. package/lib/cjs/resources/sku_options.js +1 -1
  177. package/lib/cjs/resources/skus.d.ts +1 -1
  178. package/lib/cjs/resources/skus.js +1 -1
  179. package/lib/cjs/resources/stock_items.d.ts +1 -1
  180. package/lib/cjs/resources/stock_items.js +1 -1
  181. package/lib/cjs/resources/stock_line_items.d.ts +1 -1
  182. package/lib/cjs/resources/stock_line_items.js +1 -1
  183. package/lib/cjs/resources/stock_locations.d.ts +1 -1
  184. package/lib/cjs/resources/stock_locations.js +1 -1
  185. package/lib/cjs/resources/stock_transfers.d.ts +1 -1
  186. package/lib/cjs/resources/stock_transfers.js +1 -1
  187. package/lib/cjs/resources/stripe_gateways.d.ts +1 -1
  188. package/lib/cjs/resources/stripe_gateways.js +1 -1
  189. package/lib/cjs/resources/stripe_payments.d.ts +1 -1
  190. package/lib/cjs/resources/stripe_payments.js +1 -1
  191. package/lib/cjs/resources/tax_calculators.d.ts +1 -1
  192. package/lib/cjs/resources/tax_calculators.js +1 -1
  193. package/lib/cjs/resources/tax_categories.d.ts +1 -1
  194. package/lib/cjs/resources/tax_categories.js +1 -1
  195. package/lib/cjs/resources/tax_rules.d.ts +1 -1
  196. package/lib/cjs/resources/tax_rules.js +1 -1
  197. package/lib/cjs/resources/taxjar_accounts.d.ts +1 -1
  198. package/lib/cjs/resources/taxjar_accounts.js +1 -1
  199. package/lib/cjs/resources/transactions.d.ts +1 -1
  200. package/lib/cjs/resources/transactions.js +1 -1
  201. package/lib/cjs/resources/voids.d.ts +1 -1
  202. package/lib/cjs/resources/voids.js +1 -1
  203. package/lib/cjs/resources/webhooks.d.ts +1 -1
  204. package/lib/cjs/resources/webhooks.js +1 -1
  205. package/lib/cjs/resources/wire_transfers.d.ts +1 -1
  206. package/lib/cjs/resources/wire_transfers.js +1 -1
  207. package/lib/cjs/static.js +1 -1
  208. package/lib/cjs/util.js +1 -1
  209. package/lib/esm/api.d.ts +1 -1
  210. package/lib/esm/client.js +1 -1
  211. package/lib/esm/commercelayer.js +1 -1
  212. package/lib/esm/common.js +1 -1
  213. package/lib/esm/config.d.ts +7 -3
  214. package/lib/esm/config.js +1 -1
  215. package/lib/esm/error.js +1 -1
  216. package/lib/esm/jsonapi.js +1 -1
  217. package/lib/esm/model.d.ts +1 -1
  218. package/lib/esm/query.d.ts +0 -35
  219. package/lib/esm/query.js +1 -1
  220. package/lib/esm/resource.js +1 -1
  221. package/lib/esm/resources/addresses.d.ts +1 -1
  222. package/lib/esm/resources/addresses.js +1 -1
  223. package/lib/esm/resources/adjustments.d.ts +1 -1
  224. package/lib/esm/resources/adjustments.js +1 -1
  225. package/lib/esm/resources/adyen_gateways.d.ts +1 -1
  226. package/lib/esm/resources/adyen_gateways.js +1 -1
  227. package/lib/esm/resources/adyen_payments.d.ts +1 -1
  228. package/lib/esm/resources/adyen_payments.js +1 -1
  229. package/lib/esm/resources/application.d.ts +1 -1
  230. package/lib/esm/resources/application.js +1 -1
  231. package/lib/esm/resources/attachments.d.ts +1 -1
  232. package/lib/esm/resources/attachments.js +1 -1
  233. package/lib/esm/resources/authorizations.d.ts +1 -1
  234. package/lib/esm/resources/authorizations.js +1 -1
  235. package/lib/esm/resources/avalara_accounts.d.ts +1 -1
  236. package/lib/esm/resources/avalara_accounts.js +1 -1
  237. package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -1
  238. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  239. package/lib/esm/resources/bing_geocoders.d.ts +1 -1
  240. package/lib/esm/resources/bing_geocoders.js +1 -1
  241. package/lib/esm/resources/braintree_gateways.d.ts +1 -1
  242. package/lib/esm/resources/braintree_gateways.js +1 -1
  243. package/lib/esm/resources/braintree_payments.d.ts +1 -1
  244. package/lib/esm/resources/braintree_payments.js +1 -1
  245. package/lib/esm/resources/bundles.d.ts +1 -1
  246. package/lib/esm/resources/bundles.js +1 -1
  247. package/lib/esm/resources/captures.d.ts +1 -1
  248. package/lib/esm/resources/captures.js +1 -1
  249. package/lib/esm/resources/carrier_accounts.d.ts +1 -1
  250. package/lib/esm/resources/carrier_accounts.js +1 -1
  251. package/lib/esm/resources/checkout_com_gateways.d.ts +1 -1
  252. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  253. package/lib/esm/resources/checkout_com_payments.d.ts +1 -1
  254. package/lib/esm/resources/checkout_com_payments.js +1 -1
  255. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -1
  256. package/lib/esm/resources/coupon_codes_promotion_rules.js +1 -1
  257. package/lib/esm/resources/coupon_recipients.d.ts +1 -1
  258. package/lib/esm/resources/coupon_recipients.js +1 -1
  259. package/lib/esm/resources/coupons.d.ts +1 -1
  260. package/lib/esm/resources/coupons.js +1 -1
  261. package/lib/esm/resources/customer_addresses.d.ts +1 -1
  262. package/lib/esm/resources/customer_addresses.js +1 -1
  263. package/lib/esm/resources/customer_groups.d.ts +1 -1
  264. package/lib/esm/resources/customer_groups.js +1 -1
  265. package/lib/esm/resources/customer_password_resets.d.ts +1 -1
  266. package/lib/esm/resources/customer_password_resets.js +1 -1
  267. package/lib/esm/resources/customer_payment_sources.d.ts +1 -1
  268. package/lib/esm/resources/customer_payment_sources.js +1 -1
  269. package/lib/esm/resources/customer_subscriptions.d.ts +1 -1
  270. package/lib/esm/resources/customer_subscriptions.js +1 -1
  271. package/lib/esm/resources/customers.d.ts +1 -1
  272. package/lib/esm/resources/customers.js +1 -1
  273. package/lib/esm/resources/delivery_lead_times.d.ts +1 -1
  274. package/lib/esm/resources/delivery_lead_times.js +1 -1
  275. package/lib/esm/resources/event_callbacks.d.ts +1 -1
  276. package/lib/esm/resources/event_callbacks.js +1 -1
  277. package/lib/esm/resources/external_gateways.d.ts +1 -1
  278. package/lib/esm/resources/external_gateways.js +1 -1
  279. package/lib/esm/resources/external_payments.d.ts +1 -1
  280. package/lib/esm/resources/external_payments.js +1 -1
  281. package/lib/esm/resources/external_promotions.d.ts +1 -1
  282. package/lib/esm/resources/external_promotions.js +1 -1
  283. package/lib/esm/resources/external_tax_calculators.d.ts +1 -1
  284. package/lib/esm/resources/external_tax_calculators.js +1 -1
  285. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -1
  286. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  287. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -1
  288. package/lib/esm/resources/fixed_price_promotions.js +1 -1
  289. package/lib/esm/resources/free_gift_promotions.d.ts +1 -1
  290. package/lib/esm/resources/free_gift_promotions.js +1 -1
  291. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -1
  292. package/lib/esm/resources/free_shipping_promotions.js +1 -1
  293. package/lib/esm/resources/geocoders.d.ts +1 -1
  294. package/lib/esm/resources/geocoders.js +1 -1
  295. package/lib/esm/resources/gift_card_recipients.d.ts +1 -1
  296. package/lib/esm/resources/gift_card_recipients.js +1 -1
  297. package/lib/esm/resources/gift_cards.d.ts +1 -2
  298. package/lib/esm/resources/gift_cards.js +1 -1
  299. package/lib/esm/resources/google_geocoders.d.ts +1 -1
  300. package/lib/esm/resources/google_geocoders.js +1 -1
  301. package/lib/esm/resources/imports.d.ts +1 -1
  302. package/lib/esm/resources/imports.js +1 -1
  303. package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -1
  304. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  305. package/lib/esm/resources/inventory_models.d.ts +1 -1
  306. package/lib/esm/resources/inventory_models.js +1 -1
  307. package/lib/esm/resources/inventory_return_locations.d.ts +1 -1
  308. package/lib/esm/resources/inventory_return_locations.js +1 -1
  309. package/lib/esm/resources/inventory_stock_locations.d.ts +1 -1
  310. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  311. package/lib/esm/resources/line_item_options.d.ts +1 -1
  312. package/lib/esm/resources/line_item_options.js +1 -1
  313. package/lib/esm/resources/line_items.d.ts +1 -1
  314. package/lib/esm/resources/line_items.js +1 -1
  315. package/lib/esm/resources/manual_gateways.d.ts +1 -1
  316. package/lib/esm/resources/manual_gateways.js +1 -1
  317. package/lib/esm/resources/manual_tax_calculators.d.ts +1 -1
  318. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  319. package/lib/esm/resources/markets.d.ts +1 -1
  320. package/lib/esm/resources/markets.js +1 -1
  321. package/lib/esm/resources/merchants.d.ts +1 -1
  322. package/lib/esm/resources/merchants.js +1 -1
  323. package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -1
  324. package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
  325. package/lib/esm/resources/order_copies.d.ts +1 -1
  326. package/lib/esm/resources/order_copies.js +1 -1
  327. package/lib/esm/resources/order_subscriptions.d.ts +2 -2
  328. package/lib/esm/resources/order_subscriptions.js +1 -1
  329. package/lib/esm/resources/order_validation_rules.d.ts +1 -1
  330. package/lib/esm/resources/order_validation_rules.js +1 -1
  331. package/lib/esm/resources/orders.d.ts +1 -1
  332. package/lib/esm/resources/orders.js +1 -1
  333. package/lib/esm/resources/organization.d.ts +3 -1
  334. package/lib/esm/resources/organization.js +1 -1
  335. package/lib/esm/resources/packages.d.ts +6 -6
  336. package/lib/esm/resources/packages.js +1 -1
  337. package/lib/esm/resources/parcel_line_items.d.ts +1 -1
  338. package/lib/esm/resources/parcel_line_items.js +1 -1
  339. package/lib/esm/resources/parcels.d.ts +1 -1
  340. package/lib/esm/resources/parcels.js +1 -1
  341. package/lib/esm/resources/payment_gateways.d.ts +1 -1
  342. package/lib/esm/resources/payment_gateways.js +1 -1
  343. package/lib/esm/resources/payment_methods.d.ts +1 -1
  344. package/lib/esm/resources/payment_methods.js +1 -1
  345. package/lib/esm/resources/paypal_gateways.d.ts +1 -1
  346. package/lib/esm/resources/paypal_gateways.js +1 -1
  347. package/lib/esm/resources/paypal_payments.d.ts +1 -1
  348. package/lib/esm/resources/paypal_payments.js +1 -1
  349. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -1
  350. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  351. package/lib/esm/resources/price_lists.d.ts +1 -1
  352. package/lib/esm/resources/price_lists.js +1 -1
  353. package/lib/esm/resources/prices.d.ts +1 -1
  354. package/lib/esm/resources/prices.js +1 -1
  355. package/lib/esm/resources/promotion_rules.d.ts +1 -1
  356. package/lib/esm/resources/promotion_rules.js +1 -1
  357. package/lib/esm/resources/promotions.d.ts +1 -1
  358. package/lib/esm/resources/promotions.js +1 -1
  359. package/lib/esm/resources/refunds.d.ts +1 -1
  360. package/lib/esm/resources/refunds.js +1 -1
  361. package/lib/esm/resources/return_line_items.d.ts +1 -1
  362. package/lib/esm/resources/return_line_items.js +1 -1
  363. package/lib/esm/resources/returns.d.ts +1 -1
  364. package/lib/esm/resources/returns.js +1 -1
  365. package/lib/esm/resources/shipments.d.ts +1 -1
  366. package/lib/esm/resources/shipments.js +1 -1
  367. package/lib/esm/resources/shipping_categories.d.ts +1 -1
  368. package/lib/esm/resources/shipping_categories.js +1 -1
  369. package/lib/esm/resources/shipping_methods.d.ts +1 -1
  370. package/lib/esm/resources/shipping_methods.js +1 -1
  371. package/lib/esm/resources/shipping_zones.d.ts +1 -1
  372. package/lib/esm/resources/shipping_zones.js +1 -1
  373. package/lib/esm/resources/sku_list_items.d.ts +1 -1
  374. package/lib/esm/resources/sku_list_items.js +1 -1
  375. package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -1
  376. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  377. package/lib/esm/resources/sku_lists.d.ts +1 -1
  378. package/lib/esm/resources/sku_lists.js +1 -1
  379. package/lib/esm/resources/sku_options.d.ts +1 -1
  380. package/lib/esm/resources/sku_options.js +1 -1
  381. package/lib/esm/resources/skus.d.ts +1 -1
  382. package/lib/esm/resources/skus.js +1 -1
  383. package/lib/esm/resources/stock_items.d.ts +1 -1
  384. package/lib/esm/resources/stock_items.js +1 -1
  385. package/lib/esm/resources/stock_line_items.d.ts +1 -1
  386. package/lib/esm/resources/stock_line_items.js +1 -1
  387. package/lib/esm/resources/stock_locations.d.ts +1 -1
  388. package/lib/esm/resources/stock_locations.js +1 -1
  389. package/lib/esm/resources/stock_transfers.d.ts +1 -1
  390. package/lib/esm/resources/stock_transfers.js +1 -1
  391. package/lib/esm/resources/stripe_gateways.d.ts +1 -1
  392. package/lib/esm/resources/stripe_gateways.js +1 -1
  393. package/lib/esm/resources/stripe_payments.d.ts +1 -1
  394. package/lib/esm/resources/stripe_payments.js +1 -1
  395. package/lib/esm/resources/tax_calculators.d.ts +1 -1
  396. package/lib/esm/resources/tax_calculators.js +1 -1
  397. package/lib/esm/resources/tax_categories.d.ts +1 -1
  398. package/lib/esm/resources/tax_categories.js +1 -1
  399. package/lib/esm/resources/tax_rules.d.ts +1 -1
  400. package/lib/esm/resources/tax_rules.js +1 -1
  401. package/lib/esm/resources/taxjar_accounts.d.ts +1 -1
  402. package/lib/esm/resources/taxjar_accounts.js +1 -1
  403. package/lib/esm/resources/transactions.d.ts +1 -1
  404. package/lib/esm/resources/transactions.js +1 -1
  405. package/lib/esm/resources/voids.d.ts +1 -1
  406. package/lib/esm/resources/voids.js +1 -1
  407. package/lib/esm/resources/webhooks.d.ts +1 -1
  408. package/lib/esm/resources/webhooks.js +1 -1
  409. package/lib/esm/resources/wire_transfers.d.ts +1 -1
  410. package/lib/esm/resources/wire_transfers.js +1 -1
  411. package/lib/esm/static.js +1 -1
  412. package/lib/esm/util.js +1 -1
  413. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  414. package/lib/tsconfig.tsbuildinfo +1 -1
  415. package/package.json +7 -3
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class EventCallbacks extends ApiResource{async list(e,t){return this.resources.list({type:EventCallbacks.TYPE},e,t)}async retrieve(e,t,s){return this.resources.retrieve({type:EventCallbacks.TYPE,id:e},t,s)}isEventCallback(e){return e.type&&e.type===EventCallbacks.TYPE}relationship(e){return typeof e==="string"?{id:e,type:EventCallbacks.TYPE}:{id:e.id,type:EventCallbacks.TYPE}}type(){return EventCallbacks.TYPE}}EventCallbacks.TYPE="event_callbacks";export default EventCallbacks;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}isEventCallback(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="event_callbacks";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ExternalGateways extends ApiResource{async list(e,t){return this.resources.list({type:ExternalGateways.TYPE},e,t)}async create(e,t,a){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,a)}async retrieve(e,t,a){return this.resources.retrieve({type:ExternalGateways.TYPE,id:e},t,a)}async update(e,t,a){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalGateways.TYPE}),t,a)}async delete(e,t){await this.resources.delete({type:ExternalGateways.TYPE,id:e},t)}isExternalGateway(e){return e.type&&e.type===ExternalGateways.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalGateways.TYPE}:{id:e.id,type:ExternalGateways.TYPE}}type(){return ExternalGateways.TYPE}}ExternalGateways.TYPE="external_gateways";export default ExternalGateways;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isExternalGateway(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="external_gateways";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ExternalPayments extends ApiResource{async list(e,t){return this.resources.list({type:ExternalPayments.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalPayments.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPayments.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalPayments.TYPE,id:e},t)}isExternalPayment(e){return e.type&&e.type===ExternalPayments.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalPayments.TYPE}:{id:e.id,type:ExternalPayments.TYPE}}type(){return ExternalPayments.TYPE}}ExternalPayments.TYPE="external_payments";export default ExternalPayments;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isExternalPayment(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="external_payments";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ExternalPromotions extends ApiResource{async list(e,t){return this.resources.list({type:ExternalPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:ExternalPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:ExternalPromotions.TYPE,id:e},t)}isExternalPromotion(e){return e.type&&e.type===ExternalPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalPromotions.TYPE}:{id:e.id,type:ExternalPromotions.TYPE}}type(){return ExternalPromotions.TYPE}}ExternalPromotions.TYPE="external_promotions";export default ExternalPromotions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isExternalPromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="external_promotions";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ExternalTaxCalculators extends ApiResource{async list(e,a){return this.resources.list({type:ExternalTaxCalculators.TYPE},e,a)}async create(e,a,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),a,t)}async retrieve(e,a,t){return this.resources.retrieve({type:ExternalTaxCalculators.TYPE,id:e},a,t)}async update(e,a,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ExternalTaxCalculators.TYPE}),a,t)}async delete(e,a){await this.resources.delete({type:ExternalTaxCalculators.TYPE,id:e},a)}isExternalTaxCalculator(e){return e.type&&e.type===ExternalTaxCalculators.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ExternalTaxCalculators.TYPE}:{id:e.id,type:ExternalTaxCalculators.TYPE}}type(){return ExternalTaxCalculators.TYPE}}ExternalTaxCalculators.TYPE="external_tax_calculators";export default ExternalTaxCalculators;
1
+ import{ApiResource as a}from"../resource";class r extends a{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}isExternalTaxCalculator(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="external_tax_calculators";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class FixedAmountPromotions extends ApiResource{async list(e,t){return this.resources.list({type:FixedAmountPromotions.TYPE},e,t)}async create(e,t,o){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,o)}async retrieve(e,t,o){return this.resources.retrieve({type:FixedAmountPromotions.TYPE,id:e},t,o)}async update(e,t,o){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedAmountPromotions.TYPE}),t,o)}async delete(e,t){await this.resources.delete({type:FixedAmountPromotions.TYPE,id:e},t)}isFixedAmountPromotion(e){return e.type&&e.type===FixedAmountPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FixedAmountPromotions.TYPE}:{id:e.id,type:FixedAmountPromotions.TYPE}}type(){return FixedAmountPromotions.TYPE}}FixedAmountPromotions.TYPE="fixed_amount_promotions";export default FixedAmountPromotions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isFixedAmountPromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="fixed_amount_promotions";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class FixedPricePromotions extends ApiResource{async list(e,i){return this.resources.list({type:FixedPricePromotions.TYPE},e,i)}async create(e,i,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FixedPricePromotions.TYPE}),i,r)}async retrieve(e,i,r){return this.resources.retrieve({type:FixedPricePromotions.TYPE,id:e},i,r)}async update(e,i,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FixedPricePromotions.TYPE}),i,r)}async delete(e,i){await this.resources.delete({type:FixedPricePromotions.TYPE,id:e},i)}isFixedPricePromotion(e){return e.type&&e.type===FixedPricePromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FixedPricePromotions.TYPE}:{id:e.id,type:FixedPricePromotions.TYPE}}type(){return FixedPricePromotions.TYPE}}FixedPricePromotions.TYPE="fixed_price_promotions";export default FixedPricePromotions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isFixedPricePromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="fixed_price_promotions";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class FreeGiftPromotions extends ApiResource{async list(e,t){return this.resources.list({type:FreeGiftPromotions.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:FreeGiftPromotions.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeGiftPromotions.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:FreeGiftPromotions.TYPE,id:e},t)}isFreeGiftPromotion(e){return e.type&&e.type===FreeGiftPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FreeGiftPromotions.TYPE}:{id:e.id,type:FreeGiftPromotions.TYPE}}type(){return FreeGiftPromotions.TYPE}}FreeGiftPromotions.TYPE="free_gift_promotions";export default FreeGiftPromotions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isFreeGiftPromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="free_gift_promotions";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class FreeShippingPromotions extends ApiResource{async list(e,i){return this.resources.list({type:FreeShippingPromotions.TYPE},e,i)}async create(e,i,r){return this.resources.create(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),i,r)}async retrieve(e,i,r){return this.resources.retrieve({type:FreeShippingPromotions.TYPE,id:e},i,r)}async update(e,i,r){return this.resources.update(Object.assign(Object.assign({},e),{type:FreeShippingPromotions.TYPE}),i,r)}async delete(e,i){await this.resources.delete({type:FreeShippingPromotions.TYPE,id:e},i)}isFreeShippingPromotion(e){return e.type&&e.type===FreeShippingPromotions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:FreeShippingPromotions.TYPE}:{id:e.id,type:FreeShippingPromotions.TYPE}}type(){return FreeShippingPromotions.TYPE}}FreeShippingPromotions.TYPE="free_shipping_promotions";export default FreeShippingPromotions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isFreeShippingPromotion(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="free_shipping_promotions";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Geocoders extends ApiResource{async list(e,o){return this.resources.list({type:Geocoders.TYPE},e,o)}isGeocoder(e){return e.type&&e.type===Geocoders.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Geocoders.TYPE}:{id:e.id,type:Geocoders.TYPE}}type(){return Geocoders.TYPE}}Geocoders.TYPE="geocoders";export default Geocoders;
1
+ import{ApiResource as t}from"../resource";class r extends t{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}isGeocoder(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="geocoders";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class GiftCardRecipients extends ApiResource{async list(e,t){return this.resources.list({type:GiftCardRecipients.TYPE},e,t)}async create(e,t,i){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),t,i)}async retrieve(e,t,i){return this.resources.retrieve({type:GiftCardRecipients.TYPE,id:e},t,i)}async update(e,t,i){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCardRecipients.TYPE}),t,i)}async delete(e,t){await this.resources.delete({type:GiftCardRecipients.TYPE,id:e},t)}isGiftCardRecipient(e){return e.type&&e.type===GiftCardRecipients.TYPE}relationship(e){return typeof e==="string"?{id:e,type:GiftCardRecipients.TYPE}:{id:e.id,type:GiftCardRecipients.TYPE}}type(){return GiftCardRecipients.TYPE}}GiftCardRecipients.TYPE="gift_card_recipients";export default GiftCardRecipients;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isGiftCardRecipient(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="gift_card_recipients";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -35,7 +35,6 @@ interface GiftCard extends Resource {
35
35
  image_url?: string;
36
36
  expires_at?: string;
37
37
  recipient_email?: string;
38
- _balance_change_cents?: number;
39
38
  market?: Market;
40
39
  gift_card_recipient?: GiftCardRecipient;
41
40
  attachments?: Attachment[];
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class GiftCards extends ApiResource{async list(e,t){return this.resources.list({type:GiftCards.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:GiftCards.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:GiftCards.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:GiftCards.TYPE,id:e},t)}isGiftCard(e){return e.type&&e.type===GiftCards.TYPE}relationship(e){return typeof e==="string"?{id:e,type:GiftCards.TYPE}:{id:e.id,type:GiftCards.TYPE}}type(){return GiftCards.TYPE}}GiftCards.TYPE="gift_cards";export default GiftCards;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isGiftCard(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="gift_cards";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class GoogleGeocoders extends ApiResource{async list(e,o){return this.resources.list({type:GoogleGeocoders.TYPE},e,o)}async create(e,o,r){return this.resources.create(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),o,r)}async retrieve(e,o,r){return this.resources.retrieve({type:GoogleGeocoders.TYPE,id:e},o,r)}async update(e,o,r){return this.resources.update(Object.assign(Object.assign({},e),{type:GoogleGeocoders.TYPE}),o,r)}async delete(e,o){await this.resources.delete({type:GoogleGeocoders.TYPE,id:e},o)}isGoogleGeocoder(e){return e.type&&e.type===GoogleGeocoders.TYPE}relationship(e){return typeof e==="string"?{id:e,type:GoogleGeocoders.TYPE}:{id:e.id,type:GoogleGeocoders.TYPE}}type(){return GoogleGeocoders.TYPE}}GoogleGeocoders.TYPE="google_geocoders";export default GoogleGeocoders;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isGoogleGeocoder(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="google_geocoders";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Imports extends ApiResource{async list(e,t){return this.resources.list({type:Imports.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Imports.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Imports.TYPE,id:e},t,r)}async delete(e,t){await this.resources.delete({type:Imports.TYPE,id:e},t)}isImport(e){return e.type&&e.type===Imports.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Imports.TYPE}:{id:e.id,type:Imports.TYPE}}type(){return Imports.TYPE}}Imports.TYPE="imports";export default Imports;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isImport(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="imports";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class InStockSubscriptions extends ApiResource{async list(t,s){return this.resources.list({type:InStockSubscriptions.TYPE},t,s)}async create(t,s,e){return this.resources.create(Object.assign(Object.assign({},t),{type:InStockSubscriptions.TYPE}),s,e)}async retrieve(t,s,e){return this.resources.retrieve({type:InStockSubscriptions.TYPE,id:t},s,e)}async update(t,s,e){return this.resources.update(Object.assign(Object.assign({},t),{type:InStockSubscriptions.TYPE}),s,e)}async delete(t,s){await this.resources.delete({type:InStockSubscriptions.TYPE,id:t},s)}isInStockSubscription(t){return t.type&&t.type===InStockSubscriptions.TYPE}relationship(t){return typeof t==="string"?{id:t,type:InStockSubscriptions.TYPE}:{id:t.id,type:InStockSubscriptions.TYPE}}type(){return InStockSubscriptions.TYPE}}InStockSubscriptions.TYPE="in_stock_subscriptions";export default InStockSubscriptions;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isInStockSubscription(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="in_stock_subscriptions";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class InventoryModels extends ApiResource{async list(e,t){return this.resources.list({type:InventoryModels.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:InventoryModels.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryModels.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:InventoryModels.TYPE,id:e},t)}isInventoryModel(e){return e.type&&e.type===InventoryModels.TYPE}relationship(e){return typeof e==="string"?{id:e,type:InventoryModels.TYPE}:{id:e.id,type:InventoryModels.TYPE}}type(){return InventoryModels.TYPE}}InventoryModels.TYPE="inventory_models";export default InventoryModels;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isInventoryModel(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="inventory_models";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class InventoryReturnLocations extends ApiResource{async list(e,t){return this.resources.list({type:InventoryReturnLocations.TYPE},e,t)}async create(e,t,n){return this.resources.create(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,n)}async retrieve(e,t,n){return this.resources.retrieve({type:InventoryReturnLocations.TYPE,id:e},t,n)}async update(e,t,n){return this.resources.update(Object.assign(Object.assign({},e),{type:InventoryReturnLocations.TYPE}),t,n)}async delete(e,t){await this.resources.delete({type:InventoryReturnLocations.TYPE,id:e},t)}isInventoryReturnLocation(e){return e.type&&e.type===InventoryReturnLocations.TYPE}relationship(e){return typeof e==="string"?{id:e,type:InventoryReturnLocations.TYPE}:{id:e.id,type:InventoryReturnLocations.TYPE}}type(){return InventoryReturnLocations.TYPE}}InventoryReturnLocations.TYPE="inventory_return_locations";export default InventoryReturnLocations;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isInventoryReturnLocation(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="inventory_return_locations";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class InventoryStockLocations extends ApiResource{async list(t,e){return this.resources.list({type:InventoryStockLocations.TYPE},t,e)}async create(t,e,o){return this.resources.create(Object.assign(Object.assign({},t),{type:InventoryStockLocations.TYPE}),e,o)}async retrieve(t,e,o){return this.resources.retrieve({type:InventoryStockLocations.TYPE,id:t},e,o)}async update(t,e,o){return this.resources.update(Object.assign(Object.assign({},t),{type:InventoryStockLocations.TYPE}),e,o)}async delete(t,e){await this.resources.delete({type:InventoryStockLocations.TYPE,id:t},e)}isInventoryStockLocation(t){return t.type&&t.type===InventoryStockLocations.TYPE}relationship(t){return typeof t==="string"?{id:t,type:InventoryStockLocations.TYPE}:{id:t.id,type:InventoryStockLocations.TYPE}}type(){return InventoryStockLocations.TYPE}}InventoryStockLocations.TYPE="inventory_stock_locations";export default InventoryStockLocations;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,s){return this.resources.list({type:t.TYPE},e,s)}async create(e,s,r){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async retrieve(e,s,r){return this.resources.retrieve({type:t.TYPE,id:e},s,r)}async update(e,s,r){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),s,r)}async delete(e,s){await this.resources.delete({type:t.TYPE,id:e},s)}isInventoryStockLocation(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="inventory_stock_locations";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class LineItemOptions extends ApiResource{async list(e,t){return this.resources.list({type:LineItemOptions.TYPE},e,t)}async create(e,t,i){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,i)}async retrieve(e,t,i){return this.resources.retrieve({type:LineItemOptions.TYPE,id:e},t,i)}async update(e,t,i){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItemOptions.TYPE}),t,i)}async delete(e,t){await this.resources.delete({type:LineItemOptions.TYPE,id:e},t)}isLineItemOption(e){return e.type&&e.type===LineItemOptions.TYPE}relationship(e){return typeof e==="string"?{id:e,type:LineItemOptions.TYPE}:{id:e.id,type:LineItemOptions.TYPE}}type(){return LineItemOptions.TYPE}}LineItemOptions.TYPE="line_item_options";export default LineItemOptions;
1
+ import{ApiResource as i}from"../resource";class t extends i{async list(e,r){return this.resources.list({type:t.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:t.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:t.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:t.TYPE,id:e},r)}isLineItemOption(e){return e.type&&e.type===t.TYPE}relationship(e){return typeof e=="string"?{id:e,type:t.TYPE}:{id:e.id,type:t.TYPE}}type(){return t.TYPE}}t.TYPE="line_item_options";export default t;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class LineItems extends ApiResource{async list(e,t){return this.resources.list({type:LineItems.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:LineItems.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:LineItems.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:LineItems.TYPE,id:e},t)}isLineItem(e){return e.type&&e.type===LineItems.TYPE}relationship(e){return typeof e==="string"?{id:e,type:LineItems.TYPE}:{id:e.id,type:LineItems.TYPE}}type(){return LineItems.TYPE}}LineItems.TYPE="line_items";export default LineItems;
1
+ import{ApiResource as i}from"../resource";class s extends i{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isLineItem(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="line_items";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ManualGateways extends ApiResource{async list(e,a){return this.resources.list({type:ManualGateways.TYPE},e,a)}async create(e,a,t){return this.resources.create(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),a,t)}async retrieve(e,a,t){return this.resources.retrieve({type:ManualGateways.TYPE,id:e},a,t)}async update(e,a,t){return this.resources.update(Object.assign(Object.assign({},e),{type:ManualGateways.TYPE}),a,t)}async delete(e,a){await this.resources.delete({type:ManualGateways.TYPE,id:e},a)}isManualGateway(e){return e.type&&e.type===ManualGateways.TYPE}relationship(e){return typeof e==="string"?{id:e,type:ManualGateways.TYPE}:{id:e.id,type:ManualGateways.TYPE}}type(){return ManualGateways.TYPE}}ManualGateways.TYPE="manual_gateways";export default ManualGateways;
1
+ import{ApiResource as a}from"../resource";class s extends a{async list(e,r){return this.resources.list({type:s.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:s.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:s.TYPE,id:e},r)}isManualGateway(e){return e.type&&e.type===s.TYPE}relationship(e){return typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="manual_gateways";export default s;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class ManualTaxCalculators extends ApiResource{async list(a,e){return this.resources.list({type:ManualTaxCalculators.TYPE},a,e)}async create(a,e,t){return this.resources.create(Object.assign(Object.assign({},a),{type:ManualTaxCalculators.TYPE}),e,t)}async retrieve(a,e,t){return this.resources.retrieve({type:ManualTaxCalculators.TYPE,id:a},e,t)}async update(a,e,t){return this.resources.update(Object.assign(Object.assign({},a),{type:ManualTaxCalculators.TYPE}),e,t)}async delete(a,e){await this.resources.delete({type:ManualTaxCalculators.TYPE,id:a},e)}isManualTaxCalculator(a){return a.type&&a.type===ManualTaxCalculators.TYPE}relationship(a){return typeof a==="string"?{id:a,type:ManualTaxCalculators.TYPE}:{id:a.id,type:ManualTaxCalculators.TYPE}}type(){return ManualTaxCalculators.TYPE}}ManualTaxCalculators.TYPE="manual_tax_calculators";export default ManualTaxCalculators;
1
+ import{ApiResource as a}from"../resource";class r extends a{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isManualTaxCalculator(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="manual_tax_calculators";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Markets extends ApiResource{async list(e,t){return this.resources.list({type:Markets.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Markets.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Markets.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Markets.TYPE,id:e},t)}isMarket(e){return e.type&&e.type===Markets.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Markets.TYPE}:{id:e.id,type:Markets.TYPE}}type(){return Markets.TYPE}}Markets.TYPE="markets";export default Markets;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isMarket(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="markets";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Merchants extends ApiResource{async list(e,t){return this.resources.list({type:Merchants.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:Merchants.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:Merchants.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:Merchants.TYPE,id:e},t)}isMerchant(e){return e.type&&e.type===Merchants.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Merchants.TYPE}:{id:e.id,type:Merchants.TYPE}}type(){return Merchants.TYPE}}Merchants.TYPE="merchants";export default Merchants;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isMerchant(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="merchants";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class OrderAmountPromotionRules extends ApiResource{async list(e,r){return this.resources.list({type:OrderAmountPromotionRules.TYPE},e,r)}async create(e,r,t){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),r,t)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderAmountPromotionRules.TYPE,id:e},r,t)}async update(e,r,t){return this.resources.update(Object.assign(Object.assign({},e),{type:OrderAmountPromotionRules.TYPE}),r,t)}async delete(e,r){await this.resources.delete({type:OrderAmountPromotionRules.TYPE,id:e},r)}isOrderAmountPromotionRule(e){return e.type&&e.type===OrderAmountPromotionRules.TYPE}relationship(e){return typeof e==="string"?{id:e,type:OrderAmountPromotionRules.TYPE}:{id:e.id,type:OrderAmountPromotionRules.TYPE}}type(){return OrderAmountPromotionRules.TYPE}}OrderAmountPromotionRules.TYPE="order_amount_promotion_rules";export default OrderAmountPromotionRules;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrderAmountPromotionRule(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_amount_promotion_rules";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class OrderCopies extends ApiResource{async list(e,r){return this.resources.list({type:OrderCopies.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:OrderCopies.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:OrderCopies.TYPE,id:e},r,s)}async delete(e,r){await this.resources.delete({type:OrderCopies.TYPE,id:e},r)}isOrderCopy(e){return e.type&&e.type===OrderCopies.TYPE}relationship(e){return typeof e==="string"?{id:e,type:OrderCopies.TYPE}:{id:e.id,type:OrderCopies.TYPE}}type(){return OrderCopies.TYPE}}OrderCopies.TYPE="order_copies";export default OrderCopies;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrderCopy(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_copies";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -37,7 +37,7 @@ interface OrderSubscription extends Resource {
37
37
  orders?: Order[];
38
38
  }
39
39
  interface OrderSubscriptionCreate extends ResourceCreate {
40
- frequency?: string;
40
+ frequency: string;
41
41
  activate_by_source_order?: boolean;
42
42
  starts_at?: string;
43
43
  expires_at?: string;
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class OrderSubscriptions extends ApiResource{async list(r,e){return this.resources.list({type:OrderSubscriptions.TYPE},r,e)}async create(r,e,s){return this.resources.create(Object.assign(Object.assign({},r),{type:OrderSubscriptions.TYPE}),e,s)}async retrieve(r,e,s){return this.resources.retrieve({type:OrderSubscriptions.TYPE,id:r},e,s)}async update(r,e,s){return this.resources.update(Object.assign(Object.assign({},r),{type:OrderSubscriptions.TYPE}),e,s)}async delete(r,e){await this.resources.delete({type:OrderSubscriptions.TYPE,id:r},e)}isOrderSubscription(r){return r.type&&r.type===OrderSubscriptions.TYPE}relationship(r){return typeof r==="string"?{id:r,type:OrderSubscriptions.TYPE}:{id:r.id,type:OrderSubscriptions.TYPE}}type(){return OrderSubscriptions.TYPE}}OrderSubscriptions.TYPE="order_subscriptions";export default OrderSubscriptions;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrderSubscription(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_subscriptions";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class OrderValidationRules extends ApiResource{async list(e,r){return this.resources.list({type:OrderValidationRules.TYPE},e,r)}isOrderValidationRule(e){return e.type&&e.type===OrderValidationRules.TYPE}relationship(e){return typeof e==="string"?{id:e,type:OrderValidationRules.TYPE}:{id:e.id,type:OrderValidationRules.TYPE}}type(){return OrderValidationRules.TYPE}}OrderValidationRules.TYPE="order_validation_rules";export default OrderValidationRules;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}isOrderValidationRule(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="order_validation_rules";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Orders extends ApiResource{async list(e,r){return this.resources.list({type:Orders.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:Orders.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:Orders.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:Orders.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:Orders.TYPE,id:e},r)}isOrder(e){return e.type&&e.type===Orders.TYPE}relationship(e){return typeof e==="string"?{id:e,type:Orders.TYPE}:{id:e.id,type:Orders.TYPE}}type(){return Orders.TYPE}}Orders.TYPE="orders";export default Orders;
1
+ import{ApiResource as i}from"../resource";class r extends i{async list(e,s){return this.resources.list({type:r.TYPE},e,s)}async create(e,s,t){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async retrieve(e,s,t){return this.resources.retrieve({type:r.TYPE,id:e},s,t)}async update(e,s,t){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),s,t)}async delete(e,s){await this.resources.delete({type:r.TYPE,id:e},s)}isOrder(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="orders";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
@@ -22,6 +22,8 @@ interface Organization extends Resource {
22
22
  discount_disabled?: boolean;
23
23
  account_disabled?: boolean;
24
24
  acceptance_disabled?: boolean;
25
+ max_concurrent_promotions?: number;
26
+ max_concurrent_imports?: number;
25
27
  }
26
28
  declare class Organizations extends ApiResource {
27
29
  static readonly TYPE: 'organization';
@@ -1 +1 @@
1
- import{ApiResource}from"../resource";class Organizations extends ApiResource{async retrieve(i,r){return this.resources.singleton({type:Organizations.TYPE},i,r)}isOrganization(i){return i.type&&i.type===Organizations.TYPE}relationship(i){return typeof i==="string"?{id:i,type:Organizations.TYPE}:{id:i.id,type:Organizations.TYPE}}type(){return Organizations.TYPE}}Organizations.TYPE="organization";export default Organizations;
1
+ import{ApiResource as i}from"../resource";class r extends i{async retrieve(e,t){return this.resources.singleton({type:r.TYPE},e,t)}isOrganization(e){return e.type&&e.type===r.TYPE}relationship(e){return typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="organization";export default r;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -25,12 +25,12 @@ interface Package extends Resource {
25
25
  attachments?: Attachment[];
26
26
  }
27
27
  interface PackageCreate extends ResourceCreate {
28
- name?: string;
28
+ name: string;
29
29
  code?: string;
30
- length?: number;
31
- width?: number;
32
- height?: number;
33
- unit_of_length?: string;
30
+ length: number;
31
+ width: number;
32
+ height: number;
33
+ unit_of_length: string;
34
34
  stock_location?: StockLocationRel;
35
35
  }
36
36
  interface PackageUpdate extends ResourceUpdate {