@commercelayer/sdk 5.0.0-beta.7 → 5.0.0-beta.9

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 (443) hide show
  1. package/lib/cjs/api.d.ts +15 -0
  2. package/lib/cjs/api.js +0 -13
  3. package/lib/cjs/commercelayer.d.ts +2 -2
  4. package/lib/cjs/index.d.ts +1 -0
  5. package/lib/cjs/query.d.ts +1 -1
  6. package/lib/cjs/resource.d.ts +10 -13
  7. package/lib/cjs/resource.js +3 -0
  8. package/lib/cjs/resources/addresses.d.ts +2 -3
  9. package/lib/cjs/resources/addresses.js +0 -3
  10. package/lib/cjs/resources/adjustments.d.ts +2 -3
  11. package/lib/cjs/resources/adjustments.js +0 -3
  12. package/lib/cjs/resources/adyen_gateways.d.ts +0 -1
  13. package/lib/cjs/resources/adyen_gateways.js +0 -3
  14. package/lib/cjs/resources/adyen_payments.d.ts +2 -3
  15. package/lib/cjs/resources/adyen_payments.js +0 -3
  16. package/lib/cjs/resources/attachments.d.ts +2 -3
  17. package/lib/cjs/resources/attachments.js +0 -3
  18. package/lib/cjs/resources/authorizations.d.ts +0 -1
  19. package/lib/cjs/resources/authorizations.js +0 -3
  20. package/lib/cjs/resources/avalara_accounts.d.ts +0 -1
  21. package/lib/cjs/resources/avalara_accounts.js +0 -3
  22. package/lib/cjs/resources/axerve_gateways.d.ts +0 -1
  23. package/lib/cjs/resources/axerve_gateways.js +0 -3
  24. package/lib/cjs/resources/axerve_payments.d.ts +2 -3
  25. package/lib/cjs/resources/axerve_payments.js +0 -3
  26. package/lib/cjs/resources/billing_info_validation_rules.d.ts +0 -1
  27. package/lib/cjs/resources/billing_info_validation_rules.js +0 -3
  28. package/lib/cjs/resources/bing_geocoders.d.ts +0 -1
  29. package/lib/cjs/resources/bing_geocoders.js +0 -3
  30. package/lib/cjs/resources/braintree_gateways.d.ts +0 -1
  31. package/lib/cjs/resources/braintree_gateways.js +0 -3
  32. package/lib/cjs/resources/braintree_payments.d.ts +2 -3
  33. package/lib/cjs/resources/braintree_payments.js +0 -3
  34. package/lib/cjs/resources/bundles.d.ts +0 -1
  35. package/lib/cjs/resources/bundles.js +0 -3
  36. package/lib/cjs/resources/captures.d.ts +0 -1
  37. package/lib/cjs/resources/captures.js +0 -3
  38. package/lib/cjs/resources/carrier_accounts.d.ts +0 -1
  39. package/lib/cjs/resources/carrier_accounts.js +0 -3
  40. package/lib/cjs/resources/checkout_com_gateways.d.ts +0 -1
  41. package/lib/cjs/resources/checkout_com_gateways.js +0 -3
  42. package/lib/cjs/resources/checkout_com_payments.d.ts +2 -3
  43. package/lib/cjs/resources/checkout_com_payments.js +0 -3
  44. package/lib/cjs/resources/cleanups.d.ts +0 -1
  45. package/lib/cjs/resources/cleanups.js +0 -3
  46. package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +0 -1
  47. package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -3
  48. package/lib/cjs/resources/coupon_recipients.d.ts +0 -1
  49. package/lib/cjs/resources/coupon_recipients.js +0 -3
  50. package/lib/cjs/resources/coupons.d.ts +2 -3
  51. package/lib/cjs/resources/coupons.js +0 -3
  52. package/lib/cjs/resources/customer_addresses.d.ts +0 -1
  53. package/lib/cjs/resources/customer_addresses.js +0 -3
  54. package/lib/cjs/resources/customer_groups.d.ts +0 -1
  55. package/lib/cjs/resources/customer_groups.js +0 -3
  56. package/lib/cjs/resources/customer_password_resets.d.ts +0 -1
  57. package/lib/cjs/resources/customer_password_resets.js +0 -3
  58. package/lib/cjs/resources/customer_payment_sources.d.ts +2 -3
  59. package/lib/cjs/resources/customer_payment_sources.js +0 -3
  60. package/lib/cjs/resources/customer_subscriptions.d.ts +0 -1
  61. package/lib/cjs/resources/customer_subscriptions.js +0 -3
  62. package/lib/cjs/resources/customers.d.ts +0 -1
  63. package/lib/cjs/resources/customers.js +0 -3
  64. package/lib/cjs/resources/delivery_lead_times.d.ts +0 -1
  65. package/lib/cjs/resources/delivery_lead_times.js +0 -3
  66. package/lib/cjs/resources/event_callbacks.d.ts +2 -3
  67. package/lib/cjs/resources/event_callbacks.js +0 -3
  68. package/lib/cjs/resources/events.d.ts +0 -1
  69. package/lib/cjs/resources/events.js +0 -3
  70. package/lib/cjs/resources/exports.d.ts +0 -1
  71. package/lib/cjs/resources/exports.js +0 -3
  72. package/lib/cjs/resources/external_gateways.d.ts +0 -1
  73. package/lib/cjs/resources/external_gateways.js +0 -3
  74. package/lib/cjs/resources/external_payments.d.ts +2 -3
  75. package/lib/cjs/resources/external_payments.js +0 -3
  76. package/lib/cjs/resources/external_promotions.d.ts +0 -1
  77. package/lib/cjs/resources/external_promotions.js +0 -3
  78. package/lib/cjs/resources/external_tax_calculators.d.ts +0 -1
  79. package/lib/cjs/resources/external_tax_calculators.js +0 -3
  80. package/lib/cjs/resources/fixed_amount_promotions.d.ts +0 -1
  81. package/lib/cjs/resources/fixed_amount_promotions.js +0 -3
  82. package/lib/cjs/resources/fixed_price_promotions.d.ts +0 -1
  83. package/lib/cjs/resources/fixed_price_promotions.js +0 -3
  84. package/lib/cjs/resources/free_gift_promotions.d.ts +0 -1
  85. package/lib/cjs/resources/free_gift_promotions.js +0 -3
  86. package/lib/cjs/resources/free_shipping_promotions.d.ts +0 -1
  87. package/lib/cjs/resources/free_shipping_promotions.js +0 -3
  88. package/lib/cjs/resources/geocoders.d.ts +0 -1
  89. package/lib/cjs/resources/geocoders.js +0 -3
  90. package/lib/cjs/resources/gift_card_recipients.d.ts +0 -1
  91. package/lib/cjs/resources/gift_card_recipients.js +0 -3
  92. package/lib/cjs/resources/gift_cards.d.ts +0 -1
  93. package/lib/cjs/resources/gift_cards.js +0 -3
  94. package/lib/cjs/resources/google_geocoders.d.ts +0 -1
  95. package/lib/cjs/resources/google_geocoders.js +0 -3
  96. package/lib/cjs/resources/imports.d.ts +0 -1
  97. package/lib/cjs/resources/imports.js +0 -3
  98. package/lib/cjs/resources/in_stock_subscriptions.d.ts +0 -1
  99. package/lib/cjs/resources/in_stock_subscriptions.js +0 -3
  100. package/lib/cjs/resources/inventory_models.d.ts +0 -1
  101. package/lib/cjs/resources/inventory_models.js +0 -3
  102. package/lib/cjs/resources/inventory_return_locations.d.ts +2 -3
  103. package/lib/cjs/resources/inventory_return_locations.js +0 -3
  104. package/lib/cjs/resources/inventory_stock_locations.d.ts +2 -3
  105. package/lib/cjs/resources/inventory_stock_locations.js +0 -3
  106. package/lib/cjs/resources/klarna_gateways.d.ts +0 -1
  107. package/lib/cjs/resources/klarna_gateways.js +0 -3
  108. package/lib/cjs/resources/klarna_payments.d.ts +2 -3
  109. package/lib/cjs/resources/klarna_payments.js +0 -3
  110. package/lib/cjs/resources/line_item_options.d.ts +2 -3
  111. package/lib/cjs/resources/line_item_options.js +0 -3
  112. package/lib/cjs/resources/line_items.d.ts +0 -1
  113. package/lib/cjs/resources/line_items.js +0 -3
  114. package/lib/cjs/resources/manual_gateways.d.ts +0 -1
  115. package/lib/cjs/resources/manual_gateways.js +0 -3
  116. package/lib/cjs/resources/manual_tax_calculators.d.ts +0 -1
  117. package/lib/cjs/resources/manual_tax_calculators.js +0 -3
  118. package/lib/cjs/resources/markets.d.ts +0 -1
  119. package/lib/cjs/resources/markets.js +0 -3
  120. package/lib/cjs/resources/merchants.d.ts +0 -1
  121. package/lib/cjs/resources/merchants.js +0 -3
  122. package/lib/cjs/resources/order_amount_promotion_rules.d.ts +2 -3
  123. package/lib/cjs/resources/order_amount_promotion_rules.js +0 -3
  124. package/lib/cjs/resources/order_copies.d.ts +0 -1
  125. package/lib/cjs/resources/order_copies.js +0 -3
  126. package/lib/cjs/resources/order_subscriptions.d.ts +0 -1
  127. package/lib/cjs/resources/order_subscriptions.js +0 -3
  128. package/lib/cjs/resources/order_validation_rules.d.ts +0 -1
  129. package/lib/cjs/resources/order_validation_rules.js +0 -3
  130. package/lib/cjs/resources/orders.d.ts +0 -1
  131. package/lib/cjs/resources/orders.js +0 -3
  132. package/lib/cjs/resources/packages.d.ts +0 -1
  133. package/lib/cjs/resources/packages.js +0 -3
  134. package/lib/cjs/resources/parcel_line_items.d.ts +2 -3
  135. package/lib/cjs/resources/parcel_line_items.js +0 -3
  136. package/lib/cjs/resources/parcels.d.ts +0 -1
  137. package/lib/cjs/resources/parcels.js +0 -3
  138. package/lib/cjs/resources/payment_gateways.d.ts +0 -1
  139. package/lib/cjs/resources/payment_gateways.js +0 -3
  140. package/lib/cjs/resources/payment_methods.d.ts +0 -1
  141. package/lib/cjs/resources/payment_methods.js +0 -3
  142. package/lib/cjs/resources/paypal_gateways.d.ts +0 -1
  143. package/lib/cjs/resources/paypal_gateways.js +0 -3
  144. package/lib/cjs/resources/paypal_payments.d.ts +2 -3
  145. package/lib/cjs/resources/paypal_payments.js +0 -3
  146. package/lib/cjs/resources/percentage_discount_promotions.d.ts +0 -1
  147. package/lib/cjs/resources/percentage_discount_promotions.js +0 -3
  148. package/lib/cjs/resources/price_lists.d.ts +0 -1
  149. package/lib/cjs/resources/price_lists.js +0 -3
  150. package/lib/cjs/resources/price_tiers.d.ts +0 -1
  151. package/lib/cjs/resources/price_tiers.js +0 -3
  152. package/lib/cjs/resources/price_volume_tiers.d.ts +0 -1
  153. package/lib/cjs/resources/price_volume_tiers.js +0 -3
  154. package/lib/cjs/resources/prices.d.ts +0 -1
  155. package/lib/cjs/resources/prices.js +0 -3
  156. package/lib/cjs/resources/promotion_rules.d.ts +1 -3
  157. package/lib/cjs/resources/promotion_rules.js +0 -3
  158. package/lib/cjs/resources/promotions.d.ts +0 -1
  159. package/lib/cjs/resources/promotions.js +0 -3
  160. package/lib/cjs/resources/refunds.d.ts +0 -1
  161. package/lib/cjs/resources/refunds.js +0 -3
  162. package/lib/cjs/resources/return_line_items.d.ts +2 -3
  163. package/lib/cjs/resources/return_line_items.js +0 -3
  164. package/lib/cjs/resources/returns.d.ts +0 -1
  165. package/lib/cjs/resources/returns.js +0 -3
  166. package/lib/cjs/resources/satispay_gateways.d.ts +0 -1
  167. package/lib/cjs/resources/satispay_gateways.js +0 -3
  168. package/lib/cjs/resources/satispay_payments.d.ts +2 -3
  169. package/lib/cjs/resources/satispay_payments.js +0 -3
  170. package/lib/cjs/resources/shipments.d.ts +0 -1
  171. package/lib/cjs/resources/shipments.js +0 -3
  172. package/lib/cjs/resources/shipping_categories.d.ts +0 -1
  173. package/lib/cjs/resources/shipping_categories.js +0 -3
  174. package/lib/cjs/resources/shipping_method_tiers.d.ts +0 -1
  175. package/lib/cjs/resources/shipping_method_tiers.js +0 -3
  176. package/lib/cjs/resources/shipping_methods.d.ts +0 -1
  177. package/lib/cjs/resources/shipping_methods.js +0 -3
  178. package/lib/cjs/resources/shipping_weight_tiers.d.ts +0 -1
  179. package/lib/cjs/resources/shipping_weight_tiers.js +0 -3
  180. package/lib/cjs/resources/shipping_zones.d.ts +0 -1
  181. package/lib/cjs/resources/shipping_zones.js +0 -3
  182. package/lib/cjs/resources/sku_list_items.d.ts +2 -3
  183. package/lib/cjs/resources/sku_list_items.js +0 -3
  184. package/lib/cjs/resources/sku_list_promotion_rules.d.ts +0 -1
  185. package/lib/cjs/resources/sku_list_promotion_rules.js +0 -3
  186. package/lib/cjs/resources/sku_lists.d.ts +0 -1
  187. package/lib/cjs/resources/sku_lists.js +0 -3
  188. package/lib/cjs/resources/sku_options.d.ts +0 -1
  189. package/lib/cjs/resources/sku_options.js +0 -3
  190. package/lib/cjs/resources/skus.d.ts +0 -1
  191. package/lib/cjs/resources/skus.js +0 -3
  192. package/lib/cjs/resources/stock_items.d.ts +0 -1
  193. package/lib/cjs/resources/stock_items.js +0 -3
  194. package/lib/cjs/resources/stock_line_items.d.ts +2 -3
  195. package/lib/cjs/resources/stock_line_items.js +0 -3
  196. package/lib/cjs/resources/stock_locations.d.ts +0 -1
  197. package/lib/cjs/resources/stock_locations.js +0 -3
  198. package/lib/cjs/resources/stock_transfers.d.ts +0 -1
  199. package/lib/cjs/resources/stock_transfers.js +0 -3
  200. package/lib/cjs/resources/stripe_gateways.d.ts +0 -1
  201. package/lib/cjs/resources/stripe_gateways.js +0 -3
  202. package/lib/cjs/resources/stripe_payments.d.ts +2 -3
  203. package/lib/cjs/resources/stripe_payments.js +0 -3
  204. package/lib/cjs/resources/tax_calculators.d.ts +0 -1
  205. package/lib/cjs/resources/tax_calculators.js +0 -3
  206. package/lib/cjs/resources/tax_categories.d.ts +0 -1
  207. package/lib/cjs/resources/tax_categories.js +0 -3
  208. package/lib/cjs/resources/tax_rules.d.ts +2 -3
  209. package/lib/cjs/resources/tax_rules.js +0 -3
  210. package/lib/cjs/resources/taxjar_accounts.d.ts +0 -1
  211. package/lib/cjs/resources/taxjar_accounts.js +0 -3
  212. package/lib/cjs/resources/transactions.d.ts +2 -3
  213. package/lib/cjs/resources/transactions.js +0 -3
  214. package/lib/cjs/resources/voids.d.ts +0 -1
  215. package/lib/cjs/resources/voids.js +0 -3
  216. package/lib/cjs/resources/webhooks.d.ts +0 -1
  217. package/lib/cjs/resources/webhooks.js +0 -3
  218. package/lib/cjs/resources/wire_transfers.d.ts +2 -3
  219. package/lib/cjs/resources/wire_transfers.js +0 -3
  220. package/lib/cjs/static.d.ts +1 -1
  221. package/lib/esm/api.d.ts +15 -0
  222. package/lib/esm/api.js +0 -13
  223. package/lib/esm/commercelayer.d.ts +2 -2
  224. package/lib/esm/index.d.ts +1 -0
  225. package/lib/esm/query.d.ts +1 -1
  226. package/lib/esm/resource.d.ts +10 -13
  227. package/lib/esm/resource.js +3 -0
  228. package/lib/esm/resources/addresses.d.ts +2 -3
  229. package/lib/esm/resources/addresses.js +0 -3
  230. package/lib/esm/resources/adjustments.d.ts +2 -3
  231. package/lib/esm/resources/adjustments.js +0 -3
  232. package/lib/esm/resources/adyen_gateways.d.ts +0 -1
  233. package/lib/esm/resources/adyen_gateways.js +0 -3
  234. package/lib/esm/resources/adyen_payments.d.ts +2 -3
  235. package/lib/esm/resources/adyen_payments.js +0 -3
  236. package/lib/esm/resources/attachments.d.ts +2 -3
  237. package/lib/esm/resources/attachments.js +0 -3
  238. package/lib/esm/resources/authorizations.d.ts +0 -1
  239. package/lib/esm/resources/authorizations.js +0 -3
  240. package/lib/esm/resources/avalara_accounts.d.ts +0 -1
  241. package/lib/esm/resources/avalara_accounts.js +0 -3
  242. package/lib/esm/resources/axerve_gateways.d.ts +0 -1
  243. package/lib/esm/resources/axerve_gateways.js +0 -3
  244. package/lib/esm/resources/axerve_payments.d.ts +2 -3
  245. package/lib/esm/resources/axerve_payments.js +0 -3
  246. package/lib/esm/resources/billing_info_validation_rules.d.ts +0 -1
  247. package/lib/esm/resources/billing_info_validation_rules.js +0 -3
  248. package/lib/esm/resources/bing_geocoders.d.ts +0 -1
  249. package/lib/esm/resources/bing_geocoders.js +0 -3
  250. package/lib/esm/resources/braintree_gateways.d.ts +0 -1
  251. package/lib/esm/resources/braintree_gateways.js +0 -3
  252. package/lib/esm/resources/braintree_payments.d.ts +2 -3
  253. package/lib/esm/resources/braintree_payments.js +0 -3
  254. package/lib/esm/resources/bundles.d.ts +0 -1
  255. package/lib/esm/resources/bundles.js +0 -3
  256. package/lib/esm/resources/captures.d.ts +0 -1
  257. package/lib/esm/resources/captures.js +0 -3
  258. package/lib/esm/resources/carrier_accounts.d.ts +0 -1
  259. package/lib/esm/resources/carrier_accounts.js +0 -3
  260. package/lib/esm/resources/checkout_com_gateways.d.ts +0 -1
  261. package/lib/esm/resources/checkout_com_gateways.js +0 -3
  262. package/lib/esm/resources/checkout_com_payments.d.ts +2 -3
  263. package/lib/esm/resources/checkout_com_payments.js +0 -3
  264. package/lib/esm/resources/cleanups.d.ts +0 -1
  265. package/lib/esm/resources/cleanups.js +0 -3
  266. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +0 -1
  267. package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -3
  268. package/lib/esm/resources/coupon_recipients.d.ts +0 -1
  269. package/lib/esm/resources/coupon_recipients.js +0 -3
  270. package/lib/esm/resources/coupons.d.ts +2 -3
  271. package/lib/esm/resources/coupons.js +0 -3
  272. package/lib/esm/resources/customer_addresses.d.ts +0 -1
  273. package/lib/esm/resources/customer_addresses.js +0 -3
  274. package/lib/esm/resources/customer_groups.d.ts +0 -1
  275. package/lib/esm/resources/customer_groups.js +0 -3
  276. package/lib/esm/resources/customer_password_resets.d.ts +0 -1
  277. package/lib/esm/resources/customer_password_resets.js +0 -3
  278. package/lib/esm/resources/customer_payment_sources.d.ts +2 -3
  279. package/lib/esm/resources/customer_payment_sources.js +0 -3
  280. package/lib/esm/resources/customer_subscriptions.d.ts +0 -1
  281. package/lib/esm/resources/customer_subscriptions.js +0 -3
  282. package/lib/esm/resources/customers.d.ts +0 -1
  283. package/lib/esm/resources/customers.js +0 -3
  284. package/lib/esm/resources/delivery_lead_times.d.ts +0 -1
  285. package/lib/esm/resources/delivery_lead_times.js +0 -3
  286. package/lib/esm/resources/event_callbacks.d.ts +2 -3
  287. package/lib/esm/resources/event_callbacks.js +0 -3
  288. package/lib/esm/resources/events.d.ts +0 -1
  289. package/lib/esm/resources/events.js +0 -3
  290. package/lib/esm/resources/exports.d.ts +0 -1
  291. package/lib/esm/resources/exports.js +0 -3
  292. package/lib/esm/resources/external_gateways.d.ts +0 -1
  293. package/lib/esm/resources/external_gateways.js +0 -3
  294. package/lib/esm/resources/external_payments.d.ts +2 -3
  295. package/lib/esm/resources/external_payments.js +0 -3
  296. package/lib/esm/resources/external_promotions.d.ts +0 -1
  297. package/lib/esm/resources/external_promotions.js +0 -3
  298. package/lib/esm/resources/external_tax_calculators.d.ts +0 -1
  299. package/lib/esm/resources/external_tax_calculators.js +0 -3
  300. package/lib/esm/resources/fixed_amount_promotions.d.ts +0 -1
  301. package/lib/esm/resources/fixed_amount_promotions.js +0 -3
  302. package/lib/esm/resources/fixed_price_promotions.d.ts +0 -1
  303. package/lib/esm/resources/fixed_price_promotions.js +0 -3
  304. package/lib/esm/resources/free_gift_promotions.d.ts +0 -1
  305. package/lib/esm/resources/free_gift_promotions.js +0 -3
  306. package/lib/esm/resources/free_shipping_promotions.d.ts +0 -1
  307. package/lib/esm/resources/free_shipping_promotions.js +0 -3
  308. package/lib/esm/resources/geocoders.d.ts +0 -1
  309. package/lib/esm/resources/geocoders.js +0 -3
  310. package/lib/esm/resources/gift_card_recipients.d.ts +0 -1
  311. package/lib/esm/resources/gift_card_recipients.js +0 -3
  312. package/lib/esm/resources/gift_cards.d.ts +0 -1
  313. package/lib/esm/resources/gift_cards.js +0 -3
  314. package/lib/esm/resources/google_geocoders.d.ts +0 -1
  315. package/lib/esm/resources/google_geocoders.js +0 -3
  316. package/lib/esm/resources/imports.d.ts +0 -1
  317. package/lib/esm/resources/imports.js +0 -3
  318. package/lib/esm/resources/in_stock_subscriptions.d.ts +0 -1
  319. package/lib/esm/resources/in_stock_subscriptions.js +0 -3
  320. package/lib/esm/resources/inventory_models.d.ts +0 -1
  321. package/lib/esm/resources/inventory_models.js +0 -3
  322. package/lib/esm/resources/inventory_return_locations.d.ts +2 -3
  323. package/lib/esm/resources/inventory_return_locations.js +0 -3
  324. package/lib/esm/resources/inventory_stock_locations.d.ts +2 -3
  325. package/lib/esm/resources/inventory_stock_locations.js +0 -3
  326. package/lib/esm/resources/klarna_gateways.d.ts +0 -1
  327. package/lib/esm/resources/klarna_gateways.js +0 -3
  328. package/lib/esm/resources/klarna_payments.d.ts +2 -3
  329. package/lib/esm/resources/klarna_payments.js +0 -3
  330. package/lib/esm/resources/line_item_options.d.ts +2 -3
  331. package/lib/esm/resources/line_item_options.js +0 -3
  332. package/lib/esm/resources/line_items.d.ts +0 -1
  333. package/lib/esm/resources/line_items.js +0 -3
  334. package/lib/esm/resources/manual_gateways.d.ts +0 -1
  335. package/lib/esm/resources/manual_gateways.js +0 -3
  336. package/lib/esm/resources/manual_tax_calculators.d.ts +0 -1
  337. package/lib/esm/resources/manual_tax_calculators.js +0 -3
  338. package/lib/esm/resources/markets.d.ts +0 -1
  339. package/lib/esm/resources/markets.js +0 -3
  340. package/lib/esm/resources/merchants.d.ts +0 -1
  341. package/lib/esm/resources/merchants.js +0 -3
  342. package/lib/esm/resources/order_amount_promotion_rules.d.ts +2 -3
  343. package/lib/esm/resources/order_amount_promotion_rules.js +0 -3
  344. package/lib/esm/resources/order_copies.d.ts +0 -1
  345. package/lib/esm/resources/order_copies.js +0 -3
  346. package/lib/esm/resources/order_subscriptions.d.ts +0 -1
  347. package/lib/esm/resources/order_subscriptions.js +0 -3
  348. package/lib/esm/resources/order_validation_rules.d.ts +0 -1
  349. package/lib/esm/resources/order_validation_rules.js +0 -3
  350. package/lib/esm/resources/orders.d.ts +0 -1
  351. package/lib/esm/resources/orders.js +0 -3
  352. package/lib/esm/resources/packages.d.ts +0 -1
  353. package/lib/esm/resources/packages.js +0 -3
  354. package/lib/esm/resources/parcel_line_items.d.ts +2 -3
  355. package/lib/esm/resources/parcel_line_items.js +0 -3
  356. package/lib/esm/resources/parcels.d.ts +0 -1
  357. package/lib/esm/resources/parcels.js +0 -3
  358. package/lib/esm/resources/payment_gateways.d.ts +0 -1
  359. package/lib/esm/resources/payment_gateways.js +0 -3
  360. package/lib/esm/resources/payment_methods.d.ts +0 -1
  361. package/lib/esm/resources/payment_methods.js +0 -3
  362. package/lib/esm/resources/paypal_gateways.d.ts +0 -1
  363. package/lib/esm/resources/paypal_gateways.js +0 -3
  364. package/lib/esm/resources/paypal_payments.d.ts +2 -3
  365. package/lib/esm/resources/paypal_payments.js +0 -3
  366. package/lib/esm/resources/percentage_discount_promotions.d.ts +0 -1
  367. package/lib/esm/resources/percentage_discount_promotions.js +0 -3
  368. package/lib/esm/resources/price_lists.d.ts +0 -1
  369. package/lib/esm/resources/price_lists.js +0 -3
  370. package/lib/esm/resources/price_tiers.d.ts +0 -1
  371. package/lib/esm/resources/price_tiers.js +0 -3
  372. package/lib/esm/resources/price_volume_tiers.d.ts +0 -1
  373. package/lib/esm/resources/price_volume_tiers.js +0 -3
  374. package/lib/esm/resources/prices.d.ts +0 -1
  375. package/lib/esm/resources/prices.js +0 -3
  376. package/lib/esm/resources/promotion_rules.d.ts +1 -3
  377. package/lib/esm/resources/promotion_rules.js +0 -3
  378. package/lib/esm/resources/promotions.d.ts +0 -1
  379. package/lib/esm/resources/promotions.js +0 -3
  380. package/lib/esm/resources/refunds.d.ts +0 -1
  381. package/lib/esm/resources/refunds.js +0 -3
  382. package/lib/esm/resources/return_line_items.d.ts +2 -3
  383. package/lib/esm/resources/return_line_items.js +0 -3
  384. package/lib/esm/resources/returns.d.ts +0 -1
  385. package/lib/esm/resources/returns.js +0 -3
  386. package/lib/esm/resources/satispay_gateways.d.ts +0 -1
  387. package/lib/esm/resources/satispay_gateways.js +0 -3
  388. package/lib/esm/resources/satispay_payments.d.ts +2 -3
  389. package/lib/esm/resources/satispay_payments.js +0 -3
  390. package/lib/esm/resources/shipments.d.ts +0 -1
  391. package/lib/esm/resources/shipments.js +0 -3
  392. package/lib/esm/resources/shipping_categories.d.ts +0 -1
  393. package/lib/esm/resources/shipping_categories.js +0 -3
  394. package/lib/esm/resources/shipping_method_tiers.d.ts +0 -1
  395. package/lib/esm/resources/shipping_method_tiers.js +0 -3
  396. package/lib/esm/resources/shipping_methods.d.ts +0 -1
  397. package/lib/esm/resources/shipping_methods.js +0 -3
  398. package/lib/esm/resources/shipping_weight_tiers.d.ts +0 -1
  399. package/lib/esm/resources/shipping_weight_tiers.js +0 -3
  400. package/lib/esm/resources/shipping_zones.d.ts +0 -1
  401. package/lib/esm/resources/shipping_zones.js +0 -3
  402. package/lib/esm/resources/sku_list_items.d.ts +2 -3
  403. package/lib/esm/resources/sku_list_items.js +0 -3
  404. package/lib/esm/resources/sku_list_promotion_rules.d.ts +0 -1
  405. package/lib/esm/resources/sku_list_promotion_rules.js +0 -3
  406. package/lib/esm/resources/sku_lists.d.ts +0 -1
  407. package/lib/esm/resources/sku_lists.js +0 -3
  408. package/lib/esm/resources/sku_options.d.ts +0 -1
  409. package/lib/esm/resources/sku_options.js +0 -3
  410. package/lib/esm/resources/skus.d.ts +0 -1
  411. package/lib/esm/resources/skus.js +0 -3
  412. package/lib/esm/resources/stock_items.d.ts +0 -1
  413. package/lib/esm/resources/stock_items.js +0 -3
  414. package/lib/esm/resources/stock_line_items.d.ts +2 -3
  415. package/lib/esm/resources/stock_line_items.js +0 -3
  416. package/lib/esm/resources/stock_locations.d.ts +0 -1
  417. package/lib/esm/resources/stock_locations.js +0 -3
  418. package/lib/esm/resources/stock_transfers.d.ts +0 -1
  419. package/lib/esm/resources/stock_transfers.js +0 -3
  420. package/lib/esm/resources/stripe_gateways.d.ts +0 -1
  421. package/lib/esm/resources/stripe_gateways.js +0 -3
  422. package/lib/esm/resources/stripe_payments.d.ts +2 -3
  423. package/lib/esm/resources/stripe_payments.js +0 -3
  424. package/lib/esm/resources/tax_calculators.d.ts +0 -1
  425. package/lib/esm/resources/tax_calculators.js +0 -3
  426. package/lib/esm/resources/tax_categories.d.ts +0 -1
  427. package/lib/esm/resources/tax_categories.js +0 -3
  428. package/lib/esm/resources/tax_rules.d.ts +2 -3
  429. package/lib/esm/resources/tax_rules.js +0 -3
  430. package/lib/esm/resources/taxjar_accounts.d.ts +0 -1
  431. package/lib/esm/resources/taxjar_accounts.js +0 -3
  432. package/lib/esm/resources/transactions.d.ts +2 -3
  433. package/lib/esm/resources/transactions.js +0 -3
  434. package/lib/esm/resources/voids.d.ts +0 -1
  435. package/lib/esm/resources/voids.js +0 -3
  436. package/lib/esm/resources/webhooks.d.ts +0 -1
  437. package/lib/esm/resources/webhooks.js +0 -3
  438. package/lib/esm/resources/wire_transfers.d.ts +2 -3
  439. package/lib/esm/resources/wire_transfers.js +0 -3
  440. package/lib/esm/static.d.ts +1 -1
  441. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  442. package/lib/tsconfig.tsbuildinfo +1 -1
  443. package/package.json +3 -3
