@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.
- package/README.md +1 -1
- package/lib/api.d.ts +10 -3
- package/lib/client.d.ts +2 -0
- package/lib/commercelayer.d.ts +9 -1
- package/lib/index.d.ts +4 -2
- package/lib/interceptor.d.ts +10 -0
- package/lib/model.d.ts +94 -0
- package/lib/resource.d.ts +6 -3
- package/lib/resources/addresses.d.ts +1 -2
- package/lib/resources/adjustments.d.ts +1 -2
- package/lib/resources/adyen_gateways.d.ts +1 -2
- package/lib/resources/adyen_payments.d.ts +1 -2
- package/lib/resources/application.d.ts +1 -2
- package/lib/resources/attachments.d.ts +1 -2
- package/lib/resources/authorizations.d.ts +1 -2
- package/lib/resources/avalara_accounts.d.ts +1 -2
- package/lib/resources/billing_info_validation_rules.d.ts +1 -2
- package/lib/resources/bing_geocoders.d.ts +1 -2
- package/lib/resources/braintree_gateways.d.ts +1 -2
- package/lib/resources/braintree_payments.d.ts +1 -2
- package/lib/resources/bundles.d.ts +1 -2
- package/lib/resources/captures.d.ts +1 -2
- package/lib/resources/carrier_accounts.d.ts +1 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -2
- package/lib/resources/coupons.d.ts +1 -2
- package/lib/resources/customer_addresses.d.ts +1 -2
- package/lib/resources/customer_groups.d.ts +1 -2
- package/lib/resources/customer_password_resets.d.ts +1 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -2
- package/lib/resources/customers.d.ts +3 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -2
- package/lib/resources/external_gateways.d.ts +1 -2
- package/lib/resources/external_payments.d.ts +1 -2
- package/lib/resources/external_promotions.d.ts +1 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -2
- package/lib/resources/geocoders.d.ts +1 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -2
- package/lib/resources/gift_cards.d.ts +1 -2
- package/lib/resources/google_geocoders.d.ts +1 -2
- package/lib/resources/imports.d.ts +2 -3
- package/lib/resources/in_stock_subscriptions.d.ts +1 -2
- package/lib/resources/inventory_models.d.ts +1 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -2
- package/lib/resources/line_item_options.d.ts +1 -2
- package/lib/resources/line_items.d.ts +1 -2
- package/lib/resources/manual_gateways.d.ts +1 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -2
- package/lib/resources/markets.d.ts +1 -2
- package/lib/resources/merchants.d.ts +1 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -2
- package/lib/resources/order_copies.d.ts +1 -2
- package/lib/resources/order_subscriptions.d.ts +3 -2
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/organization.d.ts +1 -2
- package/lib/resources/packages.d.ts +1 -2
- package/lib/resources/parcel_line_items.d.ts +1 -2
- package/lib/resources/parcels.d.ts +1 -2
- package/lib/resources/payment_gateways.d.ts +1 -2
- package/lib/resources/payment_methods.d.ts +1 -2
- package/lib/resources/paypal_gateways.d.ts +1 -2
- package/lib/resources/paypal_payments.d.ts +1 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -2
- package/lib/resources/price_lists.d.ts +1 -2
- package/lib/resources/prices.d.ts +1 -2
- package/lib/resources/promotion_rules.d.ts +1 -2
- package/lib/resources/promotions.d.ts +1 -2
- package/lib/resources/refunds.d.ts +1 -2
- package/lib/resources/return_line_items.d.ts +1 -2
- package/lib/resources/returns.d.ts +1 -2
- package/lib/resources/shipments.d.ts +1 -2
- package/lib/resources/shipping_categories.d.ts +1 -2
- package/lib/resources/shipping_methods.d.ts +1 -2
- package/lib/resources/shipping_zones.d.ts +1 -2
- package/lib/resources/sku_list_items.d.ts +1 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -2
- package/lib/resources/sku_lists.d.ts +1 -2
- package/lib/resources/sku_options.d.ts +1 -2
- package/lib/resources/skus.d.ts +1 -2
- package/lib/resources/stock_items.d.ts +1 -2
- package/lib/resources/stock_line_items.d.ts +1 -2
- package/lib/resources/stock_locations.d.ts +1 -2
- package/lib/resources/stock_transfers.d.ts +1 -2
- package/lib/resources/stripe_gateways.d.ts +1 -2
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -2
- package/lib/resources/tax_categories.d.ts +1 -2
- package/lib/resources/tax_rules.d.ts +1 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -2
- package/lib/resources/transactions.d.ts +1 -2
- package/lib/resources/voids.d.ts +1 -2
- package/lib/resources/webhooks.d.ts +1 -2
- package/lib/resources/wire_transfers.d.ts +1 -2
- package/lib/sdk.cjs.development.js +808 -274
- package/lib/sdk.cjs.development.js.map +1 -1
- package/lib/sdk.cjs.production.min.js +1 -1
- package/lib/sdk.cjs.production.min.js.map +1 -1
- package/lib/sdk.esm.js +808 -274
- package/lib/sdk.esm.js.map +1 -1
- package/package.json +7 -4
- package/lib/.DS_Store +0 -0
- package/lib/api.js +0 -271
- package/lib/client.js +0 -132
- package/lib/commercelayer.js +0 -163
- package/lib/error.js +0 -25
- package/lib/jsonapi.js +0 -83
- package/lib/poly.d.ts +0 -9
- package/lib/poly.js +0 -2
- package/lib/query.js +0 -172
- package/lib/resource.js +0 -94
- package/lib/resources/addresses.js +0 -45
- package/lib/resources/adjustments.js +0 -45
- package/lib/resources/adyen_gateways.js +0 -45
- package/lib/resources/adyen_payments.js +0 -45
- package/lib/resources/application.js +0 -33
- package/lib/resources/attachments.js +0 -45
- package/lib/resources/authorizations.js +0 -45
- package/lib/resources/avalara_accounts.js +0 -45
- package/lib/resources/billing_info_validation_rules.js +0 -45
- package/lib/resources/braintree_gateways.js +0 -45
- package/lib/resources/braintree_payments.js +0 -45
- package/lib/resources/captures.js +0 -39
- package/lib/resources/carrier_accounts.js +0 -36
- package/lib/resources/checkout_com_gateways.js +0 -45
- package/lib/resources/checkout_com_payments.js +0 -45
- package/lib/resources/coupon_codes_promotion_rules.js +0 -45
- package/lib/resources/coupons.js +0 -45
- package/lib/resources/customer_addresses.js +0 -45
- package/lib/resources/customer_groups.js +0 -45
- package/lib/resources/customer_password_resets.js +0 -45
- package/lib/resources/customer_payment_sources.js +0 -45
- package/lib/resources/customer_subscriptions.js +0 -45
- package/lib/resources/customers.js +0 -45
- package/lib/resources/delivery_lead_times.js +0 -45
- package/lib/resources/external_gateways.js +0 -45
- package/lib/resources/external_payments.js +0 -45
- package/lib/resources/external_promotions.js +0 -45
- package/lib/resources/external_tax_calculators.js +0 -45
- package/lib/resources/fixed_amount_promotions.js +0 -45
- package/lib/resources/free_shipping_promotions.js +0 -45
- package/lib/resources/gift_card_recipients.js +0 -45
- package/lib/resources/gift_cards.js +0 -45
- package/lib/resources/imports.js +0 -42
- package/lib/resources/in_stock_subscriptions.js +0 -45
- package/lib/resources/inventory_models.js +0 -45
- package/lib/resources/inventory_return_locations.js +0 -45
- package/lib/resources/inventory_stock_locations.js +0 -45
- package/lib/resources/line_item_options.js +0 -45
- package/lib/resources/line_items.js +0 -45
- package/lib/resources/manual_gateways.js +0 -45
- package/lib/resources/manual_tax_calculators.js +0 -45
- package/lib/resources/markets.js +0 -45
- package/lib/resources/merchants.js +0 -45
- package/lib/resources/order_amount_promotion_rules.js +0 -45
- package/lib/resources/orders.js +0 -45
- package/lib/resources/organization.js +0 -33
- package/lib/resources/packages.js +0 -45
- package/lib/resources/parcel_line_items.js +0 -45
- package/lib/resources/parcels.js +0 -45
- package/lib/resources/payment_gateways.js +0 -45
- package/lib/resources/payment_methods.js +0 -45
- package/lib/resources/paypal_gateways.js +0 -45
- package/lib/resources/paypal_payments.js +0 -45
- package/lib/resources/percentage_discount_promotions.js +0 -45
- package/lib/resources/price_lists.js +0 -45
- package/lib/resources/prices.js +0 -45
- package/lib/resources/promotion_rules.js +0 -33
- package/lib/resources/promotions.js +0 -33
- package/lib/resources/refunds.js +0 -36
- package/lib/resources/return_line_items.js +0 -45
- package/lib/resources/returns.js +0 -45
- package/lib/resources/shipments.js +0 -39
- package/lib/resources/shipping_categories.js +0 -45
- package/lib/resources/shipping_methods.js +0 -45
- package/lib/resources/shipping_zones.js +0 -45
- package/lib/resources/sku_list_items.js +0 -45
- package/lib/resources/sku_list_promotion_rules.js +0 -45
- package/lib/resources/sku_lists.js +0 -45
- package/lib/resources/sku_options.js +0 -45
- package/lib/resources/skus.js +0 -45
- package/lib/resources/stock_items.js +0 -45
- package/lib/resources/stock_line_items.js +0 -36
- package/lib/resources/stock_locations.js +0 -45
- package/lib/resources/stock_transfers.js +0 -45
- package/lib/resources/stripe_gateways.js +0 -45
- package/lib/resources/stripe_payments.js +0 -45
- package/lib/resources/tax_calculators.js +0 -33
- package/lib/resources/tax_categories.js +0 -45
- package/lib/resources/tax_rules.js +0 -45
- package/lib/resources/taxjar_accounts.js +0 -45
- package/lib/resources/transactions.js +0 -33
- package/lib/resources/voids.js +0 -36
- package/lib/resources/webhooks.js +0 -45
- package/lib/resources/wire_transfers.js +0 -45
- package/lib/util.js +0 -7
@@ -966,7 +966,7 @@ var ApiError = /*#__PURE__*/function (_Error) {
|
|
966
966
|
|
967
967
|
|
968
968
|
ApiError.isApiError = function isApiError(error) {
|
969
|
-
return error
|
969
|
+
return error && error.name === 'ApiError' && error.type === ErrorType.RESPONSE;
|
970
970
|
};
|
971
971
|
|
972
972
|
return ApiError;
|
@@ -975,22 +975,6 @@ var ApiError = /*#__PURE__*/function (_Error) {
|
|
975
975
|
var baseURL = function baseURL(organization, domain) {
|
976
976
|
return "https://" + organization.toLowerCase() + "." + (domain ? domain : 'commercelayer.io') + "/api";
|
977
977
|
};
|
978
|
-
/*
|
979
|
-
axios.interceptors.request.use(request => {
|
980
|
-
console.log()
|
981
|
-
console.log('REQUEST -->')
|
982
|
-
console.log(request)
|
983
|
-
return request
|
984
|
-
})
|
985
|
-
|
986
|
-
axios.interceptors.response.use(response => {
|
987
|
-
console.log()
|
988
|
-
console.log('<-- RESPONSE')
|
989
|
-
console.log(response.data)
|
990
|
-
return response
|
991
|
-
})
|
992
|
-
*/
|
993
|
-
|
994
978
|
|
995
979
|
var handleError = function handleError(error) {
|
996
980
|
var apiError = new ApiError({
|
@@ -1046,15 +1030,7 @@ var ApiClient = /*#__PURE__*/function () {
|
|
1046
1030
|
'Authorization': 'Bearer ' + _classPrivateFieldLooseBase(this, _accessToken)[_accessToken]
|
1047
1031
|
}
|
1048
1032
|
}, axiosConfig));
|
1049
|
-
|
1050
|
-
this.#client.interceptors.request.use(function (config) {
|
1051
|
-
console.log('>>>>>>>>>> REQUEST INTERCEPTOR')
|
1052
|
-
return config;
|
1053
|
-
}, function (error) {
|
1054
|
-
// Do something with request error
|
1055
|
-
return Promise.reject(error);
|
1056
|
-
})
|
1057
|
-
*/
|
1033
|
+
this.interceptors = _classPrivateFieldLooseBase(this, _client)[_client].interceptors;
|
1058
1034
|
}
|
1059
1035
|
|
1060
1036
|
ApiClient.create = function create(options) {
|
@@ -1177,7 +1153,7 @@ var normalize = function normalize(resource) {
|
|
1177
1153
|
if (['type', 'id'].includes(field)) continue;
|
1178
1154
|
var value = resource[field];
|
1179
1155
|
|
1180
|
-
if (value && isResourceId(value)) {
|
1156
|
+
if (value && (isResourceId(value) || Array.isArray(value) && isResourceId(value[0]))) {
|
1181
1157
|
relationships[field] = {
|
1182
1158
|
data: value
|
1183
1159
|
};
|
@@ -1302,14 +1278,13 @@ var ResourceAdapter = /*#__PURE__*/function () {
|
|
1302
1278
|
|
1303
1279
|
|
1304
1280
|
return;
|
1305
|
-
}
|
1281
|
+
};
|
1282
|
+
|
1306
1283
|
/*
|
1307
1284
|
private isRawResponse(options?: ResourcesConfig): boolean {
|
1308
1285
|
return (typeof options?.rawResponse !== 'undefined') ? (options?.rawResponse === true) : (this.#config.rawResponse === true)
|
1309
1286
|
}
|
1310
1287
|
*/
|
1311
|
-
;
|
1312
|
-
|
1313
1288
|
_proto2.singleton =
|
1314
1289
|
/*#__PURE__*/
|
1315
1290
|
function () {
|
@@ -1320,17 +1295,18 @@ var ResourceAdapter = /*#__PURE__*/function () {
|
|
1320
1295
|
switch (_context.prev = _context.next) {
|
1321
1296
|
case 0:
|
1322
1297
|
queryParams = generateQueryStringParams(params);
|
1323
|
-
|
1298
|
+
if (options != null && options.params) Object.assign(queryParams, options == null ? void 0 : options.params);
|
1299
|
+
_context.next = 4;
|
1324
1300
|
return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('get', "" + resource.type, undefined, _extends({}, options, {
|
1325
1301
|
params: queryParams
|
1326
1302
|
}));
|
1327
1303
|
|
1328
|
-
case
|
1304
|
+
case 4:
|
1329
1305
|
res = _context.sent;
|
1330
1306
|
r = denormalize(res);
|
1331
1307
|
return _context.abrupt("return", r);
|
1332
1308
|
|
1333
|
-
case
|
1309
|
+
case 7:
|
1334
1310
|
case "end":
|
1335
1311
|
return _context.stop();
|
1336
1312
|
}
|
@@ -1353,17 +1329,18 @@ var ResourceAdapter = /*#__PURE__*/function () {
|
|
1353
1329
|
switch (_context2.prev = _context2.next) {
|
1354
1330
|
case 0:
|
1355
1331
|
queryParams = generateQueryStringParams(params);
|
1356
|
-
|
1332
|
+
if (options != null && options.params) Object.assign(queryParams, options == null ? void 0 : options.params);
|
1333
|
+
_context2.next = 4;
|
1357
1334
|
return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('get', resource.type + "/" + resource.id, undefined, _extends({}, options, {
|
1358
1335
|
params: queryParams
|
1359
1336
|
}));
|
1360
1337
|
|
1361
|
-
case
|
1338
|
+
case 4:
|
1362
1339
|
res = _context2.sent;
|
1363
1340
|
r = denormalize(res);
|
1364
1341
|
return _context2.abrupt("return", r);
|
1365
1342
|
|
1366
|
-
case
|
1343
|
+
case 7:
|
1367
1344
|
case "end":
|
1368
1345
|
return _context2.stop();
|
1369
1346
|
}
|
@@ -1388,12 +1365,13 @@ var ResourceAdapter = /*#__PURE__*/function () {
|
|
1388
1365
|
switch (_context3.prev = _context3.next) {
|
1389
1366
|
case 0:
|
1390
1367
|
queryParams = generateQueryStringParams(params);
|
1391
|
-
|
1368
|
+
if (options != null && options.params) Object.assign(queryParams, options == null ? void 0 : options.params);
|
1369
|
+
_context3.next = 4;
|
1392
1370
|
return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('get', "" + resource.type, undefined, _extends({}, options, {
|
1393
1371
|
params: queryParams
|
1394
1372
|
}));
|
1395
1373
|
|
1396
|
-
case
|
1374
|
+
case 4:
|
1397
1375
|
res = _context3.sent;
|
1398
1376
|
r = denormalize(res);
|
1399
1377
|
meta = {
|
@@ -1404,7 +1382,7 @@ var ResourceAdapter = /*#__PURE__*/function () {
|
|
1404
1382
|
};
|
1405
1383
|
return _context3.abrupt("return", new ListResponse(meta, r));
|
1406
1384
|
|
1407
|
-
case
|
1385
|
+
case 8:
|
1408
1386
|
case "end":
|
1409
1387
|
return _context3.stop();
|
1410
1388
|
}
|
@@ -1487,9 +1465,10 @@ var ResourceAdapter = /*#__PURE__*/function () {
|
|
1487
1465
|
while (1) {
|
1488
1466
|
switch (_context6.prev = _context6.next) {
|
1489
1467
|
case 0:
|
1490
|
-
|
1468
|
+
_context6.next = 2;
|
1469
|
+
return _classPrivateFieldLooseBase(this, _client$1)[_client$1].request('delete', resource.type + "/" + resource.id, undefined, options);
|
1491
1470
|
|
1492
|
-
case
|
1471
|
+
case 2:
|
1493
1472
|
case "end":
|
1494
1473
|
return _context6.stop();
|
1495
1474
|
}
|
@@ -1504,6 +1483,13 @@ var ResourceAdapter = /*#__PURE__*/function () {
|
|
1504
1483
|
return _delete;
|
1505
1484
|
}();
|
1506
1485
|
|
1486
|
+
_createClass(ResourceAdapter, [{
|
1487
|
+
key: "interceptors",
|
1488
|
+
get: function get() {
|
1489
|
+
return _classPrivateFieldLooseBase(this, _client$1)[_client$1].interceptors;
|
1490
|
+
}
|
1491
|
+
}]);
|
1492
|
+
|
1507
1493
|
return ResourceAdapter;
|
1508
1494
|
}();
|
1509
1495
|
|
@@ -1554,7 +1540,7 @@ var Addresses = /*#__PURE__*/function (_ApiResource) {
|
|
1554
1540
|
while (1) {
|
1555
1541
|
switch (_context2.prev = _context2.next) {
|
1556
1542
|
case 0:
|
1557
|
-
return _context2.abrupt("return", this.resources.create(
|
1543
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
1558
1544
|
type: Addresses.TYPE
|
1559
1545
|
}), options));
|
1560
1546
|
|
@@ -1630,12 +1616,13 @@ var Addresses = /*#__PURE__*/function (_ApiResource) {
|
|
1630
1616
|
while (1) {
|
1631
1617
|
switch (_context5.prev = _context5.next) {
|
1632
1618
|
case 0:
|
1633
|
-
|
1619
|
+
_context5.next = 2;
|
1620
|
+
return this.resources["delete"]({
|
1634
1621
|
type: Addresses.TYPE,
|
1635
1622
|
id: id
|
1636
1623
|
}, options);
|
1637
1624
|
|
1638
|
-
case
|
1625
|
+
case 2:
|
1639
1626
|
case "end":
|
1640
1627
|
return _context5.stop();
|
1641
1628
|
}
|
@@ -1725,7 +1712,7 @@ var Adjustments = /*#__PURE__*/function (_ApiResource) {
|
|
1725
1712
|
while (1) {
|
1726
1713
|
switch (_context2.prev = _context2.next) {
|
1727
1714
|
case 0:
|
1728
|
-
return _context2.abrupt("return", this.resources.create(
|
1715
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
1729
1716
|
type: Adjustments.TYPE
|
1730
1717
|
}), options));
|
1731
1718
|
|
@@ -1801,12 +1788,13 @@ var Adjustments = /*#__PURE__*/function (_ApiResource) {
|
|
1801
1788
|
while (1) {
|
1802
1789
|
switch (_context5.prev = _context5.next) {
|
1803
1790
|
case 0:
|
1804
|
-
|
1791
|
+
_context5.next = 2;
|
1792
|
+
return this.resources["delete"]({
|
1805
1793
|
type: Adjustments.TYPE,
|
1806
1794
|
id: id
|
1807
1795
|
}, options);
|
1808
1796
|
|
1809
|
-
case
|
1797
|
+
case 2:
|
1810
1798
|
case "end":
|
1811
1799
|
return _context5.stop();
|
1812
1800
|
}
|
@@ -1896,7 +1884,7 @@ var AdyenGateways = /*#__PURE__*/function (_ApiResource) {
|
|
1896
1884
|
while (1) {
|
1897
1885
|
switch (_context2.prev = _context2.next) {
|
1898
1886
|
case 0:
|
1899
|
-
return _context2.abrupt("return", this.resources.create(
|
1887
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
1900
1888
|
type: AdyenGateways.TYPE
|
1901
1889
|
}), options));
|
1902
1890
|
|
@@ -1972,12 +1960,13 @@ var AdyenGateways = /*#__PURE__*/function (_ApiResource) {
|
|
1972
1960
|
while (1) {
|
1973
1961
|
switch (_context5.prev = _context5.next) {
|
1974
1962
|
case 0:
|
1975
|
-
|
1963
|
+
_context5.next = 2;
|
1964
|
+
return this.resources["delete"]({
|
1976
1965
|
type: AdyenGateways.TYPE,
|
1977
1966
|
id: id
|
1978
1967
|
}, options);
|
1979
1968
|
|
1980
|
-
case
|
1969
|
+
case 2:
|
1981
1970
|
case "end":
|
1982
1971
|
return _context5.stop();
|
1983
1972
|
}
|
@@ -2067,7 +2056,7 @@ var AdyenPayments = /*#__PURE__*/function (_ApiResource) {
|
|
2067
2056
|
while (1) {
|
2068
2057
|
switch (_context2.prev = _context2.next) {
|
2069
2058
|
case 0:
|
2070
|
-
return _context2.abrupt("return", this.resources.create(
|
2059
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
2071
2060
|
type: AdyenPayments.TYPE
|
2072
2061
|
}), options));
|
2073
2062
|
|
@@ -2143,12 +2132,13 @@ var AdyenPayments = /*#__PURE__*/function (_ApiResource) {
|
|
2143
2132
|
while (1) {
|
2144
2133
|
switch (_context5.prev = _context5.next) {
|
2145
2134
|
case 0:
|
2146
|
-
|
2135
|
+
_context5.next = 2;
|
2136
|
+
return this.resources["delete"]({
|
2147
2137
|
type: AdyenPayments.TYPE,
|
2148
2138
|
id: id
|
2149
2139
|
}, options);
|
2150
2140
|
|
2151
|
-
case
|
2141
|
+
case 2:
|
2152
2142
|
case "end":
|
2153
2143
|
return _context5.stop();
|
2154
2144
|
}
|
@@ -2307,7 +2297,7 @@ var Attachments = /*#__PURE__*/function (_ApiResource) {
|
|
2307
2297
|
while (1) {
|
2308
2298
|
switch (_context2.prev = _context2.next) {
|
2309
2299
|
case 0:
|
2310
|
-
return _context2.abrupt("return", this.resources.create(
|
2300
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
2311
2301
|
type: Attachments.TYPE
|
2312
2302
|
}), options));
|
2313
2303
|
|
@@ -2383,12 +2373,13 @@ var Attachments = /*#__PURE__*/function (_ApiResource) {
|
|
2383
2373
|
while (1) {
|
2384
2374
|
switch (_context5.prev = _context5.next) {
|
2385
2375
|
case 0:
|
2386
|
-
|
2376
|
+
_context5.next = 2;
|
2377
|
+
return this.resources["delete"]({
|
2387
2378
|
type: Attachments.TYPE,
|
2388
2379
|
id: id
|
2389
2380
|
}, options);
|
2390
2381
|
|
2391
|
-
case
|
2382
|
+
case 2:
|
2392
2383
|
case "end":
|
2393
2384
|
return _context5.stop();
|
2394
2385
|
}
|
@@ -2598,7 +2589,7 @@ var AvalaraAccounts = /*#__PURE__*/function (_ApiResource) {
|
|
2598
2589
|
while (1) {
|
2599
2590
|
switch (_context2.prev = _context2.next) {
|
2600
2591
|
case 0:
|
2601
|
-
return _context2.abrupt("return", this.resources.create(
|
2592
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
2602
2593
|
type: AvalaraAccounts.TYPE
|
2603
2594
|
}), options));
|
2604
2595
|
|
@@ -2674,12 +2665,13 @@ var AvalaraAccounts = /*#__PURE__*/function (_ApiResource) {
|
|
2674
2665
|
while (1) {
|
2675
2666
|
switch (_context5.prev = _context5.next) {
|
2676
2667
|
case 0:
|
2677
|
-
|
2668
|
+
_context5.next = 2;
|
2669
|
+
return this.resources["delete"]({
|
2678
2670
|
type: AvalaraAccounts.TYPE,
|
2679
2671
|
id: id
|
2680
2672
|
}, options);
|
2681
2673
|
|
2682
|
-
case
|
2674
|
+
case 2:
|
2683
2675
|
case "end":
|
2684
2676
|
return _context5.stop();
|
2685
2677
|
}
|
@@ -2769,7 +2761,7 @@ var BillingInfoValidationRules = /*#__PURE__*/function (_ApiResource) {
|
|
2769
2761
|
while (1) {
|
2770
2762
|
switch (_context2.prev = _context2.next) {
|
2771
2763
|
case 0:
|
2772
|
-
return _context2.abrupt("return", this.resources.create(
|
2764
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
2773
2765
|
type: BillingInfoValidationRules.TYPE
|
2774
2766
|
}), options));
|
2775
2767
|
|
@@ -2845,12 +2837,13 @@ var BillingInfoValidationRules = /*#__PURE__*/function (_ApiResource) {
|
|
2845
2837
|
while (1) {
|
2846
2838
|
switch (_context5.prev = _context5.next) {
|
2847
2839
|
case 0:
|
2848
|
-
|
2840
|
+
_context5.next = 2;
|
2841
|
+
return this.resources["delete"]({
|
2849
2842
|
type: BillingInfoValidationRules.TYPE,
|
2850
2843
|
id: id
|
2851
2844
|
}, options);
|
2852
2845
|
|
2853
|
-
case
|
2846
|
+
case 2:
|
2854
2847
|
case "end":
|
2855
2848
|
return _context5.stop();
|
2856
2849
|
}
|
@@ -2940,7 +2933,7 @@ var BingGeocoders = /*#__PURE__*/function (_ApiResource) {
|
|
2940
2933
|
while (1) {
|
2941
2934
|
switch (_context2.prev = _context2.next) {
|
2942
2935
|
case 0:
|
2943
|
-
return _context2.abrupt("return", this.resources.create(
|
2936
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
2944
2937
|
type: BingGeocoders.TYPE
|
2945
2938
|
}), options));
|
2946
2939
|
|
@@ -3016,12 +3009,13 @@ var BingGeocoders = /*#__PURE__*/function (_ApiResource) {
|
|
3016
3009
|
while (1) {
|
3017
3010
|
switch (_context5.prev = _context5.next) {
|
3018
3011
|
case 0:
|
3019
|
-
|
3012
|
+
_context5.next = 2;
|
3013
|
+
return this.resources["delete"]({
|
3020
3014
|
type: BingGeocoders.TYPE,
|
3021
3015
|
id: id
|
3022
3016
|
}, options);
|
3023
3017
|
|
3024
|
-
case
|
3018
|
+
case 2:
|
3025
3019
|
case "end":
|
3026
3020
|
return _context5.stop();
|
3027
3021
|
}
|
@@ -3111,7 +3105,7 @@ var BraintreeGateways = /*#__PURE__*/function (_ApiResource) {
|
|
3111
3105
|
while (1) {
|
3112
3106
|
switch (_context2.prev = _context2.next) {
|
3113
3107
|
case 0:
|
3114
|
-
return _context2.abrupt("return", this.resources.create(
|
3108
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
3115
3109
|
type: BraintreeGateways.TYPE
|
3116
3110
|
}), options));
|
3117
3111
|
|
@@ -3187,12 +3181,13 @@ var BraintreeGateways = /*#__PURE__*/function (_ApiResource) {
|
|
3187
3181
|
while (1) {
|
3188
3182
|
switch (_context5.prev = _context5.next) {
|
3189
3183
|
case 0:
|
3190
|
-
|
3184
|
+
_context5.next = 2;
|
3185
|
+
return this.resources["delete"]({
|
3191
3186
|
type: BraintreeGateways.TYPE,
|
3192
3187
|
id: id
|
3193
3188
|
}, options);
|
3194
3189
|
|
3195
|
-
case
|
3190
|
+
case 2:
|
3196
3191
|
case "end":
|
3197
3192
|
return _context5.stop();
|
3198
3193
|
}
|
@@ -3282,7 +3277,7 @@ var BraintreePayments = /*#__PURE__*/function (_ApiResource) {
|
|
3282
3277
|
while (1) {
|
3283
3278
|
switch (_context2.prev = _context2.next) {
|
3284
3279
|
case 0:
|
3285
|
-
return _context2.abrupt("return", this.resources.create(
|
3280
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
3286
3281
|
type: BraintreePayments.TYPE
|
3287
3282
|
}), options));
|
3288
3283
|
|
@@ -3358,12 +3353,13 @@ var BraintreePayments = /*#__PURE__*/function (_ApiResource) {
|
|
3358
3353
|
while (1) {
|
3359
3354
|
switch (_context5.prev = _context5.next) {
|
3360
3355
|
case 0:
|
3361
|
-
|
3356
|
+
_context5.next = 2;
|
3357
|
+
return this.resources["delete"]({
|
3362
3358
|
type: BraintreePayments.TYPE,
|
3363
3359
|
id: id
|
3364
3360
|
}, options);
|
3365
3361
|
|
3366
|
-
case
|
3362
|
+
case 2:
|
3367
3363
|
case "end":
|
3368
3364
|
return _context5.stop();
|
3369
3365
|
}
|
@@ -3453,7 +3449,7 @@ var Bundles = /*#__PURE__*/function (_ApiResource) {
|
|
3453
3449
|
while (1) {
|
3454
3450
|
switch (_context2.prev = _context2.next) {
|
3455
3451
|
case 0:
|
3456
|
-
return _context2.abrupt("return", this.resources.create(
|
3452
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
3457
3453
|
type: Bundles.TYPE
|
3458
3454
|
}), options));
|
3459
3455
|
|
@@ -3529,12 +3525,13 @@ var Bundles = /*#__PURE__*/function (_ApiResource) {
|
|
3529
3525
|
while (1) {
|
3530
3526
|
switch (_context5.prev = _context5.next) {
|
3531
3527
|
case 0:
|
3532
|
-
|
3528
|
+
_context5.next = 2;
|
3529
|
+
return this.resources["delete"]({
|
3533
3530
|
type: Bundles.TYPE,
|
3534
3531
|
id: id
|
3535
3532
|
}, options);
|
3536
3533
|
|
3537
|
-
case
|
3534
|
+
case 2:
|
3538
3535
|
case "end":
|
3539
3536
|
return _context5.stop();
|
3540
3537
|
}
|
@@ -3839,7 +3836,7 @@ var CheckoutComGateways = /*#__PURE__*/function (_ApiResource) {
|
|
3839
3836
|
while (1) {
|
3840
3837
|
switch (_context2.prev = _context2.next) {
|
3841
3838
|
case 0:
|
3842
|
-
return _context2.abrupt("return", this.resources.create(
|
3839
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
3843
3840
|
type: CheckoutComGateways.TYPE
|
3844
3841
|
}), options));
|
3845
3842
|
|
@@ -3915,12 +3912,13 @@ var CheckoutComGateways = /*#__PURE__*/function (_ApiResource) {
|
|
3915
3912
|
while (1) {
|
3916
3913
|
switch (_context5.prev = _context5.next) {
|
3917
3914
|
case 0:
|
3918
|
-
|
3915
|
+
_context5.next = 2;
|
3916
|
+
return this.resources["delete"]({
|
3919
3917
|
type: CheckoutComGateways.TYPE,
|
3920
3918
|
id: id
|
3921
3919
|
}, options);
|
3922
3920
|
|
3923
|
-
case
|
3921
|
+
case 2:
|
3924
3922
|
case "end":
|
3925
3923
|
return _context5.stop();
|
3926
3924
|
}
|
@@ -4010,7 +4008,7 @@ var CheckoutComPayments = /*#__PURE__*/function (_ApiResource) {
|
|
4010
4008
|
while (1) {
|
4011
4009
|
switch (_context2.prev = _context2.next) {
|
4012
4010
|
case 0:
|
4013
|
-
return _context2.abrupt("return", this.resources.create(
|
4011
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
4014
4012
|
type: CheckoutComPayments.TYPE
|
4015
4013
|
}), options));
|
4016
4014
|
|
@@ -4086,12 +4084,13 @@ var CheckoutComPayments = /*#__PURE__*/function (_ApiResource) {
|
|
4086
4084
|
while (1) {
|
4087
4085
|
switch (_context5.prev = _context5.next) {
|
4088
4086
|
case 0:
|
4089
|
-
|
4087
|
+
_context5.next = 2;
|
4088
|
+
return this.resources["delete"]({
|
4090
4089
|
type: CheckoutComPayments.TYPE,
|
4091
4090
|
id: id
|
4092
4091
|
}, options);
|
4093
4092
|
|
4094
|
-
case
|
4093
|
+
case 2:
|
4095
4094
|
case "end":
|
4096
4095
|
return _context5.stop();
|
4097
4096
|
}
|
@@ -4181,7 +4180,7 @@ var CouponCodesPromotionRules = /*#__PURE__*/function (_ApiResource) {
|
|
4181
4180
|
while (1) {
|
4182
4181
|
switch (_context2.prev = _context2.next) {
|
4183
4182
|
case 0:
|
4184
|
-
return _context2.abrupt("return", this.resources.create(
|
4183
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
4185
4184
|
type: CouponCodesPromotionRules.TYPE
|
4186
4185
|
}), options));
|
4187
4186
|
|
@@ -4257,12 +4256,13 @@ var CouponCodesPromotionRules = /*#__PURE__*/function (_ApiResource) {
|
|
4257
4256
|
while (1) {
|
4258
4257
|
switch (_context5.prev = _context5.next) {
|
4259
4258
|
case 0:
|
4260
|
-
|
4259
|
+
_context5.next = 2;
|
4260
|
+
return this.resources["delete"]({
|
4261
4261
|
type: CouponCodesPromotionRules.TYPE,
|
4262
4262
|
id: id
|
4263
4263
|
}, options);
|
4264
4264
|
|
4265
|
-
case
|
4265
|
+
case 2:
|
4266
4266
|
case "end":
|
4267
4267
|
return _context5.stop();
|
4268
4268
|
}
|
@@ -4352,7 +4352,7 @@ var Coupons = /*#__PURE__*/function (_ApiResource) {
|
|
4352
4352
|
while (1) {
|
4353
4353
|
switch (_context2.prev = _context2.next) {
|
4354
4354
|
case 0:
|
4355
|
-
return _context2.abrupt("return", this.resources.create(
|
4355
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
4356
4356
|
type: Coupons.TYPE
|
4357
4357
|
}), options));
|
4358
4358
|
|
@@ -4428,12 +4428,13 @@ var Coupons = /*#__PURE__*/function (_ApiResource) {
|
|
4428
4428
|
while (1) {
|
4429
4429
|
switch (_context5.prev = _context5.next) {
|
4430
4430
|
case 0:
|
4431
|
-
|
4431
|
+
_context5.next = 2;
|
4432
|
+
return this.resources["delete"]({
|
4432
4433
|
type: Coupons.TYPE,
|
4433
4434
|
id: id
|
4434
4435
|
}, options);
|
4435
4436
|
|
4436
|
-
case
|
4437
|
+
case 2:
|
4437
4438
|
case "end":
|
4438
4439
|
return _context5.stop();
|
4439
4440
|
}
|
@@ -4523,7 +4524,7 @@ var CustomerAddresses = /*#__PURE__*/function (_ApiResource) {
|
|
4523
4524
|
while (1) {
|
4524
4525
|
switch (_context2.prev = _context2.next) {
|
4525
4526
|
case 0:
|
4526
|
-
return _context2.abrupt("return", this.resources.create(
|
4527
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
4527
4528
|
type: CustomerAddresses.TYPE
|
4528
4529
|
}), options));
|
4529
4530
|
|
@@ -4599,12 +4600,13 @@ var CustomerAddresses = /*#__PURE__*/function (_ApiResource) {
|
|
4599
4600
|
while (1) {
|
4600
4601
|
switch (_context5.prev = _context5.next) {
|
4601
4602
|
case 0:
|
4602
|
-
|
4603
|
+
_context5.next = 2;
|
4604
|
+
return this.resources["delete"]({
|
4603
4605
|
type: CustomerAddresses.TYPE,
|
4604
4606
|
id: id
|
4605
4607
|
}, options);
|
4606
4608
|
|
4607
|
-
case
|
4609
|
+
case 2:
|
4608
4610
|
case "end":
|
4609
4611
|
return _context5.stop();
|
4610
4612
|
}
|
@@ -4694,7 +4696,7 @@ var CustomerGroups = /*#__PURE__*/function (_ApiResource) {
|
|
4694
4696
|
while (1) {
|
4695
4697
|
switch (_context2.prev = _context2.next) {
|
4696
4698
|
case 0:
|
4697
|
-
return _context2.abrupt("return", this.resources.create(
|
4699
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
4698
4700
|
type: CustomerGroups.TYPE
|
4699
4701
|
}), options));
|
4700
4702
|
|
@@ -4770,12 +4772,13 @@ var CustomerGroups = /*#__PURE__*/function (_ApiResource) {
|
|
4770
4772
|
while (1) {
|
4771
4773
|
switch (_context5.prev = _context5.next) {
|
4772
4774
|
case 0:
|
4773
|
-
|
4775
|
+
_context5.next = 2;
|
4776
|
+
return this.resources["delete"]({
|
4774
4777
|
type: CustomerGroups.TYPE,
|
4775
4778
|
id: id
|
4776
4779
|
}, options);
|
4777
4780
|
|
4778
|
-
case
|
4781
|
+
case 2:
|
4779
4782
|
case "end":
|
4780
4783
|
return _context5.stop();
|
4781
4784
|
}
|
@@ -4865,7 +4868,7 @@ var CustomerPasswordResets = /*#__PURE__*/function (_ApiResource) {
|
|
4865
4868
|
while (1) {
|
4866
4869
|
switch (_context2.prev = _context2.next) {
|
4867
4870
|
case 0:
|
4868
|
-
return _context2.abrupt("return", this.resources.create(
|
4871
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
4869
4872
|
type: CustomerPasswordResets.TYPE
|
4870
4873
|
}), options));
|
4871
4874
|
|
@@ -4941,12 +4944,13 @@ var CustomerPasswordResets = /*#__PURE__*/function (_ApiResource) {
|
|
4941
4944
|
while (1) {
|
4942
4945
|
switch (_context5.prev = _context5.next) {
|
4943
4946
|
case 0:
|
4944
|
-
|
4947
|
+
_context5.next = 2;
|
4948
|
+
return this.resources["delete"]({
|
4945
4949
|
type: CustomerPasswordResets.TYPE,
|
4946
4950
|
id: id
|
4947
4951
|
}, options);
|
4948
4952
|
|
4949
|
-
case
|
4953
|
+
case 2:
|
4950
4954
|
case "end":
|
4951
4955
|
return _context5.stop();
|
4952
4956
|
}
|
@@ -5036,7 +5040,7 @@ var CustomerPaymentSources = /*#__PURE__*/function (_ApiResource) {
|
|
5036
5040
|
while (1) {
|
5037
5041
|
switch (_context2.prev = _context2.next) {
|
5038
5042
|
case 0:
|
5039
|
-
return _context2.abrupt("return", this.resources.create(
|
5043
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
5040
5044
|
type: CustomerPaymentSources.TYPE
|
5041
5045
|
}), options));
|
5042
5046
|
|
@@ -5112,12 +5116,13 @@ var CustomerPaymentSources = /*#__PURE__*/function (_ApiResource) {
|
|
5112
5116
|
while (1) {
|
5113
5117
|
switch (_context5.prev = _context5.next) {
|
5114
5118
|
case 0:
|
5115
|
-
|
5119
|
+
_context5.next = 2;
|
5120
|
+
return this.resources["delete"]({
|
5116
5121
|
type: CustomerPaymentSources.TYPE,
|
5117
5122
|
id: id
|
5118
5123
|
}, options);
|
5119
5124
|
|
5120
|
-
case
|
5125
|
+
case 2:
|
5121
5126
|
case "end":
|
5122
5127
|
return _context5.stop();
|
5123
5128
|
}
|
@@ -5207,7 +5212,7 @@ var CustomerSubscriptions = /*#__PURE__*/function (_ApiResource) {
|
|
5207
5212
|
while (1) {
|
5208
5213
|
switch (_context2.prev = _context2.next) {
|
5209
5214
|
case 0:
|
5210
|
-
return _context2.abrupt("return", this.resources.create(
|
5215
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
5211
5216
|
type: CustomerSubscriptions.TYPE
|
5212
5217
|
}), options));
|
5213
5218
|
|
@@ -5283,12 +5288,13 @@ var CustomerSubscriptions = /*#__PURE__*/function (_ApiResource) {
|
|
5283
5288
|
while (1) {
|
5284
5289
|
switch (_context5.prev = _context5.next) {
|
5285
5290
|
case 0:
|
5286
|
-
|
5291
|
+
_context5.next = 2;
|
5292
|
+
return this.resources["delete"]({
|
5287
5293
|
type: CustomerSubscriptions.TYPE,
|
5288
5294
|
id: id
|
5289
5295
|
}, options);
|
5290
5296
|
|
5291
|
-
case
|
5297
|
+
case 2:
|
5292
5298
|
case "end":
|
5293
5299
|
return _context5.stop();
|
5294
5300
|
}
|
@@ -5378,7 +5384,7 @@ var Customers = /*#__PURE__*/function (_ApiResource) {
|
|
5378
5384
|
while (1) {
|
5379
5385
|
switch (_context2.prev = _context2.next) {
|
5380
5386
|
case 0:
|
5381
|
-
return _context2.abrupt("return", this.resources.create(
|
5387
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
5382
5388
|
type: Customers.TYPE
|
5383
5389
|
}), options));
|
5384
5390
|
|
@@ -5454,12 +5460,13 @@ var Customers = /*#__PURE__*/function (_ApiResource) {
|
|
5454
5460
|
while (1) {
|
5455
5461
|
switch (_context5.prev = _context5.next) {
|
5456
5462
|
case 0:
|
5457
|
-
|
5463
|
+
_context5.next = 2;
|
5464
|
+
return this.resources["delete"]({
|
5458
5465
|
type: Customers.TYPE,
|
5459
5466
|
id: id
|
5460
5467
|
}, options);
|
5461
5468
|
|
5462
|
-
case
|
5469
|
+
case 2:
|
5463
5470
|
case "end":
|
5464
5471
|
return _context5.stop();
|
5465
5472
|
}
|
@@ -5549,7 +5556,7 @@ var DeliveryLeadTimes = /*#__PURE__*/function (_ApiResource) {
|
|
5549
5556
|
while (1) {
|
5550
5557
|
switch (_context2.prev = _context2.next) {
|
5551
5558
|
case 0:
|
5552
|
-
return _context2.abrupt("return", this.resources.create(
|
5559
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
5553
5560
|
type: DeliveryLeadTimes.TYPE
|
5554
5561
|
}), options));
|
5555
5562
|
|
@@ -5625,12 +5632,13 @@ var DeliveryLeadTimes = /*#__PURE__*/function (_ApiResource) {
|
|
5625
5632
|
while (1) {
|
5626
5633
|
switch (_context5.prev = _context5.next) {
|
5627
5634
|
case 0:
|
5628
|
-
|
5635
|
+
_context5.next = 2;
|
5636
|
+
return this.resources["delete"]({
|
5629
5637
|
type: DeliveryLeadTimes.TYPE,
|
5630
5638
|
id: id
|
5631
5639
|
}, options);
|
5632
5640
|
|
5633
|
-
case
|
5641
|
+
case 2:
|
5634
5642
|
case "end":
|
5635
5643
|
return _context5.stop();
|
5636
5644
|
}
|
@@ -5720,7 +5728,7 @@ var ExternalGateways = /*#__PURE__*/function (_ApiResource) {
|
|
5720
5728
|
while (1) {
|
5721
5729
|
switch (_context2.prev = _context2.next) {
|
5722
5730
|
case 0:
|
5723
|
-
return _context2.abrupt("return", this.resources.create(
|
5731
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
5724
5732
|
type: ExternalGateways.TYPE
|
5725
5733
|
}), options));
|
5726
5734
|
|
@@ -5796,12 +5804,13 @@ var ExternalGateways = /*#__PURE__*/function (_ApiResource) {
|
|
5796
5804
|
while (1) {
|
5797
5805
|
switch (_context5.prev = _context5.next) {
|
5798
5806
|
case 0:
|
5799
|
-
|
5807
|
+
_context5.next = 2;
|
5808
|
+
return this.resources["delete"]({
|
5800
5809
|
type: ExternalGateways.TYPE,
|
5801
5810
|
id: id
|
5802
5811
|
}, options);
|
5803
5812
|
|
5804
|
-
case
|
5813
|
+
case 2:
|
5805
5814
|
case "end":
|
5806
5815
|
return _context5.stop();
|
5807
5816
|
}
|
@@ -5891,7 +5900,7 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
|
|
5891
5900
|
while (1) {
|
5892
5901
|
switch (_context2.prev = _context2.next) {
|
5893
5902
|
case 0:
|
5894
|
-
return _context2.abrupt("return", this.resources.create(
|
5903
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
5895
5904
|
type: ExternalPayments.TYPE
|
5896
5905
|
}), options));
|
5897
5906
|
|
@@ -5967,12 +5976,13 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
|
|
5967
5976
|
while (1) {
|
5968
5977
|
switch (_context5.prev = _context5.next) {
|
5969
5978
|
case 0:
|
5970
|
-
|
5979
|
+
_context5.next = 2;
|
5980
|
+
return this.resources["delete"]({
|
5971
5981
|
type: ExternalPayments.TYPE,
|
5972
5982
|
id: id
|
5973
5983
|
}, options);
|
5974
5984
|
|
5975
|
-
case
|
5985
|
+
case 2:
|
5976
5986
|
case "end":
|
5977
5987
|
return _context5.stop();
|
5978
5988
|
}
|
@@ -6062,7 +6072,7 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
6062
6072
|
while (1) {
|
6063
6073
|
switch (_context2.prev = _context2.next) {
|
6064
6074
|
case 0:
|
6065
|
-
return _context2.abrupt("return", this.resources.create(
|
6075
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
6066
6076
|
type: ExternalPromotions.TYPE
|
6067
6077
|
}), options));
|
6068
6078
|
|
@@ -6138,12 +6148,13 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
6138
6148
|
while (1) {
|
6139
6149
|
switch (_context5.prev = _context5.next) {
|
6140
6150
|
case 0:
|
6141
|
-
|
6151
|
+
_context5.next = 2;
|
6152
|
+
return this.resources["delete"]({
|
6142
6153
|
type: ExternalPromotions.TYPE,
|
6143
6154
|
id: id
|
6144
6155
|
}, options);
|
6145
6156
|
|
6146
|
-
case
|
6157
|
+
case 2:
|
6147
6158
|
case "end":
|
6148
6159
|
return _context5.stop();
|
6149
6160
|
}
|
@@ -6233,7 +6244,7 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
|
|
6233
6244
|
while (1) {
|
6234
6245
|
switch (_context2.prev = _context2.next) {
|
6235
6246
|
case 0:
|
6236
|
-
return _context2.abrupt("return", this.resources.create(
|
6247
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
6237
6248
|
type: ExternalTaxCalculators.TYPE
|
6238
6249
|
}), options));
|
6239
6250
|
|
@@ -6309,12 +6320,13 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
|
|
6309
6320
|
while (1) {
|
6310
6321
|
switch (_context5.prev = _context5.next) {
|
6311
6322
|
case 0:
|
6312
|
-
|
6323
|
+
_context5.next = 2;
|
6324
|
+
return this.resources["delete"]({
|
6313
6325
|
type: ExternalTaxCalculators.TYPE,
|
6314
6326
|
id: id
|
6315
6327
|
}, options);
|
6316
6328
|
|
6317
|
-
case
|
6329
|
+
case 2:
|
6318
6330
|
case "end":
|
6319
6331
|
return _context5.stop();
|
6320
6332
|
}
|
@@ -6404,7 +6416,7 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
6404
6416
|
while (1) {
|
6405
6417
|
switch (_context2.prev = _context2.next) {
|
6406
6418
|
case 0:
|
6407
|
-
return _context2.abrupt("return", this.resources.create(
|
6419
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
6408
6420
|
type: FixedAmountPromotions.TYPE
|
6409
6421
|
}), options));
|
6410
6422
|
|
@@ -6480,12 +6492,13 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
6480
6492
|
while (1) {
|
6481
6493
|
switch (_context5.prev = _context5.next) {
|
6482
6494
|
case 0:
|
6483
|
-
|
6495
|
+
_context5.next = 2;
|
6496
|
+
return this.resources["delete"]({
|
6484
6497
|
type: FixedAmountPromotions.TYPE,
|
6485
6498
|
id: id
|
6486
6499
|
}, options);
|
6487
6500
|
|
6488
|
-
case
|
6501
|
+
case 2:
|
6489
6502
|
case "end":
|
6490
6503
|
return _context5.stop();
|
6491
6504
|
}
|
@@ -6575,7 +6588,7 @@ var FreeShippingPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
6575
6588
|
while (1) {
|
6576
6589
|
switch (_context2.prev = _context2.next) {
|
6577
6590
|
case 0:
|
6578
|
-
return _context2.abrupt("return", this.resources.create(
|
6591
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
6579
6592
|
type: FreeShippingPromotions.TYPE
|
6580
6593
|
}), options));
|
6581
6594
|
|
@@ -6651,12 +6664,13 @@ var FreeShippingPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
6651
6664
|
while (1) {
|
6652
6665
|
switch (_context5.prev = _context5.next) {
|
6653
6666
|
case 0:
|
6654
|
-
|
6667
|
+
_context5.next = 2;
|
6668
|
+
return this.resources["delete"]({
|
6655
6669
|
type: FreeShippingPromotions.TYPE,
|
6656
6670
|
id: id
|
6657
6671
|
}, options);
|
6658
6672
|
|
6659
|
-
case
|
6673
|
+
case 2:
|
6660
6674
|
case "end":
|
6661
6675
|
return _context5.stop();
|
6662
6676
|
}
|
@@ -6815,7 +6829,7 @@ var GiftCardRecipients = /*#__PURE__*/function (_ApiResource) {
|
|
6815
6829
|
while (1) {
|
6816
6830
|
switch (_context2.prev = _context2.next) {
|
6817
6831
|
case 0:
|
6818
|
-
return _context2.abrupt("return", this.resources.create(
|
6832
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
6819
6833
|
type: GiftCardRecipients.TYPE
|
6820
6834
|
}), options));
|
6821
6835
|
|
@@ -6891,12 +6905,13 @@ var GiftCardRecipients = /*#__PURE__*/function (_ApiResource) {
|
|
6891
6905
|
while (1) {
|
6892
6906
|
switch (_context5.prev = _context5.next) {
|
6893
6907
|
case 0:
|
6894
|
-
|
6908
|
+
_context5.next = 2;
|
6909
|
+
return this.resources["delete"]({
|
6895
6910
|
type: GiftCardRecipients.TYPE,
|
6896
6911
|
id: id
|
6897
6912
|
}, options);
|
6898
6913
|
|
6899
|
-
case
|
6914
|
+
case 2:
|
6900
6915
|
case "end":
|
6901
6916
|
return _context5.stop();
|
6902
6917
|
}
|
@@ -6986,7 +7001,7 @@ var GiftCards = /*#__PURE__*/function (_ApiResource) {
|
|
6986
7001
|
while (1) {
|
6987
7002
|
switch (_context2.prev = _context2.next) {
|
6988
7003
|
case 0:
|
6989
|
-
return _context2.abrupt("return", this.resources.create(
|
7004
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
6990
7005
|
type: GiftCards.TYPE
|
6991
7006
|
}), options));
|
6992
7007
|
|
@@ -7062,12 +7077,13 @@ var GiftCards = /*#__PURE__*/function (_ApiResource) {
|
|
7062
7077
|
while (1) {
|
7063
7078
|
switch (_context5.prev = _context5.next) {
|
7064
7079
|
case 0:
|
7065
|
-
|
7080
|
+
_context5.next = 2;
|
7081
|
+
return this.resources["delete"]({
|
7066
7082
|
type: GiftCards.TYPE,
|
7067
7083
|
id: id
|
7068
7084
|
}, options);
|
7069
7085
|
|
7070
|
-
case
|
7086
|
+
case 2:
|
7071
7087
|
case "end":
|
7072
7088
|
return _context5.stop();
|
7073
7089
|
}
|
@@ -7157,7 +7173,7 @@ var GoogleGeocoders = /*#__PURE__*/function (_ApiResource) {
|
|
7157
7173
|
while (1) {
|
7158
7174
|
switch (_context2.prev = _context2.next) {
|
7159
7175
|
case 0:
|
7160
|
-
return _context2.abrupt("return", this.resources.create(
|
7176
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
7161
7177
|
type: GoogleGeocoders.TYPE
|
7162
7178
|
}), options));
|
7163
7179
|
|
@@ -7233,12 +7249,13 @@ var GoogleGeocoders = /*#__PURE__*/function (_ApiResource) {
|
|
7233
7249
|
while (1) {
|
7234
7250
|
switch (_context5.prev = _context5.next) {
|
7235
7251
|
case 0:
|
7236
|
-
|
7252
|
+
_context5.next = 2;
|
7253
|
+
return this.resources["delete"]({
|
7237
7254
|
type: GoogleGeocoders.TYPE,
|
7238
7255
|
id: id
|
7239
7256
|
}, options);
|
7240
7257
|
|
7241
|
-
case
|
7258
|
+
case 2:
|
7242
7259
|
case "end":
|
7243
7260
|
return _context5.stop();
|
7244
7261
|
}
|
@@ -7328,7 +7345,7 @@ var Imports = /*#__PURE__*/function (_ApiResource) {
|
|
7328
7345
|
while (1) {
|
7329
7346
|
switch (_context2.prev = _context2.next) {
|
7330
7347
|
case 0:
|
7331
|
-
return _context2.abrupt("return", this.resources.create(
|
7348
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
7332
7349
|
type: Imports.TYPE
|
7333
7350
|
}), options));
|
7334
7351
|
|
@@ -7379,12 +7396,13 @@ var Imports = /*#__PURE__*/function (_ApiResource) {
|
|
7379
7396
|
while (1) {
|
7380
7397
|
switch (_context4.prev = _context4.next) {
|
7381
7398
|
case 0:
|
7382
|
-
|
7399
|
+
_context4.next = 2;
|
7400
|
+
return this.resources["delete"]({
|
7383
7401
|
type: Imports.TYPE,
|
7384
7402
|
id: id
|
7385
7403
|
}, options);
|
7386
7404
|
|
7387
|
-
case
|
7405
|
+
case 2:
|
7388
7406
|
case "end":
|
7389
7407
|
return _context4.stop();
|
7390
7408
|
}
|
@@ -7474,7 +7492,7 @@ var InStockSubscriptions = /*#__PURE__*/function (_ApiResource) {
|
|
7474
7492
|
while (1) {
|
7475
7493
|
switch (_context2.prev = _context2.next) {
|
7476
7494
|
case 0:
|
7477
|
-
return _context2.abrupt("return", this.resources.create(
|
7495
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
7478
7496
|
type: InStockSubscriptions.TYPE
|
7479
7497
|
}), options));
|
7480
7498
|
|
@@ -7550,12 +7568,13 @@ var InStockSubscriptions = /*#__PURE__*/function (_ApiResource) {
|
|
7550
7568
|
while (1) {
|
7551
7569
|
switch (_context5.prev = _context5.next) {
|
7552
7570
|
case 0:
|
7553
|
-
|
7571
|
+
_context5.next = 2;
|
7572
|
+
return this.resources["delete"]({
|
7554
7573
|
type: InStockSubscriptions.TYPE,
|
7555
7574
|
id: id
|
7556
7575
|
}, options);
|
7557
7576
|
|
7558
|
-
case
|
7577
|
+
case 2:
|
7559
7578
|
case "end":
|
7560
7579
|
return _context5.stop();
|
7561
7580
|
}
|
@@ -7645,7 +7664,7 @@ var InventoryModels = /*#__PURE__*/function (_ApiResource) {
|
|
7645
7664
|
while (1) {
|
7646
7665
|
switch (_context2.prev = _context2.next) {
|
7647
7666
|
case 0:
|
7648
|
-
return _context2.abrupt("return", this.resources.create(
|
7667
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
7649
7668
|
type: InventoryModels.TYPE
|
7650
7669
|
}), options));
|
7651
7670
|
|
@@ -7721,12 +7740,13 @@ var InventoryModels = /*#__PURE__*/function (_ApiResource) {
|
|
7721
7740
|
while (1) {
|
7722
7741
|
switch (_context5.prev = _context5.next) {
|
7723
7742
|
case 0:
|
7724
|
-
|
7743
|
+
_context5.next = 2;
|
7744
|
+
return this.resources["delete"]({
|
7725
7745
|
type: InventoryModels.TYPE,
|
7726
7746
|
id: id
|
7727
7747
|
}, options);
|
7728
7748
|
|
7729
|
-
case
|
7749
|
+
case 2:
|
7730
7750
|
case "end":
|
7731
7751
|
return _context5.stop();
|
7732
7752
|
}
|
@@ -7816,7 +7836,7 @@ var InventoryReturnLocations = /*#__PURE__*/function (_ApiResource) {
|
|
7816
7836
|
while (1) {
|
7817
7837
|
switch (_context2.prev = _context2.next) {
|
7818
7838
|
case 0:
|
7819
|
-
return _context2.abrupt("return", this.resources.create(
|
7839
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
7820
7840
|
type: InventoryReturnLocations.TYPE
|
7821
7841
|
}), options));
|
7822
7842
|
|
@@ -7892,12 +7912,13 @@ var InventoryReturnLocations = /*#__PURE__*/function (_ApiResource) {
|
|
7892
7912
|
while (1) {
|
7893
7913
|
switch (_context5.prev = _context5.next) {
|
7894
7914
|
case 0:
|
7895
|
-
|
7915
|
+
_context5.next = 2;
|
7916
|
+
return this.resources["delete"]({
|
7896
7917
|
type: InventoryReturnLocations.TYPE,
|
7897
7918
|
id: id
|
7898
7919
|
}, options);
|
7899
7920
|
|
7900
|
-
case
|
7921
|
+
case 2:
|
7901
7922
|
case "end":
|
7902
7923
|
return _context5.stop();
|
7903
7924
|
}
|
@@ -7987,7 +8008,7 @@ var InventoryStockLocations = /*#__PURE__*/function (_ApiResource) {
|
|
7987
8008
|
while (1) {
|
7988
8009
|
switch (_context2.prev = _context2.next) {
|
7989
8010
|
case 0:
|
7990
|
-
return _context2.abrupt("return", this.resources.create(
|
8011
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
7991
8012
|
type: InventoryStockLocations.TYPE
|
7992
8013
|
}), options));
|
7993
8014
|
|
@@ -8063,12 +8084,13 @@ var InventoryStockLocations = /*#__PURE__*/function (_ApiResource) {
|
|
8063
8084
|
while (1) {
|
8064
8085
|
switch (_context5.prev = _context5.next) {
|
8065
8086
|
case 0:
|
8066
|
-
|
8087
|
+
_context5.next = 2;
|
8088
|
+
return this.resources["delete"]({
|
8067
8089
|
type: InventoryStockLocations.TYPE,
|
8068
8090
|
id: id
|
8069
8091
|
}, options);
|
8070
8092
|
|
8071
|
-
case
|
8093
|
+
case 2:
|
8072
8094
|
case "end":
|
8073
8095
|
return _context5.stop();
|
8074
8096
|
}
|
@@ -8158,7 +8180,7 @@ var LineItemOptions = /*#__PURE__*/function (_ApiResource) {
|
|
8158
8180
|
while (1) {
|
8159
8181
|
switch (_context2.prev = _context2.next) {
|
8160
8182
|
case 0:
|
8161
|
-
return _context2.abrupt("return", this.resources.create(
|
8183
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
8162
8184
|
type: LineItemOptions.TYPE
|
8163
8185
|
}), options));
|
8164
8186
|
|
@@ -8234,12 +8256,13 @@ var LineItemOptions = /*#__PURE__*/function (_ApiResource) {
|
|
8234
8256
|
while (1) {
|
8235
8257
|
switch (_context5.prev = _context5.next) {
|
8236
8258
|
case 0:
|
8237
|
-
|
8259
|
+
_context5.next = 2;
|
8260
|
+
return this.resources["delete"]({
|
8238
8261
|
type: LineItemOptions.TYPE,
|
8239
8262
|
id: id
|
8240
8263
|
}, options);
|
8241
8264
|
|
8242
|
-
case
|
8265
|
+
case 2:
|
8243
8266
|
case "end":
|
8244
8267
|
return _context5.stop();
|
8245
8268
|
}
|
@@ -8329,7 +8352,7 @@ var LineItems = /*#__PURE__*/function (_ApiResource) {
|
|
8329
8352
|
while (1) {
|
8330
8353
|
switch (_context2.prev = _context2.next) {
|
8331
8354
|
case 0:
|
8332
|
-
return _context2.abrupt("return", this.resources.create(
|
8355
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
8333
8356
|
type: LineItems.TYPE
|
8334
8357
|
}), options));
|
8335
8358
|
|
@@ -8405,12 +8428,13 @@ var LineItems = /*#__PURE__*/function (_ApiResource) {
|
|
8405
8428
|
while (1) {
|
8406
8429
|
switch (_context5.prev = _context5.next) {
|
8407
8430
|
case 0:
|
8408
|
-
|
8431
|
+
_context5.next = 2;
|
8432
|
+
return this.resources["delete"]({
|
8409
8433
|
type: LineItems.TYPE,
|
8410
8434
|
id: id
|
8411
8435
|
}, options);
|
8412
8436
|
|
8413
|
-
case
|
8437
|
+
case 2:
|
8414
8438
|
case "end":
|
8415
8439
|
return _context5.stop();
|
8416
8440
|
}
|
@@ -8500,7 +8524,7 @@ var ManualGateways = /*#__PURE__*/function (_ApiResource) {
|
|
8500
8524
|
while (1) {
|
8501
8525
|
switch (_context2.prev = _context2.next) {
|
8502
8526
|
case 0:
|
8503
|
-
return _context2.abrupt("return", this.resources.create(
|
8527
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
8504
8528
|
type: ManualGateways.TYPE
|
8505
8529
|
}), options));
|
8506
8530
|
|
@@ -8576,12 +8600,13 @@ var ManualGateways = /*#__PURE__*/function (_ApiResource) {
|
|
8576
8600
|
while (1) {
|
8577
8601
|
switch (_context5.prev = _context5.next) {
|
8578
8602
|
case 0:
|
8579
|
-
|
8603
|
+
_context5.next = 2;
|
8604
|
+
return this.resources["delete"]({
|
8580
8605
|
type: ManualGateways.TYPE,
|
8581
8606
|
id: id
|
8582
8607
|
}, options);
|
8583
8608
|
|
8584
|
-
case
|
8609
|
+
case 2:
|
8585
8610
|
case "end":
|
8586
8611
|
return _context5.stop();
|
8587
8612
|
}
|
@@ -8671,7 +8696,7 @@ var ManualTaxCalculators = /*#__PURE__*/function (_ApiResource) {
|
|
8671
8696
|
while (1) {
|
8672
8697
|
switch (_context2.prev = _context2.next) {
|
8673
8698
|
case 0:
|
8674
|
-
return _context2.abrupt("return", this.resources.create(
|
8699
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
8675
8700
|
type: ManualTaxCalculators.TYPE
|
8676
8701
|
}), options));
|
8677
8702
|
|
@@ -8747,12 +8772,13 @@ var ManualTaxCalculators = /*#__PURE__*/function (_ApiResource) {
|
|
8747
8772
|
while (1) {
|
8748
8773
|
switch (_context5.prev = _context5.next) {
|
8749
8774
|
case 0:
|
8750
|
-
|
8775
|
+
_context5.next = 2;
|
8776
|
+
return this.resources["delete"]({
|
8751
8777
|
type: ManualTaxCalculators.TYPE,
|
8752
8778
|
id: id
|
8753
8779
|
}, options);
|
8754
8780
|
|
8755
|
-
case
|
8781
|
+
case 2:
|
8756
8782
|
case "end":
|
8757
8783
|
return _context5.stop();
|
8758
8784
|
}
|
@@ -8842,7 +8868,7 @@ var Markets = /*#__PURE__*/function (_ApiResource) {
|
|
8842
8868
|
while (1) {
|
8843
8869
|
switch (_context2.prev = _context2.next) {
|
8844
8870
|
case 0:
|
8845
|
-
return _context2.abrupt("return", this.resources.create(
|
8871
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
8846
8872
|
type: Markets.TYPE
|
8847
8873
|
}), options));
|
8848
8874
|
|
@@ -8918,12 +8944,13 @@ var Markets = /*#__PURE__*/function (_ApiResource) {
|
|
8918
8944
|
while (1) {
|
8919
8945
|
switch (_context5.prev = _context5.next) {
|
8920
8946
|
case 0:
|
8921
|
-
|
8947
|
+
_context5.next = 2;
|
8948
|
+
return this.resources["delete"]({
|
8922
8949
|
type: Markets.TYPE,
|
8923
8950
|
id: id
|
8924
8951
|
}, options);
|
8925
8952
|
|
8926
|
-
case
|
8953
|
+
case 2:
|
8927
8954
|
case "end":
|
8928
8955
|
return _context5.stop();
|
8929
8956
|
}
|
@@ -9013,7 +9040,7 @@ var Merchants = /*#__PURE__*/function (_ApiResource) {
|
|
9013
9040
|
while (1) {
|
9014
9041
|
switch (_context2.prev = _context2.next) {
|
9015
9042
|
case 0:
|
9016
|
-
return _context2.abrupt("return", this.resources.create(
|
9043
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
9017
9044
|
type: Merchants.TYPE
|
9018
9045
|
}), options));
|
9019
9046
|
|
@@ -9089,12 +9116,13 @@ var Merchants = /*#__PURE__*/function (_ApiResource) {
|
|
9089
9116
|
while (1) {
|
9090
9117
|
switch (_context5.prev = _context5.next) {
|
9091
9118
|
case 0:
|
9092
|
-
|
9119
|
+
_context5.next = 2;
|
9120
|
+
return this.resources["delete"]({
|
9093
9121
|
type: Merchants.TYPE,
|
9094
9122
|
id: id
|
9095
9123
|
}, options);
|
9096
9124
|
|
9097
|
-
case
|
9125
|
+
case 2:
|
9098
9126
|
case "end":
|
9099
9127
|
return _context5.stop();
|
9100
9128
|
}
|
@@ -9184,7 +9212,7 @@ var OrderAmountPromotionRules = /*#__PURE__*/function (_ApiResource) {
|
|
9184
9212
|
while (1) {
|
9185
9213
|
switch (_context2.prev = _context2.next) {
|
9186
9214
|
case 0:
|
9187
|
-
return _context2.abrupt("return", this.resources.create(
|
9215
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
9188
9216
|
type: OrderAmountPromotionRules.TYPE
|
9189
9217
|
}), options));
|
9190
9218
|
|
@@ -9260,12 +9288,13 @@ var OrderAmountPromotionRules = /*#__PURE__*/function (_ApiResource) {
|
|
9260
9288
|
while (1) {
|
9261
9289
|
switch (_context5.prev = _context5.next) {
|
9262
9290
|
case 0:
|
9263
|
-
|
9291
|
+
_context5.next = 2;
|
9292
|
+
return this.resources["delete"]({
|
9264
9293
|
type: OrderAmountPromotionRules.TYPE,
|
9265
9294
|
id: id
|
9266
9295
|
}, options);
|
9267
9296
|
|
9268
|
-
case
|
9297
|
+
case 2:
|
9269
9298
|
case "end":
|
9270
9299
|
return _context5.stop();
|
9271
9300
|
}
|
@@ -9355,7 +9384,7 @@ var OrderCopies = /*#__PURE__*/function (_ApiResource) {
|
|
9355
9384
|
while (1) {
|
9356
9385
|
switch (_context2.prev = _context2.next) {
|
9357
9386
|
case 0:
|
9358
|
-
return _context2.abrupt("return", this.resources.create(
|
9387
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
9359
9388
|
type: OrderCopies.TYPE
|
9360
9389
|
}), options));
|
9361
9390
|
|
@@ -9406,12 +9435,13 @@ var OrderCopies = /*#__PURE__*/function (_ApiResource) {
|
|
9406
9435
|
while (1) {
|
9407
9436
|
switch (_context4.prev = _context4.next) {
|
9408
9437
|
case 0:
|
9409
|
-
|
9438
|
+
_context4.next = 2;
|
9439
|
+
return this.resources["delete"]({
|
9410
9440
|
type: OrderCopies.TYPE,
|
9411
9441
|
id: id
|
9412
9442
|
}, options);
|
9413
9443
|
|
9414
|
-
case
|
9444
|
+
case 2:
|
9415
9445
|
case "end":
|
9416
9446
|
return _context4.stop();
|
9417
9447
|
}
|
@@ -9501,7 +9531,7 @@ var OrderSubscriptions = /*#__PURE__*/function (_ApiResource) {
|
|
9501
9531
|
while (1) {
|
9502
9532
|
switch (_context2.prev = _context2.next) {
|
9503
9533
|
case 0:
|
9504
|
-
return _context2.abrupt("return", this.resources.create(
|
9534
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
9505
9535
|
type: OrderSubscriptions.TYPE
|
9506
9536
|
}), options));
|
9507
9537
|
|
@@ -9577,12 +9607,13 @@ var OrderSubscriptions = /*#__PURE__*/function (_ApiResource) {
|
|
9577
9607
|
while (1) {
|
9578
9608
|
switch (_context5.prev = _context5.next) {
|
9579
9609
|
case 0:
|
9580
|
-
|
9610
|
+
_context5.next = 2;
|
9611
|
+
return this.resources["delete"]({
|
9581
9612
|
type: OrderSubscriptions.TYPE,
|
9582
9613
|
id: id
|
9583
9614
|
}, options);
|
9584
9615
|
|
9585
|
-
case
|
9616
|
+
case 2:
|
9586
9617
|
case "end":
|
9587
9618
|
return _context5.stop();
|
9588
9619
|
}
|
@@ -9672,7 +9703,7 @@ var Orders = /*#__PURE__*/function (_ApiResource) {
|
|
9672
9703
|
while (1) {
|
9673
9704
|
switch (_context2.prev = _context2.next) {
|
9674
9705
|
case 0:
|
9675
|
-
return _context2.abrupt("return", this.resources.create(
|
9706
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
9676
9707
|
type: Orders.TYPE
|
9677
9708
|
}), options));
|
9678
9709
|
|
@@ -9748,12 +9779,13 @@ var Orders = /*#__PURE__*/function (_ApiResource) {
|
|
9748
9779
|
while (1) {
|
9749
9780
|
switch (_context5.prev = _context5.next) {
|
9750
9781
|
case 0:
|
9751
|
-
|
9782
|
+
_context5.next = 2;
|
9783
|
+
return this.resources["delete"]({
|
9752
9784
|
type: Orders.TYPE,
|
9753
9785
|
id: id
|
9754
9786
|
}, options);
|
9755
9787
|
|
9756
|
-
case
|
9788
|
+
case 2:
|
9757
9789
|
case "end":
|
9758
9790
|
return _context5.stop();
|
9759
9791
|
}
|
@@ -9912,7 +9944,7 @@ var Packages = /*#__PURE__*/function (_ApiResource) {
|
|
9912
9944
|
while (1) {
|
9913
9945
|
switch (_context2.prev = _context2.next) {
|
9914
9946
|
case 0:
|
9915
|
-
return _context2.abrupt("return", this.resources.create(
|
9947
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
9916
9948
|
type: Packages.TYPE
|
9917
9949
|
}), options));
|
9918
9950
|
|
@@ -9988,12 +10020,13 @@ var Packages = /*#__PURE__*/function (_ApiResource) {
|
|
9988
10020
|
while (1) {
|
9989
10021
|
switch (_context5.prev = _context5.next) {
|
9990
10022
|
case 0:
|
9991
|
-
|
10023
|
+
_context5.next = 2;
|
10024
|
+
return this.resources["delete"]({
|
9992
10025
|
type: Packages.TYPE,
|
9993
10026
|
id: id
|
9994
10027
|
}, options);
|
9995
10028
|
|
9996
|
-
case
|
10029
|
+
case 2:
|
9997
10030
|
case "end":
|
9998
10031
|
return _context5.stop();
|
9999
10032
|
}
|
@@ -10083,7 +10116,7 @@ var ParcelLineItems = /*#__PURE__*/function (_ApiResource) {
|
|
10083
10116
|
while (1) {
|
10084
10117
|
switch (_context2.prev = _context2.next) {
|
10085
10118
|
case 0:
|
10086
|
-
return _context2.abrupt("return", this.resources.create(
|
10119
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
10087
10120
|
type: ParcelLineItems.TYPE
|
10088
10121
|
}), options));
|
10089
10122
|
|
@@ -10159,12 +10192,13 @@ var ParcelLineItems = /*#__PURE__*/function (_ApiResource) {
|
|
10159
10192
|
while (1) {
|
10160
10193
|
switch (_context5.prev = _context5.next) {
|
10161
10194
|
case 0:
|
10162
|
-
|
10195
|
+
_context5.next = 2;
|
10196
|
+
return this.resources["delete"]({
|
10163
10197
|
type: ParcelLineItems.TYPE,
|
10164
10198
|
id: id
|
10165
10199
|
}, options);
|
10166
10200
|
|
10167
|
-
case
|
10201
|
+
case 2:
|
10168
10202
|
case "end":
|
10169
10203
|
return _context5.stop();
|
10170
10204
|
}
|
@@ -10254,7 +10288,7 @@ var Parcels = /*#__PURE__*/function (_ApiResource) {
|
|
10254
10288
|
while (1) {
|
10255
10289
|
switch (_context2.prev = _context2.next) {
|
10256
10290
|
case 0:
|
10257
|
-
return _context2.abrupt("return", this.resources.create(
|
10291
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
10258
10292
|
type: Parcels.TYPE
|
10259
10293
|
}), options));
|
10260
10294
|
|
@@ -10330,12 +10364,13 @@ var Parcels = /*#__PURE__*/function (_ApiResource) {
|
|
10330
10364
|
while (1) {
|
10331
10365
|
switch (_context5.prev = _context5.next) {
|
10332
10366
|
case 0:
|
10333
|
-
|
10367
|
+
_context5.next = 2;
|
10368
|
+
return this.resources["delete"]({
|
10334
10369
|
type: Parcels.TYPE,
|
10335
10370
|
id: id
|
10336
10371
|
}, options);
|
10337
10372
|
|
10338
|
-
case
|
10373
|
+
case 2:
|
10339
10374
|
case "end":
|
10340
10375
|
return _context5.stop();
|
10341
10376
|
}
|
@@ -10425,7 +10460,7 @@ var PaymentGateways = /*#__PURE__*/function (_ApiResource) {
|
|
10425
10460
|
while (1) {
|
10426
10461
|
switch (_context2.prev = _context2.next) {
|
10427
10462
|
case 0:
|
10428
|
-
return _context2.abrupt("return", this.resources.create(
|
10463
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
10429
10464
|
type: PaymentGateways.TYPE
|
10430
10465
|
}), options));
|
10431
10466
|
|
@@ -10501,12 +10536,13 @@ var PaymentGateways = /*#__PURE__*/function (_ApiResource) {
|
|
10501
10536
|
while (1) {
|
10502
10537
|
switch (_context5.prev = _context5.next) {
|
10503
10538
|
case 0:
|
10504
|
-
|
10539
|
+
_context5.next = 2;
|
10540
|
+
return this.resources["delete"]({
|
10505
10541
|
type: PaymentGateways.TYPE,
|
10506
10542
|
id: id
|
10507
10543
|
}, options);
|
10508
10544
|
|
10509
|
-
case
|
10545
|
+
case 2:
|
10510
10546
|
case "end":
|
10511
10547
|
return _context5.stop();
|
10512
10548
|
}
|
@@ -10596,7 +10632,7 @@ var PaymentMethods = /*#__PURE__*/function (_ApiResource) {
|
|
10596
10632
|
while (1) {
|
10597
10633
|
switch (_context2.prev = _context2.next) {
|
10598
10634
|
case 0:
|
10599
|
-
return _context2.abrupt("return", this.resources.create(
|
10635
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
10600
10636
|
type: PaymentMethods.TYPE
|
10601
10637
|
}), options));
|
10602
10638
|
|
@@ -10672,12 +10708,13 @@ var PaymentMethods = /*#__PURE__*/function (_ApiResource) {
|
|
10672
10708
|
while (1) {
|
10673
10709
|
switch (_context5.prev = _context5.next) {
|
10674
10710
|
case 0:
|
10675
|
-
|
10711
|
+
_context5.next = 2;
|
10712
|
+
return this.resources["delete"]({
|
10676
10713
|
type: PaymentMethods.TYPE,
|
10677
10714
|
id: id
|
10678
10715
|
}, options);
|
10679
10716
|
|
10680
|
-
case
|
10717
|
+
case 2:
|
10681
10718
|
case "end":
|
10682
10719
|
return _context5.stop();
|
10683
10720
|
}
|
@@ -10767,7 +10804,7 @@ var PaypalGateways = /*#__PURE__*/function (_ApiResource) {
|
|
10767
10804
|
while (1) {
|
10768
10805
|
switch (_context2.prev = _context2.next) {
|
10769
10806
|
case 0:
|
10770
|
-
return _context2.abrupt("return", this.resources.create(
|
10807
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
10771
10808
|
type: PaypalGateways.TYPE
|
10772
10809
|
}), options));
|
10773
10810
|
|
@@ -10843,12 +10880,13 @@ var PaypalGateways = /*#__PURE__*/function (_ApiResource) {
|
|
10843
10880
|
while (1) {
|
10844
10881
|
switch (_context5.prev = _context5.next) {
|
10845
10882
|
case 0:
|
10846
|
-
|
10883
|
+
_context5.next = 2;
|
10884
|
+
return this.resources["delete"]({
|
10847
10885
|
type: PaypalGateways.TYPE,
|
10848
10886
|
id: id
|
10849
10887
|
}, options);
|
10850
10888
|
|
10851
|
-
case
|
10889
|
+
case 2:
|
10852
10890
|
case "end":
|
10853
10891
|
return _context5.stop();
|
10854
10892
|
}
|
@@ -10938,7 +10976,7 @@ var PaypalPayments = /*#__PURE__*/function (_ApiResource) {
|
|
10938
10976
|
while (1) {
|
10939
10977
|
switch (_context2.prev = _context2.next) {
|
10940
10978
|
case 0:
|
10941
|
-
return _context2.abrupt("return", this.resources.create(
|
10979
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
10942
10980
|
type: PaypalPayments.TYPE
|
10943
10981
|
}), options));
|
10944
10982
|
|
@@ -11014,12 +11052,13 @@ var PaypalPayments = /*#__PURE__*/function (_ApiResource) {
|
|
11014
11052
|
while (1) {
|
11015
11053
|
switch (_context5.prev = _context5.next) {
|
11016
11054
|
case 0:
|
11017
|
-
|
11055
|
+
_context5.next = 2;
|
11056
|
+
return this.resources["delete"]({
|
11018
11057
|
type: PaypalPayments.TYPE,
|
11019
11058
|
id: id
|
11020
11059
|
}, options);
|
11021
11060
|
|
11022
|
-
case
|
11061
|
+
case 2:
|
11023
11062
|
case "end":
|
11024
11063
|
return _context5.stop();
|
11025
11064
|
}
|
@@ -11109,7 +11148,7 @@ var PercentageDiscountPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
11109
11148
|
while (1) {
|
11110
11149
|
switch (_context2.prev = _context2.next) {
|
11111
11150
|
case 0:
|
11112
|
-
return _context2.abrupt("return", this.resources.create(
|
11151
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
11113
11152
|
type: PercentageDiscountPromotions.TYPE
|
11114
11153
|
}), options));
|
11115
11154
|
|
@@ -11185,12 +11224,13 @@ var PercentageDiscountPromotions = /*#__PURE__*/function (_ApiResource) {
|
|
11185
11224
|
while (1) {
|
11186
11225
|
switch (_context5.prev = _context5.next) {
|
11187
11226
|
case 0:
|
11188
|
-
|
11227
|
+
_context5.next = 2;
|
11228
|
+
return this.resources["delete"]({
|
11189
11229
|
type: PercentageDiscountPromotions.TYPE,
|
11190
11230
|
id: id
|
11191
11231
|
}, options);
|
11192
11232
|
|
11193
|
-
case
|
11233
|
+
case 2:
|
11194
11234
|
case "end":
|
11195
11235
|
return _context5.stop();
|
11196
11236
|
}
|
@@ -11280,7 +11320,7 @@ var PriceLists = /*#__PURE__*/function (_ApiResource) {
|
|
11280
11320
|
while (1) {
|
11281
11321
|
switch (_context2.prev = _context2.next) {
|
11282
11322
|
case 0:
|
11283
|
-
return _context2.abrupt("return", this.resources.create(
|
11323
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
11284
11324
|
type: PriceLists.TYPE
|
11285
11325
|
}), options));
|
11286
11326
|
|
@@ -11356,12 +11396,13 @@ var PriceLists = /*#__PURE__*/function (_ApiResource) {
|
|
11356
11396
|
while (1) {
|
11357
11397
|
switch (_context5.prev = _context5.next) {
|
11358
11398
|
case 0:
|
11359
|
-
|
11399
|
+
_context5.next = 2;
|
11400
|
+
return this.resources["delete"]({
|
11360
11401
|
type: PriceLists.TYPE,
|
11361
11402
|
id: id
|
11362
11403
|
}, options);
|
11363
11404
|
|
11364
|
-
case
|
11405
|
+
case 2:
|
11365
11406
|
case "end":
|
11366
11407
|
return _context5.stop();
|
11367
11408
|
}
|
@@ -11451,7 +11492,7 @@ var Prices = /*#__PURE__*/function (_ApiResource) {
|
|
11451
11492
|
while (1) {
|
11452
11493
|
switch (_context2.prev = _context2.next) {
|
11453
11494
|
case 0:
|
11454
|
-
return _context2.abrupt("return", this.resources.create(
|
11495
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
11455
11496
|
type: Prices.TYPE
|
11456
11497
|
}), options));
|
11457
11498
|
|
@@ -11527,12 +11568,13 @@ var Prices = /*#__PURE__*/function (_ApiResource) {
|
|
11527
11568
|
while (1) {
|
11528
11569
|
switch (_context5.prev = _context5.next) {
|
11529
11570
|
case 0:
|
11530
|
-
|
11571
|
+
_context5.next = 2;
|
11572
|
+
return this.resources["delete"]({
|
11531
11573
|
type: Prices.TYPE,
|
11532
11574
|
id: id
|
11533
11575
|
}, options);
|
11534
11576
|
|
11535
|
-
case
|
11577
|
+
case 2:
|
11536
11578
|
case "end":
|
11537
11579
|
return _context5.stop();
|
11538
11580
|
}
|
@@ -11855,7 +11897,7 @@ var ReturnLineItems = /*#__PURE__*/function (_ApiResource) {
|
|
11855
11897
|
while (1) {
|
11856
11898
|
switch (_context2.prev = _context2.next) {
|
11857
11899
|
case 0:
|
11858
|
-
return _context2.abrupt("return", this.resources.create(
|
11900
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
11859
11901
|
type: ReturnLineItems.TYPE
|
11860
11902
|
}), options));
|
11861
11903
|
|
@@ -11931,12 +11973,13 @@ var ReturnLineItems = /*#__PURE__*/function (_ApiResource) {
|
|
11931
11973
|
while (1) {
|
11932
11974
|
switch (_context5.prev = _context5.next) {
|
11933
11975
|
case 0:
|
11934
|
-
|
11976
|
+
_context5.next = 2;
|
11977
|
+
return this.resources["delete"]({
|
11935
11978
|
type: ReturnLineItems.TYPE,
|
11936
11979
|
id: id
|
11937
11980
|
}, options);
|
11938
11981
|
|
11939
|
-
case
|
11982
|
+
case 2:
|
11940
11983
|
case "end":
|
11941
11984
|
return _context5.stop();
|
11942
11985
|
}
|
@@ -12026,7 +12069,7 @@ var Returns = /*#__PURE__*/function (_ApiResource) {
|
|
12026
12069
|
while (1) {
|
12027
12070
|
switch (_context2.prev = _context2.next) {
|
12028
12071
|
case 0:
|
12029
|
-
return _context2.abrupt("return", this.resources.create(
|
12072
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
12030
12073
|
type: Returns.TYPE
|
12031
12074
|
}), options));
|
12032
12075
|
|
@@ -12102,12 +12145,13 @@ var Returns = /*#__PURE__*/function (_ApiResource) {
|
|
12102
12145
|
while (1) {
|
12103
12146
|
switch (_context5.prev = _context5.next) {
|
12104
12147
|
case 0:
|
12105
|
-
|
12148
|
+
_context5.next = 2;
|
12149
|
+
return this.resources["delete"]({
|
12106
12150
|
type: Returns.TYPE,
|
12107
12151
|
id: id
|
12108
12152
|
}, options);
|
12109
12153
|
|
12110
|
-
case
|
12154
|
+
case 2:
|
12111
12155
|
case "end":
|
12112
12156
|
return _context5.stop();
|
12113
12157
|
}
|
@@ -12317,7 +12361,7 @@ var ShippingCategories = /*#__PURE__*/function (_ApiResource) {
|
|
12317
12361
|
while (1) {
|
12318
12362
|
switch (_context2.prev = _context2.next) {
|
12319
12363
|
case 0:
|
12320
|
-
return _context2.abrupt("return", this.resources.create(
|
12364
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
12321
12365
|
type: ShippingCategories.TYPE
|
12322
12366
|
}), options));
|
12323
12367
|
|
@@ -12393,12 +12437,13 @@ var ShippingCategories = /*#__PURE__*/function (_ApiResource) {
|
|
12393
12437
|
while (1) {
|
12394
12438
|
switch (_context5.prev = _context5.next) {
|
12395
12439
|
case 0:
|
12396
|
-
|
12440
|
+
_context5.next = 2;
|
12441
|
+
return this.resources["delete"]({
|
12397
12442
|
type: ShippingCategories.TYPE,
|
12398
12443
|
id: id
|
12399
12444
|
}, options);
|
12400
12445
|
|
12401
|
-
case
|
12446
|
+
case 2:
|
12402
12447
|
case "end":
|
12403
12448
|
return _context5.stop();
|
12404
12449
|
}
|
@@ -12488,7 +12533,7 @@ var ShippingMethods = /*#__PURE__*/function (_ApiResource) {
|
|
12488
12533
|
while (1) {
|
12489
12534
|
switch (_context2.prev = _context2.next) {
|
12490
12535
|
case 0:
|
12491
|
-
return _context2.abrupt("return", this.resources.create(
|
12536
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
12492
12537
|
type: ShippingMethods.TYPE
|
12493
12538
|
}), options));
|
12494
12539
|
|
@@ -12564,12 +12609,13 @@ var ShippingMethods = /*#__PURE__*/function (_ApiResource) {
|
|
12564
12609
|
while (1) {
|
12565
12610
|
switch (_context5.prev = _context5.next) {
|
12566
12611
|
case 0:
|
12567
|
-
|
12612
|
+
_context5.next = 2;
|
12613
|
+
return this.resources["delete"]({
|
12568
12614
|
type: ShippingMethods.TYPE,
|
12569
12615
|
id: id
|
12570
12616
|
}, options);
|
12571
12617
|
|
12572
|
-
case
|
12618
|
+
case 2:
|
12573
12619
|
case "end":
|
12574
12620
|
return _context5.stop();
|
12575
12621
|
}
|
@@ -12659,7 +12705,7 @@ var ShippingZones = /*#__PURE__*/function (_ApiResource) {
|
|
12659
12705
|
while (1) {
|
12660
12706
|
switch (_context2.prev = _context2.next) {
|
12661
12707
|
case 0:
|
12662
|
-
return _context2.abrupt("return", this.resources.create(
|
12708
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
12663
12709
|
type: ShippingZones.TYPE
|
12664
12710
|
}), options));
|
12665
12711
|
|
@@ -12735,12 +12781,13 @@ var ShippingZones = /*#__PURE__*/function (_ApiResource) {
|
|
12735
12781
|
while (1) {
|
12736
12782
|
switch (_context5.prev = _context5.next) {
|
12737
12783
|
case 0:
|
12738
|
-
|
12784
|
+
_context5.next = 2;
|
12785
|
+
return this.resources["delete"]({
|
12739
12786
|
type: ShippingZones.TYPE,
|
12740
12787
|
id: id
|
12741
12788
|
}, options);
|
12742
12789
|
|
12743
|
-
case
|
12790
|
+
case 2:
|
12744
12791
|
case "end":
|
12745
12792
|
return _context5.stop();
|
12746
12793
|
}
|
@@ -12830,7 +12877,7 @@ var SkuListItems = /*#__PURE__*/function (_ApiResource) {
|
|
12830
12877
|
while (1) {
|
12831
12878
|
switch (_context2.prev = _context2.next) {
|
12832
12879
|
case 0:
|
12833
|
-
return _context2.abrupt("return", this.resources.create(
|
12880
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
12834
12881
|
type: SkuListItems.TYPE
|
12835
12882
|
}), options));
|
12836
12883
|
|
@@ -12906,12 +12953,13 @@ var SkuListItems = /*#__PURE__*/function (_ApiResource) {
|
|
12906
12953
|
while (1) {
|
12907
12954
|
switch (_context5.prev = _context5.next) {
|
12908
12955
|
case 0:
|
12909
|
-
|
12956
|
+
_context5.next = 2;
|
12957
|
+
return this.resources["delete"]({
|
12910
12958
|
type: SkuListItems.TYPE,
|
12911
12959
|
id: id
|
12912
12960
|
}, options);
|
12913
12961
|
|
12914
|
-
case
|
12962
|
+
case 2:
|
12915
12963
|
case "end":
|
12916
12964
|
return _context5.stop();
|
12917
12965
|
}
|
@@ -13001,7 +13049,7 @@ var SkuListPromotionRules = /*#__PURE__*/function (_ApiResource) {
|
|
13001
13049
|
while (1) {
|
13002
13050
|
switch (_context2.prev = _context2.next) {
|
13003
13051
|
case 0:
|
13004
|
-
return _context2.abrupt("return", this.resources.create(
|
13052
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
13005
13053
|
type: SkuListPromotionRules.TYPE
|
13006
13054
|
}), options));
|
13007
13055
|
|
@@ -13077,12 +13125,13 @@ var SkuListPromotionRules = /*#__PURE__*/function (_ApiResource) {
|
|
13077
13125
|
while (1) {
|
13078
13126
|
switch (_context5.prev = _context5.next) {
|
13079
13127
|
case 0:
|
13080
|
-
|
13128
|
+
_context5.next = 2;
|
13129
|
+
return this.resources["delete"]({
|
13081
13130
|
type: SkuListPromotionRules.TYPE,
|
13082
13131
|
id: id
|
13083
13132
|
}, options);
|
13084
13133
|
|
13085
|
-
case
|
13134
|
+
case 2:
|
13086
13135
|
case "end":
|
13087
13136
|
return _context5.stop();
|
13088
13137
|
}
|
@@ -13172,7 +13221,7 @@ var SkuLists = /*#__PURE__*/function (_ApiResource) {
|
|
13172
13221
|
while (1) {
|
13173
13222
|
switch (_context2.prev = _context2.next) {
|
13174
13223
|
case 0:
|
13175
|
-
return _context2.abrupt("return", this.resources.create(
|
13224
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
13176
13225
|
type: SkuLists.TYPE
|
13177
13226
|
}), options));
|
13178
13227
|
|
@@ -13248,12 +13297,13 @@ var SkuLists = /*#__PURE__*/function (_ApiResource) {
|
|
13248
13297
|
while (1) {
|
13249
13298
|
switch (_context5.prev = _context5.next) {
|
13250
13299
|
case 0:
|
13251
|
-
|
13300
|
+
_context5.next = 2;
|
13301
|
+
return this.resources["delete"]({
|
13252
13302
|
type: SkuLists.TYPE,
|
13253
13303
|
id: id
|
13254
13304
|
}, options);
|
13255
13305
|
|
13256
|
-
case
|
13306
|
+
case 2:
|
13257
13307
|
case "end":
|
13258
13308
|
return _context5.stop();
|
13259
13309
|
}
|
@@ -13343,7 +13393,7 @@ var SkuOptions = /*#__PURE__*/function (_ApiResource) {
|
|
13343
13393
|
while (1) {
|
13344
13394
|
switch (_context2.prev = _context2.next) {
|
13345
13395
|
case 0:
|
13346
|
-
return _context2.abrupt("return", this.resources.create(
|
13396
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
13347
13397
|
type: SkuOptions.TYPE
|
13348
13398
|
}), options));
|
13349
13399
|
|
@@ -13419,12 +13469,13 @@ var SkuOptions = /*#__PURE__*/function (_ApiResource) {
|
|
13419
13469
|
while (1) {
|
13420
13470
|
switch (_context5.prev = _context5.next) {
|
13421
13471
|
case 0:
|
13422
|
-
|
13472
|
+
_context5.next = 2;
|
13473
|
+
return this.resources["delete"]({
|
13423
13474
|
type: SkuOptions.TYPE,
|
13424
13475
|
id: id
|
13425
13476
|
}, options);
|
13426
13477
|
|
13427
|
-
case
|
13478
|
+
case 2:
|
13428
13479
|
case "end":
|
13429
13480
|
return _context5.stop();
|
13430
13481
|
}
|
@@ -13514,7 +13565,7 @@ var Skus = /*#__PURE__*/function (_ApiResource) {
|
|
13514
13565
|
while (1) {
|
13515
13566
|
switch (_context2.prev = _context2.next) {
|
13516
13567
|
case 0:
|
13517
|
-
return _context2.abrupt("return", this.resources.create(
|
13568
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
13518
13569
|
type: Skus.TYPE
|
13519
13570
|
}), options));
|
13520
13571
|
|
@@ -13590,12 +13641,13 @@ var Skus = /*#__PURE__*/function (_ApiResource) {
|
|
13590
13641
|
while (1) {
|
13591
13642
|
switch (_context5.prev = _context5.next) {
|
13592
13643
|
case 0:
|
13593
|
-
|
13644
|
+
_context5.next = 2;
|
13645
|
+
return this.resources["delete"]({
|
13594
13646
|
type: Skus.TYPE,
|
13595
13647
|
id: id
|
13596
13648
|
}, options);
|
13597
13649
|
|
13598
|
-
case
|
13650
|
+
case 2:
|
13599
13651
|
case "end":
|
13600
13652
|
return _context5.stop();
|
13601
13653
|
}
|
@@ -13685,7 +13737,7 @@ var StockItems = /*#__PURE__*/function (_ApiResource) {
|
|
13685
13737
|
while (1) {
|
13686
13738
|
switch (_context2.prev = _context2.next) {
|
13687
13739
|
case 0:
|
13688
|
-
return _context2.abrupt("return", this.resources.create(
|
13740
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
13689
13741
|
type: StockItems.TYPE
|
13690
13742
|
}), options));
|
13691
13743
|
|
@@ -13761,12 +13813,13 @@ var StockItems = /*#__PURE__*/function (_ApiResource) {
|
|
13761
13813
|
while (1) {
|
13762
13814
|
switch (_context5.prev = _context5.next) {
|
13763
13815
|
case 0:
|
13764
|
-
|
13816
|
+
_context5.next = 2;
|
13817
|
+
return this.resources["delete"]({
|
13765
13818
|
type: StockItems.TYPE,
|
13766
13819
|
id: id
|
13767
13820
|
}, options);
|
13768
13821
|
|
13769
|
-
case
|
13822
|
+
case 2:
|
13770
13823
|
case "end":
|
13771
13824
|
return _context5.stop();
|
13772
13825
|
}
|
@@ -13951,7 +14004,7 @@ var StockLocations = /*#__PURE__*/function (_ApiResource) {
|
|
13951
14004
|
while (1) {
|
13952
14005
|
switch (_context2.prev = _context2.next) {
|
13953
14006
|
case 0:
|
13954
|
-
return _context2.abrupt("return", this.resources.create(
|
14007
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
13955
14008
|
type: StockLocations.TYPE
|
13956
14009
|
}), options));
|
13957
14010
|
|
@@ -14027,12 +14080,13 @@ var StockLocations = /*#__PURE__*/function (_ApiResource) {
|
|
14027
14080
|
while (1) {
|
14028
14081
|
switch (_context5.prev = _context5.next) {
|
14029
14082
|
case 0:
|
14030
|
-
|
14083
|
+
_context5.next = 2;
|
14084
|
+
return this.resources["delete"]({
|
14031
14085
|
type: StockLocations.TYPE,
|
14032
14086
|
id: id
|
14033
14087
|
}, options);
|
14034
14088
|
|
14035
|
-
case
|
14089
|
+
case 2:
|
14036
14090
|
case "end":
|
14037
14091
|
return _context5.stop();
|
14038
14092
|
}
|
@@ -14122,7 +14176,7 @@ var StockTransfers = /*#__PURE__*/function (_ApiResource) {
|
|
14122
14176
|
while (1) {
|
14123
14177
|
switch (_context2.prev = _context2.next) {
|
14124
14178
|
case 0:
|
14125
|
-
return _context2.abrupt("return", this.resources.create(
|
14179
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
14126
14180
|
type: StockTransfers.TYPE
|
14127
14181
|
}), options));
|
14128
14182
|
|
@@ -14198,12 +14252,13 @@ var StockTransfers = /*#__PURE__*/function (_ApiResource) {
|
|
14198
14252
|
while (1) {
|
14199
14253
|
switch (_context5.prev = _context5.next) {
|
14200
14254
|
case 0:
|
14201
|
-
|
14255
|
+
_context5.next = 2;
|
14256
|
+
return this.resources["delete"]({
|
14202
14257
|
type: StockTransfers.TYPE,
|
14203
14258
|
id: id
|
14204
14259
|
}, options);
|
14205
14260
|
|
14206
|
-
case
|
14261
|
+
case 2:
|
14207
14262
|
case "end":
|
14208
14263
|
return _context5.stop();
|
14209
14264
|
}
|
@@ -14293,7 +14348,7 @@ var StripeGateways = /*#__PURE__*/function (_ApiResource) {
|
|
14293
14348
|
while (1) {
|
14294
14349
|
switch (_context2.prev = _context2.next) {
|
14295
14350
|
case 0:
|
14296
|
-
return _context2.abrupt("return", this.resources.create(
|
14351
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
14297
14352
|
type: StripeGateways.TYPE
|
14298
14353
|
}), options));
|
14299
14354
|
|
@@ -14369,12 +14424,13 @@ var StripeGateways = /*#__PURE__*/function (_ApiResource) {
|
|
14369
14424
|
while (1) {
|
14370
14425
|
switch (_context5.prev = _context5.next) {
|
14371
14426
|
case 0:
|
14372
|
-
|
14427
|
+
_context5.next = 2;
|
14428
|
+
return this.resources["delete"]({
|
14373
14429
|
type: StripeGateways.TYPE,
|
14374
14430
|
id: id
|
14375
14431
|
}, options);
|
14376
14432
|
|
14377
|
-
case
|
14433
|
+
case 2:
|
14378
14434
|
case "end":
|
14379
14435
|
return _context5.stop();
|
14380
14436
|
}
|
@@ -14464,7 +14520,7 @@ var StripePayments = /*#__PURE__*/function (_ApiResource) {
|
|
14464
14520
|
while (1) {
|
14465
14521
|
switch (_context2.prev = _context2.next) {
|
14466
14522
|
case 0:
|
14467
|
-
return _context2.abrupt("return", this.resources.create(
|
14523
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
14468
14524
|
type: StripePayments.TYPE
|
14469
14525
|
}), options));
|
14470
14526
|
|
@@ -14540,12 +14596,13 @@ var StripePayments = /*#__PURE__*/function (_ApiResource) {
|
|
14540
14596
|
while (1) {
|
14541
14597
|
switch (_context5.prev = _context5.next) {
|
14542
14598
|
case 0:
|
14543
|
-
|
14599
|
+
_context5.next = 2;
|
14600
|
+
return this.resources["delete"]({
|
14544
14601
|
type: StripePayments.TYPE,
|
14545
14602
|
id: id
|
14546
14603
|
}, options);
|
14547
14604
|
|
14548
|
-
case
|
14605
|
+
case 2:
|
14549
14606
|
case "end":
|
14550
14607
|
return _context5.stop();
|
14551
14608
|
}
|
@@ -14704,7 +14761,7 @@ var TaxCategories = /*#__PURE__*/function (_ApiResource) {
|
|
14704
14761
|
while (1) {
|
14705
14762
|
switch (_context2.prev = _context2.next) {
|
14706
14763
|
case 0:
|
14707
|
-
return _context2.abrupt("return", this.resources.create(
|
14764
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
14708
14765
|
type: TaxCategories.TYPE
|
14709
14766
|
}), options));
|
14710
14767
|
|
@@ -14780,12 +14837,13 @@ var TaxCategories = /*#__PURE__*/function (_ApiResource) {
|
|
14780
14837
|
while (1) {
|
14781
14838
|
switch (_context5.prev = _context5.next) {
|
14782
14839
|
case 0:
|
14783
|
-
|
14840
|
+
_context5.next = 2;
|
14841
|
+
return this.resources["delete"]({
|
14784
14842
|
type: TaxCategories.TYPE,
|
14785
14843
|
id: id
|
14786
14844
|
}, options);
|
14787
14845
|
|
14788
|
-
case
|
14846
|
+
case 2:
|
14789
14847
|
case "end":
|
14790
14848
|
return _context5.stop();
|
14791
14849
|
}
|
@@ -14875,7 +14933,7 @@ var TaxRules = /*#__PURE__*/function (_ApiResource) {
|
|
14875
14933
|
while (1) {
|
14876
14934
|
switch (_context2.prev = _context2.next) {
|
14877
14935
|
case 0:
|
14878
|
-
return _context2.abrupt("return", this.resources.create(
|
14936
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
14879
14937
|
type: TaxRules.TYPE
|
14880
14938
|
}), options));
|
14881
14939
|
|
@@ -14951,12 +15009,13 @@ var TaxRules = /*#__PURE__*/function (_ApiResource) {
|
|
14951
15009
|
while (1) {
|
14952
15010
|
switch (_context5.prev = _context5.next) {
|
14953
15011
|
case 0:
|
14954
|
-
|
15012
|
+
_context5.next = 2;
|
15013
|
+
return this.resources["delete"]({
|
14955
15014
|
type: TaxRules.TYPE,
|
14956
15015
|
id: id
|
14957
15016
|
}, options);
|
14958
15017
|
|
14959
|
-
case
|
15018
|
+
case 2:
|
14960
15019
|
case "end":
|
14961
15020
|
return _context5.stop();
|
14962
15021
|
}
|
@@ -15046,7 +15105,7 @@ var TaxjarAccounts = /*#__PURE__*/function (_ApiResource) {
|
|
15046
15105
|
while (1) {
|
15047
15106
|
switch (_context2.prev = _context2.next) {
|
15048
15107
|
case 0:
|
15049
|
-
return _context2.abrupt("return", this.resources.create(
|
15108
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
15050
15109
|
type: TaxjarAccounts.TYPE
|
15051
15110
|
}), options));
|
15052
15111
|
|
@@ -15122,12 +15181,13 @@ var TaxjarAccounts = /*#__PURE__*/function (_ApiResource) {
|
|
15122
15181
|
while (1) {
|
15123
15182
|
switch (_context5.prev = _context5.next) {
|
15124
15183
|
case 0:
|
15125
|
-
|
15184
|
+
_context5.next = 2;
|
15185
|
+
return this.resources["delete"]({
|
15126
15186
|
type: TaxjarAccounts.TYPE,
|
15127
15187
|
id: id
|
15128
15188
|
}, options);
|
15129
15189
|
|
15130
|
-
case
|
15190
|
+
case 2:
|
15131
15191
|
case "end":
|
15132
15192
|
return _context5.stop();
|
15133
15193
|
}
|
@@ -15381,7 +15441,7 @@ var Webhooks = /*#__PURE__*/function (_ApiResource) {
|
|
15381
15441
|
while (1) {
|
15382
15442
|
switch (_context2.prev = _context2.next) {
|
15383
15443
|
case 0:
|
15384
|
-
return _context2.abrupt("return", this.resources.create(
|
15444
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
15385
15445
|
type: Webhooks.TYPE
|
15386
15446
|
}), options));
|
15387
15447
|
|
@@ -15457,12 +15517,13 @@ var Webhooks = /*#__PURE__*/function (_ApiResource) {
|
|
15457
15517
|
while (1) {
|
15458
15518
|
switch (_context5.prev = _context5.next) {
|
15459
15519
|
case 0:
|
15460
|
-
|
15520
|
+
_context5.next = 2;
|
15521
|
+
return this.resources["delete"]({
|
15461
15522
|
type: Webhooks.TYPE,
|
15462
15523
|
id: id
|
15463
15524
|
}, options);
|
15464
15525
|
|
15465
|
-
case
|
15526
|
+
case 2:
|
15466
15527
|
case "end":
|
15467
15528
|
return _context5.stop();
|
15468
15529
|
}
|
@@ -15552,7 +15613,7 @@ var WireTransfers = /*#__PURE__*/function (_ApiResource) {
|
|
15552
15613
|
while (1) {
|
15553
15614
|
switch (_context2.prev = _context2.next) {
|
15554
15615
|
case 0:
|
15555
|
-
return _context2.abrupt("return", this.resources.create(
|
15616
|
+
return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
|
15556
15617
|
type: WireTransfers.TYPE
|
15557
15618
|
}), options));
|
15558
15619
|
|
@@ -15628,12 +15689,13 @@ var WireTransfers = /*#__PURE__*/function (_ApiResource) {
|
|
15628
15689
|
while (1) {
|
15629
15690
|
switch (_context5.prev = _context5.next) {
|
15630
15691
|
case 0:
|
15631
|
-
|
15692
|
+
_context5.next = 2;
|
15693
|
+
return this.resources["delete"]({
|
15632
15694
|
type: WireTransfers.TYPE,
|
15633
15695
|
id: id
|
15634
15696
|
}, options);
|
15635
15697
|
|
15636
|
-
case
|
15698
|
+
case 2:
|
15637
15699
|
case "end":
|
15638
15700
|
return _context5.stop();
|
15639
15701
|
}
|
@@ -15681,10 +15743,460 @@ var WireTransfers = /*#__PURE__*/function (_ApiResource) {
|
|
15681
15743
|
WireTransfers.TYPE = 'wire_transfers';
|
15682
15744
|
|
15683
15745
|
// ##__API_RESOURCES_START__##
|
15746
|
+
var resourcMap = {
|
15747
|
+
// ##__API_RESOURCE_MAP_START__##
|
15748
|
+
addresses: {
|
15749
|
+
name: 'address',
|
15750
|
+
type: 'addresses',
|
15751
|
+
api: 'addresses'
|
15752
|
+
},
|
15753
|
+
adjustments: {
|
15754
|
+
name: 'adjustment',
|
15755
|
+
type: 'adjustments',
|
15756
|
+
api: 'adjustments'
|
15757
|
+
},
|
15758
|
+
adyen_gateways: {
|
15759
|
+
name: 'adyen_gateway',
|
15760
|
+
type: 'adyen_gateways',
|
15761
|
+
api: 'adyen_gateways'
|
15762
|
+
},
|
15763
|
+
adyen_payments: {
|
15764
|
+
name: 'adyen_payment',
|
15765
|
+
type: 'adyen_payments',
|
15766
|
+
api: 'adyen_payments'
|
15767
|
+
},
|
15768
|
+
application: {
|
15769
|
+
name: 'application',
|
15770
|
+
type: 'application',
|
15771
|
+
api: 'application'
|
15772
|
+
},
|
15773
|
+
attachments: {
|
15774
|
+
name: 'attachment',
|
15775
|
+
type: 'attachments',
|
15776
|
+
api: 'attachments'
|
15777
|
+
},
|
15778
|
+
authorizations: {
|
15779
|
+
name: 'authorization',
|
15780
|
+
type: 'authorizations',
|
15781
|
+
api: 'authorizations'
|
15782
|
+
},
|
15783
|
+
avalara_accounts: {
|
15784
|
+
name: 'avalara_account',
|
15785
|
+
type: 'avalara_accounts',
|
15786
|
+
api: 'avalara_accounts'
|
15787
|
+
},
|
15788
|
+
billing_info_validation_rules: {
|
15789
|
+
name: 'billing_info_validation_rule',
|
15790
|
+
type: 'billing_info_validation_rules',
|
15791
|
+
api: 'billing_info_validation_rules'
|
15792
|
+
},
|
15793
|
+
bing_geocoders: {
|
15794
|
+
name: 'bing_geocoder',
|
15795
|
+
type: 'bing_geocoders',
|
15796
|
+
api: 'bing_geocoders'
|
15797
|
+
},
|
15798
|
+
braintree_gateways: {
|
15799
|
+
name: 'braintree_gateway',
|
15800
|
+
type: 'braintree_gateways',
|
15801
|
+
api: 'braintree_gateways'
|
15802
|
+
},
|
15803
|
+
braintree_payments: {
|
15804
|
+
name: 'braintree_payment',
|
15805
|
+
type: 'braintree_payments',
|
15806
|
+
api: 'braintree_payments'
|
15807
|
+
},
|
15808
|
+
bundles: {
|
15809
|
+
name: 'bundle',
|
15810
|
+
type: 'bundles',
|
15811
|
+
api: 'bundles'
|
15812
|
+
},
|
15813
|
+
captures: {
|
15814
|
+
name: 'capture',
|
15815
|
+
type: 'captures',
|
15816
|
+
api: 'captures'
|
15817
|
+
},
|
15818
|
+
carrier_accounts: {
|
15819
|
+
name: 'carrier_account',
|
15820
|
+
type: 'carrier_accounts',
|
15821
|
+
api: 'carrier_accounts'
|
15822
|
+
},
|
15823
|
+
checkout_com_gateways: {
|
15824
|
+
name: 'checkout_com_gateway',
|
15825
|
+
type: 'checkout_com_gateways',
|
15826
|
+
api: 'checkout_com_gateways'
|
15827
|
+
},
|
15828
|
+
checkout_com_payments: {
|
15829
|
+
name: 'checkout_com_payment',
|
15830
|
+
type: 'checkout_com_payments',
|
15831
|
+
api: 'checkout_com_payments'
|
15832
|
+
},
|
15833
|
+
coupon_codes_promotion_rules: {
|
15834
|
+
name: 'coupon_codes_promotion_rule',
|
15835
|
+
type: 'coupon_codes_promotion_rules',
|
15836
|
+
api: 'coupon_codes_promotion_rules'
|
15837
|
+
},
|
15838
|
+
coupons: {
|
15839
|
+
name: 'coupon',
|
15840
|
+
type: 'coupons',
|
15841
|
+
api: 'coupons'
|
15842
|
+
},
|
15843
|
+
customer_addresses: {
|
15844
|
+
name: 'customer_address',
|
15845
|
+
type: 'customer_addresses',
|
15846
|
+
api: 'customer_addresses'
|
15847
|
+
},
|
15848
|
+
customer_groups: {
|
15849
|
+
name: 'customer_group',
|
15850
|
+
type: 'customer_groups',
|
15851
|
+
api: 'customer_groups'
|
15852
|
+
},
|
15853
|
+
customer_password_resets: {
|
15854
|
+
name: 'customer_password_reset',
|
15855
|
+
type: 'customer_password_resets',
|
15856
|
+
api: 'customer_password_resets'
|
15857
|
+
},
|
15858
|
+
customer_payment_sources: {
|
15859
|
+
name: 'customer_payment_source',
|
15860
|
+
type: 'customer_payment_sources',
|
15861
|
+
api: 'customer_payment_sources'
|
15862
|
+
},
|
15863
|
+
customer_subscriptions: {
|
15864
|
+
name: 'customer_subscription',
|
15865
|
+
type: 'customer_subscriptions',
|
15866
|
+
api: 'customer_subscriptions'
|
15867
|
+
},
|
15868
|
+
customers: {
|
15869
|
+
name: 'customer',
|
15870
|
+
type: 'customers',
|
15871
|
+
api: 'customers'
|
15872
|
+
},
|
15873
|
+
delivery_lead_times: {
|
15874
|
+
name: 'delivery_lead_time',
|
15875
|
+
type: 'delivery_lead_times',
|
15876
|
+
api: 'delivery_lead_times'
|
15877
|
+
},
|
15878
|
+
external_gateways: {
|
15879
|
+
name: 'external_gateway',
|
15880
|
+
type: 'external_gateways',
|
15881
|
+
api: 'external_gateways'
|
15882
|
+
},
|
15883
|
+
external_payments: {
|
15884
|
+
name: 'external_payment',
|
15885
|
+
type: 'external_payments',
|
15886
|
+
api: 'external_payments'
|
15887
|
+
},
|
15888
|
+
external_promotions: {
|
15889
|
+
name: 'external_promotion',
|
15890
|
+
type: 'external_promotions',
|
15891
|
+
api: 'external_promotions'
|
15892
|
+
},
|
15893
|
+
external_tax_calculators: {
|
15894
|
+
name: 'external_tax_calculator',
|
15895
|
+
type: 'external_tax_calculators',
|
15896
|
+
api: 'external_tax_calculators'
|
15897
|
+
},
|
15898
|
+
fixed_amount_promotions: {
|
15899
|
+
name: 'fixed_amount_promotion',
|
15900
|
+
type: 'fixed_amount_promotions',
|
15901
|
+
api: 'fixed_amount_promotions'
|
15902
|
+
},
|
15903
|
+
free_shipping_promotions: {
|
15904
|
+
name: 'free_shipping_promotion',
|
15905
|
+
type: 'free_shipping_promotions',
|
15906
|
+
api: 'free_shipping_promotions'
|
15907
|
+
},
|
15908
|
+
geocoders: {
|
15909
|
+
name: 'geocoder',
|
15910
|
+
type: 'geocoders',
|
15911
|
+
api: 'geocoders'
|
15912
|
+
},
|
15913
|
+
gift_card_recipients: {
|
15914
|
+
name: 'gift_card_recipient',
|
15915
|
+
type: 'gift_card_recipients',
|
15916
|
+
api: 'gift_card_recipients'
|
15917
|
+
},
|
15918
|
+
gift_cards: {
|
15919
|
+
name: 'gift_card',
|
15920
|
+
type: 'gift_cards',
|
15921
|
+
api: 'gift_cards'
|
15922
|
+
},
|
15923
|
+
google_geocoders: {
|
15924
|
+
name: 'google_geocoder',
|
15925
|
+
type: 'google_geocoders',
|
15926
|
+
api: 'google_geocoders'
|
15927
|
+
},
|
15928
|
+
imports: {
|
15929
|
+
name: 'import',
|
15930
|
+
type: 'imports',
|
15931
|
+
api: 'imports'
|
15932
|
+
},
|
15933
|
+
in_stock_subscriptions: {
|
15934
|
+
name: 'in_stock_subscription',
|
15935
|
+
type: 'in_stock_subscriptions',
|
15936
|
+
api: 'in_stock_subscriptions'
|
15937
|
+
},
|
15938
|
+
inventory_models: {
|
15939
|
+
name: 'inventory_model',
|
15940
|
+
type: 'inventory_models',
|
15941
|
+
api: 'inventory_models'
|
15942
|
+
},
|
15943
|
+
inventory_return_locations: {
|
15944
|
+
name: 'inventory_return_location',
|
15945
|
+
type: 'inventory_return_locations',
|
15946
|
+
api: 'inventory_return_locations'
|
15947
|
+
},
|
15948
|
+
inventory_stock_locations: {
|
15949
|
+
name: 'inventory_stock_location',
|
15950
|
+
type: 'inventory_stock_locations',
|
15951
|
+
api: 'inventory_stock_locations'
|
15952
|
+
},
|
15953
|
+
line_item_options: {
|
15954
|
+
name: 'line_item_option',
|
15955
|
+
type: 'line_item_options',
|
15956
|
+
api: 'line_item_options'
|
15957
|
+
},
|
15958
|
+
line_items: {
|
15959
|
+
name: 'line_item',
|
15960
|
+
type: 'line_items',
|
15961
|
+
api: 'line_items'
|
15962
|
+
},
|
15963
|
+
manual_gateways: {
|
15964
|
+
name: 'manual_gateway',
|
15965
|
+
type: 'manual_gateways',
|
15966
|
+
api: 'manual_gateways'
|
15967
|
+
},
|
15968
|
+
manual_tax_calculators: {
|
15969
|
+
name: 'manual_tax_calculator',
|
15970
|
+
type: 'manual_tax_calculators',
|
15971
|
+
api: 'manual_tax_calculators'
|
15972
|
+
},
|
15973
|
+
markets: {
|
15974
|
+
name: 'market',
|
15975
|
+
type: 'markets',
|
15976
|
+
api: 'markets'
|
15977
|
+
},
|
15978
|
+
merchants: {
|
15979
|
+
name: 'merchant',
|
15980
|
+
type: 'merchants',
|
15981
|
+
api: 'merchants'
|
15982
|
+
},
|
15983
|
+
order_amount_promotion_rules: {
|
15984
|
+
name: 'order_amount_promotion_rule',
|
15985
|
+
type: 'order_amount_promotion_rules',
|
15986
|
+
api: 'order_amount_promotion_rules'
|
15987
|
+
},
|
15988
|
+
order_copies: {
|
15989
|
+
name: 'order_copy',
|
15990
|
+
type: 'order_copies',
|
15991
|
+
api: 'order_copies'
|
15992
|
+
},
|
15993
|
+
order_subscriptions: {
|
15994
|
+
name: 'order_subscription',
|
15995
|
+
type: 'order_subscriptions',
|
15996
|
+
api: 'order_subscriptions'
|
15997
|
+
},
|
15998
|
+
orders: {
|
15999
|
+
name: 'order',
|
16000
|
+
type: 'orders',
|
16001
|
+
api: 'orders'
|
16002
|
+
},
|
16003
|
+
organization: {
|
16004
|
+
name: 'organization',
|
16005
|
+
type: 'organization',
|
16006
|
+
api: 'organization'
|
16007
|
+
},
|
16008
|
+
packages: {
|
16009
|
+
name: 'package',
|
16010
|
+
type: 'packages',
|
16011
|
+
api: 'packages'
|
16012
|
+
},
|
16013
|
+
parcel_line_items: {
|
16014
|
+
name: 'parcel_line_item',
|
16015
|
+
type: 'parcel_line_items',
|
16016
|
+
api: 'parcel_line_items'
|
16017
|
+
},
|
16018
|
+
parcels: {
|
16019
|
+
name: 'parcel',
|
16020
|
+
type: 'parcels',
|
16021
|
+
api: 'parcels'
|
16022
|
+
},
|
16023
|
+
payment_gateways: {
|
16024
|
+
name: 'payment_gateway',
|
16025
|
+
type: 'payment_gateways',
|
16026
|
+
api: 'payment_gateways'
|
16027
|
+
},
|
16028
|
+
payment_methods: {
|
16029
|
+
name: 'payment_method',
|
16030
|
+
type: 'payment_methods',
|
16031
|
+
api: 'payment_methods'
|
16032
|
+
},
|
16033
|
+
paypal_gateways: {
|
16034
|
+
name: 'paypal_gateway',
|
16035
|
+
type: 'paypal_gateways',
|
16036
|
+
api: 'paypal_gateways'
|
16037
|
+
},
|
16038
|
+
paypal_payments: {
|
16039
|
+
name: 'paypal_payment',
|
16040
|
+
type: 'paypal_payments',
|
16041
|
+
api: 'paypal_payments'
|
16042
|
+
},
|
16043
|
+
percentage_discount_promotions: {
|
16044
|
+
name: 'percentage_discount_promotion',
|
16045
|
+
type: 'percentage_discount_promotions',
|
16046
|
+
api: 'percentage_discount_promotions'
|
16047
|
+
},
|
16048
|
+
price_lists: {
|
16049
|
+
name: 'price_list',
|
16050
|
+
type: 'price_lists',
|
16051
|
+
api: 'price_lists'
|
16052
|
+
},
|
16053
|
+
prices: {
|
16054
|
+
name: 'price',
|
16055
|
+
type: 'prices',
|
16056
|
+
api: 'prices'
|
16057
|
+
},
|
16058
|
+
promotion_rules: {
|
16059
|
+
name: 'promotion_rule',
|
16060
|
+
type: 'promotion_rules',
|
16061
|
+
api: 'promotion_rules'
|
16062
|
+
},
|
16063
|
+
promotions: {
|
16064
|
+
name: 'promotion',
|
16065
|
+
type: 'promotions',
|
16066
|
+
api: 'promotions'
|
16067
|
+
},
|
16068
|
+
refunds: {
|
16069
|
+
name: 'refund',
|
16070
|
+
type: 'refunds',
|
16071
|
+
api: 'refunds'
|
16072
|
+
},
|
16073
|
+
return_line_items: {
|
16074
|
+
name: 'return_line_item',
|
16075
|
+
type: 'return_line_items',
|
16076
|
+
api: 'return_line_items'
|
16077
|
+
},
|
16078
|
+
returns: {
|
16079
|
+
name: 'return',
|
16080
|
+
type: 'returns',
|
16081
|
+
api: 'returns'
|
16082
|
+
},
|
16083
|
+
shipments: {
|
16084
|
+
name: 'shipment',
|
16085
|
+
type: 'shipments',
|
16086
|
+
api: 'shipments'
|
16087
|
+
},
|
16088
|
+
shipping_categories: {
|
16089
|
+
name: 'shipping_category',
|
16090
|
+
type: 'shipping_categories',
|
16091
|
+
api: 'shipping_categories'
|
16092
|
+
},
|
16093
|
+
shipping_methods: {
|
16094
|
+
name: 'shipping_method',
|
16095
|
+
type: 'shipping_methods',
|
16096
|
+
api: 'shipping_methods'
|
16097
|
+
},
|
16098
|
+
shipping_zones: {
|
16099
|
+
name: 'shipping_zone',
|
16100
|
+
type: 'shipping_zones',
|
16101
|
+
api: 'shipping_zones'
|
16102
|
+
},
|
16103
|
+
sku_list_items: {
|
16104
|
+
name: 'sku_list_item',
|
16105
|
+
type: 'sku_list_items',
|
16106
|
+
api: 'sku_list_items'
|
16107
|
+
},
|
16108
|
+
sku_list_promotion_rules: {
|
16109
|
+
name: 'sku_list_promotion_rule',
|
16110
|
+
type: 'sku_list_promotion_rules',
|
16111
|
+
api: 'sku_list_promotion_rules'
|
16112
|
+
},
|
16113
|
+
sku_lists: {
|
16114
|
+
name: 'sku_list',
|
16115
|
+
type: 'sku_lists',
|
16116
|
+
api: 'sku_lists'
|
16117
|
+
},
|
16118
|
+
sku_options: {
|
16119
|
+
name: 'sku_option',
|
16120
|
+
type: 'sku_options',
|
16121
|
+
api: 'sku_options'
|
16122
|
+
},
|
16123
|
+
skus: {
|
16124
|
+
name: 'sku',
|
16125
|
+
type: 'skus',
|
16126
|
+
api: 'skus'
|
16127
|
+
},
|
16128
|
+
stock_items: {
|
16129
|
+
name: 'stock_item',
|
16130
|
+
type: 'stock_items',
|
16131
|
+
api: 'stock_items'
|
16132
|
+
},
|
16133
|
+
stock_line_items: {
|
16134
|
+
name: 'stock_line_item',
|
16135
|
+
type: 'stock_line_items',
|
16136
|
+
api: 'stock_line_items'
|
16137
|
+
},
|
16138
|
+
stock_locations: {
|
16139
|
+
name: 'stock_location',
|
16140
|
+
type: 'stock_locations',
|
16141
|
+
api: 'stock_locations'
|
16142
|
+
},
|
16143
|
+
stock_transfers: {
|
16144
|
+
name: 'stock_transfer',
|
16145
|
+
type: 'stock_transfers',
|
16146
|
+
api: 'stock_transfers'
|
16147
|
+
},
|
16148
|
+
stripe_gateways: {
|
16149
|
+
name: 'stripe_gateway',
|
16150
|
+
type: 'stripe_gateways',
|
16151
|
+
api: 'stripe_gateways'
|
16152
|
+
},
|
16153
|
+
stripe_payments: {
|
16154
|
+
name: 'stripe_payment',
|
16155
|
+
type: 'stripe_payments',
|
16156
|
+
api: 'stripe_payments'
|
16157
|
+
},
|
16158
|
+
tax_calculators: {
|
16159
|
+
name: 'tax_calculator',
|
16160
|
+
type: 'tax_calculators',
|
16161
|
+
api: 'tax_calculators'
|
16162
|
+
},
|
16163
|
+
tax_categories: {
|
16164
|
+
name: 'tax_category',
|
16165
|
+
type: 'tax_categories',
|
16166
|
+
api: 'tax_categories'
|
16167
|
+
},
|
16168
|
+
tax_rules: {
|
16169
|
+
name: 'tax_rule',
|
16170
|
+
type: 'tax_rules',
|
16171
|
+
api: 'tax_rules'
|
16172
|
+
},
|
16173
|
+
taxjar_accounts: {
|
16174
|
+
name: 'taxjar_account',
|
16175
|
+
type: 'taxjar_accounts',
|
16176
|
+
api: 'taxjar_accounts'
|
16177
|
+
},
|
16178
|
+
transactions: {
|
16179
|
+
name: 'transaction',
|
16180
|
+
type: 'transactions',
|
16181
|
+
api: 'transactions'
|
16182
|
+
},
|
16183
|
+
voids: {
|
16184
|
+
name: 'void',
|
16185
|
+
type: 'voids',
|
16186
|
+
api: 'voids'
|
16187
|
+
},
|
16188
|
+
webhooks: {
|
16189
|
+
name: 'webhook',
|
16190
|
+
type: 'webhooks',
|
16191
|
+
api: 'webhooks'
|
16192
|
+
},
|
16193
|
+
wire_transfers: {
|
16194
|
+
name: 'wire_transfer',
|
16195
|
+
type: 'wire_transfers',
|
16196
|
+
api: 'wire_transfers'
|
16197
|
+
} // ##__API_RESOURCE_MAP_STOP__##
|
15684
16198
|
|
15685
|
-
|
15686
|
-
'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__##
|
15687
|
-
];
|
16199
|
+
};
|
15688
16200
|
|
15689
16201
|
var _adapter = /*#__PURE__*/_classPrivateFieldLooseKey("adapter");
|
15690
16202
|
|
@@ -15814,12 +16326,24 @@ var CommerceLayerClient = /*#__PURE__*/function () {
|
|
15814
16326
|
;
|
15815
16327
|
|
15816
16328
|
_proto.resources = function resources() {
|
15817
|
-
return
|
16329
|
+
return CommerceLayerStatic.resources();
|
15818
16330
|
} // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
15819
16331
|
;
|
15820
16332
|
|
15821
16333
|
_proto.isApiError = function isApiError(error) {
|
15822
|
-
return
|
16334
|
+
return CommerceLayerStatic.isApiError(error);
|
16335
|
+
};
|
16336
|
+
|
16337
|
+
_proto.addRequestInterceptor = function addRequestInterceptor(onFulfilled, onRejected) {
|
16338
|
+
return _classPrivateFieldLooseBase(this, _adapter)[_adapter].interceptors.request.use(onFulfilled, onRejected);
|
16339
|
+
};
|
16340
|
+
|
16341
|
+
_proto.addResponseInterceptor = function addResponseInterceptor(onFulfilled, onRejected) {
|
16342
|
+
return _classPrivateFieldLooseBase(this, _adapter)[_adapter].interceptors.response.use(onFulfilled, onRejected);
|
16343
|
+
};
|
16344
|
+
|
16345
|
+
_proto.removeInterceptor = function removeInterceptor(type, id) {
|
16346
|
+
return _classPrivateFieldLooseBase(this, _adapter)[_adapter].interceptors[type].eject(id);
|
15823
16347
|
};
|
15824
16348
|
|
15825
16349
|
_createClass(CommerceLayerClient, [{
|
@@ -15835,6 +16359,16 @@ var CommerceLayerClient = /*#__PURE__*/function () {
|
|
15835
16359
|
var CommerceLayer = function CommerceLayer(config) {
|
15836
16360
|
return new CommerceLayerClient(config);
|
15837
16361
|
};
|
16362
|
+
var CommerceLayerStatic = {
|
16363
|
+
resources: function resources() {
|
16364
|
+
return Object.keys(resourcMap);
|
16365
|
+
},
|
16366
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
16367
|
+
isApiError: function isApiError(error) {
|
16368
|
+
return ApiError.isApiError(error);
|
16369
|
+
}
|
16370
|
+
};
|
15838
16371
|
|
16372
|
+
exports.CommerceLayerStatic = CommerceLayerStatic;
|
15839
16373
|
exports.default = CommerceLayer;
|
15840
16374
|
//# sourceMappingURL=sdk.cjs.development.js.map
|