@commercelayer/sdk 2.3.12 → 3.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (292) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/client.d.ts +1 -1
  3. package/lib/cjs/commercelayer.d.ts +1 -0
  4. package/lib/cjs/commercelayer.js +1 -1
  5. package/lib/cjs/jsonapi.d.ts +0 -2
  6. package/lib/cjs/jsonapi.js +1 -1
  7. package/lib/cjs/model.d.ts +2 -2
  8. package/lib/cjs/query.js +1 -1
  9. package/lib/cjs/resource.d.ts +1 -1
  10. package/lib/cjs/resource.js +1 -1
  11. package/lib/cjs/resources/addresses.d.ts +0 -4
  12. package/lib/cjs/resources/adjustments.d.ts +0 -4
  13. package/lib/cjs/resources/adyen_gateways.d.ts +0 -4
  14. package/lib/cjs/resources/adyen_payments.d.ts +0 -5
  15. package/lib/cjs/resources/application.d.ts +0 -4
  16. package/lib/cjs/resources/attachments.d.ts +0 -4
  17. package/lib/cjs/resources/authorizations.d.ts +0 -4
  18. package/lib/cjs/resources/avalara_accounts.d.ts +0 -4
  19. package/lib/cjs/resources/billing_info_validation_rules.d.ts +0 -4
  20. package/lib/cjs/resources/bing_geocoders.d.ts +0 -4
  21. package/lib/cjs/resources/braintree_gateways.d.ts +0 -4
  22. package/lib/cjs/resources/braintree_payments.d.ts +0 -4
  23. package/lib/cjs/resources/bundles.d.ts +0 -4
  24. package/lib/cjs/resources/captures.d.ts +0 -4
  25. package/lib/cjs/resources/carrier_accounts.d.ts +0 -4
  26. package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -4
  27. package/lib/cjs/resources/checkout_com_payments.d.ts +0 -5
  28. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +0 -4
  29. package/lib/cjs/resources/coupon_recipients.d.ts +0 -4
  30. package/lib/cjs/resources/coupons.d.ts +3 -4
  31. package/lib/cjs/resources/customer_addresses.d.ts +0 -4
  32. package/lib/cjs/resources/customer_groups.d.ts +0 -4
  33. package/lib/cjs/resources/customer_password_resets.d.ts +0 -4
  34. package/lib/cjs/resources/customer_payment_sources.d.ts +0 -4
  35. package/lib/cjs/resources/customer_subscriptions.d.ts +0 -4
  36. package/lib/cjs/resources/customers.d.ts +0 -4
  37. package/lib/cjs/resources/delivery_lead_times.d.ts +0 -4
  38. package/lib/cjs/resources/event_callbacks.d.ts +0 -4
  39. package/lib/cjs/resources/external_gateways.d.ts +0 -4
  40. package/lib/cjs/resources/external_payments.d.ts +0 -4
  41. package/lib/cjs/resources/external_promotions.d.ts +0 -4
  42. package/lib/cjs/resources/external_tax_calculators.d.ts +0 -4
  43. package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -4
  44. package/lib/cjs/resources/fixed_price_promotions.d.ts +0 -4
  45. package/lib/cjs/resources/free_gift_promotions.d.ts +0 -4
  46. package/lib/cjs/resources/free_shipping_promotions.d.ts +0 -4
  47. package/lib/cjs/resources/geocoders.d.ts +2 -5
  48. package/lib/cjs/resources/geocoders.js +1 -1
  49. package/lib/cjs/resources/gift_card_recipients.d.ts +0 -4
  50. package/lib/cjs/resources/gift_cards.d.ts +0 -4
  51. package/lib/cjs/resources/google_geocoders.d.ts +0 -4
  52. package/lib/cjs/resources/imports.d.ts +0 -4
  53. package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -4
  54. package/lib/cjs/resources/inventory_models.d.ts +0 -4
  55. package/lib/cjs/resources/inventory_return_locations.d.ts +0 -4
  56. package/lib/cjs/resources/inventory_stock_locations.d.ts +0 -4
  57. package/lib/cjs/resources/line_item_options.d.ts +0 -4
  58. package/lib/cjs/resources/line_items.d.ts +0 -4
  59. package/lib/cjs/resources/manual_gateways.d.ts +0 -4
  60. package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -4
  61. package/lib/cjs/resources/markets.d.ts +0 -4
  62. package/lib/cjs/resources/merchants.d.ts +0 -4
  63. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +0 -4
  64. package/lib/cjs/resources/order_copies.d.ts +0 -4
  65. package/lib/cjs/resources/order_subscriptions.d.ts +0 -4
  66. package/lib/cjs/resources/order_validation_rules.d.ts +2 -5
  67. package/lib/cjs/resources/order_validation_rules.js +1 -1
  68. package/lib/cjs/resources/orders.d.ts +0 -4
  69. package/lib/cjs/resources/organization.d.ts +0 -4
  70. package/lib/cjs/resources/packages.d.ts +0 -4
  71. package/lib/cjs/resources/parcel_line_items.d.ts +0 -4
  72. package/lib/cjs/resources/parcels.d.ts +0 -4
  73. package/lib/cjs/resources/payment_gateways.d.ts +2 -15
  74. package/lib/cjs/resources/payment_gateways.js +1 -1
  75. package/lib/cjs/resources/payment_methods.d.ts +3 -4
  76. package/lib/cjs/resources/paypal_gateways.d.ts +0 -4
  77. package/lib/cjs/resources/paypal_payments.d.ts +0 -4
  78. package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -4
  79. package/lib/cjs/resources/price_lists.d.ts +0 -4
  80. package/lib/cjs/resources/prices.d.ts +0 -4
  81. package/lib/cjs/resources/promotion_rules.d.ts +2 -5
  82. package/lib/cjs/resources/promotion_rules.js +1 -1
  83. package/lib/cjs/resources/promotions.d.ts +2 -5
  84. package/lib/cjs/resources/promotions.js +1 -1
  85. package/lib/cjs/resources/refunds.d.ts +0 -4
  86. package/lib/cjs/resources/return_line_items.d.ts +0 -4
  87. package/lib/cjs/resources/returns.d.ts +0 -4
  88. package/lib/cjs/resources/shipments.d.ts +0 -4
  89. package/lib/cjs/resources/shipping_categories.d.ts +0 -4
  90. package/lib/cjs/resources/shipping_methods.d.ts +0 -4
  91. package/lib/cjs/resources/shipping_zones.d.ts +0 -4
  92. package/lib/cjs/resources/sku_list_items.d.ts +5 -6
  93. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +0 -4
  94. package/lib/cjs/resources/sku_lists.d.ts +0 -4
  95. package/lib/cjs/resources/sku_options.d.ts +0 -4
  96. package/lib/cjs/resources/skus.d.ts +0 -4
  97. package/lib/cjs/resources/stock_items.d.ts +0 -4
  98. package/lib/cjs/resources/stock_line_items.d.ts +0 -4
  99. package/lib/cjs/resources/stock_locations.d.ts +0 -4
  100. package/lib/cjs/resources/stock_transfers.d.ts +0 -4
  101. package/lib/cjs/resources/stripe_gateways.d.ts +0 -4
  102. package/lib/cjs/resources/stripe_payments.d.ts +0 -4
  103. package/lib/cjs/resources/tax_calculators.d.ts +2 -5
  104. package/lib/cjs/resources/tax_calculators.js +1 -1
  105. package/lib/cjs/resources/tax_categories.d.ts +0 -4
  106. package/lib/cjs/resources/tax_rules.d.ts +0 -4
  107. package/lib/cjs/resources/taxjar_accounts.d.ts +0 -4
  108. package/lib/cjs/resources/transactions.d.ts +2 -5
  109. package/lib/cjs/resources/transactions.js +1 -1
  110. package/lib/cjs/resources/voids.d.ts +0 -4
  111. package/lib/cjs/resources/webhooks.d.ts +0 -4
  112. package/lib/cjs/resources/wire_transfers.d.ts +0 -4
  113. package/lib/esm/api.d.ts +1 -1
  114. package/lib/esm/client.d.ts +1 -1
  115. package/lib/esm/client.js +1 -1
  116. package/lib/esm/commercelayer.d.ts +1 -0
  117. package/lib/esm/commercelayer.js +1 -1
  118. package/lib/esm/common.js +1 -1
  119. package/lib/esm/error.js +1 -1
  120. package/lib/esm/jsonapi.d.ts +0 -2
  121. package/lib/esm/jsonapi.js +1 -1
  122. package/lib/esm/model.d.ts +2 -2
  123. package/lib/esm/query.js +1 -1
  124. package/lib/esm/resource.d.ts +1 -1
  125. package/lib/esm/resource.js +1 -1
  126. package/lib/esm/resources/addresses.d.ts +0 -4
  127. package/lib/esm/resources/addresses.js +1 -1
  128. package/lib/esm/resources/adjustments.d.ts +0 -4
  129. package/lib/esm/resources/adjustments.js +1 -1
  130. package/lib/esm/resources/adyen_gateways.d.ts +0 -4
  131. package/lib/esm/resources/adyen_gateways.js +1 -1
  132. package/lib/esm/resources/adyen_payments.d.ts +0 -5
  133. package/lib/esm/resources/adyen_payments.js +1 -1
  134. package/lib/esm/resources/application.d.ts +0 -4
  135. package/lib/esm/resources/application.js +1 -1
  136. package/lib/esm/resources/attachments.d.ts +0 -4
  137. package/lib/esm/resources/authorizations.d.ts +0 -4
  138. package/lib/esm/resources/authorizations.js +1 -1
  139. package/lib/esm/resources/avalara_accounts.d.ts +0 -4
  140. package/lib/esm/resources/avalara_accounts.js +1 -1
  141. package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -4
  142. package/lib/esm/resources/billing_info_validation_rules.js +1 -1
  143. package/lib/esm/resources/bing_geocoders.d.ts +0 -4
  144. package/lib/esm/resources/bing_geocoders.js +1 -1
  145. package/lib/esm/resources/braintree_gateways.d.ts +0 -4
  146. package/lib/esm/resources/braintree_gateways.js +1 -1
  147. package/lib/esm/resources/braintree_payments.d.ts +0 -4
  148. package/lib/esm/resources/braintree_payments.js +1 -1
  149. package/lib/esm/resources/bundles.d.ts +0 -4
  150. package/lib/esm/resources/captures.d.ts +0 -4
  151. package/lib/esm/resources/captures.js +1 -1
  152. package/lib/esm/resources/carrier_accounts.d.ts +0 -4
  153. package/lib/esm/resources/carrier_accounts.js +1 -1
  154. package/lib/esm/resources/checkout_com_gateways.d.ts +0 -4
  155. package/lib/esm/resources/checkout_com_gateways.js +1 -1
  156. package/lib/esm/resources/checkout_com_payments.d.ts +0 -5
  157. package/lib/esm/resources/checkout_com_payments.js +1 -1
  158. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -4
  159. package/lib/esm/resources/coupon_recipients.d.ts +0 -4
  160. package/lib/esm/resources/coupon_recipients.js +1 -1
  161. package/lib/esm/resources/coupons.d.ts +3 -4
  162. package/lib/esm/resources/customer_addresses.d.ts +0 -4
  163. package/lib/esm/resources/customer_addresses.js +1 -1
  164. package/lib/esm/resources/customer_groups.d.ts +0 -4
  165. package/lib/esm/resources/customer_groups.js +1 -1
  166. package/lib/esm/resources/customer_password_resets.d.ts +0 -4
  167. package/lib/esm/resources/customer_payment_sources.d.ts +0 -4
  168. package/lib/esm/resources/customer_subscriptions.d.ts +0 -4
  169. package/lib/esm/resources/customers.d.ts +0 -4
  170. package/lib/esm/resources/delivery_lead_times.d.ts +0 -4
  171. package/lib/esm/resources/event_callbacks.d.ts +0 -4
  172. package/lib/esm/resources/external_gateways.d.ts +0 -4
  173. package/lib/esm/resources/external_gateways.js +1 -1
  174. package/lib/esm/resources/external_payments.d.ts +0 -4
  175. package/lib/esm/resources/external_payments.js +1 -1
  176. package/lib/esm/resources/external_promotions.d.ts +0 -4
  177. package/lib/esm/resources/external_promotions.js +1 -1
  178. package/lib/esm/resources/external_tax_calculators.d.ts +0 -4
  179. package/lib/esm/resources/external_tax_calculators.js +1 -1
  180. package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -4
  181. package/lib/esm/resources/fixed_amount_promotions.js +1 -1
  182. package/lib/esm/resources/fixed_price_promotions.d.ts +0 -4
  183. package/lib/esm/resources/free_gift_promotions.d.ts +0 -4
  184. package/lib/esm/resources/free_gift_promotions.js +1 -1
  185. package/lib/esm/resources/free_shipping_promotions.d.ts +0 -4
  186. package/lib/esm/resources/geocoders.d.ts +2 -5
  187. package/lib/esm/resources/geocoders.js +1 -1
  188. package/lib/esm/resources/gift_card_recipients.d.ts +0 -4
  189. package/lib/esm/resources/gift_card_recipients.js +1 -1
  190. package/lib/esm/resources/gift_cards.d.ts +0 -4
  191. package/lib/esm/resources/gift_cards.js +1 -1
  192. package/lib/esm/resources/google_geocoders.d.ts +0 -4
  193. package/lib/esm/resources/imports.d.ts +0 -4
  194. package/lib/esm/resources/imports.js +1 -1
  195. package/lib/esm/resources/in_stock_subscriptions.d.ts +0 -4
  196. package/lib/esm/resources/in_stock_subscriptions.js +1 -1
  197. package/lib/esm/resources/inventory_models.d.ts +0 -4
  198. package/lib/esm/resources/inventory_models.js +1 -1
  199. package/lib/esm/resources/inventory_return_locations.d.ts +0 -4
  200. package/lib/esm/resources/inventory_return_locations.js +1 -1
  201. package/lib/esm/resources/inventory_stock_locations.d.ts +0 -4
  202. package/lib/esm/resources/inventory_stock_locations.js +1 -1
  203. package/lib/esm/resources/line_item_options.d.ts +0 -4
  204. package/lib/esm/resources/line_item_options.js +1 -1
  205. package/lib/esm/resources/line_items.d.ts +0 -4
  206. package/lib/esm/resources/line_items.js +1 -1
  207. package/lib/esm/resources/manual_gateways.d.ts +0 -4
  208. package/lib/esm/resources/manual_gateways.js +1 -1
  209. package/lib/esm/resources/manual_tax_calculators.d.ts +0 -4
  210. package/lib/esm/resources/manual_tax_calculators.js +1 -1
  211. package/lib/esm/resources/markets.d.ts +0 -4
  212. package/lib/esm/resources/markets.js +1 -1
  213. package/lib/esm/resources/merchants.d.ts +0 -4
  214. package/lib/esm/resources/merchants.js +1 -1
  215. package/lib/esm/resources/order_amount_promotion_rules.d.ts +0 -4
  216. package/lib/esm/resources/order_amount_promotion_rules.js +1 -1
  217. package/lib/esm/resources/order_copies.d.ts +0 -4
  218. package/lib/esm/resources/order_copies.js +1 -1
  219. package/lib/esm/resources/order_subscriptions.d.ts +0 -4
  220. package/lib/esm/resources/order_validation_rules.d.ts +2 -5
  221. package/lib/esm/resources/order_validation_rules.js +1 -1
  222. package/lib/esm/resources/orders.d.ts +0 -4
  223. package/lib/esm/resources/organization.d.ts +0 -4
  224. package/lib/esm/resources/packages.d.ts +0 -4
  225. package/lib/esm/resources/parcel_line_items.d.ts +0 -4
  226. package/lib/esm/resources/parcel_line_items.js +1 -1
  227. package/lib/esm/resources/parcels.d.ts +0 -4
  228. package/lib/esm/resources/parcels.js +1 -1
  229. package/lib/esm/resources/payment_gateways.d.ts +2 -15
  230. package/lib/esm/resources/payment_gateways.js +1 -1
  231. package/lib/esm/resources/payment_methods.d.ts +3 -4
  232. package/lib/esm/resources/payment_methods.js +1 -1
  233. package/lib/esm/resources/paypal_gateways.d.ts +0 -4
  234. package/lib/esm/resources/paypal_gateways.js +1 -1
  235. package/lib/esm/resources/paypal_payments.d.ts +0 -4
  236. package/lib/esm/resources/paypal_payments.js +1 -1
  237. package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -4
  238. package/lib/esm/resources/percentage_discount_promotions.js +1 -1
  239. package/lib/esm/resources/price_lists.d.ts +0 -4
  240. package/lib/esm/resources/prices.d.ts +0 -4
  241. package/lib/esm/resources/prices.js +1 -1
  242. package/lib/esm/resources/promotion_rules.d.ts +2 -5
  243. package/lib/esm/resources/promotion_rules.js +1 -1
  244. package/lib/esm/resources/promotions.d.ts +2 -5
  245. package/lib/esm/resources/promotions.js +1 -1
  246. package/lib/esm/resources/refunds.d.ts +0 -4
  247. package/lib/esm/resources/refunds.js +1 -1
  248. package/lib/esm/resources/return_line_items.d.ts +0 -4
  249. package/lib/esm/resources/return_line_items.js +1 -1
  250. package/lib/esm/resources/returns.d.ts +0 -4
  251. package/lib/esm/resources/shipments.d.ts +0 -4
  252. package/lib/esm/resources/shipments.js +1 -1
  253. package/lib/esm/resources/shipping_categories.d.ts +0 -4
  254. package/lib/esm/resources/shipping_methods.d.ts +0 -4
  255. package/lib/esm/resources/shipping_methods.js +1 -1
  256. package/lib/esm/resources/shipping_zones.d.ts +0 -4
  257. package/lib/esm/resources/sku_list_items.d.ts +5 -6
  258. package/lib/esm/resources/sku_list_items.js +1 -1
  259. package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -4
  260. package/lib/esm/resources/sku_list_promotion_rules.js +1 -1
  261. package/lib/esm/resources/sku_lists.d.ts +0 -4
  262. package/lib/esm/resources/sku_lists.js +1 -1
  263. package/lib/esm/resources/sku_options.d.ts +0 -4
  264. package/lib/esm/resources/sku_options.js +1 -1
  265. package/lib/esm/resources/skus.d.ts +0 -4
  266. package/lib/esm/resources/stock_items.d.ts +0 -4
  267. package/lib/esm/resources/stock_items.js +1 -1
  268. package/lib/esm/resources/stock_line_items.d.ts +0 -4
  269. package/lib/esm/resources/stock_line_items.js +1 -1
  270. package/lib/esm/resources/stock_locations.d.ts +0 -4
  271. package/lib/esm/resources/stock_locations.js +1 -1
  272. package/lib/esm/resources/stock_transfers.d.ts +0 -4
  273. package/lib/esm/resources/stripe_gateways.d.ts +0 -4
  274. package/lib/esm/resources/stripe_gateways.js +1 -1
  275. package/lib/esm/resources/stripe_payments.d.ts +0 -4
  276. package/lib/esm/resources/stripe_payments.js +1 -1
  277. package/lib/esm/resources/tax_calculators.d.ts +2 -5
  278. package/lib/esm/resources/tax_calculators.js +1 -1
  279. package/lib/esm/resources/tax_categories.d.ts +0 -4
  280. package/lib/esm/resources/tax_categories.js +1 -1
  281. package/lib/esm/resources/tax_rules.d.ts +0 -4
  282. package/lib/esm/resources/taxjar_accounts.d.ts +0 -4
  283. package/lib/esm/resources/taxjar_accounts.js +1 -1
  284. package/lib/esm/resources/transactions.d.ts +2 -5
  285. package/lib/esm/resources/transactions.js +1 -1
  286. package/lib/esm/resources/voids.d.ts +0 -4
  287. package/lib/esm/resources/webhooks.d.ts +0 -4
  288. package/lib/esm/resources/wire_transfers.d.ts +0 -4
  289. package/lib/esm/resources/wire_transfers.js +1 -1
  290. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  291. package/lib/tsconfig.tsbuildinfo +1 -1
  292. package/package.json +13 -13
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  declare type ImportRel = ResourceId & {
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { InventoryStockLocation } from './inventory_stock_locations';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { StockLocation } from './stock_locations';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { StockLocation } from './stock_locations';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { LineItem } from './line_items';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PaymentMethod } from './payment_methods';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { TaxCategory } from './tax_categories';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Merchant } from './merchants';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Address } from './addresses';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1,9 +1,5 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
2
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
8
4
  declare type OrderValidationRuleRel = ResourceId & {
9
5
  type: typeof OrderValidationRules.TYPE;
@@ -14,6 +10,7 @@ interface OrderValidationRule extends Resource {
14
10
  declare class OrderValidationRules extends ApiResource {
15
11
  static readonly TYPE: 'order_validation_rules';
16
12
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderValidationRule>>;
13
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderValidationRule>;
17
14
  isOrderValidationRule(resource: any): resource is OrderValidationRule;
18
15
  relationship(id: string | ResourceId): OrderValidationRuleRel;
19
16
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:OrderValidationRules.TYPE},e,t)}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",exports.default=OrderValidationRules;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class OrderValidationRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:OrderValidationRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:OrderValidationRules.TYPE,id:e},r,t)}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",exports.default=OrderValidationRules;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
7
3
  declare type OrganizationRel = ResourceId & {
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { StockLocation } from './stock_locations';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Parcel } from './parcels';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Shipment } from './shipments';
@@ -1,8 +1,4 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
1
+ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PaymentMethod } from './payment_methods';
8
4
  declare type PaymentGatewayRel = ResourceId & {
@@ -12,22 +8,13 @@ interface PaymentGateway extends Resource {
12
8
  name?: string;
13
9
  payment_methods?: PaymentMethod[];
14
10
  }
15
- interface PaymentGatewayCreate extends ResourceCreate {
16
- name: string;
17
- }
18
- interface PaymentGatewayUpdate extends ResourceUpdate {
19
- name?: string;
20
- }
21
11
  declare class PaymentGateways extends ApiResource {
22
12
  static readonly TYPE: 'payment_gateways';
23
13
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentGateway>>;
24
- create(resource: PaymentGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
25
14
  retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
26
- update(resource: PaymentGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
27
- delete(id: string, options?: ResourcesConfig): Promise<void>;
28
15
  isPaymentGateway(resource: any): resource is PaymentGateway;
29
16
  relationship(id: string | ResourceId): PaymentGatewayRel;
30
17
  type(): string;
31
18
  }
32
19
  export default PaymentGateways;
33
- export { PaymentGateway, PaymentGatewayCreate, PaymentGatewayUpdate };
20
+ export { PaymentGateway };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async create(e,r,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PaymentGateways.TYPE}),r,s)}async retrieve(e,r,s){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,s)}async update(e,r,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PaymentGateways.TYPE}),r,s)}async delete(e,r){await this.resources.delete({type:PaymentGateways.TYPE,id:e},r)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PaymentGateways extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PaymentGateways.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PaymentGateways.TYPE,id:e},r,t)}isPaymentGateway(e){return e.type&&e.type===PaymentGateways.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PaymentGateways.TYPE}:{id:e.id,type:PaymentGateways.TYPE}}type(){return PaymentGateways.TYPE}}PaymentGateways.TYPE="payment_gateways",exports.default=PaymentGateways;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -19,6 +15,7 @@ declare type PaymentGatewayRel = ResourceId & {
19
15
  interface PaymentMethod extends Resource {
20
16
  payment_source_type?: string;
21
17
  name?: string;
18
+ moto?: boolean;
22
19
  disabled_at?: string;
23
20
  price_amount_cents?: number;
24
21
  price_amount_float?: number;
@@ -29,12 +26,14 @@ interface PaymentMethod extends Resource {
29
26
  }
30
27
  interface PaymentMethodCreate extends ResourceCreate {
31
28
  payment_source_type: string;
29
+ moto?: boolean;
32
30
  price_amount_cents: number;
33
31
  market?: MarketRel;
34
32
  payment_gateway?: PaymentGatewayRel;
35
33
  }
36
34
  interface PaymentMethodUpdate extends ResourceUpdate {
37
35
  payment_source_type?: string;
36
+ moto?: boolean;
38
37
  price_amount_cents?: number;
39
38
  market?: MarketRel;
40
39
  payment_gateway?: PaymentGatewayRel;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PaymentMethod } from './payment_methods';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Price } from './prices';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PriceList } from './price_lists';