package/lib/cjs/api.d.ts CHANGED
@@ -111,3 +111,18 @@ export { default as Webhooks } from './resources/webhooks';
111
111
  export { default as WireTransfers } from './resources/wire_transfers';
112
112
  export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
113
113
  export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
114
+ export type ResourceRetrievable = {
115
+ type: ResourceTypeLock;
116
+ };
117
+ export type ResourceListable = {
118
+ type: Exclude<ResourceTypeLock, 'application' | 'organization'>;
119
+ };
120
+ export type ResourceCreatable = {
121
+ type: 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
122
+ };
123
+ export type ResourceUpdatable = {
124
+ type: 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
125
+ };
126
+ export type ResourceDeletable = {
127
+ type: 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'attachments' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'orders' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_volume_tiers' | 'prices' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipping_categories' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'webhooks' | 'wire_transfers';
128
+ };
package/lib/cjs/api.js CHANGED
@@ -340,16 +340,3 @@ exports.resourceList = [
340
340
  'wire_transfers'
341
341
  // ##__API_RESOURCE_LIST_STOP__##
342
342
  ];
343
- /*
344
- type ResourceInfo = {
345
- name: string;
346
- type: string;
347
- api: string;
348
- }
349
-
350
-
351
- export const resourceMap: { [res: string]: ResourceInfo } = {
352
- // ##__API_RESOURCE_MAP_START__##
353
- // ##__API_RESOURCE_MAP_STOP__##
354
- } as const
355
- */
@@ -1,7 +1,7 @@
1
1
  import * as api from './api';
