@commercelayer/sdk 2.0.4 → 2.1.0-alpha.1

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 (200) hide show
  1. package/README.md +1 -1
  2. package/lib/api.d.ts +10 -3
  3. package/lib/client.d.ts +2 -0
  4. package/lib/commercelayer.d.ts +9 -1
  5. package/lib/index.d.ts +4 -2
  6. package/lib/interceptor.d.ts +10 -0
  7. package/lib/model.d.ts +94 -0
  8. package/lib/resource.d.ts +6 -3
  9. package/lib/resources/addresses.d.ts +1 -2
  10. package/lib/resources/adjustments.d.ts +1 -2
  11. package/lib/resources/adyen_gateways.d.ts +1 -2
  12. package/lib/resources/adyen_payments.d.ts +1 -2
  13. package/lib/resources/application.d.ts +1 -2
  14. package/lib/resources/attachments.d.ts +1 -2
  15. package/lib/resources/authorizations.d.ts +1 -2
  16. package/lib/resources/avalara_accounts.d.ts +1 -2
  17. package/lib/resources/billing_info_validation_rules.d.ts +1 -2
  18. package/lib/resources/bing_geocoders.d.ts +1 -2
  19. package/lib/resources/braintree_gateways.d.ts +1 -2
  20. package/lib/resources/braintree_payments.d.ts +1 -2
  21. package/lib/resources/bundles.d.ts +1 -2
  22. package/lib/resources/captures.d.ts +1 -2
  23. package/lib/resources/carrier_accounts.d.ts +1 -2
  24. package/lib/resources/checkout_com_gateways.d.ts +1 -2
  25. package/lib/resources/checkout_com_payments.d.ts +1 -2
  26. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -2
  27. package/lib/resources/coupons.d.ts +1 -2
  28. package/lib/resources/customer_addresses.d.ts +1 -2
  29. package/lib/resources/customer_groups.d.ts +1 -2
  30. package/lib/resources/customer_password_resets.d.ts +1 -2
  31. package/lib/resources/customer_payment_sources.d.ts +1 -2
  32. package/lib/resources/customer_subscriptions.d.ts +1 -2
  33. package/lib/resources/customers.d.ts +3 -2
  34. package/lib/resources/delivery_lead_times.d.ts +1 -2
  35. package/lib/resources/external_gateways.d.ts +1 -2
  36. package/lib/resources/external_payments.d.ts +1 -2
  37. package/lib/resources/external_promotions.d.ts +1 -2
  38. package/lib/resources/external_tax_calculators.d.ts +1 -2
  39. package/lib/resources/fixed_amount_promotions.d.ts +1 -2
  40. package/lib/resources/free_shipping_promotions.d.ts +1 -2
  41. package/lib/resources/geocoders.d.ts +1 -2
  42. package/lib/resources/gift_card_recipients.d.ts +1 -2
  43. package/lib/resources/gift_cards.d.ts +1 -2
  44. package/lib/resources/google_geocoders.d.ts +1 -2
  45. package/lib/resources/imports.d.ts +2 -3
  46. package/lib/resources/in_stock_subscriptions.d.ts +1 -2
  47. package/lib/resources/inventory_models.d.ts +1 -2
  48. package/lib/resources/inventory_return_locations.d.ts +1 -2
  49. package/lib/resources/inventory_stock_locations.d.ts +1 -2
  50. package/lib/resources/line_item_options.d.ts +1 -2
  51. package/lib/resources/line_items.d.ts +1 -2
  52. package/lib/resources/manual_gateways.d.ts +1 -2
  53. package/lib/resources/manual_tax_calculators.d.ts +1 -2
  54. package/lib/resources/markets.d.ts +1 -2
  55. package/lib/resources/merchants.d.ts +1 -2
  56. package/lib/resources/order_amount_promotion_rules.d.ts +1 -2
  57. package/lib/resources/order_copies.d.ts +1 -2
  58. package/lib/resources/order_subscriptions.d.ts +3 -2
  59. package/lib/resources/orders.d.ts +2 -2
  60. package/lib/resources/organization.d.ts +1 -2
  61. package/lib/resources/packages.d.ts +1 -2
  62. package/lib/resources/parcel_line_items.d.ts +1 -2
  63. package/lib/resources/parcels.d.ts +1 -2
  64. package/lib/resources/payment_gateways.d.ts +1 -2
  65. package/lib/resources/payment_methods.d.ts +1 -2
  66. package/lib/resources/paypal_gateways.d.ts +1 -2
  67. package/lib/resources/paypal_payments.d.ts +1 -2
  68. package/lib/resources/percentage_discount_promotions.d.ts +1 -2
  69. package/lib/resources/price_lists.d.ts +1 -2
  70. package/lib/resources/prices.d.ts +1 -2
  71. package/lib/resources/promotion_rules.d.ts +1 -2
  72. package/lib/resources/promotions.d.ts +1 -2
  73. package/lib/resources/refunds.d.ts +1 -2
  74. package/lib/resources/return_line_items.d.ts +1 -2
  75. package/lib/resources/returns.d.ts +1 -2
  76. package/lib/resources/shipments.d.ts +1 -2
  77. package/lib/resources/shipping_categories.d.ts +1 -2
  78. package/lib/resources/shipping_methods.d.ts +1 -2
  79. package/lib/resources/shipping_zones.d.ts +1 -2
  80. package/lib/resources/sku_list_items.d.ts +1 -2
  81. package/lib/resources/sku_list_promotion_rules.d.ts +1 -2
  82. package/lib/resources/sku_lists.d.ts +1 -2
  83. package/lib/resources/sku_options.d.ts +1 -2
  84. package/lib/resources/skus.d.ts +1 -2
  85. package/lib/resources/stock_items.d.ts +1 -2
  86. package/lib/resources/stock_line_items.d.ts +1 -2
  87. package/lib/resources/stock_locations.d.ts +1 -2
  88. package/lib/resources/stock_transfers.d.ts +1 -2
  89. package/lib/resources/stripe_gateways.d.ts +1 -2
  90. package/lib/resources/stripe_payments.d.ts +2 -2
  91. package/lib/resources/tax_calculators.d.ts +1 -2
  92. package/lib/resources/tax_categories.d.ts +1 -2
  93. package/lib/resources/tax_rules.d.ts +1 -2
  94. package/lib/resources/taxjar_accounts.d.ts +1 -2
  95. package/lib/resources/transactions.d.ts +1 -2
  96. package/lib/resources/voids.d.ts +1 -2
  97. package/lib/resources/webhooks.d.ts +1 -2
  98. package/lib/resources/wire_transfers.d.ts +1 -2
  99. package/lib/sdk.cjs.development.js +808 -274
  100. package/lib/sdk.cjs.development.js.map +1 -1
  101. package/lib/sdk.cjs.production.min.js +1 -1
  102. package/lib/sdk.cjs.production.min.js.map +1 -1
  103. package/lib/sdk.esm.js +808 -274
  104. package/lib/sdk.esm.js.map +1 -1
  105. package/package.json +7 -4
  106. package/lib/.DS_Store +0 -0
  107. package/lib/api.js +0 -271
  108. package/lib/client.js +0 -132
  109. package/lib/commercelayer.js +0 -163
  110. package/lib/error.js +0 -25
  111. package/lib/jsonapi.js +0 -83
  112. package/lib/poly.d.ts +0 -9
  113. package/lib/poly.js +0 -2
  114. package/lib/query.js +0 -172
  115. package/lib/resource.js +0 -94
  116. package/lib/resources/addresses.js +0 -45
  117. package/lib/resources/adjustments.js +0 -45
  118. package/lib/resources/adyen_gateways.js +0 -45
  119. package/lib/resources/adyen_payments.js +0 -45
  120. package/lib/resources/application.js +0 -33
  121. package/lib/resources/attachments.js +0 -45
  122. package/lib/resources/authorizations.js +0 -45
  123. package/lib/resources/avalara_accounts.js +0 -45
  124. package/lib/resources/billing_info_validation_rules.js +0 -45
  125. package/lib/resources/braintree_gateways.js +0 -45
  126. package/lib/resources/braintree_payments.js +0 -45
  127. package/lib/resources/captures.js +0 -39
  128. package/lib/resources/carrier_accounts.js +0 -36
  129. package/lib/resources/checkout_com_gateways.js +0 -45
  130. package/lib/resources/checkout_com_payments.js +0 -45
  131. package/lib/resources/coupon_codes_promotion_rules.js +0 -45
  132. package/lib/resources/coupons.js +0 -45
  133. package/lib/resources/customer_addresses.js +0 -45
  134. package/lib/resources/customer_groups.js +0 -45
  135. package/lib/resources/customer_password_resets.js +0 -45
  136. package/lib/resources/customer_payment_sources.js +0 -45
  137. package/lib/resources/customer_subscriptions.js +0 -45
  138. package/lib/resources/customers.js +0 -45
  139. package/lib/resources/delivery_lead_times.js +0 -45
  140. package/lib/resources/external_gateways.js +0 -45
  141. package/lib/resources/external_payments.js +0 -45
  142. package/lib/resources/external_promotions.js +0 -45
  143. package/lib/resources/external_tax_calculators.js +0 -45
  144. package/lib/resources/fixed_amount_promotions.js +0 -45
  145. package/lib/resources/free_shipping_promotions.js +0 -45
  146. package/lib/resources/gift_card_recipients.js +0 -45
  147. package/lib/resources/gift_cards.js +0 -45
  148. package/lib/resources/imports.js +0 -42
  149. package/lib/resources/in_stock_subscriptions.js +0 -45
  150. package/lib/resources/inventory_models.js +0 -45
  151. package/lib/resources/inventory_return_locations.js +0 -45
  152. package/lib/resources/inventory_stock_locations.js +0 -45
  153. package/lib/resources/line_item_options.js +0 -45
  154. package/lib/resources/line_items.js +0 -45
  155. package/lib/resources/manual_gateways.js +0 -45
  156. package/lib/resources/manual_tax_calculators.js +0 -45
  157. package/lib/resources/markets.js +0 -45
  158. package/lib/resources/merchants.js +0 -45
  159. package/lib/resources/order_amount_promotion_rules.js +0 -45
  160. package/lib/resources/orders.js +0 -45
  161. package/lib/resources/organization.js +0 -33
  162. package/lib/resources/packages.js +0 -45
  163. package/lib/resources/parcel_line_items.js +0 -45
  164. package/lib/resources/parcels.js +0 -45
  165. package/lib/resources/payment_gateways.js +0 -45
  166. package/lib/resources/payment_methods.js +0 -45
  167. package/lib/resources/paypal_gateways.js +0 -45
  168. package/lib/resources/paypal_payments.js +0 -45
  169. package/lib/resources/percentage_discount_promotions.js +0 -45
  170. package/lib/resources/price_lists.js +0 -45
  171. package/lib/resources/prices.js +0 -45
  172. package/lib/resources/promotion_rules.js +0 -33
  173. package/lib/resources/promotions.js +0 -33
  174. package/lib/resources/refunds.js +0 -36
  175. package/lib/resources/return_line_items.js +0 -45
  176. package/lib/resources/returns.js +0 -45
  177. package/lib/resources/shipments.js +0 -39
  178. package/lib/resources/shipping_categories.js +0 -45
  179. package/lib/resources/shipping_methods.js +0 -45
  180. package/lib/resources/shipping_zones.js +0 -45
  181. package/lib/resources/sku_list_items.js +0 -45
  182. package/lib/resources/sku_list_promotion_rules.js +0 -45
  183. package/lib/resources/sku_lists.js +0 -45
  184. package/lib/resources/sku_options.js +0 -45
  185. package/lib/resources/skus.js +0 -45
  186. package/lib/resources/stock_items.js +0 -45
  187. package/lib/resources/stock_line_items.js +0 -36
  188. package/lib/resources/stock_locations.js +0 -45
  189. package/lib/resources/stock_transfers.js +0 -45
  190. package/lib/resources/stripe_gateways.js +0 -45
  191. package/lib/resources/stripe_payments.js +0 -45
  192. package/lib/resources/tax_calculators.js +0 -33
  193. package/lib/resources/tax_categories.js +0 -45
  194. package/lib/resources/tax_rules.js +0 -45
  195. package/lib/resources/taxjar_accounts.js +0 -45
  196. package/lib/resources/transactions.js +0 -33
  197. package/lib/resources/voids.js +0 -36
  198. package/lib/resources/webhooks.js +0 -45
  199. package/lib/resources/wire_transfers.js +0 -45
  200. package/lib/util.js +0 -7
