@commercelayer/sdk 2.3.3-beta.1 → 2.3.3-beta.2

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 (446) hide show
  1. package/lib/{api.d.ts → cjs/api.d.ts} +101 -101
  2. package/lib/cjs/api.js +406 -0
  3. package/lib/{client.d.ts → cjs/client.d.ts} +30 -30
  4. package/lib/cjs/client.js +101 -0
  5. package/lib/{commercelayer.d.ts → cjs/commercelayer.d.ts} +118 -118
  6. package/lib/cjs/commercelayer.js +201 -0
  7. package/lib/{common.d.ts → cjs/common.d.ts} +4 -4
  8. package/lib/cjs/common.js +13 -0
  9. package/lib/{config.d.ts → cjs/config.d.ts} +7 -7
  10. package/lib/cjs/config.js +9 -0
  11. package/lib/{error.d.ts → cjs/error.d.ts} +26 -26
  12. package/lib/cjs/error.js +40 -0
  13. package/lib/{index.d.ts → cjs/index.d.ts} +6 -6
  14. package/lib/cjs/index.js +24 -0
  15. package/lib/{interceptor.d.ts → cjs/interceptor.d.ts} +19 -19
  16. package/lib/cjs/interceptor.js +2 -0
  17. package/lib/{jsonapi.d.ts → cjs/jsonapi.d.ts} +7 -7
  18. package/lib/cjs/jsonapi.js +63 -0
  19. package/lib/{model.d.ts → cjs/model.d.ts} +99 -99
  20. package/lib/cjs/model.js +3 -0
  21. package/lib/{query.d.ts → cjs/query.d.ts} +57 -57
  22. package/lib/cjs/query.js +172 -0
  23. package/lib/{resource.d.ts → cjs/resource.d.ts} +69 -69
  24. package/lib/cjs/resource.js +114 -0
  25. package/lib/{resources → cjs/resources}/addresses.d.ts +91 -91
  26. package/lib/cjs/resources/addresses.js +47 -0
  27. package/lib/{resources → cjs/resources}/adjustments.d.ts +39 -39
  28. package/lib/cjs/resources/adjustments.js +47 -0
  29. package/lib/{resources → cjs/resources}/adyen_gateways.d.ts +49 -49
  30. package/lib/cjs/resources/adyen_gateways.js +47 -0
  31. package/lib/{resources → cjs/resources}/adyen_payments.d.ts +47 -47
  32. package/lib/cjs/resources/adyen_payments.js +47 -0
  33. package/lib/{resources → cjs/resources}/application.d.ts +25 -25
  34. package/lib/cjs/resources/application.js +35 -0
  35. package/lib/{resources → cjs/resources}/attachments.d.ts +160 -160
  36. package/lib/cjs/resources/attachments.js +47 -0
  37. package/lib/{resources → cjs/resources}/authorizations.d.ts +58 -58
  38. package/lib/cjs/resources/authorizations.js +41 -0
  39. package/lib/{resources → cjs/resources}/avalara_accounts.d.ts +53 -53
  40. package/lib/cjs/resources/avalara_accounts.js +47 -0
  41. package/lib/{resources → cjs/resources}/billing_info_validation_rules.d.ts +35 -35
  42. package/lib/cjs/resources/billing_info_validation_rules.js +47 -0
  43. package/lib/{resources → cjs/resources}/bing_geocoders.d.ts +37 -37
  44. package/lib/cjs/resources/bing_geocoders.js +47 -0
  45. package/lib/{resources → cjs/resources}/braintree_gateways.d.ts +58 -58
  46. package/lib/cjs/resources/braintree_gateways.js +47 -0
  47. package/lib/{resources → cjs/resources}/braintree_payments.d.ts +49 -49
  48. package/lib/cjs/resources/braintree_payments.js +47 -0
  49. package/lib/{resources → cjs/resources}/bundles.d.ts +69 -69
  50. package/lib/cjs/resources/bundles.js +47 -0
  51. package/lib/{resources → cjs/resources}/captures.d.ts +49 -49
  52. package/lib/cjs/resources/captures.js +41 -0
  53. package/lib/{resources → cjs/resources}/carrier_accounts.d.ts +28 -28
  54. package/lib/cjs/resources/carrier_accounts.js +38 -0
  55. package/lib/{resources → cjs/resources}/checkout_com_gateways.d.ts +47 -47
  56. package/lib/cjs/resources/checkout_com_gateways.js +47 -0
  57. package/lib/{resources → cjs/resources}/checkout_com_payments.d.ts +53 -53
  58. package/lib/cjs/resources/checkout_com_payments.js +47 -0
  59. package/lib/{resources → cjs/resources}/coupon_codes_promotion_rules.d.ts +62 -62
  60. package/lib/cjs/resources/coupon_codes_promotion_rules.js +47 -0
  61. package/lib/{resources → cjs/resources}/coupon_recipients.d.ts +46 -46
  62. package/lib/cjs/resources/coupon_recipients.js +47 -0
  63. package/lib/{resources → cjs/resources}/coupons.d.ts +45 -45
  64. package/lib/cjs/resources/coupons.js +47 -0
  65. package/lib/{resources → cjs/resources}/customer_addresses.d.ts +43 -43
  66. package/lib/cjs/resources/customer_addresses.js +47 -0
  67. package/lib/{resources → cjs/resources}/customer_groups.d.ts +37 -37
  68. package/lib/cjs/resources/customer_groups.js +47 -0
  69. package/lib/{resources → cjs/resources}/customer_password_resets.d.ts +36 -36
  70. package/lib/cjs/resources/customer_password_resets.js +47 -0
  71. package/lib/{resources → cjs/resources}/customer_payment_sources.d.ts +69 -69
  72. package/lib/cjs/resources/customer_payment_sources.js +47 -0
  73. package/lib/{resources → cjs/resources}/customer_subscriptions.d.ts +31 -31
  74. package/lib/cjs/resources/customer_subscriptions.js +47 -0
  75. package/lib/{resources → cjs/resources}/customers.d.ts +56 -56
  76. package/lib/cjs/resources/customers.js +47 -0
  77. package/lib/{resources → cjs/resources}/delivery_lead_times.d.ts +52 -52
  78. package/lib/cjs/resources/delivery_lead_times.js +47 -0
  79. package/lib/{resources → cjs/resources}/event_callbacks.d.ts +27 -27
  80. package/lib/cjs/resources/event_callbacks.js +38 -0
  81. package/lib/{resources → cjs/resources}/external_gateways.d.ts +48 -48
  82. package/lib/cjs/resources/external_gateways.js +47 -0
  83. package/lib/{resources → cjs/resources}/external_payments.d.ts +42 -42
  84. package/lib/cjs/resources/external_payments.js +47 -0
  85. package/lib/{resources → cjs/resources}/external_promotions.d.ts +82 -82
  86. package/lib/cjs/resources/external_promotions.js +47 -0
  87. package/lib/{resources → cjs/resources}/external_tax_calculators.d.ts +45 -45
  88. package/lib/cjs/resources/external_tax_calculators.js +47 -0
  89. package/lib/{resources → cjs/resources}/fixed_amount_promotions.d.ts +84 -84
  90. package/lib/cjs/resources/fixed_amount_promotions.js +47 -0
  91. package/lib/{resources → cjs/resources}/fixed_price_promotions.d.ts +93 -93
  92. package/lib/cjs/resources/fixed_price_promotions.js +47 -0
  93. package/lib/{resources → cjs/resources}/free_gift_promotions.d.ts +91 -91
  94. package/lib/cjs/resources/free_gift_promotions.js +47 -0
  95. package/lib/{resources → cjs/resources}/free_shipping_promotions.d.ts +79 -79
  96. package/lib/cjs/resources/free_shipping_promotions.js +47 -0
  97. package/lib/{resources → cjs/resources}/geocoders.d.ts +25 -25
  98. package/lib/cjs/resources/geocoders.js +35 -0
  99. package/lib/{resources → cjs/resources}/gift_card_recipients.d.ts +46 -46
  100. package/lib/cjs/resources/gift_card_recipients.js +47 -0
  101. package/lib/{resources → cjs/resources}/gift_cards.d.ts +84 -84
  102. package/lib/cjs/resources/gift_cards.js +47 -0
  103. package/lib/{resources → cjs/resources}/google_geocoders.d.ts +37 -37
  104. package/lib/cjs/resources/google_geocoders.js +47 -0
  105. package/lib/{resources → cjs/resources}/imports.d.ts +44 -44
  106. package/lib/cjs/resources/imports.js +44 -0
  107. package/lib/{resources → cjs/resources}/in_stock_subscriptions.d.ts +60 -60
  108. package/lib/cjs/resources/in_stock_subscriptions.js +47 -0
  109. package/lib/{resources → cjs/resources}/inventory_models.d.ts +43 -43
  110. package/lib/cjs/resources/inventory_models.js +47 -0
  111. package/lib/{resources → cjs/resources}/inventory_return_locations.d.ts +45 -45
  112. package/lib/cjs/resources/inventory_return_locations.js +47 -0
  113. package/lib/{resources → cjs/resources}/inventory_stock_locations.d.ts +48 -48
  114. package/lib/cjs/resources/inventory_stock_locations.js +47 -0
  115. package/lib/{resources → cjs/resources}/line_item_options.d.ts +59 -59
  116. package/lib/cjs/resources/line_item_options.js +47 -0
  117. package/lib/{resources → cjs/resources}/line_items.d.ts +125 -125
  118. package/lib/cjs/resources/line_items.js +47 -0
  119. package/lib/{resources → cjs/resources}/manual_gateways.d.ts +36 -36
  120. package/lib/cjs/resources/manual_gateways.js +47 -0
  121. package/lib/{resources → cjs/resources}/manual_tax_calculators.d.ts +49 -49
  122. package/lib/cjs/resources/manual_tax_calculators.js +47 -0
  123. package/lib/{resources → cjs/resources}/markets.d.ts +79 -79
  124. package/lib/cjs/resources/markets.js +47 -0
  125. package/lib/{resources → cjs/resources}/merchants.d.ts +40 -40
  126. package/lib/cjs/resources/merchants.js +47 -0
  127. package/lib/{resources → cjs/resources}/order_amount_promotion_rules.d.ts +60 -60
  128. package/lib/cjs/resources/order_amount_promotion_rules.js +47 -0
  129. package/lib/{resources → cjs/resources}/order_copies.d.ts +46 -46
  130. package/lib/cjs/resources/order_copies.js +44 -0
  131. package/lib/{resources → cjs/resources}/order_subscriptions.d.ts +66 -66
  132. package/lib/cjs/resources/order_subscriptions.js +47 -0
  133. package/lib/{resources → cjs/resources}/order_validation_rules.d.ts +22 -22
  134. package/lib/cjs/resources/order_validation_rules.js +35 -0
  135. package/lib/{resources → cjs/resources}/orders.d.ts +255 -255
  136. package/lib/cjs/resources/orders.js +47 -0
  137. package/lib/{resources → cjs/resources}/organization.d.ts +34 -34
  138. package/lib/cjs/resources/organization.js +35 -0
  139. package/lib/{resources → cjs/resources}/packages.d.ts +57 -57
  140. package/lib/cjs/resources/packages.js +47 -0
  141. package/lib/{resources → cjs/resources}/parcel_line_items.d.ts +51 -51
  142. package/lib/cjs/resources/parcel_line_items.js +47 -0
  143. package/lib/{resources → cjs/resources}/parcels.d.ts +108 -108
  144. package/lib/cjs/resources/parcels.js +47 -0
  145. package/lib/{resources → cjs/resources}/payment_gateways.d.ts +33 -33
  146. package/lib/cjs/resources/payment_gateways.js +47 -0
  147. package/lib/{resources → cjs/resources}/payment_methods.d.ts +54 -54
  148. package/lib/cjs/resources/payment_methods.js +47 -0
  149. package/lib/{resources → cjs/resources}/paypal_gateways.d.ts +41 -41
  150. package/lib/cjs/resources/paypal_gateways.js +47 -0
  151. package/lib/{resources → cjs/resources}/paypal_payments.d.ts +49 -49
  152. package/lib/cjs/resources/paypal_payments.js +47 -0
  153. package/lib/{resources → cjs/resources}/percentage_discount_promotions.d.ts +91 -91
  154. package/lib/cjs/resources/percentage_discount_promotions.js +47 -0
  155. package/lib/{resources → cjs/resources}/price_lists.d.ts +41 -41
  156. package/lib/cjs/resources/price_lists.js +47 -0
  157. package/lib/{resources → cjs/resources}/prices.d.ts +58 -58
  158. package/lib/cjs/resources/prices.js +47 -0
  159. package/lib/{resources → cjs/resources}/promotion_rules.d.ts +27 -27
  160. package/lib/cjs/resources/promotion_rules.js +35 -0
  161. package/lib/{resources → cjs/resources}/promotions.d.ts +38 -38
  162. package/lib/cjs/resources/promotions.js +35 -0
  163. package/lib/{resources → cjs/resources}/refunds.d.ts +36 -36
  164. package/lib/cjs/resources/refunds.js +38 -0
  165. package/lib/{resources → cjs/resources}/return_line_items.d.ts +51 -51
  166. package/lib/cjs/resources/return_line_items.js +47 -0
  167. package/lib/{resources → cjs/resources}/returns.d.ts +69 -69
  168. package/lib/cjs/resources/returns.js +47 -0
  169. package/lib/{resources → cjs/resources}/shipments.d.ts +80 -80
  170. package/lib/cjs/resources/shipments.js +41 -0
  171. package/lib/{resources → cjs/resources}/shipping_categories.d.ts +35 -35
  172. package/lib/cjs/resources/shipping_categories.js +47 -0
  173. package/lib/{resources → cjs/resources}/shipping_methods.d.ts +71 -71
  174. package/lib/cjs/resources/shipping_methods.js +47 -0
  175. package/lib/{resources → cjs/resources}/shipping_zones.d.ts +51 -51
  176. package/lib/cjs/resources/shipping_zones.js +47 -0
  177. package/lib/{resources → cjs/resources}/sku_list_items.d.ts +46 -46
  178. package/lib/cjs/resources/sku_list_items.js +47 -0
  179. package/lib/{resources → cjs/resources}/sku_list_promotion_rules.d.ts +70 -70
  180. package/lib/cjs/resources/sku_list_promotion_rules.js +47 -0
  181. package/lib/{resources → cjs/resources}/sku_lists.d.ts +50 -50
  182. package/lib/cjs/resources/sku_lists.js +47 -0
  183. package/lib/{resources → cjs/resources}/sku_options.d.ts +55 -55
  184. package/lib/cjs/resources/sku_options.js +47 -0
  185. package/lib/{resources → cjs/resources}/skus.d.ts +76 -76
  186. package/lib/cjs/resources/skus.js +47 -0
  187. package/lib/{resources → cjs/resources}/stock_items.d.ts +50 -50
  188. package/lib/cjs/resources/stock_items.js +47 -0
  189. package/lib/{resources → cjs/resources}/stock_line_items.d.ts +30 -30
  190. package/lib/cjs/resources/stock_line_items.js +38 -0
  191. package/lib/{resources → cjs/resources}/stock_locations.d.ts +55 -55
  192. package/lib/cjs/resources/stock_locations.js +47 -0
  193. package/lib/{resources → cjs/resources}/stock_transfers.d.ts +70 -70
  194. package/lib/cjs/resources/stock_transfers.js +47 -0
  195. package/lib/{resources → cjs/resources}/stripe_gateways.d.ts +40 -40
  196. package/lib/cjs/resources/stripe_gateways.js +47 -0
  197. package/lib/{resources → cjs/resources}/stripe_payments.d.ts +44 -44
  198. package/lib/cjs/resources/stripe_payments.js +47 -0
  199. package/lib/{resources → cjs/resources}/tax_calculators.d.ts +27 -27
  200. package/lib/cjs/resources/tax_calculators.js +35 -0
  201. package/lib/{resources → cjs/resources}/tax_categories.d.ts +61 -61
  202. package/lib/cjs/resources/tax_categories.js +47 -0
  203. package/lib/{resources → cjs/resources}/tax_rules.d.ts +72 -72
  204. package/lib/cjs/resources/tax_rules.js +47 -0
  205. package/lib/{resources → cjs/resources}/taxjar_accounts.d.ts +44 -44
  206. package/lib/cjs/resources/taxjar_accounts.js +47 -0
  207. package/lib/{resources → cjs/resources}/transactions.d.ts +33 -33
  208. package/lib/cjs/resources/transactions.js +35 -0
  209. package/lib/{resources → cjs/resources}/voids.d.ts +36 -36
  210. package/lib/cjs/resources/voids.js +38 -0
  211. package/lib/{resources → cjs/resources}/webhooks.d.ts +45 -45
  212. package/lib/cjs/resources/webhooks.js +47 -0
  213. package/lib/{resources → cjs/resources}/wire_transfers.d.ts +35 -35
  214. package/lib/cjs/resources/wire_transfers.js +47 -0
  215. package/lib/{static.d.ts → cjs/static.d.ts} +6 -6
  216. package/lib/cjs/static.js +36 -0
  217. package/lib/{util.d.ts → cjs/util.d.ts} +3 -3
  218. package/lib/cjs/util.js +7 -0
  219. package/lib/esm/api.d.ts +101 -0
  220. package/lib/esm/api.js +304 -0
  221. package/lib/esm/client.d.ts +30 -0
  222. package/lib/esm/client.js +96 -0
  223. package/lib/esm/commercelayer.d.ts +118 -0
  224. package/lib/esm/commercelayer.js +177 -0
  225. package/lib/esm/common.d.ts +4 -0
  226. package/lib/esm/common.js +9 -0
  227. package/lib/esm/config.d.ts +7 -0
  228. package/lib/esm/config.js +7 -0
  229. package/lib/esm/error.d.ts +26 -0
  230. package/lib/esm/error.js +35 -0
  231. package/lib/esm/index.d.ts +6 -0
  232. package/lib/esm/index.js +6 -0
  233. package/lib/esm/interceptor.d.ts +19 -0
  234. package/lib/esm/interceptor.js +1 -0
  235. package/lib/esm/jsonapi.d.ts +7 -0
  236. package/lib/esm/jsonapi.js +59 -0
  237. package/lib/esm/model.d.ts +99 -0
  238. package/lib/esm/model.js +2 -0
  239. package/lib/esm/query.d.ts +57 -0
  240. package/lib/esm/query.js +168 -0
  241. package/lib/esm/resource.d.ts +69 -0
  242. package/lib/esm/resource.js +108 -0
  243. package/lib/esm/resources/addresses.d.ts +91 -0
  244. package/lib/esm/resources/addresses.js +45 -0
  245. package/lib/esm/resources/adjustments.d.ts +39 -0
  246. package/lib/esm/resources/adjustments.js +45 -0
  247. package/lib/esm/resources/adyen_gateways.d.ts +49 -0
  248. package/lib/esm/resources/adyen_gateways.js +45 -0
  249. package/lib/esm/resources/adyen_payments.d.ts +47 -0
  250. package/lib/esm/resources/adyen_payments.js +45 -0
  251. package/lib/esm/resources/application.d.ts +25 -0
  252. package/lib/esm/resources/application.js +33 -0
  253. package/lib/esm/resources/attachments.d.ts +160 -0
  254. package/lib/esm/resources/attachments.js +45 -0
  255. package/lib/esm/resources/authorizations.d.ts +58 -0
  256. package/lib/esm/resources/authorizations.js +39 -0
  257. package/lib/esm/resources/avalara_accounts.d.ts +53 -0
  258. package/lib/esm/resources/avalara_accounts.js +45 -0
  259. package/lib/esm/resources/billing_info_validation_rules.d.ts +35 -0
  260. package/lib/esm/resources/billing_info_validation_rules.js +45 -0
  261. package/lib/esm/resources/bing_geocoders.d.ts +37 -0
  262. package/lib/esm/resources/bing_geocoders.js +45 -0
  263. package/lib/esm/resources/braintree_gateways.d.ts +58 -0
  264. package/lib/esm/resources/braintree_gateways.js +45 -0
  265. package/lib/esm/resources/braintree_payments.d.ts +49 -0
  266. package/lib/esm/resources/braintree_payments.js +45 -0
  267. package/lib/esm/resources/bundles.d.ts +69 -0
  268. package/lib/esm/resources/bundles.js +45 -0
  269. package/lib/esm/resources/captures.d.ts +49 -0
  270. package/lib/esm/resources/captures.js +39 -0
  271. package/lib/esm/resources/carrier_accounts.d.ts +28 -0
  272. package/lib/esm/resources/carrier_accounts.js +36 -0
  273. package/lib/esm/resources/checkout_com_gateways.d.ts +47 -0
  274. package/lib/esm/resources/checkout_com_gateways.js +45 -0
  275. package/lib/esm/resources/checkout_com_payments.d.ts +53 -0
  276. package/lib/esm/resources/checkout_com_payments.js +45 -0
  277. package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +62 -0
  278. package/lib/esm/resources/coupon_codes_promotion_rules.js +45 -0
  279. package/lib/esm/resources/coupon_recipients.d.ts +46 -0
  280. package/lib/esm/resources/coupon_recipients.js +45 -0
  281. package/lib/esm/resources/coupons.d.ts +45 -0
  282. package/lib/esm/resources/coupons.js +45 -0
  283. package/lib/esm/resources/customer_addresses.d.ts +43 -0
  284. package/lib/esm/resources/customer_addresses.js +45 -0
  285. package/lib/esm/resources/customer_groups.d.ts +37 -0
  286. package/lib/esm/resources/customer_groups.js +45 -0
  287. package/lib/esm/resources/customer_password_resets.d.ts +36 -0
  288. package/lib/esm/resources/customer_password_resets.js +45 -0
  289. package/lib/esm/resources/customer_payment_sources.d.ts +69 -0
  290. package/lib/esm/resources/customer_payment_sources.js +45 -0
  291. package/lib/esm/resources/customer_subscriptions.d.ts +31 -0
  292. package/lib/esm/resources/customer_subscriptions.js +45 -0
  293. package/lib/esm/resources/customers.d.ts +56 -0
  294. package/lib/esm/resources/customers.js +45 -0
  295. package/lib/esm/resources/delivery_lead_times.d.ts +52 -0
  296. package/lib/esm/resources/delivery_lead_times.js +45 -0
  297. package/lib/esm/resources/event_callbacks.d.ts +27 -0
  298. package/lib/esm/resources/event_callbacks.js +36 -0
  299. package/lib/esm/resources/external_gateways.d.ts +48 -0
  300. package/lib/esm/resources/external_gateways.js +45 -0
  301. package/lib/esm/resources/external_payments.d.ts +42 -0
  302. package/lib/esm/resources/external_payments.js +45 -0
  303. package/lib/esm/resources/external_promotions.d.ts +82 -0
  304. package/lib/esm/resources/external_promotions.js +45 -0
  305. package/lib/esm/resources/external_tax_calculators.d.ts +45 -0
  306. package/lib/esm/resources/external_tax_calculators.js +45 -0
  307. package/lib/esm/resources/fixed_amount_promotions.d.ts +84 -0
  308. package/lib/esm/resources/fixed_amount_promotions.js +45 -0
  309. package/lib/esm/resources/fixed_price_promotions.d.ts +93 -0
  310. package/lib/esm/resources/fixed_price_promotions.js +45 -0
  311. package/lib/esm/resources/free_gift_promotions.d.ts +91 -0
  312. package/lib/esm/resources/free_gift_promotions.js +45 -0
  313. package/lib/esm/resources/free_shipping_promotions.d.ts +79 -0
  314. package/lib/esm/resources/free_shipping_promotions.js +45 -0
  315. package/lib/esm/resources/geocoders.d.ts +25 -0
  316. package/lib/esm/resources/geocoders.js +33 -0
  317. package/lib/esm/resources/gift_card_recipients.d.ts +46 -0
  318. package/lib/esm/resources/gift_card_recipients.js +45 -0
  319. package/lib/esm/resources/gift_cards.d.ts +84 -0
  320. package/lib/esm/resources/gift_cards.js +45 -0
  321. package/lib/esm/resources/google_geocoders.d.ts +37 -0
  322. package/lib/esm/resources/google_geocoders.js +45 -0
  323. package/lib/esm/resources/imports.d.ts +44 -0
  324. package/lib/esm/resources/imports.js +42 -0
  325. package/lib/esm/resources/in_stock_subscriptions.d.ts +60 -0
  326. package/lib/esm/resources/in_stock_subscriptions.js +45 -0
  327. package/lib/esm/resources/inventory_models.d.ts +43 -0
  328. package/lib/esm/resources/inventory_models.js +45 -0
  329. package/lib/esm/resources/inventory_return_locations.d.ts +45 -0
  330. package/lib/esm/resources/inventory_return_locations.js +45 -0
  331. package/lib/esm/resources/inventory_stock_locations.d.ts +48 -0
  332. package/lib/esm/resources/inventory_stock_locations.js +45 -0
  333. package/lib/esm/resources/line_item_options.d.ts +59 -0
  334. package/lib/esm/resources/line_item_options.js +45 -0
  335. package/lib/esm/resources/line_items.d.ts +125 -0
  336. package/lib/esm/resources/line_items.js +45 -0
  337. package/lib/esm/resources/manual_gateways.d.ts +36 -0
  338. package/lib/esm/resources/manual_gateways.js +45 -0
  339. package/lib/esm/resources/manual_tax_calculators.d.ts +49 -0
  340. package/lib/esm/resources/manual_tax_calculators.js +45 -0
  341. package/lib/esm/resources/markets.d.ts +79 -0
  342. package/lib/esm/resources/markets.js +45 -0
  343. package/lib/esm/resources/merchants.d.ts +40 -0
  344. package/lib/esm/resources/merchants.js +45 -0
  345. package/lib/esm/resources/order_amount_promotion_rules.d.ts +60 -0
  346. package/lib/esm/resources/order_amount_promotion_rules.js +45 -0
  347. package/lib/esm/resources/order_copies.d.ts +46 -0
  348. package/lib/esm/resources/order_copies.js +42 -0
  349. package/lib/esm/resources/order_subscriptions.d.ts +66 -0
  350. package/lib/esm/resources/order_subscriptions.js +45 -0
  351. package/lib/esm/resources/order_validation_rules.d.ts +22 -0
  352. package/lib/esm/resources/order_validation_rules.js +33 -0
  353. package/lib/esm/resources/orders.d.ts +255 -0
  354. package/lib/esm/resources/orders.js +45 -0
  355. package/lib/esm/resources/organization.d.ts +34 -0
  356. package/lib/esm/resources/organization.js +33 -0
  357. package/lib/esm/resources/packages.d.ts +57 -0
  358. package/lib/esm/resources/packages.js +45 -0
  359. package/lib/esm/resources/parcel_line_items.d.ts +51 -0
  360. package/lib/esm/resources/parcel_line_items.js +45 -0
  361. package/lib/esm/resources/parcels.d.ts +108 -0
  362. package/lib/esm/resources/parcels.js +45 -0
  363. package/lib/esm/resources/payment_gateways.d.ts +33 -0
  364. package/lib/esm/resources/payment_gateways.js +45 -0
  365. package/lib/esm/resources/payment_methods.d.ts +54 -0
  366. package/lib/esm/resources/payment_methods.js +45 -0
  367. package/lib/esm/resources/paypal_gateways.d.ts +41 -0
  368. package/lib/esm/resources/paypal_gateways.js +45 -0
  369. package/lib/esm/resources/paypal_payments.d.ts +49 -0
  370. package/lib/esm/resources/paypal_payments.js +45 -0
  371. package/lib/esm/resources/percentage_discount_promotions.d.ts +91 -0
  372. package/lib/esm/resources/percentage_discount_promotions.js +45 -0
  373. package/lib/esm/resources/price_lists.d.ts +41 -0
  374. package/lib/esm/resources/price_lists.js +45 -0
  375. package/lib/esm/resources/prices.d.ts +58 -0
  376. package/lib/esm/resources/prices.js +45 -0
  377. package/lib/esm/resources/promotion_rules.d.ts +27 -0
  378. package/lib/esm/resources/promotion_rules.js +33 -0
  379. package/lib/esm/resources/promotions.d.ts +38 -0
  380. package/lib/esm/resources/promotions.js +33 -0
  381. package/lib/esm/resources/refunds.d.ts +36 -0
  382. package/lib/esm/resources/refunds.js +36 -0
  383. package/lib/esm/resources/return_line_items.d.ts +51 -0
  384. package/lib/esm/resources/return_line_items.js +45 -0
  385. package/lib/esm/resources/returns.d.ts +69 -0
  386. package/lib/esm/resources/returns.js +45 -0
  387. package/lib/esm/resources/shipments.d.ts +80 -0
  388. package/lib/esm/resources/shipments.js +39 -0
  389. package/lib/esm/resources/shipping_categories.d.ts +35 -0
  390. package/lib/esm/resources/shipping_categories.js +45 -0
  391. package/lib/esm/resources/shipping_methods.d.ts +71 -0
  392. package/lib/esm/resources/shipping_methods.js +45 -0
  393. package/lib/esm/resources/shipping_zones.d.ts +51 -0
  394. package/lib/esm/resources/shipping_zones.js +45 -0
  395. package/lib/esm/resources/sku_list_items.d.ts +46 -0
  396. package/lib/esm/resources/sku_list_items.js +45 -0
  397. package/lib/esm/resources/sku_list_promotion_rules.d.ts +70 -0
  398. package/lib/esm/resources/sku_list_promotion_rules.js +45 -0
  399. package/lib/esm/resources/sku_lists.d.ts +50 -0
  400. package/lib/esm/resources/sku_lists.js +45 -0
  401. package/lib/esm/resources/sku_options.d.ts +55 -0
  402. package/lib/esm/resources/sku_options.js +45 -0
  403. package/lib/esm/resources/skus.d.ts +76 -0
  404. package/lib/esm/resources/skus.js +45 -0
  405. package/lib/esm/resources/stock_items.d.ts +50 -0
  406. package/lib/esm/resources/stock_items.js +45 -0
  407. package/lib/esm/resources/stock_line_items.d.ts +30 -0
  408. package/lib/esm/resources/stock_line_items.js +36 -0
  409. package/lib/esm/resources/stock_locations.d.ts +55 -0
  410. package/lib/esm/resources/stock_locations.js +45 -0
  411. package/lib/esm/resources/stock_transfers.d.ts +70 -0
  412. package/lib/esm/resources/stock_transfers.js +45 -0
  413. package/lib/esm/resources/stripe_gateways.d.ts +40 -0
  414. package/lib/esm/resources/stripe_gateways.js +45 -0
  415. package/lib/esm/resources/stripe_payments.d.ts +44 -0
  416. package/lib/esm/resources/stripe_payments.js +45 -0
  417. package/lib/esm/resources/tax_calculators.d.ts +27 -0
  418. package/lib/esm/resources/tax_calculators.js +33 -0
  419. package/lib/esm/resources/tax_categories.d.ts +61 -0
  420. package/lib/esm/resources/tax_categories.js +45 -0
  421. package/lib/esm/resources/tax_rules.d.ts +72 -0
  422. package/lib/esm/resources/tax_rules.js +45 -0
  423. package/lib/esm/resources/taxjar_accounts.d.ts +44 -0
  424. package/lib/esm/resources/taxjar_accounts.js +45 -0
  425. package/lib/esm/resources/transactions.d.ts +33 -0
  426. package/lib/esm/resources/transactions.js +33 -0
  427. package/lib/esm/resources/voids.d.ts +36 -0
  428. package/lib/esm/resources/voids.js +36 -0
  429. package/lib/esm/resources/webhooks.d.ts +45 -0
  430. package/lib/esm/resources/webhooks.js +45 -0
  431. package/lib/esm/resources/wire_transfers.d.ts +35 -0
  432. package/lib/esm/resources/wire_transfers.js +45 -0
  433. package/lib/esm/static.d.ts +6 -0
  434. package/lib/esm/static.js +14 -0
  435. package/lib/esm/util.d.ts +3 -0
  436. package/lib/esm/util.js +4 -0
  437. package/lib/tsconfig.esm.tsbuildinfo +1 -0
  438. package/lib/tsconfig.tsbuildinfo +1 -0
  439. package/package.json +70 -57
  440. package/lib/index.js +0 -8
  441. package/lib/sdk.cjs.development.js +0 -17158
  442. package/lib/sdk.cjs.development.js.map +0 -1
  443. package/lib/sdk.cjs.production.min.js +0 -2
  444. package/lib/sdk.cjs.production.min.js.map +0 -1
  445. package/lib/sdk.esm.js +0 -17152
  446. package/lib/sdk.esm.js.map +0 -1