2
- import { ApiError } from './error';
2
+ import type { ApiError } from './error';
3
3
  import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
4
- import { ResourcesInitConfig } from './resource';
4
+ import type { ResourcesInitConfig } from './resource';
5
5
  declare const OPEN_API_SCHEMA_VERSION = "4.0.1";
6
6
  export { OPEN_API_SCHEMA_VERSION };
7
7
  type SdkConfig = {};
@@ -5,3 +5,4 @@ export type { QueryParamsRetrieve, QueryParamsList, QueryParams } from './query'
5
5
  export * from './model';
6
6
  export type { RequestObj, ResponseObj, ErrorObj, HeadersObj } from './interceptor';
7
7
  export type { SdkError, ApiError, ErrorType } from './error';
8
+ export type { ResourceRetrievable, ResourceListable, ResourceCreatable, ResourceUpdatable, ResourceDeletable } from './api';
@@ -1,4 +1,4 @@
1
- import { ResourceType } from "./resource";
1
+ import type { ResourceType } from "./resource";
2
2
  type QueryFilter = {
3
3
  [key: string]: string | number | boolean;
4
4
  };
@@ -1,7 +1,7 @@
1
- import { ApiClientInitConfig } from './client';
2
- import { QueryParamsRetrieve, QueryParamsList, QueryFilter } from './query';
3
- import { ResourceTypeLock } from './api';
4
- import { InterceptorManager } from './interceptor';
1
+ import type { ApiClientInitConfig } from './client';
2
+ import type { QueryParamsRetrieve, QueryParamsList, QueryFilter } from './query';
3
+ import type { ResourceTypeLock } from './api';
4
+ import type { InterceptorManager } from './interceptor';
5
5
  import { QueryParams } from '.';