@@ -1,9 +1,5 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
2
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
8
4
  import { FreeShippingPromotion } from './free_shipping_promotions';
9
5
  import { FixedAmountPromotion } from './fixed_amount_promotions';
@@ -19,6 +15,7 @@ interface PromotionRule extends Resource {
19
15
  declare class PromotionRules extends ApiResource {
20
16
  static readonly TYPE: 'promotion_rules';
21
17
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PromotionRule>>;
18
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PromotionRule>;
22
19
  isPromotionRule(resource: any): resource is PromotionRule;
23
20
  relationship(id: string | ResourceId): PromotionRuleRel;
24
21
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PromotionRules extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:PromotionRules.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:PromotionRules.TYPE,id:e},r,t)}isPromotionRule(e){return e.type&&e.type===PromotionRules.TYPE}relationship(e){return typeof e=="string"?{id:e,type:PromotionRules.TYPE}:{id:e.id,type:PromotionRules.TYPE}}type(){return PromotionRules.TYPE}}PromotionRules.TYPE="promotion_rules",exports.default=PromotionRules;
@@ -1,9 +1,5 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
2
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
8
4
  import { PromotionRule } from './promotion_rules';
9
5
  import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
@@ -30,6 +26,7 @@ interface Promotion extends Resource {
30
26
  declare class Promotions extends ApiResource {
31
27
  static readonly TYPE: 'promotions';
32
28
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Promotion>>;
29
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Promotion>;
33
30
  isPromotion(resource: any): resource is Promotion;
34
31
  relationship(id: string | ResourceId): PromotionRel;
35
32
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:Promotions.TYPE},e,t)}isPromotion(e){return e.type&&e.type===Promotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Promotions.TYPE}:{id:e.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions",exports.default=Promotions;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class Promotions extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:Promotions.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:Promotions.TYPE,id:e},r,t)}isPromotion(e){return e.type&&e.type===Promotions.TYPE}relationship(e){return typeof e=="string"?{id:e,type:Promotions.TYPE}:{id:e.id,type:Promotions.TYPE}}type(){return Promotions.TYPE}}Promotions.TYPE="promotions",exports.default=Promotions;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Return } from './returns';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Sku } from './skus';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Attachment } from './attachments';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { SkuList } from './sku_lists';
@@ -17,18 +13,21 @@ declare type SkuRel = ResourceId & {
17
13
  };
18
14
  interface SkuListItem extends Resource {
19
15
  position?: number;
16
+ sku_code?: string;
20
17
  quantity?: number;
21
18
  sku_list?: SkuList;
22
19
  sku?: Sku;
23
20
  }
24
21
  interface SkuListItemCreate extends ResourceCreate {
25
- position: number;
26
- quantity: number;
22
+ position?: number;
23
+ sku_code?: string;
24
+ quantity?: number;
27
25
  sku_list?: SkuListRel;
28
26
  sku?: SkuRel;
29
27
  }
30
28
  interface SkuListItemUpdate extends ResourceUpdate {
31
29
  position?: number;
30
+ sku_code?: string;
32
31
  quantity?: number;
33
32
  }
34
33
  declare class SkuListItems extends ApiResource {
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Sku } from './skus';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Market } from './markets';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { ShippingCategory } from './shipping_categories';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { StockLocation } from './stock_locations';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Shipment } from './shipments';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Address } from './addresses';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Sku } from './skus';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { PaymentMethod } from './payment_methods';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Order } from './orders';
@@ -1,9 +1,5 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
- import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
2
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { TaxCategory } from './tax_categories';
8
4
  import { Market } from './markets';