@@ -1,2 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t,r=(t=require("axios"))&&"object"==typeof t&&"default"in t?t.default:t;function e(t,r,e,n,u,i,s){try{var c=t[i](s),o=c.value}catch(t){return void e(t)}c.done?r(o):Promise.resolve(o).then(n,u)}function n(t){return function(){var r=this,n=arguments;return new Promise((function(u,i){var s=t.apply(r,n);function c(t){e(s,u,i,c,o,"next",t)}function o(t){e(s,u,i,c,o,"throw",t)}c(void 0)}))}}function u(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,r,e){return r&&u(t.prototype,r),e&&u(t,e),t}function s(){return(s=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var e=arguments[r];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}return t}).apply(this,arguments)}function c(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,a(t,r)}function o(t){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,r){return(a=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(t,r)}function p(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function f(t,r,e){return(f=p()?Reflect.construct:function(t,r,e){var n=[null];n.push.apply(n,r);var u=new(Function.bind.apply(t,n));return e&&a(u,e.prototype),u}).apply(null,arguments)}function h(t){var r="function"==typeof Map?new Map:void 0;return(h=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,e)}function e(){return f(t,arguments,o(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),a(e,t)})(t)}var y=0;function d(t){return"__private_"+y+++"_"+t}function v(t,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw new TypeError("attempted to use private field on non-instance");return t}var l,w,E=(function(t){var r=function(t){var r=Object.prototype,e=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},u=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",s=n.toStringTag||"@@toStringTag";function c(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{c({},"")}catch(t){c=function(t,r,e){return t[r]=e}}function o(t,r,e,n){var u=Object.create((r&&r.prototype instanceof f?r:f).prototype),i=new x(n||[]);return u._invoke=function(t,r,e){var n="suspendedStart";return function(u,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===u)throw i;return{value:void 0,done:!0}}for(e.method=u,e.arg=i;;){var s=e.delegate;if(s){var c=T(s,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var o=a(t,r,e);if("normal"===o.type){if(n=e.done?"completed":"suspendedYield",o.arg===p)continue;return{value:o.arg,done:e.done}}"throw"===o.type&&(n="completed",e.method="throw",e.arg=o.arg)}}}(t,e,i),u}function a(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}t.wrap=o;var p={};function f(){}function h(){}function y(){}var d={};c(d,u,(function(){return this}));var v=Object.getPrototypeOf,l=v&&v(v(k([])));l&&l!==r&&e.call(l,u)&&(d=l);var w=y.prototype=f.prototype=Object.create(d);function E(t){["next","throw","return"].forEach((function(r){c(t,r,(function(t){return this._invoke(r,t)}))}))}function P(t,r){var n;this._invoke=function(u,i){function s(){return new r((function(n,s){!function n(u,i,s,c){var o=a(t[u],t,i);if("throw"!==o.type){var p=o.arg,f=p.value;return f&&"object"==typeof f&&e.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,s,c)}),(function(t){n("throw",t,s,c)})):r.resolve(f).then((function(t){p.value=t,s(p)}),(function(t){return n("throw",t,s,c)}))}c(o.arg)}(u,i,n,s)}))}return n=n?n.then(s,s):s()}}function T(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,T(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=a(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var u=n.arg;return u?u.done?(r[t.resultName]=u.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):u:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function Y(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function m(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(Y,this),this.reset(!0)}function k(t){if(t){var r=t[u];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function r(){for(;++n<t.length;)if(e.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=void 0,r.done=!0,r};return i.next=i}}return{next:b}}function b(){return{value:void 0,done:!0}}return h.prototype=y,c(w,"constructor",y),c(y,"constructor",h),h.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},E(P.prototype),c(P.prototype,i,(function(){return this})),t.AsyncIterator=P,t.async=function(r,e,n,u,i){void 0===i&&(i=Promise);var s=new P(o(r,e,n,u),i);return t.isGeneratorFunction(e)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},E(w),c(w,s,"Generator"),c(w,u,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=k,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(m),!t)for(var r in this)"t"===r.charAt(0)&&e.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e,n){return s.type="throw",s.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var u=this.tryEntries.length-1;u>=0;--u){var i=this.tryEntries[u],s=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var c=e.call(i,"catchLoc"),o=e.call(i,"finallyLoc");if(c&&o){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!o)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(t,r){for(var n=this.tryEntries.length-1;n>=0;--n){var u=this.tryEntries[n];if(u.tryLoc<=this.prev&&e.call(u,"finallyLoc")&&this.prev<u.finallyLoc){var i=u;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=r&&r<=i.finallyLoc&&(i=null);var s=i?i.completion:{};return s.type=t,s.arg=r,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(s)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),m(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var u=n.arg;m(e)}return u}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:k(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},t}(t.exports);try{regeneratorRuntime=r}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}(w={exports:{}}),w.exports);!function(t){t.CLIENT="client",t.REQUEST="request",t.RESPONSE="response",t.GENERIC="generic",t.CANCEL="cancel"}(l||(l={}));var P=function(t){function r(r){var e;return(e=t.call(this,r.message)||this).name=e.constructor.name,e.type=r.type||l.GENERIC,e}return c(r,t),r.isSdkError=function(t){return t&&["SdkError","ApiError"].includes(t.name)&&Object.values(l).includes(t.type)},r}(h(Error)),T=function(t){function r(r){var e;return(e=t.call(this,s({},r,{type:l.RESPONSE}))||this).errors=[],e.name=e.constructor.name,e}return c(r,t),r.isApiError=function(t){return P.isSdkError(t)&&"ApiError"===t.name&&t.type===l.RESPONSE},r.prototype.first=function(){return this.errors.length>0?this.errors[0]:void 0},r}(P),Y=function(t,r){return"https://"+t.toLowerCase()+"."+(r||"commercelayer.io")+"/api"},m=function(t){var e=new P({message:t.message,type:l.GENERIC});if(r.isAxiosError(t))if(t.response){var n=new T(e);n.type=l.RESPONSE,n.status=t.response.status,n.code=String(n.status),n.errors=t.response.data.errors,e=n}else t.request?(e.type=l.REQUEST,e.request=t.request):e.type=l.CLIENT;else r.isCancel(t)?e.type=l.CANCEL:e.source=t;throw e},x=d("accessToken"),k=d("client"),b=function(){function t(t){Object.defineProperty(this,x,{writable:!0,value:void 0}),Object.defineProperty(this,k,{writable:!0,value:void 0}),this.baseUrl=Y(t.organization,t.domain),v(this,x)[x]=t.accessToken;var e={timeout:t.timeout||3e3};v(this,k)[k]=r.create(s({baseURL:this.baseUrl,timeout:3e3,headers:{Accept:"application/vnd.api+json","Content-Type":"application/vnd.api+json",Authorization:"Bearer "+v(this,x)[x]}},e)),this.interceptors=v(this,k)[k].interceptors}t.create=function(r){if(null==r||!r.organization)throw new Error("Undefined 'organization' parameter");if(null==r||!r.accessToken)throw new Error("Undefined 'accessToken' parameter");return new t(r)};var e=t.prototype;return e.config=function(t){var r=v(this,k)[k].defaults;t.timeout&&(r.timeout=t.timeout),t.organization&&(this.baseUrl=Y(t.organization,t.domain)),t.accessToken&&(v(this,x)[x]=t.accessToken)},e.request=function(){var t=n(E.mark((function t(r,e,n,u){var i,c,o,a;return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=n?{data:n}:void 0,c=e,o=null!=u&&u.organization?Y(u.organization,u.domain):void 0,a=null!=u&&u.accessToken?{Authorization:"Bearer "+u.accessToken}:void 0,t.abrupt("return",v(this,k)[k].request(s({method:r,baseURL:o,url:c,data:i,headers:a},u)).then((function(t){return t.data})).catch((function(t){return m(t)})));case 5:case"end":return t.stop()}}),t,this)})));return function(r,e,n,u){return t.apply(this,arguments)}}(),t}(),_=function(t){return t&&t.type&&t.id},g=function(t){t.links&&delete t.links;var r=t.data,e=t.included;return Array.isArray(r)?r.map((function(t){return j(t,e)})):j(r,e)},O=function(t,r){return void 0===r&&(r=[]),r.find((function(r){return t.id===r.id&&t.type===r.type}))},j=function t(r,e){var n=s({id:r.id,type:r.type},r.attributes);return r.relationships&&Object.keys(r.relationships).forEach((function(u){var i=r.relationships[u].data;i?n[u]=Array.isArray(i)?i.map((function(r){return t(O(r,e),e)})):t(O(i,e),e):null===i&&(n[u]=null)})),n},S=function(t){var r={},e={};for(var n in t)if(!["type","id"].includes(n)){var u=t[n];u&&(_(u)||Array.isArray(u)&&_(u[0]))?e[n]={data:u}:r[n]=u}var i={type:t.type,attributes:r,relationships:e};return _(t)&&(i.id=t.id),i},L=function(t){var r={};return t?(t.include&&(r.include=t.include.join(",")),t.fields&&Object.entries(t.fields).forEach((function(t){r["fields["+t[0]+"]"]=t[1].join(",")})),function(t){return t.filters||t.pageNumber||t.pageSize||t.sort}(t)&&(t.sort&&(r.sort=Array.isArray(t.sort)?t.sort.join(","):Object.entries(t.sort).map((function(t){return("desc"===t[1]?"-":"")+t[0]})).join(",")),t.pageNumber&&(r["page[number]"]=String(t.pageNumber)),t.pageSize&&(r["page[size]"]=String(t.pageSize)),t.filters&&Object.entries(t.filters).forEach((function(t){r["filter[q]["+t[0]+"]"]=String(t[1])}))),r):r},R=function(t){function r(r,e){var n;return(n=t.call.apply(t,[this].concat(e))||this).meta=r,n}c(r,t);var e=r.prototype;return e.first=function(){return this.length?this[0]:void 0},e.last=function(){return this.length?this[this.length-1]:void 0},e.get=function(t){return this.length&&t>=0?this[t]:void 0},r}(h(Array)),C=d("client"),A=d("config"),z=function(){function t(t){Object.defineProperty(this,C,{writable:!0,value:void 0}),Object.defineProperty(this,A,{writable:!0,value:void 0}),v(this,A)[A]={},v(this,C)[C]=b.create(t),this.config(t)}var r=t.prototype;return r.config=function(t){t&&v(this,C)[C].config(t)},r.singleton=function(){var t=n(E.mark((function t(r,e,n){var u,i;return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=L(e),null!=n&&n.params&&Object.assign(u,null==n?void 0:n.params),t.next=4,v(this,C)[C].request("get",""+r.type,void 0,s({},n,{params:u}));case 4:return i=g(t.sent),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.retrieve=function(){var t=n(E.mark((function t(r,e,n){var u,i;return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=L(e),null!=n&&n.params&&Object.assign(u,null==n?void 0:n.params),t.next=4,v(this,C)[C].request("get",r.type+"/"+r.id,void 0,s({},n,{params:u}));case 4:return i=g(t.sent),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.list=function(){var t=n(E.mark((function t(r,e,n){var u,i,c,o,a,p;return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return c=L(e),null!=n&&n.params&&Object.assign(c,null==n?void 0:n.params),t.next=4,v(this,C)[C].request("get",""+r.type,void 0,s({},n,{params:c}));case 4:return a=g(o=t.sent),p={pageCount:Number(null==(u=o.meta)?void 0:u.page_count),recordCount:Number(null==(i=o.meta)?void 0:i.record_count),currentPage:(null==e?void 0:e.pageNumber)||1,recordsPerPage:(null==e?void 0:e.pageSize)||10},t.abrupt("return",new R(p,a));case 8:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.create=function(){var t=n(E.mark((function t(r,e,n){var u,i,c;return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=L(e),null!=n&&n.params&&Object.assign(u,null==n?void 0:n.params),i=S(r),t.next=5,v(this,C)[C].request("post",r.type,i,s({},n,{params:u}));case 5:return c=g(t.sent),t.abrupt("return",c);case 8:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.update=function(){var t=n(E.mark((function t(r,e,n){var u,i,c;return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return u=L(e),null!=n&&n.params&&Object.assign(u,null==n?void 0:n.params),i=S(r),t.next=5,v(this,C)[C].request("patch",r.type+"/"+r.id,i,s({},n,{params:u}));case 5:return c=g(t.sent),t.abrupt("return",c);case 8:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),r.delete=function(){var t=n(E.mark((function t(r,e){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,v(this,C)[C].request("delete",r.type+"/"+r.id,void 0,e);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),i(t,[{key:"interceptors",get:function(){return v(this,C)[C].interceptors}}]),t}(),G=function(t){this.resources=t},I=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAddress=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);I.TYPE="addresses";var N=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdjustment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);N.TYPE="adjustments";var q=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdyenGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);q.TYPE="adyen_gateways";var F=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAdyenPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);F.TYPE="adyen_payments";var M=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.retrieve=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.singleton({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isApplication=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);M.TYPE="application";var B=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAttachment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);B.TYPE="attachments";var U=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isAuthorization=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);U.TYPE="authorizations";var V=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isAvalaraAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);V.TYPE="avalara_accounts";var D=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBillingInfoValidationRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);D.TYPE="billing_info_validation_rules";var Q=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBingGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Q.TYPE="bing_geocoders";var W=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBraintreeGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);W.TYPE="braintree_gateways";var Z=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBraintreePayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Z.TYPE="braintree_payments";var H=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isBundle=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);H.TYPE="bundles";var J=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isCapture=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);J.TYPE="captures";var K=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isCarrierAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);K.TYPE="carrier_accounts";var X=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCheckoutComGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);X.TYPE="checkout_com_gateways";var $=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCheckoutComPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);$.TYPE="checkout_com_payments";var tt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCouponCodesPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);tt.TYPE="coupon_codes_promotion_rules";var rt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCouponRecipient=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);rt.TYPE="coupon_recipients";var et=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCoupon=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);et.TYPE="coupons";var nt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerAddress=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);nt.TYPE="customer_addresses";var ut=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerGroup=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ut.TYPE="customer_groups";var it=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerPasswordReset=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);it.TYPE="customer_password_resets";var st=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerPaymentSource=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);st.TYPE="customer_payment_sources";var ct=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomerSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ct.TYPE="customer_subscriptions";var ot=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isCustomer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ot.TYPE="customers";var at=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isDeliveryLeadTime=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);at.TYPE="delivery_lead_times";var pt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isEventCallback=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);pt.TYPE="event_callbacks";var ft=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ft.TYPE="external_gateways";var ht=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ht.TYPE="external_payments";var yt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);yt.TYPE="external_promotions";var dt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isExternalTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);dt.TYPE="external_tax_calculators";var vt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFixedAmountPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);vt.TYPE="fixed_amount_promotions";var lt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFixedPricePromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);lt.TYPE="fixed_price_promotions";var wt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFreeGiftPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);wt.TYPE="free_gift_promotions";var Et=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isFreeShippingPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Et.TYPE="free_shipping_promotions";var Pt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Pt.TYPE="geocoders";var Tt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGiftCardRecipient=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Tt.TYPE="gift_card_recipients";var Yt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGiftCard=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Yt.TYPE="gift_cards";var mt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isGoogleGeocoder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);mt.TYPE="google_geocoders";var xt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isImport=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);xt.TYPE="imports";var kt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInStockSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);kt.TYPE="in_stock_subscriptions";var bt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryModel=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);bt.TYPE="inventory_models";var _t=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryReturnLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);_t.TYPE="inventory_return_locations";var gt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isInventoryStockLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);gt.TYPE="inventory_stock_locations";var Ot=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isLineItemOption=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Ot.TYPE="line_item_options";var jt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);jt.TYPE="line_items";var St=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isManualGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);St.TYPE="manual_gateways";var Lt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isManualTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Lt.TYPE="manual_tax_calculators";var Rt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isMarket=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Rt.TYPE="markets";var Ct=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isMerchant=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Ct.TYPE="merchants";var At=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderAmountPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);At.TYPE="order_amount_promotion_rules";var zt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderCopy=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);zt.TYPE="order_copies";var Gt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderSubscription=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Gt.TYPE="order_subscriptions";var It=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrderValidationRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);It.TYPE="order_validation_rules";var Nt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrder=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Nt.TYPE="orders";var qt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.retrieve=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.singleton({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isOrganization=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);qt.TYPE="organization";var Ft=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPackage=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Ft.TYPE="packages";var Mt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isParcelLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Mt.TYPE="parcel_line_items";var Bt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isParcel=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Bt.TYPE="parcels";var Ut=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaymentGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Ut.TYPE="payment_gateways";var Vt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaymentMethod=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Vt.TYPE="payment_methods";var Dt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaypalGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Dt.TYPE="paypal_gateways";var Qt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPaypalPayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Qt.TYPE="paypal_payments";var Wt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPercentageDiscountPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Wt.TYPE="percentage_discount_promotions";var Zt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPriceList=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Zt.TYPE="price_lists";var Ht=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPrice=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Ht.TYPE="prices";var Jt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Jt.TYPE="promotion_rules";var Kt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isPromotion=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Kt.TYPE="promotions";var Xt=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isRefund=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Xt.TYPE="refunds";var $t=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isReturnLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);$t.TYPE="return_line_items";var tr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isReturn=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);tr.TYPE="returns";var rr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isShipment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);rr.TYPE="shipments";var er=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingCategory=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);er.TYPE="shipping_categories";var nr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingMethod=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);nr.TYPE="shipping_methods";var ur=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isShippingZone=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ur.TYPE="shipping_zones";var ir=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuListItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ir.TYPE="sku_list_items";var sr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuListPromotionRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);sr.TYPE="sku_list_promotion_rules";var cr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuList=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);cr.TYPE="sku_lists";var or=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSkuOption=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);or.TYPE="sku_options";var ar=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isSku=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);ar.TYPE="skus";var pr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);pr.TYPE="stock_items";var fr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isStockLineItem=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);fr.TYPE="stock_line_items";var hr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockLocation=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);hr.TYPE="stock_locations";var yr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStockTransfer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);yr.TYPE="stock_transfers";var dr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStripeGateway=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);dr.TYPE="stripe_gateways";var vr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isStripePayment=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);vr.TYPE="stripe_payments";var lr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxCalculator=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);lr.TYPE="tax_calculators";var wr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxCategory=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);wr.TYPE="tax_categories";var Er=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxRule=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Er.TYPE="tax_rules";var Pr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTaxjarAccount=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Pr.TYPE="taxjar_accounts";var Tr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isTransaction=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Tr.TYPE="transactions";var Yr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.isVoid=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);Yr.TYPE="voids";var mr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isWebhook=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);mr.TYPE="webhooks";var xr=function(t){function r(){return t.apply(this,arguments)||this}c(r,t);var e=r.prototype;return e.list=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.list({type:r.TYPE},e,n));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.create=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.create(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.retrieve=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.retrieve({type:r.TYPE,id:e},n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.update=function(){var t=n(E.mark((function t(e,n,u){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.resources.update(s({},e,{type:r.TYPE}),n,u));case 1:case"end":return t.stop()}}),t,this)})));return function(r,e,n){return t.apply(this,arguments)}}(),e.delete=function(){var t=n(E.mark((function t(e,n){return E.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resources.delete({type:r.TYPE,id:e},n);case 2:case"end":return t.stop()}}),t,this)})));return function(r,e){return t.apply(this,arguments)}}(),e.isWireTransfer=function(t){return t.type&&t.type===r.TYPE},e.relationship=function(t){return"string"==typeof t?{id:t,type:r.TYPE}:{id:t.id,type:r.TYPE}},e.type=function(){return r.TYPE},r}(G);xr.TYPE="wire_transfers";var kr=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","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","event_callbacks","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","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","prices","promotion_rules","promotions","refunds","return_line_items","returns","shipments","shipping_categories","shipping_methods","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"],br={resources:function(){return kr},isSdkError:function(t){return P.isSdkError(t)},isApiError:function(t){return T.isApiError(t)}},_r=d("adapter"),gr=d("organization"),Or=function(){function t(t){Object.defineProperty(this,_r,{writable:!0,value:void 0}),Object.defineProperty(this,gr,{writable:!0,value:void 0}),v(this,_r)[_r]=new z(t),v(this,gr)[gr]=t.organization,this.addresses=new I(v(this,_r)[_r]),this.adjustments=new N(v(this,_r)[_r]),this.adyen_gateways=new q(v(this,_r)[_r]),this.adyen_payments=new F(v(this,_r)[_r]),this.application=new M(v(this,_r)[_r]),this.attachments=new B(v(this,_r)[_r]),this.authorizations=new U(v(this,_r)[_r]),this.avalara_accounts=new V(v(this,_r)[_r]),this.billing_info_validation_rules=new D(v(this,_r)[_r]),this.bing_geocoders=new Q(v(this,_r)[_r]),this.braintree_gateways=new W(v(this,_r)[_r]),this.braintree_payments=new Z(v(this,_r)[_r]),this.bundles=new H(v(this,_r)[_r]),this.captures=new J(v(this,_r)[_r]),this.carrier_accounts=new K(v(this,_r)[_r]),this.checkout_com_gateways=new X(v(this,_r)[_r]),this.checkout_com_payments=new $(v(this,_r)[_r]),this.coupon_codes_promotion_rules=new tt(v(this,_r)[_r]),this.coupon_recipients=new rt(v(this,_r)[_r]),this.coupons=new et(v(this,_r)[_r]),this.customer_addresses=new nt(v(this,_r)[_r]),this.customer_groups=new ut(v(this,_r)[_r]),this.customer_password_resets=new it(v(this,_r)[_r]),this.customer_payment_sources=new st(v(this,_r)[_r]),this.customer_subscriptions=new ct(v(this,_r)[_r]),this.customers=new ot(v(this,_r)[_r]),this.delivery_lead_times=new at(v(this,_r)[_r]),this.event_callbacks=new pt(v(this,_r)[_r]),this.external_gateways=new ft(v(this,_r)[_r]),this.external_payments=new ht(v(this,_r)[_r]),this.external_promotions=new yt(v(this,_r)[_r]),this.external_tax_calculators=new dt(v(this,_r)[_r]),this.fixed_amount_promotions=new vt(v(this,_r)[_r]),this.fixed_price_promotions=new lt(v(this,_r)[_r]),this.free_gift_promotions=new wt(v(this,_r)[_r]),this.free_shipping_promotions=new Et(v(this,_r)[_r]),this.geocoders=new Pt(v(this,_r)[_r]),this.gift_card_recipients=new Tt(v(this,_r)[_r]),this.gift_cards=new Yt(v(this,_r)[_r]),this.google_geocoders=new mt(v(this,_r)[_r]),this.imports=new xt(v(this,_r)[_r]),this.in_stock_subscriptions=new kt(v(this,_r)[_r]),this.inventory_models=new bt(v(this,_r)[_r]),this.inventory_return_locations=new _t(v(this,_r)[_r]),this.inventory_stock_locations=new gt(v(this,_r)[_r]),this.line_item_options=new Ot(v(this,_r)[_r]),this.line_items=new jt(v(this,_r)[_r]),this.manual_gateways=new St(v(this,_r)[_r]),this.manual_tax_calculators=new Lt(v(this,_r)[_r]),this.markets=new Rt(v(this,_r)[_r]),this.merchants=new Ct(v(this,_r)[_r]),this.order_amount_promotion_rules=new At(v(this,_r)[_r]),this.order_copies=new zt(v(this,_r)[_r]),this.order_subscriptions=new Gt(v(this,_r)[_r]),this.order_validation_rules=new It(v(this,_r)[_r]),this.orders=new Nt(v(this,_r)[_r]),this.organization=new qt(v(this,_r)[_r]),this.packages=new Ft(v(this,_r)[_r]),this.parcel_line_items=new Mt(v(this,_r)[_r]),this.parcels=new Bt(v(this,_r)[_r]),this.payment_gateways=new Ut(v(this,_r)[_r]),this.payment_methods=new Vt(v(this,_r)[_r]),this.paypal_gateways=new Dt(v(this,_r)[_r]),this.paypal_payments=new Qt(v(this,_r)[_r]),this.percentage_discount_promotions=new Wt(v(this,_r)[_r]),this.price_lists=new Zt(v(this,_r)[_r]),this.prices=new Ht(v(this,_r)[_r]),this.promotion_rules=new Jt(v(this,_r)[_r]),this.promotions=new Kt(v(this,_r)[_r]),this.refunds=new Xt(v(this,_r)[_r]),this.return_line_items=new $t(v(this,_r)[_r]),this.returns=new tr(v(this,_r)[_r]),this.shipments=new rr(v(this,_r)[_r]),this.shipping_categories=new er(v(this,_r)[_r]),this.shipping_methods=new nr(v(this,_r)[_r]),this.shipping_zones=new ur(v(this,_r)[_r]),this.sku_list_items=new ir(v(this,_r)[_r]),this.sku_list_promotion_rules=new sr(v(this,_r)[_r]),this.sku_lists=new cr(v(this,_r)[_r]),this.sku_options=new or(v(this,_r)[_r]),this.skus=new ar(v(this,_r)[_r]),this.stock_items=new pr(v(this,_r)[_r]),this.stock_line_items=new fr(v(this,_r)[_r]),this.stock_locations=new hr(v(this,_r)[_r]),this.stock_transfers=new yr(v(this,_r)[_r]),this.stripe_gateways=new dr(v(this,_r)[_r]),this.stripe_payments=new vr(v(this,_r)[_r]),this.tax_calculators=new lr(v(this,_r)[_r]),this.tax_categories=new wr(v(this,_r)[_r]),this.tax_rules=new Er(v(this,_r)[_r]),this.taxjar_accounts=new Pr(v(this,_r)[_r]),this.transactions=new Tr(v(this,_r)[_r]),this.voids=new Yr(v(this,_r)[_r]),this.webhooks=new mr(v(this,_r)[_r]),this.wire_transfers=new xr(v(this,_r)[_r])}var r=t.prototype;return r.config=function(t){t&&(t.organization&&(v(this,gr)[gr]=t.organization),v(this,_r)[_r].config(t))},r.resources=function(){return br.resources()},r.isApiError=function(t){return br.isApiError(t)},r.addRequestInterceptor=function(t,r){return v(this,_r)[_r].interceptors.request.use(t,r)},r.addResponseInterceptor=function(t,r){return v(this,_r)[_r].interceptors.response.use(t,r)},r.removeInterceptor=function(t,r){return v(this,_r)[_r].interceptors[t].eject(r)},r.addRawResponseReader=function(){var t={id:void 0,rawResponse:void 0},r=this.addResponseInterceptor((function(r){return t.rawResponse=null==r?void 0:r.data,r}));return t.id=r,t},r.removeRawResponseReader=function(t){var r="number"==typeof t?t:t.id;if(r)return this.removeInterceptor("response",r)},i(t,[{key:"currentOrganization",get:function(){return v(this,gr)[gr]}}]),t}();exports.CommerceLayerStatic=br,exports.default=function(t){return new Or(t)};
2
- //# sourceMappingURL=sdk.cjs.production.min.js.map