6
6
  type ResourceNull = {
7
7
  id: null;
@@ -16,23 +16,19 @@ interface ResourceType {
16
16
  interface ResourceId extends ResourceType {
17
17
  readonly id: string;
18
18
  }
19
- interface Resource extends ResourceId {
19
+ interface ResourceBase {
20
20
  reference?: string;
21
21
  reference_origin?: string;
22
22
  metadata?: Metadata;
23
+ }
24
+ interface Resource extends ResourceBase, ResourceId {
23
25
  readonly created_at: string;
24
26
  readonly updated_at: string;
25
27
  }
26
- interface ResourceCreate {
27
- reference?: string;
28
- reference_origin?: string;
29
- metadata?: Metadata;
28
+ interface ResourceCreate extends ResourceBase {
30
29
  }
31
- interface ResourceUpdate {
30
+ interface ResourceUpdate extends ResourceBase {
32
31
  readonly id: string;
33
- reference?: string;
34
- reference_origin?: string;
35
- metadata?: Metadata;
36
32
  }
37
33
  type ListMeta = {
38
34
  readonly pageCount: number;
@@ -82,6 +78,7 @@ declare abstract class ApiResourceBase<R extends Resource> {
82
78
  }
83
79
  declare abstract class ApiResource<R extends Resource> extends ApiResourceBase<R> {
84
80
  retrieve(id: string | ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
81
+ list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<R>>;
85
82
  }
86
83
  declare abstract class ApiSingleton<R extends Resource> extends ApiResourceBase<R> {
87
84
  retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
@@ -156,6 +156,9 @@ class ApiResource extends ApiResourceBase {
156
156
  async retrieve(id, params, options) {
157
157
  return this.resources.retrieve((typeof id === 'string') ? { type: this.type(), id } : id, params, options);
158
158
  }
159
+ async list(params, options) {
160
+ return this.resources.list({ type: this.type() }, params, options);
161
+ }
159
162
  }
160
163
  exports.ApiResource = ApiResource;
161
164
  class ApiSingleton extends ApiResourceBase {
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  import type { Geocoder, GeocoderType } from './geocoders';
4
4
  type AddressType = 'addresses';
5
5
  type AddressRel = ResourceRel & {
@@ -76,7 +76,6 @@ interface AddressUpdate extends ResourceUpdate {
76
76
  }
77
77
  declare class Addresses extends ApiResource<Address> {
78
78
  static readonly TYPE: AddressType;
79
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
80
79
  create(resource: AddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
81
80
  update(resource: AddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
82
81
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Addresses extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: Addresses.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: Addresses.TYPE }, params, options);
10
7
  }
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  type AdjustmentType = 'adjustments';
4
4
  type AdjustmentRel = ResourceRel & {
5
5
  type: AdjustmentType;
@@ -24,7 +24,6 @@ interface AdjustmentUpdate extends ResourceUpdate {
24
24
  }
25
25
  declare class Adjustments extends ApiResource<Adjustment> {
26
26
  static readonly TYPE: AdjustmentType;
27
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Adjustment>>;
28
27
  create(resource: AdjustmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
29
28
  update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
30
29
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Adjustments extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: Adjustments.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: Adjustments.TYPE }, params, options);
10
7
  }
@@ -43,7 +43,6 @@ interface AdyenGatewayUpdate extends ResourceUpdate {
43
43
  }
44
44
  declare class AdyenGateways extends ApiResource<AdyenGateway> {
45
45
  static readonly TYPE: AdyenGatewayType;
46
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenGateway>>;
47
46
  create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
48
47
  update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
49
48
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class AdyenGateways extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: AdyenGateways.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: AdyenGateways.TYPE }, params, options);
10
7
  }
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  import type { Order, OrderType } from './orders';
4
4
  import type { PaymentGateway } from './payment_gateways';
5
5
  type AdyenPaymentType = 'adyen_payments';
@@ -33,7 +33,6 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
33
33
  }
34
34
  declare class AdyenPayments extends ApiResource<AdyenPayment> {
35
35
  static readonly TYPE: AdyenPaymentType;
36
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>>;
37
36
  create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
38
37
  update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
39
38
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class AdyenPayments extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: AdyenPayments.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: AdyenPayments.TYPE }, params, options);
10
7
  }
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  import type { Bundle, BundleType } from './bundles';
4
4
  import type { CarrierAccount, CarrierAccountType } from './carrier_accounts';
5
5
  import type { CustomerGroup, CustomerGroupType } from './customer_groups';
@@ -145,7 +145,6 @@ interface AttachmentUpdate extends ResourceUpdate {
145
145
  }
146
146
  declare class Attachments extends ApiResource<Attachment> {
147
147
  static readonly TYPE: AttachmentType;
148
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
149
148
  create(resource: AttachmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
150
149
  update(resource: AttachmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
151
150
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Attachments extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: Attachments.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: Attachments.TYPE }, params, options);
10
7
  }
@@ -47,7 +47,6 @@ interface AuthorizationUpdate extends ResourceUpdate {
47
47
  }
48
48
  declare class Authorizations extends ApiResource<Authorization> {
49
49
  static readonly TYPE: AuthorizationType;
50
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Authorization>>;
51
50
  update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
52
51
  order(authorizationId: string | Authorization, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
53
52
  captures(authorizationId: string | Authorization, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Authorizations extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: Authorizations.TYPE }, params, options);
7
- }
8
5
  async update(resource, params, options) {
9
6
  return this.resources.update({ ...resource, type: Authorizations.TYPE }, params, options);
10
7
  }
@@ -41,7 +41,6 @@ interface AvalaraAccountUpdate extends ResourceUpdate {
41
41
  }
42
42
  declare class AvalaraAccounts extends ApiResource<AvalaraAccount> {
43
43
  static readonly TYPE: AvalaraAccountType;
44
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AvalaraAccount>>;
45
44
  create(resource: AvalaraAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
46
45
  update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
47
46
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class AvalaraAccounts extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: AvalaraAccounts.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: AvalaraAccounts.TYPE }, params, options);
10
7
  }
@@ -30,7 +30,6 @@ interface AxerveGatewayUpdate extends ResourceUpdate {
30
30
  }
31
31
  declare class AxerveGateways extends ApiResource<AxerveGateway> {
32
32
  static readonly TYPE: AxerveGatewayType;
33
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxerveGateway>>;
34
33
  create(resource: AxerveGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
35
34
  update(resource: AxerveGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
36
35
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class AxerveGateways extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: AxerveGateways.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: AxerveGateways.TYPE }, params, options);
10
7
  }
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  import type { Order, OrderType } from './orders';
4
4
  import type { PaymentGateway } from './payment_gateways';
5
5
  type AxervePaymentType = 'axerve_payments';
@@ -33,7 +33,6 @@ interface AxervePaymentUpdate extends ResourceUpdate {
33
33
  }
34
34
  declare class AxervePayments extends ApiResource<AxervePayment> {
35
35
  static readonly TYPE: AxervePaymentType;
36
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxervePayment>>;
37
36
  create(resource: AxervePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxervePayment>;
38
37
  update(resource: AxervePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxervePayment>;
39
38
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class AxervePayments extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: AxervePayments.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: AxervePayments.TYPE }, params, options);
10
7
  }
@@ -22,7 +22,6 @@ interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
22
22
  }
23
23
  declare class BillingInfoValidationRules extends ApiResource<BillingInfoValidationRule> {
24
24
  static readonly TYPE: BillingInfoValidationRuleType;
25
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BillingInfoValidationRule>>;
26
25
  create(resource: BillingInfoValidationRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
27
26
  update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
28
27
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class BillingInfoValidationRules extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: BillingInfoValidationRules.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: BillingInfoValidationRules.TYPE }, params, options);
10
7
  }
@@ -22,7 +22,6 @@ interface BingGeocoderUpdate extends ResourceUpdate {
22
22
  }
23
23
  declare class BingGeocoders extends ApiResource<BingGeocoder> {
24
24
  static readonly TYPE: BingGeocoderType;
25
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BingGeocoder>>;
26
25
  create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
27
26
  update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
28
27
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class BingGeocoders extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: BingGeocoders.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: BingGeocoders.TYPE }, params, options);
10
7
  }