9
5
  import { Attachment } from './attachments';
@@ -19,6 +15,7 @@ interface TaxCalculator extends Resource {
19
15
  declare class TaxCalculators extends ApiResource {
20
16
  static readonly TYPE: 'tax_calculators';
21
17
  list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCalculator>>;
18
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCalculator>;
22
19
  isTaxCalculator(resource: any): resource is TaxCalculator;
23
20
  relationship(id: string | ResourceId): TaxCalculatorRel;
24
21
  type(): string;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:TaxCalculators.TYPE},e,t)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class TaxCalculators extends resource_1.ApiResource{async list(e,r){return this.resources.list({type:TaxCalculators.TYPE},e,r)}async retrieve(e,r,t){return this.resources.retrieve({type:TaxCalculators.TYPE,id:e},r,t)}isTaxCalculator(e){return e.type&&e.type===TaxCalculators.TYPE}relationship(e){return typeof e=="string"?{id:e,type:TaxCalculators.TYPE}:{id:e.id,type:TaxCalculators.TYPE}}type(){return TaxCalculators.TYPE}}TaxCalculators.TYPE="tax_calculators",exports.default=TaxCalculators;
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { Sku } from './skus';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { ManualTaxCalculator } from './manual_tax_calculators';
@@ -1,7 +1,3 @@
1
- /**
2
- * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.4
4
- **/
5
1
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
2
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
3
  import { TaxCategory } from './tax_categories';