package/lib/sdk.esm.js CHANGED
@@ -960,7 +960,7 @@ var ApiError = /*#__PURE__*/function (_Error) {
960
960
 
961
961
 
962
962
  ApiError.isApiError = function isApiError(error) {
963
- return error instanceof ApiError && error.type === ErrorType.RESPONSE;
963
+ return error && error.name === 'ApiError' && error.type === ErrorType.RESPONSE;
964
964
  };
965
965
 
966
966
  return ApiError;
@@ -969,22 +969,6 @@ var ApiError = /*#__PURE__*/function (_Error) {
969
969
  var baseURL = function baseURL(organization, domain) {
970
970
  return "https://" + organization.toLowerCase() + "." + (domain ? domain : 'commercelayer.io') + "/api";
971
971
  };
972
- /*
973
- axios.interceptors.request.use(request => {
974
- console.log()
975
- console.log('REQUEST -->')
976
- console.log(request)
977
- return request
978
- })
979
-
980
- axios.interceptors.response.use(response => {
981
- console.log()
982
- console.log('<-- RESPONSE')
983
- console.log(response.data)
984
- return response
985
- })
986
- */
987
-
988
972
 
989
973
  var handleError = function handleError(error) {
990
974
  var apiError = new ApiError({
@@ -1040,15 +1024,7 @@ var ApiClient = /*#__PURE__*/function () {
1040
1024
  'Authorization': 'Bearer ' + _classPrivateFieldLooseBase(this, _accessToken)[_accessToken]
1041
1025
  }
1042
1026
  }, axiosConfig));
1043
- /*
1044
- this.#client.interceptors.request.use(function (config) {
1045
- console.log('>>>>>>>>>> REQUEST INTERCEPTOR')
1046
- return config;
1047
- }, function (error) {
1048
- // Do something with request error
1049
- return Promise.reject(error);
1050
- })
1051
- */
1027
+ this.interceptors = _classPrivateFieldLooseBase(this, _client)[_client].interceptors;
1052
1028
  }
1053
1029
 
1054
1030
  ApiClient.create = function create(options) {
@@ -1171,7 +1147,7 @@ var normalize = function normalize(resource) {
1171
1147
  if (['type', 'id'].includes(field)) continue;
1172
1148
  var value = resource[field];
1173
1149
 
1174
- if (value && isResourceId(value)) {
1150
+ if (value && (isResourceId(value) || Array.isArray(value) && isResourceId(value[0]))) {
1175
1151
  relationships[field] = {
1176
1152
  data: value
1177
1153
  };
@@ -1296,14 +1272,13 @@ var ResourceAdapter = /*#__PURE__*/function () {
1296
1272
 
1297
1273
 
1298
1274
  return;
1299
- }
1275
+ };
1276
+
1300
1277
  /*
1301
1278
  private isRawResponse(options?: ResourcesConfig): boolean {
1302
1279
  return (typeof options?.rawResponse !== 'undefined') ? (options?.rawResponse === true) : (this.#config.rawResponse === true)
1303
1280
  }
1304
1281
  */
1305
- ;
1306
-
1307
1282
  _proto2.singleton =
1308
1283
  /*#__PURE__*/
1309
1284
  function () {
@@ -1314,17 +1289,18 @@ var ResourceAdapter = /*#__PURE__*/function () {
1314
1289
  switch (_context.prev = _context.next) {
1315
1290
  case 0:
1316
1291
  queryParams = generateQueryStringParams(params);
1317
- _context.next = 3;
1292
+ if (options != null && options.params) Object.assign(queryParams, options == null ? void 0 : options.params);
1293
+ _context.next = 4;
1318
1294
  return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('get', "" + resource.type, undefined, _extends({}, options, {
1319
1295
  params: queryParams
1320
1296
  }));
1321
1297
 
1322
- case 3:
1298
+ case 4:
1323
1299
  res = _context.sent;
1324
1300
  r = denormalize(res);
1325
1301
  return _context.abrupt("return", r);
1326
1302
 
1327
- case 6:
1303
+ case 7:
1328
1304
  case "end":
1329
1305
  return _context.stop();
1330
1306
  }
@@ -1347,17 +1323,18 @@ var ResourceAdapter = /*#__PURE__*/function () {
1347
1323
  switch (_context2.prev = _context2.next) {
1348
1324
  case 0:
1349
1325
  queryParams = generateQueryStringParams(params);
1350
- _context2.next = 3;
1326
+ if (options != null && options.params) Object.assign(queryParams, options == null ? void 0 : options.params);
1327
+ _context2.next = 4;
1351
1328
  return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('get', resource.type + "/" + resource.id, undefined, _extends({}, options, {
1352
1329
  params: queryParams
1353
1330
  }));
1354
1331
 
1355
- case 3:
1332
+ case 4:
1356
1333
  res = _context2.sent;
1357
1334
  r = denormalize(res);
1358
1335
  return _context2.abrupt("return", r);
1359
1336
 
1360
- case 6:
1337
+ case 7:
1361
1338
  case "end":
1362
1339
  return _context2.stop();
1363
1340
  }
@@ -1382,12 +1359,13 @@ var ResourceAdapter = /*#__PURE__*/function () {
1382
1359
  switch (_context3.prev = _context3.next) {
1383
1360
  case 0:
1384
1361
  queryParams = generateQueryStringParams(params);
1385
- _context3.next = 3;
1362
+ if (options != null && options.params) Object.assign(queryParams, options == null ? void 0 : options.params);
1363
+ _context3.next = 4;
1386
1364
  return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('get', "" + resource.type, undefined, _extends({}, options, {
1387
1365
  params: queryParams
1388
1366
  }));
1389
1367
 
1390
- case 3:
1368
+ case 4:
1391
1369
  res = _context3.sent;
1392
1370
  r = denormalize(res);
1393
1371
  meta = {
@@ -1398,7 +1376,7 @@ var ResourceAdapter = /*#__PURE__*/function () {
1398
1376
  };
1399
1377
  return _context3.abrupt("return", new ListResponse(meta, r));
1400
1378
 
1401
- case 7:
1379
+ case 8:
1402
1380
  case "end":
1403
1381
  return _context3.stop();
1404
1382
  }
@@ -1481,9 +1459,10 @@ var ResourceAdapter = /*#__PURE__*/function () {
1481
1459
  while (1) {
1482
1460
  switch (_context6.prev = _context6.next) {
1483
1461
  case 0:
1484
- _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('delete', resource.type + "/" + resource.id, undefined, options);
1462
+ _context6.next = 2;
1463
+ return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('delete', resource.type + "/" + resource.id, undefined, options);
1485
1464
 
1486
- case 1:
1465
+ case 2:
1487
1466
  case "end":
1488
1467
  return _context6.stop();
1489
1468
  }
@@ -1498,6 +1477,13 @@ var ResourceAdapter = /*#__PURE__*/function () {
1498
1477
  return _delete;
1499
1478
  }();
1500
1479
 
1480
+ _createClass(ResourceAdapter, [{
1481
+ key: "interceptors",
1482
+ get: function get() {
1483
+ return _classPrivateFieldLooseBase(this, _client$1)[_client$1].interceptors;
1484
+ }
1485
+ }]);
1486
+
1501
1487
  return ResourceAdapter;
1502
1488
  }();
1503
1489
 
@@ -1548,7 +1534,7 @@ var Addresses = /*#__PURE__*/function (_ApiResource) {
1548
1534
  while (1) {
1549
1535
  switch (_context2.prev = _context2.next) {
1550
1536
  case 0:
1551
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
1537
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
1552
1538
  type: Addresses.TYPE
1553
1539
  }), options));
1554
1540
 
@@ -1624,12 +1610,13 @@ var Addresses = /*#__PURE__*/function (_ApiResource) {
1624
1610
  while (1) {
1625
1611
  switch (_context5.prev = _context5.next) {
1626
1612
  case 0:
1627
- this.resources["delete"]({
1613
+ _context5.next = 2;
1614
+ return this.resources["delete"]({
1628
1615
  type: Addresses.TYPE,
1629
1616
  id: id
1630
1617
  }, options);
1631
1618
 
1632
- case 1:
1619
+ case 2:
1633
1620
  case "end":
1634
1621
  return _context5.stop();
1635
1622
  }
@@ -1719,7 +1706,7 @@ var Adjustments = /*#__PURE__*/function (_ApiResource) {
1719
1706
  while (1) {
1720
1707
  switch (_context2.prev = _context2.next) {
1721
1708
  case 0:
1722
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
1709
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
1723
1710
  type: Adjustments.TYPE
1724
1711
  }), options));
1725
1712
 
@@ -1795,12 +1782,13 @@ var Adjustments = /*#__PURE__*/function (_ApiResource) {
1795
1782
  while (1) {
1796
1783
  switch (_context5.prev = _context5.next) {
1797
1784
  case 0:
1798
- this.resources["delete"]({
1785
+ _context5.next = 2;
1786
+ return this.resources["delete"]({
1799
1787
  type: Adjustments.TYPE,
1800
1788
  id: id
1801
1789
  }, options);
1802
1790
 
1803
- case 1:
1791
+ case 2:
1804
1792
  case "end":
1805
1793
  return _context5.stop();
1806
1794
  }
@@ -1890,7 +1878,7 @@ var AdyenGateways = /*#__PURE__*/function (_ApiResource) {
1890
1878
  while (1) {
1891
1879
  switch (_context2.prev = _context2.next) {
1892
1880
  case 0:
1893
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
1881
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
1894
1882
  type: AdyenGateways.TYPE
1895
1883
  }), options));
1896
1884
 
@@ -1966,12 +1954,13 @@ var AdyenGateways = /*#__PURE__*/function (_ApiResource) {
1966
1954
  while (1) {
1967
1955
  switch (_context5.prev = _context5.next) {
1968
1956
  case 0:
1969
- this.resources["delete"]({
1957
+ _context5.next = 2;
1958
+ return this.resources["delete"]({
1970
1959
  type: AdyenGateways.TYPE,
1971
1960
  id: id
1972
1961
  }, options);
1973
1962
 
1974
- case 1:
1963
+ case 2:
1975
1964
  case "end":
1976
1965
  return _context5.stop();
1977
1966
  }
@@ -2061,7 +2050,7 @@ var AdyenPayments = /*#__PURE__*/function (_ApiResource) {
2061
2050
  while (1) {
2062
2051
  switch (_context2.prev = _context2.next) {
2063
2052
  case 0:
2064
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
2053
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
2065
2054
  type: AdyenPayments.TYPE
2066
2055
  }), options));
2067
2056
 
@@ -2137,12 +2126,13 @@ var AdyenPayments = /*#__PURE__*/function (_ApiResource) {
2137
2126
  while (1) {
2138
2127
  switch (_context5.prev = _context5.next) {
2139
2128
  case 0:
2140
- this.resources["delete"]({
2129
+ _context5.next = 2;
2130
+ return this.resources["delete"]({
2141
2131
  type: AdyenPayments.TYPE,
2142
2132
  id: id
2143
2133
  }, options);
2144
2134
 
2145
- case 1:
2135
+ case 2:
2146
2136
  case "end":
2147
2137
  return _context5.stop();
2148
2138
  }
@@ -2301,7 +2291,7 @@ var Attachments = /*#__PURE__*/function (_ApiResource) {
2301
2291
  while (1) {
2302
2292
  switch (_context2.prev = _context2.next) {
2303
2293
  case 0:
2304
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
2294
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
2305
2295
  type: Attachments.TYPE
2306
2296
  }), options));
2307
2297
 
@@ -2377,12 +2367,13 @@ var Attachments = /*#__PURE__*/function (_ApiResource) {
2377
2367
  while (1) {
2378
2368
  switch (_context5.prev = _context5.next) {
2379
2369
  case 0:
2380
- this.resources["delete"]({
2370
+ _context5.next = 2;
2371
+ return this.resources["delete"]({
2381
2372
  type: Attachments.TYPE,
2382
2373
  id: id
2383
2374
  }, options);
2384
2375
 
2385
- case 1:
2376
+ case 2:
2386
2377
  case "end":
2387
2378
  return _context5.stop();
2388
2379
  }
@@ -2592,7 +2583,7 @@ var AvalaraAccounts = /*#__PURE__*/function (_ApiResource) {
2592
2583
  while (1) {
2593
2584
  switch (_context2.prev = _context2.next) {
2594
2585
  case 0:
2595
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
2586
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
2596
2587
  type: AvalaraAccounts.TYPE
2597
2588
  }), options));
2598
2589
 
@@ -2668,12 +2659,13 @@ var AvalaraAccounts = /*#__PURE__*/function (_ApiResource) {
2668
2659
  while (1) {
2669
2660
  switch (_context5.prev = _context5.next) {
2670
2661
  case 0:
2671
- this.resources["delete"]({
2662
+ _context5.next = 2;
2663
+ return this.resources["delete"]({
2672
2664
  type: AvalaraAccounts.TYPE,
2673
2665
  id: id
2674
2666
  }, options);
2675
2667
 
2676
- case 1:
2668
+ case 2:
2677
2669
  case "end":
2678
2670
  return _context5.stop();
2679
2671
  }
@@ -2763,7 +2755,7 @@ var BillingInfoValidationRules = /*#__PURE__*/function (_ApiResource) {
2763
2755
  while (1) {
2764
2756
  switch (_context2.prev = _context2.next) {
2765
2757
  case 0:
2766
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
2758
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
2767
2759
  type: BillingInfoValidationRules.TYPE
2768
2760
  }), options));
2769
2761
 
@@ -2839,12 +2831,13 @@ var BillingInfoValidationRules = /*#__PURE__*/function (_ApiResource) {
2839
2831
  while (1) {
2840
2832
  switch (_context5.prev = _context5.next) {
2841
2833
  case 0:
2842
- this.resources["delete"]({
2834
+ _context5.next = 2;
2835
+ return this.resources["delete"]({
2843
2836
  type: BillingInfoValidationRules.TYPE,
2844
2837
  id: id
2845
2838
  }, options);
2846
2839
 
2847
- case 1:
2840
+ case 2:
2848
2841
  case "end":
2849
2842
  return _context5.stop();
2850
2843
  }
@@ -2934,7 +2927,7 @@ var BingGeocoders = /*#__PURE__*/function (_ApiResource) {
2934
2927
  while (1) {
2935
2928
  switch (_context2.prev = _context2.next) {
2936
2929
  case 0:
2937
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
2930
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
2938
2931
  type: BingGeocoders.TYPE
2939
2932
  }), options));
2940
2933
 
@@ -3010,12 +3003,13 @@ var BingGeocoders = /*#__PURE__*/function (_ApiResource) {
3010
3003
  while (1) {
3011
3004
  switch (_context5.prev = _context5.next) {
3012
3005
  case 0:
3013
- this.resources["delete"]({
3006
+ _context5.next = 2;
3007
+ return this.resources["delete"]({
3014
3008
  type: BingGeocoders.TYPE,
3015
3009
  id: id
3016
3010
  }, options);
3017
3011
 
3018
- case 1:
3012
+ case 2:
3019
3013
  case "end":
3020
3014
  return _context5.stop();
3021
3015
  }
@@ -3105,7 +3099,7 @@ var BraintreeGateways = /*#__PURE__*/function (_ApiResource) {
3105
3099
  while (1) {
3106
3100
  switch (_context2.prev = _context2.next) {
3107
3101
  case 0:
3108
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
3102
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
3109
3103
  type: BraintreeGateways.TYPE
3110
3104
  }), options));
3111
3105
 
@@ -3181,12 +3175,13 @@ var BraintreeGateways = /*#__PURE__*/function (_ApiResource) {
3181
3175
  while (1) {
3182
3176
  switch (_context5.prev = _context5.next) {
3183
3177
  case 0:
3184
- this.resources["delete"]({
3178
+ _context5.next = 2;
3179
+ return this.resources["delete"]({
3185
3180
  type: BraintreeGateways.TYPE,
3186
3181
  id: id
3187
3182
  }, options);
3188
3183
 
3189
- case 1:
3184
+ case 2:
3190
3185
  case "end":
3191
3186
  return _context5.stop();
3192
3187
  }
@@ -3276,7 +3271,7 @@ var BraintreePayments = /*#__PURE__*/function (_ApiResource) {
3276
3271
  while (1) {
3277
3272
  switch (_context2.prev = _context2.next) {
3278
3273
  case 0:
3279
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
3274
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
3280
3275
  type: BraintreePayments.TYPE
3281
3276
  }), options));
3282
3277
 
@@ -3352,12 +3347,13 @@ var BraintreePayments = /*#__PURE__*/function (_ApiResource) {
3352
3347
  while (1) {
3353
3348
  switch (_context5.prev = _context5.next) {
3354
3349
  case 0:
3355
- this.resources["delete"]({
3350
+ _context5.next = 2;
3351
+ return this.resources["delete"]({
3356
3352
  type: BraintreePayments.TYPE,
3357
3353
  id: id
3358
3354
  }, options);
3359
3355
 
3360
- case 1:
3356
+ case 2:
3361
3357
  case "end":
3362
3358
  return _context5.stop();
3363
3359
  }
@@ -3447,7 +3443,7 @@ var Bundles = /*#__PURE__*/function (_ApiResource) {
3447
3443
  while (1) {
3448
3444
  switch (_context2.prev = _context2.next) {
3449
3445
  case 0:
3450
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
3446
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
3451
3447
  type: Bundles.TYPE
3452
3448
  }), options));
3453
3449
 
@@ -3523,12 +3519,13 @@ var Bundles = /*#__PURE__*/function (_ApiResource) {
3523
3519
  while (1) {
3524
3520
  switch (_context5.prev = _context5.next) {
3525
3521
  case 0:
3526
- this.resources["delete"]({
3522
+ _context5.next = 2;
3523
+ return this.resources["delete"]({
3527
3524
  type: Bundles.TYPE,
3528
3525
  id: id
3529
3526
  }, options);
3530
3527
 
3531
- case 1:
3528
+ case 2:
3532
3529
  case "end":
3533
3530
  return _context5.stop();
3534
3531
  }
@@ -3833,7 +3830,7 @@ var CheckoutComGateways = /*#__PURE__*/function (_ApiResource) {
3833
3830
  while (1) {
3834
3831
  switch (_context2.prev = _context2.next) {
3835
3832
  case 0:
3836
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
3833
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
3837
3834
  type: CheckoutComGateways.TYPE
3838
3835
  }), options));
3839
3836
 
@@ -3909,12 +3906,13 @@ var CheckoutComGateways = /*#__PURE__*/function (_ApiResource) {
3909
3906
  while (1) {
3910
3907
  switch (_context5.prev = _context5.next) {
3911
3908
  case 0:
3912
- this.resources["delete"]({
3909
+ _context5.next = 2;
3910
+ return this.resources["delete"]({
3913
3911
  type: CheckoutComGateways.TYPE,
3914
3912
  id: id
3915
3913
  }, options);
3916
3914
 
3917
- case 1:
3915
+ case 2:
3918
3916
  case "end":
3919
3917
  return _context5.stop();
3920
3918
  }
@@ -4004,7 +4002,7 @@ var CheckoutComPayments = /*#__PURE__*/function (_ApiResource) {
4004
4002
  while (1) {
4005
4003
  switch (_context2.prev = _context2.next) {
4006
4004
  case 0:
4007
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
4005
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4008
4006
  type: CheckoutComPayments.TYPE
4009
4007
  }), options));
4010
4008
 
@@ -4080,12 +4078,13 @@ var CheckoutComPayments = /*#__PURE__*/function (_ApiResource) {
4080
4078
  while (1) {
4081
4079
  switch (_context5.prev = _context5.next) {
4082
4080
  case 0:
4083
- this.resources["delete"]({
4081
+ _context5.next = 2;
4082
+ return this.resources["delete"]({
4084
4083
  type: CheckoutComPayments.TYPE,
4085
4084
  id: id
4086
4085
  }, options);
4087
4086
 
4088
- case 1:
4087
+ case 2:
4089
4088
  case "end":
4090
4089
  return _context5.stop();
4091
4090
  }
@@ -4175,7 +4174,7 @@ var CouponCodesPromotionRules = /*#__PURE__*/function (_ApiResource) {
4175
4174
  while (1) {
4176
4175
  switch (_context2.prev = _context2.next) {
4177
4176
  case 0:
4178
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
4177
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4179
4178
  type: CouponCodesPromotionRules.TYPE
4180
4179
  }), options));
4181
4180
 
@@ -4251,12 +4250,13 @@ var CouponCodesPromotionRules = /*#__PURE__*/function (_ApiResource) {
4251
4250
  while (1) {
4252
4251
  switch (_context5.prev = _context5.next) {
4253
4252
  case 0:
4254
- this.resources["delete"]({
4253
+ _context5.next = 2;
4254
+ return this.resources["delete"]({
4255
4255
  type: CouponCodesPromotionRules.TYPE,
4256
4256
  id: id
4257
4257
  }, options);
4258
4258
 
4259
- case 1:
4259
+ case 2:
4260
4260
  case "end":
4261
4261
  return _context5.stop();
4262
4262
  }
@@ -4346,7 +4346,7 @@ var Coupons = /*#__PURE__*/function (_ApiResource) {
4346
4346
  while (1) {
4347
4347
  switch (_context2.prev = _context2.next) {
4348
4348
  case 0:
4349
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
4349
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4350
4350
  type: Coupons.TYPE
4351
4351
  }), options));
4352
4352
 
@@ -4422,12 +4422,13 @@ var Coupons = /*#__PURE__*/function (_ApiResource) {
4422
4422
  while (1) {
4423
4423
  switch (_context5.prev = _context5.next) {
4424
4424
  case 0:
4425
- this.resources["delete"]({
4425
+ _context5.next = 2;
4426
+ return this.resources["delete"]({
4426
4427
  type: Coupons.TYPE,
4427
4428
  id: id
4428
4429
  }, options);
4429
4430
 
4430
- case 1:
4431
+ case 2:
4431
4432
  case "end":
4432
4433
  return _context5.stop();
4433
4434
  }
@@ -4517,7 +4518,7 @@ var CustomerAddresses = /*#__PURE__*/function (_ApiResource) {
4517
4518
  while (1) {
4518
4519
  switch (_context2.prev = _context2.next) {
4519
4520
  case 0:
4520
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
4521
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4521
4522
  type: CustomerAddresses.TYPE
4522
4523
  }), options));
4523
4524
 
@@ -4593,12 +4594,13 @@ var CustomerAddresses = /*#__PURE__*/function (_ApiResource) {
4593
4594
  while (1) {
4594
4595
  switch (_context5.prev = _context5.next) {
4595
4596
  case 0:
4596
- this.resources["delete"]({
4597
+ _context5.next = 2;
4598
+ return this.resources["delete"]({
4597
4599
  type: CustomerAddresses.TYPE,
4598
4600
  id: id
4599
4601
  }, options);
4600
4602
 
4601
- case 1:
4603
+ case 2:
4602
4604
  case "end":
4603
4605
  return _context5.stop();
4604
4606
  }
@@ -4688,7 +4690,7 @@ var CustomerGroups = /*#__PURE__*/function (_ApiResource) {
4688
4690
  while (1) {
4689
4691
  switch (_context2.prev = _context2.next) {
4690
4692
  case 0:
4691
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
4693
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4692
4694
  type: CustomerGroups.TYPE
4693
4695
  }), options));
4694
4696
 
@@ -4764,12 +4766,13 @@ var CustomerGroups = /*#__PURE__*/function (_ApiResource) {
4764
4766
  while (1) {
4765
4767
  switch (_context5.prev = _context5.next) {
4766
4768
  case 0:
4767
- this.resources["delete"]({
4769
+ _context5.next = 2;
4770
+ return this.resources["delete"]({
4768
4771
  type: CustomerGroups.TYPE,
4769
4772
  id: id
4770
4773
  }, options);
4771
4774
 
4772
- case 1:
4775
+ case 2:
4773
4776
  case "end":
4774
4777
  return _context5.stop();
4775
4778
  }
@@ -4859,7 +4862,7 @@ var CustomerPasswordResets = /*#__PURE__*/function (_ApiResource) {
4859
4862
  while (1) {
4860
4863
  switch (_context2.prev = _context2.next) {
4861
4864
  case 0:
4862
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
4865
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4863
4866
  type: CustomerPasswordResets.TYPE
4864
4867
  }), options));
4865
4868
 
@@ -4935,12 +4938,13 @@ var CustomerPasswordResets = /*#__PURE__*/function (_ApiResource) {
4935
4938
  while (1) {
4936
4939
  switch (_context5.prev = _context5.next) {
4937
4940
  case 0:
4938
- this.resources["delete"]({
4941
+ _context5.next = 2;
4942
+ return this.resources["delete"]({
4939
4943
  type: CustomerPasswordResets.TYPE,
4940
4944
  id: id
4941
4945
  }, options);
4942
4946
 
4943
- case 1:
4947
+ case 2:
4944
4948
  case "end":
4945
4949
  return _context5.stop();
4946
4950
  }
@@ -5030,7 +5034,7 @@ var CustomerPaymentSources = /*#__PURE__*/function (_ApiResource) {
5030
5034
  while (1) {
5031
5035
  switch (_context2.prev = _context2.next) {
5032
5036
  case 0:
5033
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
5037
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
5034
5038
  type: CustomerPaymentSources.TYPE
5035
5039
  }), options));
5036
5040
 
@@ -5106,12 +5110,13 @@ var CustomerPaymentSources = /*#__PURE__*/function (_ApiResource) {
5106
5110
  while (1) {
5107
5111
  switch (_context5.prev = _context5.next) {
5108
5112
  case 0:
5109
- this.resources["delete"]({
5113
+ _context5.next = 2;
5114
+ return this.resources["delete"]({
5110
5115
  type: CustomerPaymentSources.TYPE,
5111
5116
  id: id
5112
5117
  }, options);
5113
5118
 
5114
- case 1:
5119
+ case 2:
5115
5120
  case "end":
5116
5121
  return _context5.stop();
5117
5122
  }
@@ -5201,7 +5206,7 @@ var CustomerSubscriptions = /*#__PURE__*/function (_ApiResource) {
5201
5206
  while (1) {
5202
5207
  switch (_context2.prev = _context2.next) {
5203
5208
  case 0:
5204
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
5209
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
5205
5210
  type: CustomerSubscriptions.TYPE
5206
5211
  }), options));
5207
5212
 
@@ -5277,12 +5282,13 @@ var CustomerSubscriptions = /*#__PURE__*/function (_ApiResource) {
5277
5282
  while (1) {
5278
5283
  switch (_context5.prev = _context5.next) {
5279
5284
  case 0:
5280
- this.resources["delete"]({
5285
+ _context5.next = 2;
5286
+ return this.resources["delete"]({
5281
5287
  type: CustomerSubscriptions.TYPE,
5282
5288
  id: id
5283
5289
  }, options);
5284
5290
 
5285
- case 1:
5291
+ case 2:
5286
5292
  case "end":
5287
5293
  return _context5.stop();
5288
5294
  }
@@ -5372,7 +5378,7 @@ var Customers = /*#__PURE__*/function (_ApiResource) {
5372
5378
  while (1) {
5373
5379
  switch (_context2.prev = _context2.next) {
5374
5380
  case 0:
5375
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
5381
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
5376
5382
  type: Customers.TYPE
5377
5383
  }), options));
5378
5384
 
@@ -5448,12 +5454,13 @@ var Customers = /*#__PURE__*/function (_ApiResource) {
5448
5454
  while (1) {
5449
5455
  switch (_context5.prev = _context5.next) {
5450
5456
  case 0:
5451
- this.resources["delete"]({
5457
+ _context5.next = 2;
5458
+ return this.resources["delete"]({
5452
5459
  type: Customers.TYPE,
5453
5460
  id: id
5454
5461
  }, options);
5455
5462
 
5456
- case 1:
5463
+ case 2:
5457
5464
  case "end":
5458
5465
  return _context5.stop();
5459
5466
  }
@@ -5543,7 +5550,7 @@ var DeliveryLeadTimes = /*#__PURE__*/function (_ApiResource) {
5543
5550
  while (1) {
5544
5551
  switch (_context2.prev = _context2.next) {
5545
5552
  case 0:
5546
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
5553
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
5547
5554
  type: DeliveryLeadTimes.TYPE
5548
5555
  }), options));
5549
5556
 
@@ -5619,12 +5626,13 @@ var DeliveryLeadTimes = /*#__PURE__*/function (_ApiResource) {
5619
5626
  while (1) {
5620
5627
  switch (_context5.prev = _context5.next) {
5621
5628
  case 0:
5622
- this.resources["delete"]({
5629
+ _context5.next = 2;
5630
+ return this.resources["delete"]({
5623
5631
  type: DeliveryLeadTimes.TYPE,
5624
5632
  id: id
5625
5633
  }, options);
5626
5634
 
5627
- case 1:
5635
+ case 2:
5628
5636
  case "end":
5629
5637
  return _context5.stop();
5630
5638
  }
@@ -5714,7 +5722,7 @@ var ExternalGateways = /*#__PURE__*/function (_ApiResource) {
5714
5722
  while (1) {
5715
5723
  switch (_context2.prev = _context2.next) {
5716
5724
  case 0:
5717
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
5725
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
5718
5726
  type: ExternalGateways.TYPE
5719
5727
  }), options));
5720
5728
 
@@ -5790,12 +5798,13 @@ var ExternalGateways = /*#__PURE__*/function (_ApiResource) {
5790
5798
  while (1) {
5791
5799
  switch (_context5.prev = _context5.next) {
5792
5800
  case 0:
5793
- this.resources["delete"]({
5801
+ _context5.next = 2;
5802
+ return this.resources["delete"]({
5794
5803
  type: ExternalGateways.TYPE,
5795
5804
  id: id
5796
5805
  }, options);
5797
5806
 
5798
- case 1:
5807
+ case 2:
5799
5808
  case "end":
5800
5809
  return _context5.stop();
5801
5810
  }
@@ -5885,7 +5894,7 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
5885
5894
  while (1) {
5886
5895
  switch (_context2.prev = _context2.next) {
5887
5896
  case 0:
5888
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
5897
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
5889
5898
  type: ExternalPayments.TYPE
5890
5899
  }), options));
5891
5900
 
@@ -5961,12 +5970,13 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
5961
5970
  while (1) {
5962
5971
  switch (_context5.prev = _context5.next) {
5963
5972
  case 0:
5964
- this.resources["delete"]({
5973
+ _context5.next = 2;
5974
+ return this.resources["delete"]({
5965
5975
  type: ExternalPayments.TYPE,
5966
5976
  id: id
5967
5977
  }, options);
5968
5978
 
5969
- case 1:
5979
+ case 2:
5970
5980
  case "end":
5971
5981
  return _context5.stop();
5972
5982
  }
@@ -6056,7 +6066,7 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6056
6066
  while (1) {
6057
6067
  switch (_context2.prev = _context2.next) {
6058
6068
  case 0:
6059
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
6069
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6060
6070
  type: ExternalPromotions.TYPE
6061
6071
  }), options));
6062
6072
 
@@ -6132,12 +6142,13 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6132
6142
  while (1) {
6133
6143
  switch (_context5.prev = _context5.next) {
6134
6144
  case 0:
6135
- this.resources["delete"]({
6145
+ _context5.next = 2;
6146
+ return this.resources["delete"]({
6136
6147
  type: ExternalPromotions.TYPE,
6137
6148
  id: id
6138
6149
  }, options);
6139
6150
 
6140
- case 1:
6151
+ case 2:
6141
6152
  case "end":
6142
6153
  return _context5.stop();
6143
6154
  }
@@ -6227,7 +6238,7 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6227
6238
  while (1) {
6228
6239
  switch (_context2.prev = _context2.next) {
6229
6240
  case 0:
6230
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
6241
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6231
6242
  type: ExternalTaxCalculators.TYPE
6232
6243
  }), options));
6233
6244
 
@@ -6303,12 +6314,13 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6303
6314
  while (1) {
6304
6315
  switch (_context5.prev = _context5.next) {
6305
6316
  case 0:
6306
- this.resources["delete"]({
6317
+ _context5.next = 2;
6318
+ return this.resources["delete"]({
6307
6319
  type: ExternalTaxCalculators.TYPE,
6308
6320
  id: id
6309
6321
  }, options);
6310
6322
 
6311
- case 1:
6323
+ case 2:
6312
6324
  case "end":
6313
6325
  return _context5.stop();
6314
6326
  }
@@ -6398,7 +6410,7 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6398
6410
  while (1) {
6399
6411
  switch (_context2.prev = _context2.next) {
6400
6412
  case 0:
6401
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
6413
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6402
6414
  type: FixedAmountPromotions.TYPE
6403
6415
  }), options));
6404
6416
 
@@ -6474,12 +6486,13 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6474
6486
  while (1) {
6475
6487
  switch (_context5.prev = _context5.next) {
6476
6488
  case 0:
6477
- this.resources["delete"]({
6489
+ _context5.next = 2;
6490
+ return this.resources["delete"]({
6478
6491
  type: FixedAmountPromotions.TYPE,
6479
6492
  id: id
6480
6493
  }, options);
6481
6494
 
6482
- case 1:
6495
+ case 2:
6483
6496
  case "end":
6484
6497
  return _context5.stop();
6485
6498
  }
@@ -6569,7 +6582,7 @@ var FreeShippingPromotions = /*#__PURE__*/function (_ApiResource) {
6569
6582
  while (1) {
6570
6583
  switch (_context2.prev = _context2.next) {
6571
6584
  case 0:
6572
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
6585
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6573
6586
  type: FreeShippingPromotions.TYPE
6574
6587
  }), options));
6575
6588
 
@@ -6645,12 +6658,13 @@ var FreeShippingPromotions = /*#__PURE__*/function (_ApiResource) {
6645
6658
  while (1) {
6646
6659
  switch (_context5.prev = _context5.next) {
6647
6660
  case 0:
6648
- this.resources["delete"]({
6661
+ _context5.next = 2;
6662
+ return this.resources["delete"]({
6649
6663
  type: FreeShippingPromotions.TYPE,
6650
6664
  id: id
6651
6665
  }, options);
6652
6666
 
6653
- case 1:
6667
+ case 2:
6654
6668
  case "end":
6655
6669
  return _context5.stop();
6656
6670
  }
@@ -6809,7 +6823,7 @@ var GiftCardRecipients = /*#__PURE__*/function (_ApiResource) {
6809
6823
  while (1) {
6810
6824
  switch (_context2.prev = _context2.next) {
6811
6825
  case 0:
6812
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
6826
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6813
6827
  type: GiftCardRecipients.TYPE
6814
6828
  }), options));
6815
6829
 
@@ -6885,12 +6899,13 @@ var GiftCardRecipients = /*#__PURE__*/function (_ApiResource) {
6885
6899
  while (1) {
6886
6900
  switch (_context5.prev = _context5.next) {
6887
6901
  case 0:
6888
- this.resources["delete"]({
6902
+ _context5.next = 2;
6903
+ return this.resources["delete"]({
6889
6904
  type: GiftCardRecipients.TYPE,
6890
6905
  id: id
6891
6906
  }, options);
6892
6907
 
6893
- case 1:
6908
+ case 2:
6894
6909
  case "end":
6895
6910
  return _context5.stop();
6896
6911
  }
@@ -6980,7 +6995,7 @@ var GiftCards = /*#__PURE__*/function (_ApiResource) {
6980
6995
  while (1) {
6981
6996
  switch (_context2.prev = _context2.next) {
6982
6997
  case 0:
6983
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
6998
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6984
6999
  type: GiftCards.TYPE
6985
7000
  }), options));
6986
7001
 
@@ -7056,12 +7071,13 @@ var GiftCards = /*#__PURE__*/function (_ApiResource) {
7056
7071
  while (1) {
7057
7072
  switch (_context5.prev = _context5.next) {
7058
7073
  case 0:
7059
- this.resources["delete"]({
7074
+ _context5.next = 2;
7075
+ return this.resources["delete"]({
7060
7076
  type: GiftCards.TYPE,
7061
7077
  id: id
7062
7078
  }, options);
7063
7079
 
7064
- case 1:
7080
+ case 2:
7065
7081
  case "end":
7066
7082
  return _context5.stop();
7067
7083
  }
@@ -7151,7 +7167,7 @@ var GoogleGeocoders = /*#__PURE__*/function (_ApiResource) {
7151
7167
  while (1) {
7152
7168
  switch (_context2.prev = _context2.next) {
7153
7169
  case 0:
7154
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
7170
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
7155
7171
  type: GoogleGeocoders.TYPE
7156
7172
  }), options));
7157
7173
 
@@ -7227,12 +7243,13 @@ var GoogleGeocoders = /*#__PURE__*/function (_ApiResource) {
7227
7243
  while (1) {
7228
7244
  switch (_context5.prev = _context5.next) {
7229
7245
  case 0:
7230
- this.resources["delete"]({
7246
+ _context5.next = 2;
7247
+ return this.resources["delete"]({
7231
7248
  type: GoogleGeocoders.TYPE,
7232
7249
  id: id
7233
7250
  }, options);
7234
7251
 
7235
- case 1:
7252
+ case 2:
7236
7253
  case "end":
7237
7254
  return _context5.stop();
7238
7255
  }
@@ -7322,7 +7339,7 @@ var Imports = /*#__PURE__*/function (_ApiResource) {
7322
7339
  while (1) {
7323
7340
  switch (_context2.prev = _context2.next) {
7324
7341
  case 0:
7325
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
7342
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
7326
7343
  type: Imports.TYPE
7327
7344
  }), options));
7328
7345
 
@@ -7373,12 +7390,13 @@ var Imports = /*#__PURE__*/function (_ApiResource) {
7373
7390
  while (1) {
7374
7391
  switch (_context4.prev = _context4.next) {
7375
7392
  case 0:
7376
- this.resources["delete"]({
7393
+ _context4.next = 2;
7394
+ return this.resources["delete"]({
7377
7395
  type: Imports.TYPE,
7378
7396
  id: id
7379
7397
  }, options);
7380
7398
 
7381
- case 1:
7399
+ case 2:
7382
7400
  case "end":
7383
7401
  return _context4.stop();
7384
7402
  }
@@ -7468,7 +7486,7 @@ var InStockSubscriptions = /*#__PURE__*/function (_ApiResource) {
7468
7486
  while (1) {
7469
7487
  switch (_context2.prev = _context2.next) {
7470
7488
  case 0:
7471
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
7489
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
7472
7490
  type: InStockSubscriptions.TYPE
7473
7491
  }), options));
7474
7492
 
@@ -7544,12 +7562,13 @@ var InStockSubscriptions = /*#__PURE__*/function (_ApiResource) {
7544
7562
  while (1) {
7545
7563
  switch (_context5.prev = _context5.next) {
7546
7564
  case 0:
7547
- this.resources["delete"]({
7565
+ _context5.next = 2;
7566
+ return this.resources["delete"]({
7548
7567
  type: InStockSubscriptions.TYPE,
7549
7568
  id: id
7550
7569
  }, options);
7551
7570
 
7552
- case 1:
7571
+ case 2:
7553
7572
  case "end":
7554
7573
  return _context5.stop();
7555
7574
  }
@@ -7639,7 +7658,7 @@ var InventoryModels = /*#__PURE__*/function (_ApiResource) {
7639
7658
  while (1) {
7640
7659
  switch (_context2.prev = _context2.next) {
7641
7660
  case 0:
7642
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
7661
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
7643
7662
  type: InventoryModels.TYPE
7644
7663
  }), options));
7645
7664
 
@@ -7715,12 +7734,13 @@ var InventoryModels = /*#__PURE__*/function (_ApiResource) {
7715
7734
  while (1) {
7716
7735
  switch (_context5.prev = _context5.next) {
7717
7736
  case 0:
7718
- this.resources["delete"]({
7737
+ _context5.next = 2;
7738
+ return this.resources["delete"]({
7719
7739
  type: InventoryModels.TYPE,
7720
7740
  id: id
7721
7741
  }, options);
7722
7742
 
7723
- case 1:
7743
+ case 2:
7724
7744
  case "end":
7725
7745
  return _context5.stop();
7726
7746
  }
@@ -7810,7 +7830,7 @@ var InventoryReturnLocations = /*#__PURE__*/function (_ApiResource) {
7810
7830
  while (1) {
7811
7831
  switch (_context2.prev = _context2.next) {
7812
7832
  case 0:
7813
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
7833
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
7814
7834
  type: InventoryReturnLocations.TYPE
7815
7835
  }), options));
7816
7836
 
@@ -7886,12 +7906,13 @@ var InventoryReturnLocations = /*#__PURE__*/function (_ApiResource) {
7886
7906
  while (1) {
7887
7907
  switch (_context5.prev = _context5.next) {
7888
7908
  case 0:
7889
- this.resources["delete"]({
7909
+ _context5.next = 2;
7910
+ return this.resources["delete"]({
7890
7911
  type: InventoryReturnLocations.TYPE,
7891
7912
  id: id
7892
7913
  }, options);
7893
7914
 
7894
- case 1:
7915
+ case 2:
7895
7916
  case "end":
7896
7917
  return _context5.stop();
7897
7918
  }
@@ -7981,7 +8002,7 @@ var InventoryStockLocations = /*#__PURE__*/function (_ApiResource) {
7981
8002
  while (1) {
7982
8003
  switch (_context2.prev = _context2.next) {
7983
8004
  case 0:
7984
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
8005
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
7985
8006
  type: InventoryStockLocations.TYPE
7986
8007
  }), options));
7987
8008
 
@@ -8057,12 +8078,13 @@ var InventoryStockLocations = /*#__PURE__*/function (_ApiResource) {
8057
8078
  while (1) {
8058
8079
  switch (_context5.prev = _context5.next) {
8059
8080
  case 0:
8060
- this.resources["delete"]({
8081
+ _context5.next = 2;
8082
+ return this.resources["delete"]({
8061
8083
  type: InventoryStockLocations.TYPE,
8062
8084
  id: id
8063
8085
  }, options);
8064
8086
 
8065
- case 1:
8087
+ case 2:
8066
8088
  case "end":
8067
8089
  return _context5.stop();
8068
8090
  }
@@ -8152,7 +8174,7 @@ var LineItemOptions = /*#__PURE__*/function (_ApiResource) {
8152
8174
  while (1) {
8153
8175
  switch (_context2.prev = _context2.next) {
8154
8176
  case 0:
8155
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
8177
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
8156
8178
  type: LineItemOptions.TYPE
8157
8179
  }), options));
8158
8180
 
@@ -8228,12 +8250,13 @@ var LineItemOptions = /*#__PURE__*/function (_ApiResource) {
8228
8250
  while (1) {
8229
8251
  switch (_context5.prev = _context5.next) {
8230
8252
  case 0:
8231
- this.resources["delete"]({
8253
+ _context5.next = 2;
8254
+ return this.resources["delete"]({
8232
8255
  type: LineItemOptions.TYPE,
8233
8256
  id: id
8234
8257
  }, options);
8235
8258
 
8236
- case 1:
8259
+ case 2:
8237
8260
  case "end":
8238
8261
  return _context5.stop();
8239
8262
  }
@@ -8323,7 +8346,7 @@ var LineItems = /*#__PURE__*/function (_ApiResource) {
8323
8346
  while (1) {
8324
8347
  switch (_context2.prev = _context2.next) {
8325
8348
  case 0:
8326
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
8349
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
8327
8350
  type: LineItems.TYPE
8328
8351
  }), options));
8329
8352
 
@@ -8399,12 +8422,13 @@ var LineItems = /*#__PURE__*/function (_ApiResource) {
8399
8422
  while (1) {
8400
8423
  switch (_context5.prev = _context5.next) {
8401
8424
  case 0:
8402
- this.resources["delete"]({
8425
+ _context5.next = 2;
8426
+ return this.resources["delete"]({
8403
8427
  type: LineItems.TYPE,
8404
8428
  id: id
8405
8429
  }, options);
8406
8430
 
8407
- case 1:
8431
+ case 2:
8408
8432
  case "end":
8409
8433
  return _context5.stop();
8410
8434
  }
@@ -8494,7 +8518,7 @@ var ManualGateways = /*#__PURE__*/function (_ApiResource) {
8494
8518
  while (1) {
8495
8519
  switch (_context2.prev = _context2.next) {
8496
8520
  case 0:
8497
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
8521
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
8498
8522
  type: ManualGateways.TYPE
8499
8523
  }), options));
8500
8524
 
@@ -8570,12 +8594,13 @@ var ManualGateways = /*#__PURE__*/function (_ApiResource) {
8570
8594
  while (1) {
8571
8595
  switch (_context5.prev = _context5.next) {
8572
8596
  case 0:
8573
- this.resources["delete"]({
8597
+ _context5.next = 2;
8598
+ return this.resources["delete"]({
8574
8599
  type: ManualGateways.TYPE,
8575
8600
  id: id
8576
8601
  }, options);
8577
8602
 
8578
- case 1:
8603
+ case 2:
8579
8604
  case "end":
8580
8605
  return _context5.stop();
8581
8606
  }
@@ -8665,7 +8690,7 @@ var ManualTaxCalculators = /*#__PURE__*/function (_ApiResource) {
8665
8690
  while (1) {
8666
8691
  switch (_context2.prev = _context2.next) {
8667
8692
  case 0:
8668
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
8693
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
8669
8694
  type: ManualTaxCalculators.TYPE
8670
8695
  }), options));
8671
8696
 
@@ -8741,12 +8766,13 @@ var ManualTaxCalculators = /*#__PURE__*/function (_ApiResource) {
8741
8766
  while (1) {
8742
8767
  switch (_context5.prev = _context5.next) {
8743
8768
  case 0:
8744
- this.resources["delete"]({
8769
+ _context5.next = 2;
8770
+ return this.resources["delete"]({
8745
8771
  type: ManualTaxCalculators.TYPE,
8746
8772
  id: id
8747
8773
  }, options);
8748
8774
 
8749
- case 1:
8775
+ case 2:
8750
8776
  case "end":
8751
8777
  return _context5.stop();
8752
8778
  }
@@ -8836,7 +8862,7 @@ var Markets = /*#__PURE__*/function (_ApiResource) {
8836
8862
  while (1) {
8837
8863
  switch (_context2.prev = _context2.next) {
8838
8864
  case 0:
8839
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
8865
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
8840
8866
  type: Markets.TYPE
8841
8867
  }), options));
8842
8868
 
@@ -8912,12 +8938,13 @@ var Markets = /*#__PURE__*/function (_ApiResource) {
8912
8938
  while (1) {
8913
8939
  switch (_context5.prev = _context5.next) {
8914
8940
  case 0:
8915
- this.resources["delete"]({
8941
+ _context5.next = 2;
8942
+ return this.resources["delete"]({
8916
8943
  type: Markets.TYPE,
8917
8944
  id: id
8918
8945
  }, options);
8919
8946
 
8920
- case 1:
8947
+ case 2:
8921
8948
  case "end":
8922
8949
  return _context5.stop();
8923
8950
  }
@@ -9007,7 +9034,7 @@ var Merchants = /*#__PURE__*/function (_ApiResource) {
9007
9034
  while (1) {
9008
9035
  switch (_context2.prev = _context2.next) {
9009
9036
  case 0:
9010
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
9037
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
9011
9038
  type: Merchants.TYPE
9012
9039
  }), options));
9013
9040
 
@@ -9083,12 +9110,13 @@ var Merchants = /*#__PURE__*/function (_ApiResource) {
9083
9110
  while (1) {
9084
9111
  switch (_context5.prev = _context5.next) {
9085
9112
  case 0:
9086
- this.resources["delete"]({
9113
+ _context5.next = 2;
9114
+ return this.resources["delete"]({
9087
9115
  type: Merchants.TYPE,
9088
9116
  id: id
9089
9117
  }, options);
9090
9118
 
9091
- case 1:
9119
+ case 2:
9092
9120
  case "end":
9093
9121
  return _context5.stop();
9094
9122
  }
@@ -9178,7 +9206,7 @@ var OrderAmountPromotionRules = /*#__PURE__*/function (_ApiResource) {
9178
9206
  while (1) {
9179
9207
  switch (_context2.prev = _context2.next) {
9180
9208
  case 0:
9181
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
9209
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
9182
9210
  type: OrderAmountPromotionRules.TYPE
9183
9211
  }), options));
9184
9212
 
@@ -9254,12 +9282,13 @@ var OrderAmountPromotionRules = /*#__PURE__*/function (_ApiResource) {
9254
9282
  while (1) {
9255
9283
  switch (_context5.prev = _context5.next) {
9256
9284
  case 0:
9257
- this.resources["delete"]({
9285
+ _context5.next = 2;
9286
+ return this.resources["delete"]({
9258
9287
  type: OrderAmountPromotionRules.TYPE,
9259
9288
  id: id
9260
9289
  }, options);
9261
9290
 
9262
- case 1:
9291
+ case 2:
9263
9292
  case "end":
9264
9293
  return _context5.stop();
9265
9294
  }
@@ -9349,7 +9378,7 @@ var OrderCopies = /*#__PURE__*/function (_ApiResource) {
9349
9378
  while (1) {
9350
9379
  switch (_context2.prev = _context2.next) {
9351
9380
  case 0:
9352
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
9381
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
9353
9382
  type: OrderCopies.TYPE
9354
9383
  }), options));
9355
9384
 
@@ -9400,12 +9429,13 @@ var OrderCopies = /*#__PURE__*/function (_ApiResource) {
9400
9429
  while (1) {
9401
9430
  switch (_context4.prev = _context4.next) {
9402
9431
  case 0:
9403
- this.resources["delete"]({
9432
+ _context4.next = 2;
9433
+ return this.resources["delete"]({
9404
9434
  type: OrderCopies.TYPE,
9405
9435
  id: id
9406
9436
  }, options);
9407
9437
 
9408
- case 1:
9438
+ case 2:
9409
9439
  case "end":
9410
9440
  return _context4.stop();
9411
9441
  }
@@ -9495,7 +9525,7 @@ var OrderSubscriptions = /*#__PURE__*/function (_ApiResource) {
9495
9525
  while (1) {
9496
9526
  switch (_context2.prev = _context2.next) {
9497
9527
  case 0:
9498
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
9528
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
9499
9529
  type: OrderSubscriptions.TYPE
9500
9530
  }), options));
9501
9531
 
@@ -9571,12 +9601,13 @@ var OrderSubscriptions = /*#__PURE__*/function (_ApiResource) {
9571
9601
  while (1) {
9572
9602
  switch (_context5.prev = _context5.next) {
9573
9603
  case 0:
9574
- this.resources["delete"]({
9604
+ _context5.next = 2;
9605
+ return this.resources["delete"]({
9575
9606
  type: OrderSubscriptions.TYPE,
9576
9607
  id: id
9577
9608
  }, options);
9578
9609
 
9579
- case 1:
9610
+ case 2:
9580
9611
  case "end":
9581
9612
  return _context5.stop();
9582
9613
  }
@@ -9666,7 +9697,7 @@ var Orders = /*#__PURE__*/function (_ApiResource) {
9666
9697
  while (1) {
9667
9698
  switch (_context2.prev = _context2.next) {
9668
9699
  case 0:
9669
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
9700
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
9670
9701
  type: Orders.TYPE
9671
9702
  }), options));
9672
9703
 
@@ -9742,12 +9773,13 @@ var Orders = /*#__PURE__*/function (_ApiResource) {
9742
9773
  while (1) {
9743
9774
  switch (_context5.prev = _context5.next) {
9744
9775
  case 0:
9745
- this.resources["delete"]({
9776
+ _context5.next = 2;
9777
+ return this.resources["delete"]({
9746
9778
  type: Orders.TYPE,
9747
9779
  id: id
9748
9780
  }, options);
9749
9781
 
9750
- case 1:
9782
+ case 2:
9751
9783
  case "end":
9752
9784
  return _context5.stop();
9753
9785
  }
@@ -9906,7 +9938,7 @@ var Packages = /*#__PURE__*/function (_ApiResource) {
9906
9938
  while (1) {
9907
9939
  switch (_context2.prev = _context2.next) {
9908
9940
  case 0:
9909
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
9941
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
9910
9942
  type: Packages.TYPE
9911
9943
  }), options));
9912
9944
 
@@ -9982,12 +10014,13 @@ var Packages = /*#__PURE__*/function (_ApiResource) {
9982
10014
  while (1) {
9983
10015
  switch (_context5.prev = _context5.next) {
9984
10016
  case 0:
9985
- this.resources["delete"]({
10017
+ _context5.next = 2;
10018
+ return this.resources["delete"]({
9986
10019
  type: Packages.TYPE,
9987
10020
  id: id
9988
10021
  }, options);
9989
10022
 
9990
- case 1:
10023
+ case 2:
9991
10024
  case "end":
9992
10025
  return _context5.stop();
9993
10026
  }
@@ -10077,7 +10110,7 @@ var ParcelLineItems = /*#__PURE__*/function (_ApiResource) {
10077
10110
  while (1) {
10078
10111
  switch (_context2.prev = _context2.next) {
10079
10112
  case 0:
10080
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
10113
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
10081
10114
  type: ParcelLineItems.TYPE
10082
10115
  }), options));
10083
10116
 
@@ -10153,12 +10186,13 @@ var ParcelLineItems = /*#__PURE__*/function (_ApiResource) {
10153
10186
  while (1) {
10154
10187
  switch (_context5.prev = _context5.next) {
10155
10188
  case 0:
10156
- this.resources["delete"]({
10189
+ _context5.next = 2;
10190
+ return this.resources["delete"]({
10157
10191
  type: ParcelLineItems.TYPE,
10158
10192
  id: id
10159
10193
  }, options);
10160
10194
 
10161
- case 1:
10195
+ case 2:
10162
10196
  case "end":
10163
10197
  return _context5.stop();
10164
10198
  }
@@ -10248,7 +10282,7 @@ var Parcels = /*#__PURE__*/function (_ApiResource) {
10248
10282
  while (1) {
10249
10283
  switch (_context2.prev = _context2.next) {
10250
10284
  case 0:
10251
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
10285
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
10252
10286
  type: Parcels.TYPE
10253
10287
  }), options));
10254
10288
 
@@ -10324,12 +10358,13 @@ var Parcels = /*#__PURE__*/function (_ApiResource) {
10324
10358
  while (1) {
10325
10359
  switch (_context5.prev = _context5.next) {
10326
10360
  case 0:
10327
- this.resources["delete"]({
10361
+ _context5.next = 2;
10362
+ return this.resources["delete"]({
10328
10363
  type: Parcels.TYPE,
10329
10364
  id: id
10330
10365
  }, options);
10331
10366
 
10332
- case 1:
10367
+ case 2:
10333
10368
  case "end":
10334
10369
  return _context5.stop();
10335
10370
  }
@@ -10419,7 +10454,7 @@ var PaymentGateways = /*#__PURE__*/function (_ApiResource) {
10419
10454
  while (1) {
10420
10455
  switch (_context2.prev = _context2.next) {
10421
10456
  case 0:
10422
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
10457
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
10423
10458
  type: PaymentGateways.TYPE
10424
10459
  }), options));
10425
10460
 
@@ -10495,12 +10530,13 @@ var PaymentGateways = /*#__PURE__*/function (_ApiResource) {
10495
10530
  while (1) {
10496
10531
  switch (_context5.prev = _context5.next) {
10497
10532
  case 0:
10498
- this.resources["delete"]({
10533
+ _context5.next = 2;
10534
+ return this.resources["delete"]({
10499
10535
  type: PaymentGateways.TYPE,
10500
10536
  id: id
10501
10537
  }, options);
10502
10538
 
10503
- case 1:
10539
+ case 2:
10504
10540
  case "end":
10505
10541
  return _context5.stop();
10506
10542
  }
@@ -10590,7 +10626,7 @@ var PaymentMethods = /*#__PURE__*/function (_ApiResource) {
10590
10626
  while (1) {
10591
10627
  switch (_context2.prev = _context2.next) {
10592
10628
  case 0:
10593
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
10629
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
10594
10630
  type: PaymentMethods.TYPE
10595
10631
  }), options));
10596
10632
 
@@ -10666,12 +10702,13 @@ var PaymentMethods = /*#__PURE__*/function (_ApiResource) {
10666
10702
  while (1) {
10667
10703
  switch (_context5.prev = _context5.next) {
10668
10704
  case 0:
10669
- this.resources["delete"]({
10705
+ _context5.next = 2;
10706
+ return this.resources["delete"]({
10670
10707
  type: PaymentMethods.TYPE,
10671
10708
  id: id
10672
10709
  }, options);
10673
10710
 
10674
- case 1:
10711
+ case 2:
10675
10712
  case "end":
10676
10713
  return _context5.stop();
10677
10714
  }
@@ -10761,7 +10798,7 @@ var PaypalGateways = /*#__PURE__*/function (_ApiResource) {
10761
10798
  while (1) {
10762
10799
  switch (_context2.prev = _context2.next) {
10763
10800
  case 0:
10764
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
10801
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
10765
10802
  type: PaypalGateways.TYPE
10766
10803
  }), options));
10767
10804
 
@@ -10837,12 +10874,13 @@ var PaypalGateways = /*#__PURE__*/function (_ApiResource) {
10837
10874
  while (1) {
10838
10875
  switch (_context5.prev = _context5.next) {
10839
10876
  case 0:
10840
- this.resources["delete"]({
10877
+ _context5.next = 2;
10878
+ return this.resources["delete"]({
10841
10879
  type: PaypalGateways.TYPE,
10842
10880
  id: id
10843
10881
  }, options);
10844
10882
 
10845
- case 1:
10883
+ case 2:
10846
10884
  case "end":
10847
10885
  return _context5.stop();
10848
10886
  }
@@ -10932,7 +10970,7 @@ var PaypalPayments = /*#__PURE__*/function (_ApiResource) {
10932
10970
  while (1) {
10933
10971
  switch (_context2.prev = _context2.next) {
10934
10972
  case 0:
10935
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
10973
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
10936
10974
  type: PaypalPayments.TYPE
10937
10975
  }), options));
10938
10976
 
@@ -11008,12 +11046,13 @@ var PaypalPayments = /*#__PURE__*/function (_ApiResource) {
11008
11046
  while (1) {
11009
11047
  switch (_context5.prev = _context5.next) {
11010
11048
  case 0:
11011
- this.resources["delete"]({
11049
+ _context5.next = 2;
11050
+ return this.resources["delete"]({
11012
11051
  type: PaypalPayments.TYPE,
11013
11052
  id: id
11014
11053
  }, options);
11015
11054
 
11016
- case 1:
11055
+ case 2:
11017
11056
  case "end":
11018
11057
  return _context5.stop();
11019
11058
  }
@@ -11103,7 +11142,7 @@ var PercentageDiscountPromotions = /*#__PURE__*/function (_ApiResource) {
11103
11142
  while (1) {
11104
11143
  switch (_context2.prev = _context2.next) {
11105
11144
  case 0:
11106
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
11145
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
11107
11146
  type: PercentageDiscountPromotions.TYPE
11108
11147
  }), options));
11109
11148
 
@@ -11179,12 +11218,13 @@ var PercentageDiscountPromotions = /*#__PURE__*/function (_ApiResource) {
11179
11218
  while (1) {
11180
11219
  switch (_context5.prev = _context5.next) {
11181
11220
  case 0:
11182
- this.resources["delete"]({
11221
+ _context5.next = 2;
11222
+ return this.resources["delete"]({
11183
11223
  type: PercentageDiscountPromotions.TYPE,
11184
11224
  id: id
11185
11225
  }, options);
11186
11226
 
11187
- case 1:
11227
+ case 2:
11188
11228
  case "end":
11189
11229
  return _context5.stop();
11190
11230
  }
@@ -11274,7 +11314,7 @@ var PriceLists = /*#__PURE__*/function (_ApiResource) {
11274
11314
  while (1) {
11275
11315
  switch (_context2.prev = _context2.next) {
11276
11316
  case 0:
11277
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
11317
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
11278
11318
  type: PriceLists.TYPE
11279
11319
  }), options));
11280
11320
 
@@ -11350,12 +11390,13 @@ var PriceLists = /*#__PURE__*/function (_ApiResource) {
11350
11390
  while (1) {
11351
11391
  switch (_context5.prev = _context5.next) {
11352
11392
  case 0:
11353
- this.resources["delete"]({
11393
+ _context5.next = 2;
11394
+ return this.resources["delete"]({
11354
11395
  type: PriceLists.TYPE,
11355
11396
  id: id
11356
11397
  }, options);
11357
11398
 
11358
- case 1:
11399
+ case 2:
11359
11400
  case "end":
11360
11401
  return _context5.stop();
11361
11402
  }
@@ -11445,7 +11486,7 @@ var Prices = /*#__PURE__*/function (_ApiResource) {
11445
11486
  while (1) {
11446
11487
  switch (_context2.prev = _context2.next) {
11447
11488
  case 0:
11448
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
11489
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
11449
11490
  type: Prices.TYPE
11450
11491
  }), options));
11451
11492
 
@@ -11521,12 +11562,13 @@ var Prices = /*#__PURE__*/function (_ApiResource) {
11521
11562
  while (1) {
11522
11563
  switch (_context5.prev = _context5.next) {
11523
11564
  case 0:
11524
- this.resources["delete"]({
11565
+ _context5.next = 2;
11566
+ return this.resources["delete"]({
11525
11567
  type: Prices.TYPE,
11526
11568
  id: id
11527
11569
  }, options);
11528
11570
 
11529
- case 1:
11571
+ case 2:
11530
11572
  case "end":
11531
11573
  return _context5.stop();
11532
11574
  }
@@ -11849,7 +11891,7 @@ var ReturnLineItems = /*#__PURE__*/function (_ApiResource) {
11849
11891
  while (1) {
11850
11892
  switch (_context2.prev = _context2.next) {
11851
11893
  case 0:
11852
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
11894
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
11853
11895
  type: ReturnLineItems.TYPE
11854
11896
  }), options));
11855
11897
 
@@ -11925,12 +11967,13 @@ var ReturnLineItems = /*#__PURE__*/function (_ApiResource) {
11925
11967
  while (1) {
11926
11968
  switch (_context5.prev = _context5.next) {
11927
11969
  case 0:
11928
- this.resources["delete"]({
11970
+ _context5.next = 2;
11971
+ return this.resources["delete"]({
11929
11972
  type: ReturnLineItems.TYPE,
11930
11973
  id: id
11931
11974
  }, options);
11932
11975
 
11933
- case 1:
11976
+ case 2:
11934
11977
  case "end":
11935
11978
  return _context5.stop();
11936
11979
  }
@@ -12020,7 +12063,7 @@ var Returns = /*#__PURE__*/function (_ApiResource) {
12020
12063
  while (1) {
12021
12064
  switch (_context2.prev = _context2.next) {
12022
12065
  case 0:
12023
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
12066
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
12024
12067
  type: Returns.TYPE
12025
12068
  }), options));
12026
12069
 
@@ -12096,12 +12139,13 @@ var Returns = /*#__PURE__*/function (_ApiResource) {
12096
12139
  while (1) {
12097
12140
  switch (_context5.prev = _context5.next) {
12098
12141
  case 0:
12099
- this.resources["delete"]({
12142
+ _context5.next = 2;
12143
+ return this.resources["delete"]({
12100
12144
  type: Returns.TYPE,
12101
12145
  id: id
12102
12146
  }, options);
12103
12147
 
12104
- case 1:
12148
+ case 2:
12105
12149
  case "end":
12106
12150
  return _context5.stop();
12107
12151
  }
@@ -12311,7 +12355,7 @@ var ShippingCategories = /*#__PURE__*/function (_ApiResource) {
12311
12355
  while (1) {
12312
12356
  switch (_context2.prev = _context2.next) {
12313
12357
  case 0:
12314
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
12358
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
12315
12359
  type: ShippingCategories.TYPE
12316
12360
  }), options));
12317
12361
 
@@ -12387,12 +12431,13 @@ var ShippingCategories = /*#__PURE__*/function (_ApiResource) {
12387
12431
  while (1) {
12388
12432
  switch (_context5.prev = _context5.next) {
12389
12433
  case 0:
12390
- this.resources["delete"]({
12434
+ _context5.next = 2;
12435
+ return this.resources["delete"]({
12391
12436
  type: ShippingCategories.TYPE,
12392
12437
  id: id
12393
12438
  }, options);
12394
12439
 
12395
- case 1:
12440
+ case 2:
12396
12441
  case "end":
12397
12442
  return _context5.stop();
12398
12443
  }
@@ -12482,7 +12527,7 @@ var ShippingMethods = /*#__PURE__*/function (_ApiResource) {
12482
12527
  while (1) {
12483
12528
  switch (_context2.prev = _context2.next) {
12484
12529
  case 0:
12485
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
12530
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
12486
12531
  type: ShippingMethods.TYPE
12487
12532
  }), options));
12488
12533
 
@@ -12558,12 +12603,13 @@ var ShippingMethods = /*#__PURE__*/function (_ApiResource) {
12558
12603
  while (1) {
12559
12604
  switch (_context5.prev = _context5.next) {
12560
12605
  case 0:
12561
- this.resources["delete"]({
12606
+ _context5.next = 2;
12607
+ return this.resources["delete"]({
12562
12608
  type: ShippingMethods.TYPE,
12563
12609
  id: id
12564
12610
  }, options);
12565
12611
 
12566
- case 1:
12612
+ case 2:
12567
12613
  case "end":
12568
12614
  return _context5.stop();
12569
12615
  }
@@ -12653,7 +12699,7 @@ var ShippingZones = /*#__PURE__*/function (_ApiResource) {
12653
12699
  while (1) {
12654
12700
  switch (_context2.prev = _context2.next) {
12655
12701
  case 0:
12656
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
12702
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
12657
12703
  type: ShippingZones.TYPE
12658
12704
  }), options));
12659
12705
 
@@ -12729,12 +12775,13 @@ var ShippingZones = /*#__PURE__*/function (_ApiResource) {
12729
12775
  while (1) {
12730
12776
  switch (_context5.prev = _context5.next) {
12731
12777
  case 0:
12732
- this.resources["delete"]({
12778
+ _context5.next = 2;
12779
+ return this.resources["delete"]({
12733
12780
  type: ShippingZones.TYPE,
12734
12781
  id: id
12735
12782
  }, options);
12736
12783
 
12737
- case 1:
12784
+ case 2:
12738
12785
  case "end":
12739
12786
  return _context5.stop();
12740
12787
  }
@@ -12824,7 +12871,7 @@ var SkuListItems = /*#__PURE__*/function (_ApiResource) {
12824
12871
  while (1) {
12825
12872
  switch (_context2.prev = _context2.next) {
12826
12873
  case 0:
12827
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
12874
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
12828
12875
  type: SkuListItems.TYPE
12829
12876
  }), options));
12830
12877
 
@@ -12900,12 +12947,13 @@ var SkuListItems = /*#__PURE__*/function (_ApiResource) {
12900
12947
  while (1) {
12901
12948
  switch (_context5.prev = _context5.next) {
12902
12949
  case 0:
12903
- this.resources["delete"]({
12950
+ _context5.next = 2;
12951
+ return this.resources["delete"]({
12904
12952
  type: SkuListItems.TYPE,
12905
12953
  id: id
12906
12954
  }, options);
12907
12955
 
12908
- case 1:
12956
+ case 2:
12909
12957
  case "end":
12910
12958
  return _context5.stop();
12911
12959
  }
@@ -12995,7 +13043,7 @@ var SkuListPromotionRules = /*#__PURE__*/function (_ApiResource) {
12995
13043
  while (1) {
12996
13044
  switch (_context2.prev = _context2.next) {
12997
13045
  case 0:
12998
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
13046
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
12999
13047
  type: SkuListPromotionRules.TYPE
13000
13048
  }), options));
13001
13049
 
@@ -13071,12 +13119,13 @@ var SkuListPromotionRules = /*#__PURE__*/function (_ApiResource) {
13071
13119
  while (1) {
13072
13120
  switch (_context5.prev = _context5.next) {
13073
13121
  case 0:
13074
- this.resources["delete"]({
13122
+ _context5.next = 2;
13123
+ return this.resources["delete"]({
13075
13124
  type: SkuListPromotionRules.TYPE,
13076
13125
  id: id
13077
13126
  }, options);
13078
13127
 
13079
- case 1:
13128
+ case 2:
13080
13129
  case "end":
13081
13130
  return _context5.stop();
13082
13131
  }
@@ -13166,7 +13215,7 @@ var SkuLists = /*#__PURE__*/function (_ApiResource) {
13166
13215
  while (1) {
13167
13216
  switch (_context2.prev = _context2.next) {
13168
13217
  case 0:
13169
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
13218
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
13170
13219
  type: SkuLists.TYPE
13171
13220
  }), options));
13172
13221
 
@@ -13242,12 +13291,13 @@ var SkuLists = /*#__PURE__*/function (_ApiResource) {
13242
13291
  while (1) {
13243
13292
  switch (_context5.prev = _context5.next) {
13244
13293
  case 0:
13245
- this.resources["delete"]({
13294
+ _context5.next = 2;
13295
+ return this.resources["delete"]({
13246
13296
  type: SkuLists.TYPE,
13247
13297
  id: id
13248
13298
  }, options);
13249
13299
 
13250
- case 1:
13300
+ case 2:
13251
13301
  case "end":
13252
13302
  return _context5.stop();
13253
13303
  }
@@ -13337,7 +13387,7 @@ var SkuOptions = /*#__PURE__*/function (_ApiResource) {
13337
13387
  while (1) {
13338
13388
  switch (_context2.prev = _context2.next) {
13339
13389
  case 0:
13340
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
13390
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
13341
13391
  type: SkuOptions.TYPE
13342
13392
  }), options));
13343
13393
 
@@ -13413,12 +13463,13 @@ var SkuOptions = /*#__PURE__*/function (_ApiResource) {
13413
13463
  while (1) {
13414
13464
  switch (_context5.prev = _context5.next) {
13415
13465
  case 0:
13416
- this.resources["delete"]({
13466
+ _context5.next = 2;
13467
+ return this.resources["delete"]({
13417
13468
  type: SkuOptions.TYPE,
13418
13469
  id: id
13419
13470
  }, options);
13420
13471
 
13421
- case 1:
13472
+ case 2:
13422
13473
  case "end":
13423
13474
  return _context5.stop();
13424
13475
  }
@@ -13508,7 +13559,7 @@ var Skus = /*#__PURE__*/function (_ApiResource) {
13508
13559
  while (1) {
13509
13560
  switch (_context2.prev = _context2.next) {
13510
13561
  case 0:
13511
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
13562
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
13512
13563
  type: Skus.TYPE
13513
13564
  }), options));
13514
13565
 
@@ -13584,12 +13635,13 @@ var Skus = /*#__PURE__*/function (_ApiResource) {
13584
13635
  while (1) {
13585
13636
  switch (_context5.prev = _context5.next) {
13586
13637
  case 0:
13587
- this.resources["delete"]({
13638
+ _context5.next = 2;
13639
+ return this.resources["delete"]({
13588
13640
  type: Skus.TYPE,
13589
13641
  id: id
13590
13642
  }, options);
13591
13643
 
13592
- case 1:
13644
+ case 2:
13593
13645
  case "end":
13594
13646
  return _context5.stop();
13595
13647
  }
@@ -13679,7 +13731,7 @@ var StockItems = /*#__PURE__*/function (_ApiResource) {
13679
13731
  while (1) {
13680
13732
  switch (_context2.prev = _context2.next) {
13681
13733
  case 0:
13682
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
13734
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
13683
13735
  type: StockItems.TYPE
13684
13736
  }), options));
13685
13737
 
@@ -13755,12 +13807,13 @@ var StockItems = /*#__PURE__*/function (_ApiResource) {
13755
13807
  while (1) {
13756
13808
  switch (_context5.prev = _context5.next) {
13757
13809
  case 0:
13758
- this.resources["delete"]({
13810
+ _context5.next = 2;
13811
+ return this.resources["delete"]({
13759
13812
  type: StockItems.TYPE,
13760
13813
  id: id
13761
13814
  }, options);
13762
13815
 
13763
- case 1:
13816
+ case 2:
13764
13817
  case "end":
13765
13818
  return _context5.stop();
13766
13819
  }
@@ -13945,7 +13998,7 @@ var StockLocations = /*#__PURE__*/function (_ApiResource) {
13945
13998
  while (1) {
13946
13999
  switch (_context2.prev = _context2.next) {
13947
14000
  case 0:
13948
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
14001
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
13949
14002
  type: StockLocations.TYPE
13950
14003
  }), options));
13951
14004
 
@@ -14021,12 +14074,13 @@ var StockLocations = /*#__PURE__*/function (_ApiResource) {
14021
14074
  while (1) {
14022
14075
  switch (_context5.prev = _context5.next) {
14023
14076
  case 0:
14024
- this.resources["delete"]({
14077
+ _context5.next = 2;
14078
+ return this.resources["delete"]({
14025
14079
  type: StockLocations.TYPE,
14026
14080
  id: id
14027
14081
  }, options);
14028
14082
 
14029
- case 1:
14083
+ case 2:
14030
14084
  case "end":
14031
14085
  return _context5.stop();
14032
14086
  }
@@ -14116,7 +14170,7 @@ var StockTransfers = /*#__PURE__*/function (_ApiResource) {
14116
14170
  while (1) {
14117
14171
  switch (_context2.prev = _context2.next) {
14118
14172
  case 0:
14119
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
14173
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
14120
14174
  type: StockTransfers.TYPE
14121
14175
  }), options));
14122
14176
 
@@ -14192,12 +14246,13 @@ var StockTransfers = /*#__PURE__*/function (_ApiResource) {
14192
14246
  while (1) {
14193
14247
  switch (_context5.prev = _context5.next) {
14194
14248
  case 0:
14195
- this.resources["delete"]({
14249
+ _context5.next = 2;
14250
+ return this.resources["delete"]({
14196
14251
  type: StockTransfers.TYPE,
14197
14252
  id: id
14198
14253
  }, options);
14199
14254
 
14200
- case 1:
14255
+ case 2:
14201
14256
  case "end":
14202
14257
  return _context5.stop();
14203
14258
  }
@@ -14287,7 +14342,7 @@ var StripeGateways = /*#__PURE__*/function (_ApiResource) {
14287
14342
  while (1) {
14288
14343
  switch (_context2.prev = _context2.next) {
14289
14344
  case 0:
14290
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
14345
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
14291
14346
  type: StripeGateways.TYPE
14292
14347
  }), options));
14293
14348
 
@@ -14363,12 +14418,13 @@ var StripeGateways = /*#__PURE__*/function (_ApiResource) {
14363
14418
  while (1) {
14364
14419
  switch (_context5.prev = _context5.next) {
14365
14420
  case 0:
14366
- this.resources["delete"]({
14421
+ _context5.next = 2;
14422
+ return this.resources["delete"]({
14367
14423
  type: StripeGateways.TYPE,
14368
14424
  id: id
14369
14425
  }, options);
14370
14426
 
14371
- case 1:
14427
+ case 2:
14372
14428
  case "end":
14373
14429
  return _context5.stop();
14374
14430
  }
@@ -14458,7 +14514,7 @@ var StripePayments = /*#__PURE__*/function (_ApiResource) {
14458
14514
  while (1) {
14459
14515
  switch (_context2.prev = _context2.next) {
14460
14516
  case 0:
14461
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
14517
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
14462
14518
  type: StripePayments.TYPE
14463
14519
  }), options));
14464
14520
 
@@ -14534,12 +14590,13 @@ var StripePayments = /*#__PURE__*/function (_ApiResource) {
14534
14590
  while (1) {
14535
14591
  switch (_context5.prev = _context5.next) {
14536
14592
  case 0:
14537
- this.resources["delete"]({
14593
+ _context5.next = 2;
14594
+ return this.resources["delete"]({
14538
14595
  type: StripePayments.TYPE,
14539
14596
  id: id
14540
14597
  }, options);
14541
14598
 
14542
- case 1:
14599
+ case 2:
14543
14600
  case "end":
14544
14601
  return _context5.stop();
14545
14602
  }
@@ -14698,7 +14755,7 @@ var TaxCategories = /*#__PURE__*/function (_ApiResource) {
14698
14755
  while (1) {
14699
14756
  switch (_context2.prev = _context2.next) {
14700
14757
  case 0:
14701
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
14758
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
14702
14759
  type: TaxCategories.TYPE
14703
14760
  }), options));
14704
14761
 
@@ -14774,12 +14831,13 @@ var TaxCategories = /*#__PURE__*/function (_ApiResource) {
14774
14831
  while (1) {
14775
14832
  switch (_context5.prev = _context5.next) {
14776
14833
  case 0:
14777
- this.resources["delete"]({
14834
+ _context5.next = 2;
14835
+ return this.resources["delete"]({
14778
14836
  type: TaxCategories.TYPE,
14779
14837
  id: id
14780
14838
  }, options);
14781
14839
 
14782
- case 1:
14840
+ case 2:
14783
14841
  case "end":
14784
14842
  return _context5.stop();
14785
14843
  }
@@ -14869,7 +14927,7 @@ var TaxRules = /*#__PURE__*/function (_ApiResource) {
14869
14927
  while (1) {
14870
14928
  switch (_context2.prev = _context2.next) {
14871
14929
  case 0:
14872
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
14930
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
14873
14931
  type: TaxRules.TYPE
14874
14932
  }), options));
14875
14933
 
@@ -14945,12 +15003,13 @@ var TaxRules = /*#__PURE__*/function (_ApiResource) {
14945
15003
  while (1) {
14946
15004
  switch (_context5.prev = _context5.next) {
14947
15005
  case 0:
14948
- this.resources["delete"]({
15006
+ _context5.next = 2;
15007
+ return this.resources["delete"]({
14949
15008
  type: TaxRules.TYPE,
14950
15009
  id: id
14951
15010
  }, options);
14952
15011
 
14953
- case 1:
15012
+ case 2:
14954
15013
  case "end":
14955
15014
  return _context5.stop();
14956
15015
  }
@@ -15040,7 +15099,7 @@ var TaxjarAccounts = /*#__PURE__*/function (_ApiResource) {
15040
15099
  while (1) {
15041
15100
  switch (_context2.prev = _context2.next) {
15042
15101
  case 0:
15043
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
15102
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
15044
15103
  type: TaxjarAccounts.TYPE
15045
15104
  }), options));
15046
15105
 
@@ -15116,12 +15175,13 @@ var TaxjarAccounts = /*#__PURE__*/function (_ApiResource) {
15116
15175
  while (1) {
15117
15176
  switch (_context5.prev = _context5.next) {
15118
15177
  case 0:
15119
- this.resources["delete"]({
15178
+ _context5.next = 2;
15179
+ return this.resources["delete"]({
15120
15180
  type: TaxjarAccounts.TYPE,
15121
15181
  id: id
15122
15182
  }, options);
15123
15183
 
15124
- case 1:
15184
+ case 2:
15125
15185
  case "end":
15126
15186
  return _context5.stop();
15127
15187
  }
@@ -15375,7 +15435,7 @@ var Webhooks = /*#__PURE__*/function (_ApiResource) {
15375
15435
  while (1) {
15376
15436
  switch (_context2.prev = _context2.next) {
15377
15437
  case 0:
15378
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
15438
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
15379
15439
  type: Webhooks.TYPE
15380
15440
  }), options));
15381
15441
 
@@ -15451,12 +15511,13 @@ var Webhooks = /*#__PURE__*/function (_ApiResource) {
15451
15511
  while (1) {
15452
15512
  switch (_context5.prev = _context5.next) {
15453
15513
  case 0:
15454
- this.resources["delete"]({
15514
+ _context5.next = 2;
15515
+ return this.resources["delete"]({
15455
15516
  type: Webhooks.TYPE,
15456
15517
  id: id
15457
15518
  }, options);
15458
15519
 
15459
- case 1:
15520
+ case 2:
15460
15521
  case "end":
15461
15522
  return _context5.stop();
15462
15523
  }
@@ -15546,7 +15607,7 @@ var WireTransfers = /*#__PURE__*/function (_ApiResource) {
15546
15607
  while (1) {
15547
15608
  switch (_context2.prev = _context2.next) {
15548
15609
  case 0:
15549
- return _context2.abrupt("return", this.resources.create(Object.assign(resource, {
15610
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
15550
15611
  type: WireTransfers.TYPE
15551
15612
  }), options));
15552
15613
 
@@ -15622,12 +15683,13 @@ var WireTransfers = /*#__PURE__*/function (_ApiResource) {
15622
15683
  while (1) {
15623
15684
  switch (_context5.prev = _context5.next) {
15624
15685
  case 0:
15625
- this.resources["delete"]({
15686
+ _context5.next = 2;
15687
+ return this.resources["delete"]({
15626
15688
  type: WireTransfers.TYPE,
15627
15689
  id: id
15628
15690
  }, options);
15629
15691
 
15630
- case 1:
15692
+ case 2:
15631
15693
  case "end":
15632
15694
  return _context5.stop();
15633
15695
  }
@@ -15675,10 +15737,460 @@ var WireTransfers = /*#__PURE__*/function (_ApiResource) {
15675
15737
  WireTransfers.TYPE = 'wire_transfers';
15676
15738
 
15677
15739
  // ##__API_RESOURCES_START__##
15740
+ var resourcMap = {
15741
+ // ##__API_RESOURCE_MAP_START__##
15742
+ addresses: {
15743
+ name: 'address',
15744
+ type: 'addresses',
15745
+ api: 'addresses'
15746
+ },
15747
+ adjustments: {
15748
+ name: 'adjustment',
15749
+ type: 'adjustments',
15750
+ api: 'adjustments'
15751
+ },
15752
+ adyen_gateways: {
15753
+ name: 'adyen_gateway',
15754
+ type: 'adyen_gateways',
15755
+ api: 'adyen_gateways'
15756
+ },
15757
+ adyen_payments: {
15758
+ name: 'adyen_payment',
15759
+ type: 'adyen_payments',
15760
+ api: 'adyen_payments'
15761
+ },
15762
+ application: {
15763
+ name: 'application',
15764
+ type: 'application',
15765
+ api: 'application'
15766
+ },
15767
+ attachments: {
15768
+ name: 'attachment',
15769
+ type: 'attachments',
15770
+ api: 'attachments'
15771
+ },
15772
+ authorizations: {
15773
+ name: 'authorization',
15774
+ type: 'authorizations',
15775
+ api: 'authorizations'
15776
+ },
15777
+ avalara_accounts: {
15778
+ name: 'avalara_account',
15779
+ type: 'avalara_accounts',
15780
+ api: 'avalara_accounts'
15781
+ },
15782
+ billing_info_validation_rules: {
15783
+ name: 'billing_info_validation_rule',
15784
+ type: 'billing_info_validation_rules',
15785
+ api: 'billing_info_validation_rules'
15786
+ },
15787
+ bing_geocoders: {
15788
+ name: 'bing_geocoder',
15789
+ type: 'bing_geocoders',
15790
+ api: 'bing_geocoders'
15791
+ },
15792
+ braintree_gateways: {
15793
+ name: 'braintree_gateway',
15794
+ type: 'braintree_gateways',
15795
+ api: 'braintree_gateways'
15796
+ },
15797
+ braintree_payments: {
15798
+ name: 'braintree_payment',
15799
+ type: 'braintree_payments',
15800
+ api: 'braintree_payments'
15801
+ },
15802
+ bundles: {
15803
+ name: 'bundle',
15804
+ type: 'bundles',
15805
+ api: 'bundles'
15806
+ },
15807
+ captures: {
15808
+ name: 'capture',
15809
+ type: 'captures',
15810
+ api: 'captures'
15811
+ },
15812
+ carrier_accounts: {
15813
+ name: 'carrier_account',
15814
+ type: 'carrier_accounts',
15815
+ api: 'carrier_accounts'
15816
+ },
15817
+ checkout_com_gateways: {
15818
+ name: 'checkout_com_gateway',
15819
+ type: 'checkout_com_gateways',
15820
+ api: 'checkout_com_gateways'
15821
+ },
15822
+ checkout_com_payments: {
15823
+ name: 'checkout_com_payment',
15824
+ type: 'checkout_com_payments',
15825
+ api: 'checkout_com_payments'
15826
+ },
15827
+ coupon_codes_promotion_rules: {
15828
+ name: 'coupon_codes_promotion_rule',
15829
+ type: 'coupon_codes_promotion_rules',
15830
+ api: 'coupon_codes_promotion_rules'
15831
+ },
15832
+ coupons: {
15833
+ name: 'coupon',
15834
+ type: 'coupons',
15835
+ api: 'coupons'
15836
+ },
15837
+ customer_addresses: {
15838
+ name: 'customer_address',
15839
+ type: 'customer_addresses',
15840
+ api: 'customer_addresses'
15841
+ },
15842
+ customer_groups: {
15843
+ name: 'customer_group',
15844
+ type: 'customer_groups',
15845
+ api: 'customer_groups'
15846
+ },
15847
+ customer_password_resets: {
15848
+ name: 'customer_password_reset',
15849
+ type: 'customer_password_resets',
15850
+ api: 'customer_password_resets'
15851
+ },
15852
+ customer_payment_sources: {
15853
+ name: 'customer_payment_source',
15854
+ type: 'customer_payment_sources',
15855
+ api: 'customer_payment_sources'
15856
+ },
15857
+ customer_subscriptions: {
15858
+ name: 'customer_subscription',
15859
+ type: 'customer_subscriptions',
15860
+ api: 'customer_subscriptions'
15861
+ },
15862
+ customers: {
15863
+ name: 'customer',
15864
+ type: 'customers',
15865
+ api: 'customers'
15866
+ },
15867
+ delivery_lead_times: {
15868
+ name: 'delivery_lead_time',
15869
+ type: 'delivery_lead_times',
15870
+ api: 'delivery_lead_times'
15871
+ },
15872
+ external_gateways: {
15873
+ name: 'external_gateway',
15874
+ type: 'external_gateways',
15875
+ api: 'external_gateways'
15876
+ },
15877
+ external_payments: {
15878
+ name: 'external_payment',
15879
+ type: 'external_payments',
15880
+ api: 'external_payments'
15881
+ },
15882
+ external_promotions: {
15883
+ name: 'external_promotion',
15884
+ type: 'external_promotions',
15885
+ api: 'external_promotions'
15886
+ },
15887
+ external_tax_calculators: {
15888
+ name: 'external_tax_calculator',
15889
+ type: 'external_tax_calculators',
15890
+ api: 'external_tax_calculators'
15891
+ },
15892
+ fixed_amount_promotions: {
15893
+ name: 'fixed_amount_promotion',
15894
+ type: 'fixed_amount_promotions',
15895
+ api: 'fixed_amount_promotions'
15896
+ },
15897
+ free_shipping_promotions: {
15898
+ name: 'free_shipping_promotion',
15899
+ type: 'free_shipping_promotions',
15900
+ api: 'free_shipping_promotions'
15901
+ },
15902
+ geocoders: {
15903
+ name: 'geocoder',
15904
+ type: 'geocoders',
15905
+ api: 'geocoders'
15906
+ },
15907
+ gift_card_recipients: {
15908
+ name: 'gift_card_recipient',
15909
+ type: 'gift_card_recipients',
15910
+ api: 'gift_card_recipients'
15911
+ },
15912
+ gift_cards: {
15913
+ name: 'gift_card',
15914
+ type: 'gift_cards',
15915
+ api: 'gift_cards'
15916
+ },
15917
+ google_geocoders: {
15918
+ name: 'google_geocoder',
15919
+ type: 'google_geocoders',
15920
+ api: 'google_geocoders'
15921
+ },
15922
+ imports: {
15923
+ name: 'import',
15924
+ type: 'imports',
15925
+ api: 'imports'
15926
+ },
15927
+ in_stock_subscriptions: {
15928
+ name: 'in_stock_subscription',
15929
+ type: 'in_stock_subscriptions',
15930
+ api: 'in_stock_subscriptions'
15931
+ },
15932
+ inventory_models: {
15933
+ name: 'inventory_model',
15934
+ type: 'inventory_models',
15935
+ api: 'inventory_models'
15936
+ },
15937
+ inventory_return_locations: {
15938
+ name: 'inventory_return_location',
15939
+ type: 'inventory_return_locations',
15940
+ api: 'inventory_return_locations'
15941
+ },
15942
+ inventory_stock_locations: {
15943
+ name: 'inventory_stock_location',
15944
+ type: 'inventory_stock_locations',
15945
+ api: 'inventory_stock_locations'
15946
+ },
15947
+ line_item_options: {
15948
+ name: 'line_item_option',
15949
+ type: 'line_item_options',
15950
+ api: 'line_item_options'
15951
+ },
15952
+ line_items: {
15953
+ name: 'line_item',
15954
+ type: 'line_items',
15955
+ api: 'line_items'
15956
+ },
15957
+ manual_gateways: {
15958
+ name: 'manual_gateway',
15959
+ type: 'manual_gateways',
15960
+ api: 'manual_gateways'
15961
+ },
15962
+ manual_tax_calculators: {
15963
+ name: 'manual_tax_calculator',
15964
+ type: 'manual_tax_calculators',
15965
+ api: 'manual_tax_calculators'
15966
+ },
15967
+ markets: {
15968
+ name: 'market',
15969
+ type: 'markets',
15970
+ api: 'markets'
15971
+ },
15972
+ merchants: {
15973
+ name: 'merchant',
15974
+ type: 'merchants',
15975
+ api: 'merchants'
15976
+ },
15977
+ order_amount_promotion_rules: {
15978
+ name: 'order_amount_promotion_rule',
15979
+ type: 'order_amount_promotion_rules',
15980
+ api: 'order_amount_promotion_rules'
15981
+ },
15982
+ order_copies: {
15983
+ name: 'order_copy',
15984
+ type: 'order_copies',
15985
+ api: 'order_copies'
15986
+ },
15987
+ order_subscriptions: {
15988
+ name: 'order_subscription',
15989
+ type: 'order_subscriptions',
15990
+ api: 'order_subscriptions'
15991
+ },
15992
+ orders: {
15993
+ name: 'order',
15994
+ type: 'orders',
15995
+ api: 'orders'
15996
+ },
15997
+ organization: {
15998
+ name: 'organization',
15999
+ type: 'organization',
16000
+ api: 'organization'
16001
+ },
16002
+ packages: {
16003
+ name: 'package',
16004
+ type: 'packages',
16005
+ api: 'packages'
16006
+ },
16007
+ parcel_line_items: {
16008
+ name: 'parcel_line_item',
16009
+ type: 'parcel_line_items',
16010
+ api: 'parcel_line_items'
16011
+ },
16012
+ parcels: {
16013
+ name: 'parcel',
16014
+ type: 'parcels',
16015
+ api: 'parcels'
16016
+ },
16017
+ payment_gateways: {
16018
+ name: 'payment_gateway',
16019
+ type: 'payment_gateways',
16020
+ api: 'payment_gateways'
16021
+ },
16022
+ payment_methods: {
16023
+ name: 'payment_method',
16024
+ type: 'payment_methods',
16025
+ api: 'payment_methods'
16026
+ },
16027
+ paypal_gateways: {
16028
+ name: 'paypal_gateway',
16029
+ type: 'paypal_gateways',
16030
+ api: 'paypal_gateways'
16031
+ },
16032
+ paypal_payments: {
16033
+ name: 'paypal_payment',
16034
+ type: 'paypal_payments',
16035
+ api: 'paypal_payments'
16036
+ },
16037
+ percentage_discount_promotions: {
16038
+ name: 'percentage_discount_promotion',
16039
+ type: 'percentage_discount_promotions',
16040
+ api: 'percentage_discount_promotions'
16041
+ },
16042
+ price_lists: {
16043
+ name: 'price_list',
16044
+ type: 'price_lists',
16045
+ api: 'price_lists'
16046
+ },
16047
+ prices: {
16048
+ name: 'price',
16049
+ type: 'prices',
16050
+ api: 'prices'
16051
+ },
16052
+ promotion_rules: {
16053
+ name: 'promotion_rule',
16054
+ type: 'promotion_rules',
16055
+ api: 'promotion_rules'
16056
+ },
16057
+ promotions: {
16058
+ name: 'promotion',
16059
+ type: 'promotions',
16060
+ api: 'promotions'
16061
+ },
16062
+ refunds: {
16063
+ name: 'refund',
16064
+ type: 'refunds',
16065
+ api: 'refunds'
16066
+ },
16067
+ return_line_items: {
16068
+ name: 'return_line_item',
16069
+ type: 'return_line_items',
16070
+ api: 'return_line_items'
16071
+ },
16072
+ returns: {
16073
+ name: 'return',
16074
+ type: 'returns',
16075
+ api: 'returns'
16076
+ },
16077
+ shipments: {
16078
+ name: 'shipment',
16079
+ type: 'shipments',
16080
+ api: 'shipments'
16081
+ },
16082
+ shipping_categories: {
16083
+ name: 'shipping_category',
16084
+ type: 'shipping_categories',
16085
+ api: 'shipping_categories'
16086
+ },
16087
+ shipping_methods: {
16088
+ name: 'shipping_method',
16089
+ type: 'shipping_methods',
16090
+ api: 'shipping_methods'
16091
+ },
16092
+ shipping_zones: {
16093
+ name: 'shipping_zone',
16094
+ type: 'shipping_zones',
16095
+ api: 'shipping_zones'
16096
+ },
16097
+ sku_list_items: {
16098
+ name: 'sku_list_item',
16099
+ type: 'sku_list_items',
16100
+ api: 'sku_list_items'
16101
+ },
16102
+ sku_list_promotion_rules: {
16103
+ name: 'sku_list_promotion_rule',
16104
+ type: 'sku_list_promotion_rules',
16105
+ api: 'sku_list_promotion_rules'
16106
+ },
16107
+ sku_lists: {
16108
+ name: 'sku_list',
16109
+ type: 'sku_lists',
16110
+ api: 'sku_lists'
16111
+ },
16112
+ sku_options: {
16113
+ name: 'sku_option',
16114
+ type: 'sku_options',
16115
+ api: 'sku_options'
16116
+ },
16117
+ skus: {
16118
+ name: 'sku',
16119
+ type: 'skus',
16120
+ api: 'skus'
16121
+ },
16122
+ stock_items: {
16123
+ name: 'stock_item',
16124
+ type: 'stock_items',
16125
+ api: 'stock_items'
16126
+ },
16127
+ stock_line_items: {
16128
+ name: 'stock_line_item',
16129
+ type: 'stock_line_items',
16130
+ api: 'stock_line_items'
16131
+ },
16132
+ stock_locations: {
16133
+ name: 'stock_location',
16134
+ type: 'stock_locations',
16135
+ api: 'stock_locations'
16136
+ },
16137
+ stock_transfers: {
16138
+ name: 'stock_transfer',
16139
+ type: 'stock_transfers',
16140
+ api: 'stock_transfers'
16141
+ },
16142
+ stripe_gateways: {
16143
+ name: 'stripe_gateway',
16144
+ type: 'stripe_gateways',
16145
+ api: 'stripe_gateways'
16146
+ },
16147
+ stripe_payments: {
16148
+ name: 'stripe_payment',
16149
+ type: 'stripe_payments',
16150
+ api: 'stripe_payments'
16151
+ },
16152
+ tax_calculators: {
16153
+ name: 'tax_calculator',
16154
+ type: 'tax_calculators',
16155
+ api: 'tax_calculators'
16156
+ },
16157
+ tax_categories: {
16158
+ name: 'tax_category',
16159
+ type: 'tax_categories',
16160
+ api: 'tax_categories'
16161
+ },
16162
+ tax_rules: {
16163
+ name: 'tax_rule',
16164
+ type: 'tax_rules',
16165
+ api: 'tax_rules'
16166
+ },
16167
+ taxjar_accounts: {
16168
+ name: 'taxjar_account',
16169
+ type: 'taxjar_accounts',
16170
+ api: 'taxjar_accounts'
16171
+ },
16172
+ transactions: {
16173
+ name: 'transaction',
16174
+ type: 'transactions',
16175
+ api: 'transactions'
16176
+ },
16177
+ voids: {
16178
+ name: 'void',
16179
+ type: 'voids',
16180
+ api: 'voids'
16181
+ },
16182
+ webhooks: {
16183
+ name: 'webhook',
16184
+ type: 'webhooks',
16185
+ api: 'webhooks'
16186
+ },
16187
+ wire_transfers: {
16188
+ name: 'wire_transfer',
16189
+ type: 'wire_transfers',
16190
+ api: 'wire_transfers'
16191
+ } // ##__API_RESOURCE_MAP_STOP__##
15678
16192
 
15679
- var resourceList = [// ##__API_RESOURCE_LIST_START__##
15680
- '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', 'coupons', 'customer_addresses', 'customer_groups', 'customer_password_resets', 'customer_payment_sources', 'customer_subscriptions', 'customers', 'delivery_lead_times', 'external_gateways', 'external_payments', 'external_promotions', 'external_tax_calculators', 'fixed_amount_promotions', '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', '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' // ##__API_RESOURCE_LIST_STOP__##
15681
- ];
16193
+ };
15682
16194
 
15683
16195
  var _adapter = /*#__PURE__*/_classPrivateFieldLooseKey("adapter");
15684
16196
 
@@ -15808,12 +16320,24 @@ var CommerceLayerClient = /*#__PURE__*/function () {
15808
16320
  ;
15809
16321
 
15810
16322
  _proto.resources = function resources() {
15811
- return resourceList;
16323
+ return CommerceLayerStatic.resources();
15812
16324
  } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
15813
16325
  ;
15814
16326
 
15815
16327
  _proto.isApiError = function isApiError(error) {
15816
- return ApiError.isApiError(error);
16328
+ return CommerceLayerStatic.isApiError(error);
16329
+ };
16330
+
16331
+ _proto.addRequestInterceptor = function addRequestInterceptor(onFulfilled, onRejected) {
16332
+ return _classPrivateFieldLooseBase(this, _adapter)[_adapter].interceptors.request.use(onFulfilled, onRejected);
16333
+ };
16334
+
16335
+ _proto.addResponseInterceptor = function addResponseInterceptor(onFulfilled, onRejected) {
16336
+ return _classPrivateFieldLooseBase(this, _adapter)[_adapter].interceptors.response.use(onFulfilled, onRejected);
16337
+ };
16338
+
16339
+ _proto.removeInterceptor = function removeInterceptor(type, id) {
16340
+ return _classPrivateFieldLooseBase(this, _adapter)[_adapter].interceptors[type].eject(id);
15817
16341
  };
15818
16342
 
15819
16343
  _createClass(CommerceLayerClient, [{
@@ -15829,6 +16353,16 @@ var CommerceLayerClient = /*#__PURE__*/function () {
15829
16353
  var CommerceLayer = function CommerceLayer(config) {
15830
16354
  return new CommerceLayerClient(config);
15831
16355
  };
16356
+ var CommerceLayerStatic = {
16357
+ resources: function resources() {
16358
+ return Object.keys(resourcMap);
16359
+ },
16360
+ // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
16361
+ isApiError: function isApiError(error) {
16362
+ return ApiError.isApiError(error);
16363
+ }
16364
+ };
15832
16365
 
15833
16366
  export default CommerceLayer;
16367
+ export { CommerceLayerStatic };
15834
16368
  //# sourceMappingURL=sdk.esm.js.map