@@ -43,7 +43,6 @@ interface BraintreeGatewayUpdate extends ResourceUpdate {
43
43
  }
44
44
  declare class BraintreeGateways extends ApiResource<BraintreeGateway> {
45
45
  static readonly TYPE: BraintreeGatewayType;
46
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreeGateway>>;
47
46
  create(resource: BraintreeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
48
47
  update(resource: BraintreeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
49
48
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class BraintreeGateways extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: BraintreeGateways.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: BraintreeGateways.TYPE }, params, options);
10
7
  }
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  import type { Order, OrderType } from './orders';
4
4
  import type { PaymentGateway } from './payment_gateways';
5
5
  type BraintreePaymentType = 'braintree_payments';
@@ -35,7 +35,6 @@ interface BraintreePaymentUpdate extends ResourceUpdate {
35
35
  }
36
36
  declare class BraintreePayments extends ApiResource<BraintreePayment> {
37
37
  static readonly TYPE: BraintreePaymentType;
38
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
39
38
  create(resource: BraintreePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
40
39
  update(resource: BraintreePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
41
40
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class BraintreePayments extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: BraintreePayments.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: BraintreePayments.TYPE }, params, options);
10
7
  }
@@ -61,7 +61,6 @@ interface BundleUpdate extends ResourceUpdate {
61
61
  }
62
62
  declare class Bundles extends ApiResource<Bundle> {
63
63
  static readonly TYPE: BundleType;
64
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
65
64
  create(resource: BundleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
66
65
  update(resource: BundleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
67
66
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Bundles extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: Bundles.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: Bundles.TYPE }, params, options);
10
7
  }
@@ -38,7 +38,6 @@ interface CaptureUpdate extends ResourceUpdate {
38
38
  }
39
39
  declare class Captures extends ApiResource<Capture> {
40
40
  static readonly TYPE: CaptureType;
41
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
42
41
  update(resource: CaptureUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
43
42
  order(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
44
43
  reference_authorization(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Captures extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: Captures.TYPE }, params, options);
7
- }
8
5
  async update(resource, params, options) {
9
6
  return this.resources.update({ ...resource, type: Captures.TYPE }, params, options);
10
7
  }
@@ -16,7 +16,6 @@ interface CarrierAccount extends Resource {
16
16
  }
17
17
  declare class CarrierAccounts extends ApiResource<CarrierAccount> {
18
18
  static readonly TYPE: CarrierAccountType;
19
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
20
19
  market(carrierAccountId: string | CarrierAccount, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
21
20
  attachments(carrierAccountId: string | CarrierAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
22
21
  isCarrierAccount(resource: any): resource is CarrierAccount;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class CarrierAccounts extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: CarrierAccounts.TYPE }, params, options);
7
- }
8
5
  async market(carrierAccountId, params, options) {
9
6
  const _carrierAccountId = carrierAccountId.id || carrierAccountId;
10
7
  return this.resources.fetch({ type: 'markets' }, `carrier_accounts/${_carrierAccountId}/market`, params, options);
@@ -32,7 +32,6 @@ interface CheckoutComGatewayUpdate extends ResourceUpdate {
32
32
  }
33
33
  declare class CheckoutComGateways extends ApiResource<CheckoutComGateway> {
34
34
  static readonly TYPE: CheckoutComGatewayType;
35
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComGateway>>;
36
35
  create(resource: CheckoutComGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
37
36
  update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
38
37
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class CheckoutComGateways extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: CheckoutComGateways.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: CheckoutComGateways.TYPE }, params, options);
10
7
  }
@@ -1,5 +1,5 @@
1
- import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse } from '../resource';
2
- import type { QueryParamsRetrieve, QueryParamsList } from '../query';
1
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel } from '../resource';
2
+ import type { QueryParamsRetrieve } from '../query';
3
3
  import type { Order, OrderType } from './orders';
4
4
  import type { PaymentGateway } from './payment_gateways';
5
5
  type CheckoutComPaymentType = 'checkout_com_payments';
@@ -46,7 +46,6 @@ interface CheckoutComPaymentUpdate extends ResourceUpdate {
46
46
  }
47
47
  declare class CheckoutComPayments extends ApiResource<CheckoutComPayment> {
48
48
  static readonly TYPE: CheckoutComPaymentType;
49
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
50
49
  create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
51
50
  update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
52
51
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class CheckoutComPayments extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: CheckoutComPayments.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: CheckoutComPayments.TYPE }, params, options);
10
7
  }
@@ -25,7 +25,6 @@ interface CleanupCreate extends ResourceCreate {
25
25
  }
26
26
  declare class Cleanups extends ApiResource<Cleanup> {
27
27
  static readonly TYPE: CleanupType;
28
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Cleanup>>;
29
28
  create(resource: CleanupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Cleanup>;
30
29
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
31
30
  events(cleanupId: string | Cleanup, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class Cleanups extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: Cleanups.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: Cleanups.TYPE }, params, options);
10
7
  }
@@ -47,7 +47,6 @@ interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
47
47
  }
48
48
  declare class CouponCodesPromotionRules extends ApiResource<CouponCodesPromotionRule> {
49
49
  static readonly TYPE: CouponCodesPromotionRuleType;
50
- list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponCodesPromotionRule>>;
51
50
  create(resource: CouponCodesPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
52
51
  update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
53
52
  delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
@@ -2,9 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const resource_1 = require("../resource");
4
4
  class CouponCodesPromotionRules extends resource_1.ApiResource {
5
- async list(params, options) {
6
- return this.resources.list({ type: CouponCodesPromotionRules.TYPE }, params, options);
7
- }
8
5
  async create(resource, params, options) {
9
6
  return this.resources.create({ ...resource, type: CouponCodesPromotionRules.TYPE }, params, options);
10
7
  }