@commercelayer/sdk 2.1.0 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/lib/api.d.ts +6 -3
  2. package/lib/commercelayer.d.ts +3 -0
  3. package/lib/index.d.ts +1 -1
  4. package/lib/interceptor.d.ts +2 -1
  5. package/lib/model.d.ts +4 -1
  6. package/lib/resources/addresses.d.ts +2 -1
  7. package/lib/resources/adjustments.d.ts +2 -1
  8. package/lib/resources/adyen_gateways.d.ts +2 -1
  9. package/lib/resources/adyen_payments.d.ts +2 -1
  10. package/lib/resources/application.d.ts +2 -1
  11. package/lib/resources/attachments.d.ts +2 -1
  12. package/lib/resources/authorizations.d.ts +2 -1
  13. package/lib/resources/avalara_accounts.d.ts +2 -1
  14. package/lib/resources/billing_info_validation_rules.d.ts +2 -1
  15. package/lib/resources/bing_geocoders.d.ts +2 -1
  16. package/lib/resources/braintree_gateways.d.ts +2 -1
  17. package/lib/resources/braintree_payments.d.ts +2 -1
  18. package/lib/resources/bundles.d.ts +2 -1
  19. package/lib/resources/captures.d.ts +2 -1
  20. package/lib/resources/carrier_accounts.d.ts +2 -1
  21. package/lib/resources/checkout_com_gateways.d.ts +2 -1
  22. package/lib/resources/checkout_com_payments.d.ts +2 -1
  23. package/lib/resources/coupon_codes_promotion_rules.d.ts +13 -4
  24. package/lib/resources/coupon_recipients.d.ts +46 -0
  25. package/lib/resources/coupons.d.ts +5 -1
  26. package/lib/resources/customer_addresses.d.ts +2 -1
  27. package/lib/resources/customer_groups.d.ts +2 -1
  28. package/lib/resources/customer_password_resets.d.ts +2 -1
  29. package/lib/resources/customer_payment_sources.d.ts +2 -1
  30. package/lib/resources/customer_subscriptions.d.ts +2 -1
  31. package/lib/resources/customers.d.ts +2 -1
  32. package/lib/resources/delivery_lead_times.d.ts +2 -1
  33. package/lib/resources/event_callbacks.d.ts +4 -2
  34. package/lib/resources/external_gateways.d.ts +2 -1
  35. package/lib/resources/external_payments.d.ts +2 -1
  36. package/lib/resources/external_promotions.d.ts +2 -1
  37. package/lib/resources/external_tax_calculators.d.ts +2 -1
  38. package/lib/resources/fixed_amount_promotions.d.ts +2 -1
  39. package/lib/resources/fixed_price_promotions.d.ts +93 -0
  40. package/lib/resources/free_gift_promotions.d.ts +91 -0
  41. package/lib/resources/free_shipping_promotions.d.ts +2 -1
  42. package/lib/resources/geocoders.d.ts +2 -1
  43. package/lib/resources/gift_card_recipients.d.ts +2 -1
  44. package/lib/resources/gift_cards.d.ts +2 -1
  45. package/lib/resources/google_geocoders.d.ts +2 -1
  46. package/lib/resources/imports.d.ts +2 -1
  47. package/lib/resources/in_stock_subscriptions.d.ts +2 -1
  48. package/lib/resources/inventory_models.d.ts +2 -1
  49. package/lib/resources/inventory_return_locations.d.ts +2 -1
  50. package/lib/resources/inventory_stock_locations.d.ts +2 -1
  51. package/lib/resources/line_item_options.d.ts +2 -1
  52. package/lib/resources/line_items.d.ts +2 -1
  53. package/lib/resources/manual_gateways.d.ts +2 -1
  54. package/lib/resources/manual_tax_calculators.d.ts +2 -1
  55. package/lib/resources/markets.d.ts +2 -1
  56. package/lib/resources/merchants.d.ts +2 -1
  57. package/lib/resources/order_amount_promotion_rules.d.ts +13 -4
  58. package/lib/resources/order_copies.d.ts +2 -1
  59. package/lib/resources/order_subscriptions.d.ts +2 -1
  60. package/lib/resources/order_validation_rules.d.ts +2 -1
  61. package/lib/resources/orders.d.ts +2 -1
  62. package/lib/resources/organization.d.ts +2 -1
  63. package/lib/resources/packages.d.ts +2 -1
  64. package/lib/resources/parcel_line_items.d.ts +2 -1
  65. package/lib/resources/parcels.d.ts +2 -1
  66. package/lib/resources/payment_gateways.d.ts +2 -1
  67. package/lib/resources/payment_methods.d.ts +2 -1
  68. package/lib/resources/paypal_gateways.d.ts +2 -1
  69. package/lib/resources/paypal_payments.d.ts +2 -1
  70. package/lib/resources/percentage_discount_promotions.d.ts +2 -1
  71. package/lib/resources/price_lists.d.ts +2 -1
  72. package/lib/resources/prices.d.ts +2 -1
  73. package/lib/resources/promotion_rules.d.ts +5 -2
  74. package/lib/resources/promotions.d.ts +2 -1
  75. package/lib/resources/refunds.d.ts +2 -1
  76. package/lib/resources/return_line_items.d.ts +2 -1
  77. package/lib/resources/returns.d.ts +2 -1
  78. package/lib/resources/shipments.d.ts +2 -1
  79. package/lib/resources/shipping_categories.d.ts +2 -1
  80. package/lib/resources/shipping_methods.d.ts +2 -1
  81. package/lib/resources/shipping_zones.d.ts +2 -1
  82. package/lib/resources/sku_list_items.d.ts +2 -1
  83. package/lib/resources/sku_list_promotion_rules.d.ts +16 -4
  84. package/lib/resources/sku_lists.d.ts +2 -1
  85. package/lib/resources/sku_options.d.ts +2 -1
  86. package/lib/resources/skus.d.ts +2 -1
  87. package/lib/resources/stock_items.d.ts +2 -1
  88. package/lib/resources/stock_line_items.d.ts +2 -1
  89. package/lib/resources/stock_locations.d.ts +2 -1
  90. package/lib/resources/stock_transfers.d.ts +2 -1
  91. package/lib/resources/stripe_gateways.d.ts +2 -1
  92. package/lib/resources/stripe_payments.d.ts +2 -1
  93. package/lib/resources/tax_calculators.d.ts +2 -1
  94. package/lib/resources/tax_categories.d.ts +2 -1
  95. package/lib/resources/tax_rules.d.ts +2 -1
  96. package/lib/resources/taxjar_accounts.d.ts +2 -1
  97. package/lib/resources/transactions.d.ts +2 -1
  98. package/lib/resources/voids.d.ts +2 -1
  99. package/lib/resources/webhooks.d.ts +3 -2
  100. package/lib/resources/wire_transfers.d.ts +2 -1
  101. package/lib/sdk.cjs.development.js +1007 -82
  102. package/lib/sdk.cjs.development.js.map +1 -1
  103. package/lib/sdk.cjs.production.min.js +1 -1
  104. package/lib/sdk.cjs.production.min.js.map +1 -1
  105. package/lib/sdk.esm.js +1007 -82
  106. package/lib/sdk.esm.js.map +1 -1
  107. package/package.json +3 -2
package/lib/sdk.esm.js CHANGED
@@ -1665,6 +1665,10 @@ var Addresses = /*#__PURE__*/function (_ApiResource) {
1665
1665
  };
1666
1666
  };
1667
1667
 
1668
+ _proto.type = function type() {
1669
+ return Addresses.TYPE;
1670
+ };
1671
+
1668
1672
  return Addresses;
1669
1673
  }(ApiResource);
1670
1674
 
@@ -1837,6 +1841,10 @@ var Adjustments = /*#__PURE__*/function (_ApiResource) {
1837
1841
  };
1838
1842
  };
1839
1843
 
1844
+ _proto.type = function type() {
1845
+ return Adjustments.TYPE;
1846
+ };
1847
+
1840
1848
  return Adjustments;
1841
1849
  }(ApiResource);
1842
1850
 
@@ -2009,6 +2017,10 @@ var AdyenGateways = /*#__PURE__*/function (_ApiResource) {
2009
2017
  };
2010
2018
  };
2011
2019
 
2020
+ _proto.type = function type() {
2021
+ return AdyenGateways.TYPE;
2022
+ };
2023
+
2012
2024
  return AdyenGateways;
2013
2025
  }(ApiResource);
2014
2026
 
@@ -2181,6 +2193,10 @@ var AdyenPayments = /*#__PURE__*/function (_ApiResource) {
2181
2193
  };
2182
2194
  };
2183
2195
 
2196
+ _proto.type = function type() {
2197
+ return AdyenPayments.TYPE;
2198
+ };
2199
+
2184
2200
  return AdyenPayments;
2185
2201
  }(ApiResource);
2186
2202
 
@@ -2250,6 +2266,10 @@ var Applications = /*#__PURE__*/function (_ApiResource) {
2250
2266
  };
2251
2267
  };
2252
2268
 
2269
+ _proto.type = function type() {
2270
+ return Applications.TYPE;
2271
+ };
2272
+
2253
2273
  return Applications;
2254
2274
  }(ApiResource);
2255
2275
 
@@ -2422,6 +2442,10 @@ var Attachments = /*#__PURE__*/function (_ApiResource) {
2422
2442
  };
2423
2443
  };
2424
2444
 
2445
+ _proto.type = function type() {
2446
+ return Attachments.TYPE;
2447
+ };
2448
+
2425
2449
  return Attachments;
2426
2450
  }(ApiResource);
2427
2451
 
@@ -2542,6 +2566,10 @@ var Authorizations = /*#__PURE__*/function (_ApiResource) {
2542
2566
  };
2543
2567
  };
2544
2568
 
2569
+ _proto.type = function type() {
2570
+ return Authorizations.TYPE;
2571
+ };
2572
+
2545
2573
  return Authorizations;
2546
2574
  }(ApiResource);
2547
2575
 
@@ -2714,6 +2742,10 @@ var AvalaraAccounts = /*#__PURE__*/function (_ApiResource) {
2714
2742
  };
2715
2743
  };
2716
2744
 
2745
+ _proto.type = function type() {
2746
+ return AvalaraAccounts.TYPE;
2747
+ };
2748
+
2717
2749
  return AvalaraAccounts;
2718
2750
  }(ApiResource);
2719
2751
 
@@ -2886,6 +2918,10 @@ var BillingInfoValidationRules = /*#__PURE__*/function (_ApiResource) {
2886
2918
  };
2887
2919
  };
2888
2920
 
2921
+ _proto.type = function type() {
2922
+ return BillingInfoValidationRules.TYPE;
2923
+ };
2924
+
2889
2925
  return BillingInfoValidationRules;
2890
2926
  }(ApiResource);
2891
2927
 
@@ -3058,6 +3094,10 @@ var BingGeocoders = /*#__PURE__*/function (_ApiResource) {
3058
3094
  };
3059
3095
  };
3060
3096
 
3097
+ _proto.type = function type() {
3098
+ return BingGeocoders.TYPE;
3099
+ };
3100
+
3061
3101
  return BingGeocoders;
3062
3102
  }(ApiResource);
3063
3103
 
@@ -3230,6 +3270,10 @@ var BraintreeGateways = /*#__PURE__*/function (_ApiResource) {
3230
3270
  };
3231
3271
  };
3232
3272
 
3273
+ _proto.type = function type() {
3274
+ return BraintreeGateways.TYPE;
3275
+ };
3276
+
3233
3277
  return BraintreeGateways;
3234
3278
  }(ApiResource);
3235
3279
 
@@ -3402,6 +3446,10 @@ var BraintreePayments = /*#__PURE__*/function (_ApiResource) {
3402
3446
  };
3403
3447
  };
3404
3448
 
3449
+ _proto.type = function type() {
3450
+ return BraintreePayments.TYPE;
3451
+ };
3452
+
3405
3453
  return BraintreePayments;
3406
3454
  }(ApiResource);
3407
3455
 
@@ -3574,6 +3622,10 @@ var Bundles = /*#__PURE__*/function (_ApiResource) {
3574
3622
  };
3575
3623
  };
3576
3624
 
3625
+ _proto.type = function type() {
3626
+ return Bundles.TYPE;
3627
+ };
3628
+
3577
3629
  return Bundles;
3578
3630
  }(ApiResource);
3579
3631
 
@@ -3694,6 +3746,10 @@ var Captures = /*#__PURE__*/function (_ApiResource) {
3694
3746
  };
3695
3747
  };
3696
3748
 
3749
+ _proto.type = function type() {
3750
+ return Captures.TYPE;
3751
+ };
3752
+
3697
3753
  return Captures;
3698
3754
  }(ApiResource);
3699
3755
 
@@ -3789,6 +3845,10 @@ var CarrierAccounts = /*#__PURE__*/function (_ApiResource) {
3789
3845
  };
3790
3846
  };
3791
3847
 
3848
+ _proto.type = function type() {
3849
+ return CarrierAccounts.TYPE;
3850
+ };
3851
+
3792
3852
  return CarrierAccounts;
3793
3853
  }(ApiResource);
3794
3854
 
@@ -3961,6 +4021,10 @@ var CheckoutComGateways = /*#__PURE__*/function (_ApiResource) {
3961
4021
  };
3962
4022
  };
3963
4023
 
4024
+ _proto.type = function type() {
4025
+ return CheckoutComGateways.TYPE;
4026
+ };
4027
+
3964
4028
  return CheckoutComGateways;
3965
4029
  }(ApiResource);
3966
4030
 
@@ -4133,6 +4197,10 @@ var CheckoutComPayments = /*#__PURE__*/function (_ApiResource) {
4133
4197
  };
4134
4198
  };
4135
4199
 
4200
+ _proto.type = function type() {
4201
+ return CheckoutComPayments.TYPE;
4202
+ };
4203
+
4136
4204
  return CheckoutComPayments;
4137
4205
  }(ApiResource);
4138
4206
 
@@ -4305,11 +4373,191 @@ var CouponCodesPromotionRules = /*#__PURE__*/function (_ApiResource) {
4305
4373
  };
4306
4374
  };
4307
4375
 
4376
+ _proto.type = function type() {
4377
+ return CouponCodesPromotionRules.TYPE;
4378
+ };
4379
+
4308
4380
  return CouponCodesPromotionRules;
4309
4381
  }(ApiResource);
4310
4382
 
4311
4383
  CouponCodesPromotionRules.TYPE = 'coupon_codes_promotion_rules';
4312
4384
 
4385
+ var CouponRecipients = /*#__PURE__*/function (_ApiResource) {
4386
+ _inheritsLoose(CouponRecipients, _ApiResource);
4387
+
4388
+ function CouponRecipients() {
4389
+ return _ApiResource.apply(this, arguments) || this;
4390
+ }
4391
+
4392
+ var _proto = CouponRecipients.prototype;
4393
+
4394
+ // static readonly PATH = 'coupon_recipients'
4395
+ _proto.list =
4396
+ /*#__PURE__*/
4397
+ function () {
4398
+ var _list = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(params, options) {
4399
+ return runtime_1.wrap(function _callee$(_context) {
4400
+ while (1) {
4401
+ switch (_context.prev = _context.next) {
4402
+ case 0:
4403
+ return _context.abrupt("return", this.resources.list({
4404
+ type: CouponRecipients.TYPE
4405
+ }, params, options));
4406
+
4407
+ case 1:
4408
+ case "end":
4409
+ return _context.stop();
4410
+ }
4411
+ }
4412
+ }, _callee, this);
4413
+ }));
4414
+
4415
+ function list(_x, _x2) {
4416
+ return _list.apply(this, arguments);
4417
+ }
4418
+
4419
+ return list;
4420
+ }();
4421
+
4422
+ _proto.create = /*#__PURE__*/function () {
4423
+ var _create = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(resource, options) {
4424
+ return runtime_1.wrap(function _callee2$(_context2) {
4425
+ while (1) {
4426
+ switch (_context2.prev = _context2.next) {
4427
+ case 0:
4428
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4429
+ type: CouponRecipients.TYPE
4430
+ }), options));
4431
+
4432
+ case 1:
4433
+ case "end":
4434
+ return _context2.stop();
4435
+ }
4436
+ }
4437
+ }, _callee2, this);
4438
+ }));
4439
+
4440
+ function create(_x3, _x4) {
4441
+ return _create.apply(this, arguments);
4442
+ }
4443
+
4444
+ return create;
4445
+ }();
4446
+
4447
+ _proto.retrieve = /*#__PURE__*/function () {
4448
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(id, params, options) {
4449
+ return runtime_1.wrap(function _callee3$(_context3) {
4450
+ while (1) {
4451
+ switch (_context3.prev = _context3.next) {
4452
+ case 0:
4453
+ return _context3.abrupt("return", this.resources.retrieve({
4454
+ type: CouponRecipients.TYPE,
4455
+ id: id
4456
+ }, params, options));
4457
+
4458
+ case 1:
4459
+ case "end":
4460
+ return _context3.stop();
4461
+ }
4462
+ }
4463
+ }, _callee3, this);
4464
+ }));
4465
+
4466
+ function retrieve(_x5, _x6, _x7) {
4467
+ return _retrieve.apply(this, arguments);
4468
+ }
4469
+
4470
+ return retrieve;
4471
+ }();
4472
+
4473
+ _proto.update = /*#__PURE__*/function () {
4474
+ var _update = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(resource, options) {
4475
+ return runtime_1.wrap(function _callee4$(_context4) {
4476
+ while (1) {
4477
+ switch (_context4.prev = _context4.next) {
4478
+ case 0:
4479
+ return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
4480
+ type: CouponRecipients.TYPE
4481
+ }), options));
4482
+
4483
+ case 1:
4484
+ case "end":
4485
+ return _context4.stop();
4486
+ }
4487
+ }
4488
+ }, _callee4, this);
4489
+ }));
4490
+
4491
+ function update(_x8, _x9) {
4492
+ return _update.apply(this, arguments);
4493
+ }
4494
+
4495
+ return update;
4496
+ }();
4497
+
4498
+ _proto["delete"] = /*#__PURE__*/function () {
4499
+ var _delete2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(id, options) {
4500
+ return runtime_1.wrap(function _callee5$(_context5) {
4501
+ while (1) {
4502
+ switch (_context5.prev = _context5.next) {
4503
+ case 0:
4504
+ _context5.next = 2;
4505
+ return this.resources["delete"]({
4506
+ type: CouponRecipients.TYPE,
4507
+ id: id
4508
+ }, options);
4509
+
4510
+ case 2:
4511
+ case "end":
4512
+ return _context5.stop();
4513
+ }
4514
+ }
4515
+ }, _callee5, this);
4516
+ }));
4517
+
4518
+ function _delete(_x10, _x11) {
4519
+ return _delete2.apply(this, arguments);
4520
+ }
4521
+
4522
+ return _delete;
4523
+ }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
4524
+ ;
4525
+
4526
+ _proto.isCouponRecipient = function isCouponRecipient(resource) {
4527
+ return resource.type && resource.type === CouponRecipients.TYPE;
4528
+ }
4529
+ /*
4530
+ filter(): QueryBuilderRetrieve {
4531
+ return new QueryBuilderRetrieve(CouponRecipients.TYPE)
4532
+ }
4533
+ */
4534
+
4535
+ /*
4536
+ filterList(): QueryBuilderList {
4537
+ return new QueryBuilderList(CouponRecipients.TYPE)
4538
+ }
4539
+ */
4540
+ ;
4541
+
4542
+ _proto.relationship = function relationship(id) {
4543
+ return typeof id === 'string' ? {
4544
+ id: id,
4545
+ type: CouponRecipients.TYPE
4546
+ } : {
4547
+ id: id.id,
4548
+ type: CouponRecipients.TYPE
4549
+ };
4550
+ };
4551
+
4552
+ _proto.type = function type() {
4553
+ return CouponRecipients.TYPE;
4554
+ };
4555
+
4556
+ return CouponRecipients;
4557
+ }(ApiResource);
4558
+
4559
+ CouponRecipients.TYPE = 'coupon_recipients';
4560
+
4313
4561
  var Coupons = /*#__PURE__*/function (_ApiResource) {
4314
4562
  _inheritsLoose(Coupons, _ApiResource);
4315
4563
 
@@ -4477,6 +4725,10 @@ var Coupons = /*#__PURE__*/function (_ApiResource) {
4477
4725
  };
4478
4726
  };
4479
4727
 
4728
+ _proto.type = function type() {
4729
+ return Coupons.TYPE;
4730
+ };
4731
+
4480
4732
  return Coupons;
4481
4733
  }(ApiResource);
4482
4734
 
@@ -4649,6 +4901,10 @@ var CustomerAddresses = /*#__PURE__*/function (_ApiResource) {
4649
4901
  };
4650
4902
  };
4651
4903
 
4904
+ _proto.type = function type() {
4905
+ return CustomerAddresses.TYPE;
4906
+ };
4907
+
4652
4908
  return CustomerAddresses;
4653
4909
  }(ApiResource);
4654
4910
 
@@ -4821,6 +5077,10 @@ var CustomerGroups = /*#__PURE__*/function (_ApiResource) {
4821
5077
  };
4822
5078
  };
4823
5079
 
5080
+ _proto.type = function type() {
5081
+ return CustomerGroups.TYPE;
5082
+ };
5083
+
4824
5084
  return CustomerGroups;
4825
5085
  }(ApiResource);
4826
5086
 
@@ -4993,6 +5253,10 @@ var CustomerPasswordResets = /*#__PURE__*/function (_ApiResource) {
4993
5253
  };
4994
5254
  };
4995
5255
 
5256
+ _proto.type = function type() {
5257
+ return CustomerPasswordResets.TYPE;
5258
+ };
5259
+
4996
5260
  return CustomerPasswordResets;
4997
5261
  }(ApiResource);
4998
5262
 
@@ -5165,6 +5429,10 @@ var CustomerPaymentSources = /*#__PURE__*/function (_ApiResource) {
5165
5429
  };
5166
5430
  };
5167
5431
 
5432
+ _proto.type = function type() {
5433
+ return CustomerPaymentSources.TYPE;
5434
+ };
5435
+
5168
5436
  return CustomerPaymentSources;
5169
5437
  }(ApiResource);
5170
5438
 
@@ -5337,6 +5605,10 @@ var CustomerSubscriptions = /*#__PURE__*/function (_ApiResource) {
5337
5605
  };
5338
5606
  };
5339
5607
 
5608
+ _proto.type = function type() {
5609
+ return CustomerSubscriptions.TYPE;
5610
+ };
5611
+
5340
5612
  return CustomerSubscriptions;
5341
5613
  }(ApiResource);
5342
5614
 
@@ -5509,6 +5781,10 @@ var Customers = /*#__PURE__*/function (_ApiResource) {
5509
5781
  };
5510
5782
  };
5511
5783
 
5784
+ _proto.type = function type() {
5785
+ return Customers.TYPE;
5786
+ };
5787
+
5512
5788
  return Customers;
5513
5789
  }(ApiResource);
5514
5790
 
@@ -5681,6 +5957,10 @@ var DeliveryLeadTimes = /*#__PURE__*/function (_ApiResource) {
5681
5957
  };
5682
5958
  };
5683
5959
 
5960
+ _proto.type = function type() {
5961
+ return DeliveryLeadTimes.TYPE;
5962
+ };
5963
+
5684
5964
  return DeliveryLeadTimes;
5685
5965
  }(ApiResource);
5686
5966
 
@@ -5721,6 +6001,32 @@ var EventCallbacks = /*#__PURE__*/function (_ApiResource) {
5721
6001
  }
5722
6002
 
5723
6003
  return list;
6004
+ }();
6005
+
6006
+ _proto.retrieve = /*#__PURE__*/function () {
6007
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(id, params, options) {
6008
+ return runtime_1.wrap(function _callee2$(_context2) {
6009
+ while (1) {
6010
+ switch (_context2.prev = _context2.next) {
6011
+ case 0:
6012
+ return _context2.abrupt("return", this.resources.retrieve({
6013
+ type: EventCallbacks.TYPE,
6014
+ id: id
6015
+ }, params, options));
6016
+
6017
+ case 1:
6018
+ case "end":
6019
+ return _context2.stop();
6020
+ }
6021
+ }
6022
+ }, _callee2, this);
6023
+ }));
6024
+
6025
+ function retrieve(_x3, _x4, _x5) {
6026
+ return _retrieve.apply(this, arguments);
6027
+ }
6028
+
6029
+ return retrieve;
5724
6030
  }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5725
6031
  ;
5726
6032
 
@@ -5750,6 +6056,10 @@ var EventCallbacks = /*#__PURE__*/function (_ApiResource) {
5750
6056
  };
5751
6057
  };
5752
6058
 
6059
+ _proto.type = function type() {
6060
+ return EventCallbacks.TYPE;
6061
+ };
6062
+
5753
6063
  return EventCallbacks;
5754
6064
  }(ApiResource);
5755
6065
 
@@ -5876,7 +6186,359 @@ var ExternalGateways = /*#__PURE__*/function (_ApiResource) {
5876
6186
  case 0:
5877
6187
  _context5.next = 2;
5878
6188
  return this.resources["delete"]({
5879
- type: ExternalGateways.TYPE,
6189
+ type: ExternalGateways.TYPE,
6190
+ id: id
6191
+ }, options);
6192
+
6193
+ case 2:
6194
+ case "end":
6195
+ return _context5.stop();
6196
+ }
6197
+ }
6198
+ }, _callee5, this);
6199
+ }));
6200
+
6201
+ function _delete(_x10, _x11) {
6202
+ return _delete2.apply(this, arguments);
6203
+ }
6204
+
6205
+ return _delete;
6206
+ }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
6207
+ ;
6208
+
6209
+ _proto.isExternalGateway = function isExternalGateway(resource) {
6210
+ return resource.type && resource.type === ExternalGateways.TYPE;
6211
+ }
6212
+ /*
6213
+ filter(): QueryBuilderRetrieve {
6214
+ return new QueryBuilderRetrieve(ExternalGateways.TYPE)
6215
+ }
6216
+ */
6217
+
6218
+ /*
6219
+ filterList(): QueryBuilderList {
6220
+ return new QueryBuilderList(ExternalGateways.TYPE)
6221
+ }
6222
+ */
6223
+ ;
6224
+
6225
+ _proto.relationship = function relationship(id) {
6226
+ return typeof id === 'string' ? {
6227
+ id: id,
6228
+ type: ExternalGateways.TYPE
6229
+ } : {
6230
+ id: id.id,
6231
+ type: ExternalGateways.TYPE
6232
+ };
6233
+ };
6234
+
6235
+ _proto.type = function type() {
6236
+ return ExternalGateways.TYPE;
6237
+ };
6238
+
6239
+ return ExternalGateways;
6240
+ }(ApiResource);
6241
+
6242
+ ExternalGateways.TYPE = 'external_gateways';
6243
+
6244
+ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
6245
+ _inheritsLoose(ExternalPayments, _ApiResource);
6246
+
6247
+ function ExternalPayments() {
6248
+ return _ApiResource.apply(this, arguments) || this;
6249
+ }
6250
+
6251
+ var _proto = ExternalPayments.prototype;
6252
+
6253
+ // static readonly PATH = 'external_payments'
6254
+ _proto.list =
6255
+ /*#__PURE__*/
6256
+ function () {
6257
+ var _list = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(params, options) {
6258
+ return runtime_1.wrap(function _callee$(_context) {
6259
+ while (1) {
6260
+ switch (_context.prev = _context.next) {
6261
+ case 0:
6262
+ return _context.abrupt("return", this.resources.list({
6263
+ type: ExternalPayments.TYPE
6264
+ }, params, options));
6265
+
6266
+ case 1:
6267
+ case "end":
6268
+ return _context.stop();
6269
+ }
6270
+ }
6271
+ }, _callee, this);
6272
+ }));
6273
+
6274
+ function list(_x, _x2) {
6275
+ return _list.apply(this, arguments);
6276
+ }
6277
+
6278
+ return list;
6279
+ }();
6280
+
6281
+ _proto.create = /*#__PURE__*/function () {
6282
+ var _create = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(resource, options) {
6283
+ return runtime_1.wrap(function _callee2$(_context2) {
6284
+ while (1) {
6285
+ switch (_context2.prev = _context2.next) {
6286
+ case 0:
6287
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6288
+ type: ExternalPayments.TYPE
6289
+ }), options));
6290
+
6291
+ case 1:
6292
+ case "end":
6293
+ return _context2.stop();
6294
+ }
6295
+ }
6296
+ }, _callee2, this);
6297
+ }));
6298
+
6299
+ function create(_x3, _x4) {
6300
+ return _create.apply(this, arguments);
6301
+ }
6302
+
6303
+ return create;
6304
+ }();
6305
+
6306
+ _proto.retrieve = /*#__PURE__*/function () {
6307
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(id, params, options) {
6308
+ return runtime_1.wrap(function _callee3$(_context3) {
6309
+ while (1) {
6310
+ switch (_context3.prev = _context3.next) {
6311
+ case 0:
6312
+ return _context3.abrupt("return", this.resources.retrieve({
6313
+ type: ExternalPayments.TYPE,
6314
+ id: id
6315
+ }, params, options));
6316
+
6317
+ case 1:
6318
+ case "end":
6319
+ return _context3.stop();
6320
+ }
6321
+ }
6322
+ }, _callee3, this);
6323
+ }));
6324
+
6325
+ function retrieve(_x5, _x6, _x7) {
6326
+ return _retrieve.apply(this, arguments);
6327
+ }
6328
+
6329
+ return retrieve;
6330
+ }();
6331
+
6332
+ _proto.update = /*#__PURE__*/function () {
6333
+ var _update = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(resource, options) {
6334
+ return runtime_1.wrap(function _callee4$(_context4) {
6335
+ while (1) {
6336
+ switch (_context4.prev = _context4.next) {
6337
+ case 0:
6338
+ return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
6339
+ type: ExternalPayments.TYPE
6340
+ }), options));
6341
+
6342
+ case 1:
6343
+ case "end":
6344
+ return _context4.stop();
6345
+ }
6346
+ }
6347
+ }, _callee4, this);
6348
+ }));
6349
+
6350
+ function update(_x8, _x9) {
6351
+ return _update.apply(this, arguments);
6352
+ }
6353
+
6354
+ return update;
6355
+ }();
6356
+
6357
+ _proto["delete"] = /*#__PURE__*/function () {
6358
+ var _delete2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(id, options) {
6359
+ return runtime_1.wrap(function _callee5$(_context5) {
6360
+ while (1) {
6361
+ switch (_context5.prev = _context5.next) {
6362
+ case 0:
6363
+ _context5.next = 2;
6364
+ return this.resources["delete"]({
6365
+ type: ExternalPayments.TYPE,
6366
+ id: id
6367
+ }, options);
6368
+
6369
+ case 2:
6370
+ case "end":
6371
+ return _context5.stop();
6372
+ }
6373
+ }
6374
+ }, _callee5, this);
6375
+ }));
6376
+
6377
+ function _delete(_x10, _x11) {
6378
+ return _delete2.apply(this, arguments);
6379
+ }
6380
+
6381
+ return _delete;
6382
+ }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
6383
+ ;
6384
+
6385
+ _proto.isExternalPayment = function isExternalPayment(resource) {
6386
+ return resource.type && resource.type === ExternalPayments.TYPE;
6387
+ }
6388
+ /*
6389
+ filter(): QueryBuilderRetrieve {
6390
+ return new QueryBuilderRetrieve(ExternalPayments.TYPE)
6391
+ }
6392
+ */
6393
+
6394
+ /*
6395
+ filterList(): QueryBuilderList {
6396
+ return new QueryBuilderList(ExternalPayments.TYPE)
6397
+ }
6398
+ */
6399
+ ;
6400
+
6401
+ _proto.relationship = function relationship(id) {
6402
+ return typeof id === 'string' ? {
6403
+ id: id,
6404
+ type: ExternalPayments.TYPE
6405
+ } : {
6406
+ id: id.id,
6407
+ type: ExternalPayments.TYPE
6408
+ };
6409
+ };
6410
+
6411
+ _proto.type = function type() {
6412
+ return ExternalPayments.TYPE;
6413
+ };
6414
+
6415
+ return ExternalPayments;
6416
+ }(ApiResource);
6417
+
6418
+ ExternalPayments.TYPE = 'external_payments';
6419
+
6420
+ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6421
+ _inheritsLoose(ExternalPromotions, _ApiResource);
6422
+
6423
+ function ExternalPromotions() {
6424
+ return _ApiResource.apply(this, arguments) || this;
6425
+ }
6426
+
6427
+ var _proto = ExternalPromotions.prototype;
6428
+
6429
+ // static readonly PATH = 'external_promotions'
6430
+ _proto.list =
6431
+ /*#__PURE__*/
6432
+ function () {
6433
+ var _list = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(params, options) {
6434
+ return runtime_1.wrap(function _callee$(_context) {
6435
+ while (1) {
6436
+ switch (_context.prev = _context.next) {
6437
+ case 0:
6438
+ return _context.abrupt("return", this.resources.list({
6439
+ type: ExternalPromotions.TYPE
6440
+ }, params, options));
6441
+
6442
+ case 1:
6443
+ case "end":
6444
+ return _context.stop();
6445
+ }
6446
+ }
6447
+ }, _callee, this);
6448
+ }));
6449
+
6450
+ function list(_x, _x2) {
6451
+ return _list.apply(this, arguments);
6452
+ }
6453
+
6454
+ return list;
6455
+ }();
6456
+
6457
+ _proto.create = /*#__PURE__*/function () {
6458
+ var _create = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(resource, options) {
6459
+ return runtime_1.wrap(function _callee2$(_context2) {
6460
+ while (1) {
6461
+ switch (_context2.prev = _context2.next) {
6462
+ case 0:
6463
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6464
+ type: ExternalPromotions.TYPE
6465
+ }), options));
6466
+
6467
+ case 1:
6468
+ case "end":
6469
+ return _context2.stop();
6470
+ }
6471
+ }
6472
+ }, _callee2, this);
6473
+ }));
6474
+
6475
+ function create(_x3, _x4) {
6476
+ return _create.apply(this, arguments);
6477
+ }
6478
+
6479
+ return create;
6480
+ }();
6481
+
6482
+ _proto.retrieve = /*#__PURE__*/function () {
6483
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(id, params, options) {
6484
+ return runtime_1.wrap(function _callee3$(_context3) {
6485
+ while (1) {
6486
+ switch (_context3.prev = _context3.next) {
6487
+ case 0:
6488
+ return _context3.abrupt("return", this.resources.retrieve({
6489
+ type: ExternalPromotions.TYPE,
6490
+ id: id
6491
+ }, params, options));
6492
+
6493
+ case 1:
6494
+ case "end":
6495
+ return _context3.stop();
6496
+ }
6497
+ }
6498
+ }, _callee3, this);
6499
+ }));
6500
+
6501
+ function retrieve(_x5, _x6, _x7) {
6502
+ return _retrieve.apply(this, arguments);
6503
+ }
6504
+
6505
+ return retrieve;
6506
+ }();
6507
+
6508
+ _proto.update = /*#__PURE__*/function () {
6509
+ var _update = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(resource, options) {
6510
+ return runtime_1.wrap(function _callee4$(_context4) {
6511
+ while (1) {
6512
+ switch (_context4.prev = _context4.next) {
6513
+ case 0:
6514
+ return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
6515
+ type: ExternalPromotions.TYPE
6516
+ }), options));
6517
+
6518
+ case 1:
6519
+ case "end":
6520
+ return _context4.stop();
6521
+ }
6522
+ }
6523
+ }, _callee4, this);
6524
+ }));
6525
+
6526
+ function update(_x8, _x9) {
6527
+ return _update.apply(this, arguments);
6528
+ }
6529
+
6530
+ return update;
6531
+ }();
6532
+
6533
+ _proto["delete"] = /*#__PURE__*/function () {
6534
+ var _delete2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(id, options) {
6535
+ return runtime_1.wrap(function _callee5$(_context5) {
6536
+ while (1) {
6537
+ switch (_context5.prev = _context5.next) {
6538
+ case 0:
6539
+ _context5.next = 2;
6540
+ return this.resources["delete"]({
6541
+ type: ExternalPromotions.TYPE,
5880
6542
  id: id
5881
6543
  }, options);
5882
6544
 
@@ -5896,18 +6558,18 @@ var ExternalGateways = /*#__PURE__*/function (_ApiResource) {
5896
6558
  }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5897
6559
  ;
5898
6560
 
5899
- _proto.isExternalGateway = function isExternalGateway(resource) {
5900
- return resource.type && resource.type === ExternalGateways.TYPE;
6561
+ _proto.isExternalPromotion = function isExternalPromotion(resource) {
6562
+ return resource.type && resource.type === ExternalPromotions.TYPE;
5901
6563
  }
5902
6564
  /*
5903
6565
  filter(): QueryBuilderRetrieve {
5904
- return new QueryBuilderRetrieve(ExternalGateways.TYPE)
6566
+ return new QueryBuilderRetrieve(ExternalPromotions.TYPE)
5905
6567
  }
5906
6568
  */
5907
6569
 
5908
6570
  /*
5909
6571
  filterList(): QueryBuilderList {
5910
- return new QueryBuilderList(ExternalGateways.TYPE)
6572
+ return new QueryBuilderList(ExternalPromotions.TYPE)
5911
6573
  }
5912
6574
  */
5913
6575
  ;
@@ -5915,28 +6577,32 @@ var ExternalGateways = /*#__PURE__*/function (_ApiResource) {
5915
6577
  _proto.relationship = function relationship(id) {
5916
6578
  return typeof id === 'string' ? {
5917
6579
  id: id,
5918
- type: ExternalGateways.TYPE
6580
+ type: ExternalPromotions.TYPE
5919
6581
  } : {
5920
6582
  id: id.id,
5921
- type: ExternalGateways.TYPE
6583
+ type: ExternalPromotions.TYPE
5922
6584
  };
5923
6585
  };
5924
6586
 
5925
- return ExternalGateways;
6587
+ _proto.type = function type() {
6588
+ return ExternalPromotions.TYPE;
6589
+ };
6590
+
6591
+ return ExternalPromotions;
5926
6592
  }(ApiResource);
5927
6593
 
5928
- ExternalGateways.TYPE = 'external_gateways';
6594
+ ExternalPromotions.TYPE = 'external_promotions';
5929
6595
 
5930
- var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
5931
- _inheritsLoose(ExternalPayments, _ApiResource);
6596
+ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6597
+ _inheritsLoose(ExternalTaxCalculators, _ApiResource);
5932
6598
 
5933
- function ExternalPayments() {
6599
+ function ExternalTaxCalculators() {
5934
6600
  return _ApiResource.apply(this, arguments) || this;
5935
6601
  }
5936
6602
 
5937
- var _proto = ExternalPayments.prototype;
6603
+ var _proto = ExternalTaxCalculators.prototype;
5938
6604
 
5939
- // static readonly PATH = 'external_payments'
6605
+ // static readonly PATH = 'external_tax_calculators'
5940
6606
  _proto.list =
5941
6607
  /*#__PURE__*/
5942
6608
  function () {
@@ -5946,7 +6612,7 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
5946
6612
  switch (_context.prev = _context.next) {
5947
6613
  case 0:
5948
6614
  return _context.abrupt("return", this.resources.list({
5949
- type: ExternalPayments.TYPE
6615
+ type: ExternalTaxCalculators.TYPE
5950
6616
  }, params, options));
5951
6617
 
5952
6618
  case 1:
@@ -5971,7 +6637,7 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
5971
6637
  switch (_context2.prev = _context2.next) {
5972
6638
  case 0:
5973
6639
  return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
5974
- type: ExternalPayments.TYPE
6640
+ type: ExternalTaxCalculators.TYPE
5975
6641
  }), options));
5976
6642
 
5977
6643
  case 1:
@@ -5996,7 +6662,7 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
5996
6662
  switch (_context3.prev = _context3.next) {
5997
6663
  case 0:
5998
6664
  return _context3.abrupt("return", this.resources.retrieve({
5999
- type: ExternalPayments.TYPE,
6665
+ type: ExternalTaxCalculators.TYPE,
6000
6666
  id: id
6001
6667
  }, params, options));
6002
6668
 
@@ -6022,7 +6688,7 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
6022
6688
  switch (_context4.prev = _context4.next) {
6023
6689
  case 0:
6024
6690
  return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
6025
- type: ExternalPayments.TYPE
6691
+ type: ExternalTaxCalculators.TYPE
6026
6692
  }), options));
6027
6693
 
6028
6694
  case 1:
@@ -6048,7 +6714,7 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
6048
6714
  case 0:
6049
6715
  _context5.next = 2;
6050
6716
  return this.resources["delete"]({
6051
- type: ExternalPayments.TYPE,
6717
+ type: ExternalTaxCalculators.TYPE,
6052
6718
  id: id
6053
6719
  }, options);
6054
6720
 
@@ -6068,18 +6734,18 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
6068
6734
  }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
6069
6735
  ;
6070
6736
 
6071
- _proto.isExternalPayment = function isExternalPayment(resource) {
6072
- return resource.type && resource.type === ExternalPayments.TYPE;
6737
+ _proto.isExternalTaxCalculator = function isExternalTaxCalculator(resource) {
6738
+ return resource.type && resource.type === ExternalTaxCalculators.TYPE;
6073
6739
  }
6074
6740
  /*
6075
6741
  filter(): QueryBuilderRetrieve {
6076
- return new QueryBuilderRetrieve(ExternalPayments.TYPE)
6742
+ return new QueryBuilderRetrieve(ExternalTaxCalculators.TYPE)
6077
6743
  }
6078
6744
  */
6079
6745
 
6080
6746
  /*
6081
6747
  filterList(): QueryBuilderList {
6082
- return new QueryBuilderList(ExternalPayments.TYPE)
6748
+ return new QueryBuilderList(ExternalTaxCalculators.TYPE)
6083
6749
  }
6084
6750
  */
6085
6751
  ;
@@ -6087,28 +6753,32 @@ var ExternalPayments = /*#__PURE__*/function (_ApiResource) {
6087
6753
  _proto.relationship = function relationship(id) {
6088
6754
  return typeof id === 'string' ? {
6089
6755
  id: id,
6090
- type: ExternalPayments.TYPE
6756
+ type: ExternalTaxCalculators.TYPE
6091
6757
  } : {
6092
6758
  id: id.id,
6093
- type: ExternalPayments.TYPE
6759
+ type: ExternalTaxCalculators.TYPE
6094
6760
  };
6095
6761
  };
6096
6762
 
6097
- return ExternalPayments;
6763
+ _proto.type = function type() {
6764
+ return ExternalTaxCalculators.TYPE;
6765
+ };
6766
+
6767
+ return ExternalTaxCalculators;
6098
6768
  }(ApiResource);
6099
6769
 
6100
- ExternalPayments.TYPE = 'external_payments';
6770
+ ExternalTaxCalculators.TYPE = 'external_tax_calculators';
6101
6771
 
6102
- var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6103
- _inheritsLoose(ExternalPromotions, _ApiResource);
6772
+ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6773
+ _inheritsLoose(FixedAmountPromotions, _ApiResource);
6104
6774
 
6105
- function ExternalPromotions() {
6775
+ function FixedAmountPromotions() {
6106
6776
  return _ApiResource.apply(this, arguments) || this;
6107
6777
  }
6108
6778
 
6109
- var _proto = ExternalPromotions.prototype;
6779
+ var _proto = FixedAmountPromotions.prototype;
6110
6780
 
6111
- // static readonly PATH = 'external_promotions'
6781
+ // static readonly PATH = 'fixed_amount_promotions'
6112
6782
  _proto.list =
6113
6783
  /*#__PURE__*/
6114
6784
  function () {
@@ -6118,7 +6788,7 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6118
6788
  switch (_context.prev = _context.next) {
6119
6789
  case 0:
6120
6790
  return _context.abrupt("return", this.resources.list({
6121
- type: ExternalPromotions.TYPE
6791
+ type: FixedAmountPromotions.TYPE
6122
6792
  }, params, options));
6123
6793
 
6124
6794
  case 1:
@@ -6143,7 +6813,7 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6143
6813
  switch (_context2.prev = _context2.next) {
6144
6814
  case 0:
6145
6815
  return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6146
- type: ExternalPromotions.TYPE
6816
+ type: FixedAmountPromotions.TYPE
6147
6817
  }), options));
6148
6818
 
6149
6819
  case 1:
@@ -6168,7 +6838,7 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6168
6838
  switch (_context3.prev = _context3.next) {
6169
6839
  case 0:
6170
6840
  return _context3.abrupt("return", this.resources.retrieve({
6171
- type: ExternalPromotions.TYPE,
6841
+ type: FixedAmountPromotions.TYPE,
6172
6842
  id: id
6173
6843
  }, params, options));
6174
6844
 
@@ -6194,7 +6864,7 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6194
6864
  switch (_context4.prev = _context4.next) {
6195
6865
  case 0:
6196
6866
  return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
6197
- type: ExternalPromotions.TYPE
6867
+ type: FixedAmountPromotions.TYPE
6198
6868
  }), options));
6199
6869
 
6200
6870
  case 1:
@@ -6220,7 +6890,7 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6220
6890
  case 0:
6221
6891
  _context5.next = 2;
6222
6892
  return this.resources["delete"]({
6223
- type: ExternalPromotions.TYPE,
6893
+ type: FixedAmountPromotions.TYPE,
6224
6894
  id: id
6225
6895
  }, options);
6226
6896
 
@@ -6240,18 +6910,18 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6240
6910
  }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
6241
6911
  ;
6242
6912
 
6243
- _proto.isExternalPromotion = function isExternalPromotion(resource) {
6244
- return resource.type && resource.type === ExternalPromotions.TYPE;
6913
+ _proto.isFixedAmountPromotion = function isFixedAmountPromotion(resource) {
6914
+ return resource.type && resource.type === FixedAmountPromotions.TYPE;
6245
6915
  }
6246
6916
  /*
6247
6917
  filter(): QueryBuilderRetrieve {
6248
- return new QueryBuilderRetrieve(ExternalPromotions.TYPE)
6918
+ return new QueryBuilderRetrieve(FixedAmountPromotions.TYPE)
6249
6919
  }
6250
6920
  */
6251
6921
 
6252
6922
  /*
6253
6923
  filterList(): QueryBuilderList {
6254
- return new QueryBuilderList(ExternalPromotions.TYPE)
6924
+ return new QueryBuilderList(FixedAmountPromotions.TYPE)
6255
6925
  }
6256
6926
  */
6257
6927
  ;
@@ -6259,28 +6929,32 @@ var ExternalPromotions = /*#__PURE__*/function (_ApiResource) {
6259
6929
  _proto.relationship = function relationship(id) {
6260
6930
  return typeof id === 'string' ? {
6261
6931
  id: id,
6262
- type: ExternalPromotions.TYPE
6932
+ type: FixedAmountPromotions.TYPE
6263
6933
  } : {
6264
6934
  id: id.id,
6265
- type: ExternalPromotions.TYPE
6935
+ type: FixedAmountPromotions.TYPE
6266
6936
  };
6267
6937
  };
6268
6938
 
6269
- return ExternalPromotions;
6939
+ _proto.type = function type() {
6940
+ return FixedAmountPromotions.TYPE;
6941
+ };
6942
+
6943
+ return FixedAmountPromotions;
6270
6944
  }(ApiResource);
6271
6945
 
6272
- ExternalPromotions.TYPE = 'external_promotions';
6946
+ FixedAmountPromotions.TYPE = 'fixed_amount_promotions';
6273
6947
 
6274
- var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6275
- _inheritsLoose(ExternalTaxCalculators, _ApiResource);
6948
+ var FixedPricePromotions = /*#__PURE__*/function (_ApiResource) {
6949
+ _inheritsLoose(FixedPricePromotions, _ApiResource);
6276
6950
 
6277
- function ExternalTaxCalculators() {
6951
+ function FixedPricePromotions() {
6278
6952
  return _ApiResource.apply(this, arguments) || this;
6279
6953
  }
6280
6954
 
6281
- var _proto = ExternalTaxCalculators.prototype;
6955
+ var _proto = FixedPricePromotions.prototype;
6282
6956
 
6283
- // static readonly PATH = 'external_tax_calculators'
6957
+ // static readonly PATH = 'fixed_price_promotions'
6284
6958
  _proto.list =
6285
6959
  /*#__PURE__*/
6286
6960
  function () {
@@ -6290,7 +6964,7 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6290
6964
  switch (_context.prev = _context.next) {
6291
6965
  case 0:
6292
6966
  return _context.abrupt("return", this.resources.list({
6293
- type: ExternalTaxCalculators.TYPE
6967
+ type: FixedPricePromotions.TYPE
6294
6968
  }, params, options));
6295
6969
 
6296
6970
  case 1:
@@ -6315,7 +6989,7 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6315
6989
  switch (_context2.prev = _context2.next) {
6316
6990
  case 0:
6317
6991
  return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6318
- type: ExternalTaxCalculators.TYPE
6992
+ type: FixedPricePromotions.TYPE
6319
6993
  }), options));
6320
6994
 
6321
6995
  case 1:
@@ -6340,7 +7014,7 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6340
7014
  switch (_context3.prev = _context3.next) {
6341
7015
  case 0:
6342
7016
  return _context3.abrupt("return", this.resources.retrieve({
6343
- type: ExternalTaxCalculators.TYPE,
7017
+ type: FixedPricePromotions.TYPE,
6344
7018
  id: id
6345
7019
  }, params, options));
6346
7020
 
@@ -6366,7 +7040,7 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6366
7040
  switch (_context4.prev = _context4.next) {
6367
7041
  case 0:
6368
7042
  return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
6369
- type: ExternalTaxCalculators.TYPE
7043
+ type: FixedPricePromotions.TYPE
6370
7044
  }), options));
6371
7045
 
6372
7046
  case 1:
@@ -6392,7 +7066,7 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6392
7066
  case 0:
6393
7067
  _context5.next = 2;
6394
7068
  return this.resources["delete"]({
6395
- type: ExternalTaxCalculators.TYPE,
7069
+ type: FixedPricePromotions.TYPE,
6396
7070
  id: id
6397
7071
  }, options);
6398
7072
 
@@ -6412,18 +7086,18 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6412
7086
  }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
6413
7087
  ;
6414
7088
 
6415
- _proto.isExternalTaxCalculator = function isExternalTaxCalculator(resource) {
6416
- return resource.type && resource.type === ExternalTaxCalculators.TYPE;
7089
+ _proto.isFixedPricePromotion = function isFixedPricePromotion(resource) {
7090
+ return resource.type && resource.type === FixedPricePromotions.TYPE;
6417
7091
  }
6418
7092
  /*
6419
7093
  filter(): QueryBuilderRetrieve {
6420
- return new QueryBuilderRetrieve(ExternalTaxCalculators.TYPE)
7094
+ return new QueryBuilderRetrieve(FixedPricePromotions.TYPE)
6421
7095
  }
6422
7096
  */
6423
7097
 
6424
7098
  /*
6425
7099
  filterList(): QueryBuilderList {
6426
- return new QueryBuilderList(ExternalTaxCalculators.TYPE)
7100
+ return new QueryBuilderList(FixedPricePromotions.TYPE)
6427
7101
  }
6428
7102
  */
6429
7103
  ;
@@ -6431,28 +7105,32 @@ var ExternalTaxCalculators = /*#__PURE__*/function (_ApiResource) {
6431
7105
  _proto.relationship = function relationship(id) {
6432
7106
  return typeof id === 'string' ? {
6433
7107
  id: id,
6434
- type: ExternalTaxCalculators.TYPE
7108
+ type: FixedPricePromotions.TYPE
6435
7109
  } : {
6436
7110
  id: id.id,
6437
- type: ExternalTaxCalculators.TYPE
7111
+ type: FixedPricePromotions.TYPE
6438
7112
  };
6439
7113
  };
6440
7114
 
6441
- return ExternalTaxCalculators;
7115
+ _proto.type = function type() {
7116
+ return FixedPricePromotions.TYPE;
7117
+ };
7118
+
7119
+ return FixedPricePromotions;
6442
7120
  }(ApiResource);
6443
7121
 
6444
- ExternalTaxCalculators.TYPE = 'external_tax_calculators';
7122
+ FixedPricePromotions.TYPE = 'fixed_price_promotions';
6445
7123
 
6446
- var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6447
- _inheritsLoose(FixedAmountPromotions, _ApiResource);
7124
+ var FreeGiftPromotions = /*#__PURE__*/function (_ApiResource) {
7125
+ _inheritsLoose(FreeGiftPromotions, _ApiResource);
6448
7126
 
6449
- function FixedAmountPromotions() {
7127
+ function FreeGiftPromotions() {
6450
7128
  return _ApiResource.apply(this, arguments) || this;
6451
7129
  }
6452
7130
 
6453
- var _proto = FixedAmountPromotions.prototype;
7131
+ var _proto = FreeGiftPromotions.prototype;
6454
7132
 
6455
- // static readonly PATH = 'fixed_amount_promotions'
7133
+ // static readonly PATH = 'free_gift_promotions'
6456
7134
  _proto.list =
6457
7135
  /*#__PURE__*/
6458
7136
  function () {
@@ -6462,7 +7140,7 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6462
7140
  switch (_context.prev = _context.next) {
6463
7141
  case 0:
6464
7142
  return _context.abrupt("return", this.resources.list({
6465
- type: FixedAmountPromotions.TYPE
7143
+ type: FreeGiftPromotions.TYPE
6466
7144
  }, params, options));
6467
7145
 
6468
7146
  case 1:
@@ -6487,7 +7165,7 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6487
7165
  switch (_context2.prev = _context2.next) {
6488
7166
  case 0:
6489
7167
  return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6490
- type: FixedAmountPromotions.TYPE
7168
+ type: FreeGiftPromotions.TYPE
6491
7169
  }), options));
6492
7170
 
6493
7171
  case 1:
@@ -6512,7 +7190,7 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6512
7190
  switch (_context3.prev = _context3.next) {
6513
7191
  case 0:
6514
7192
  return _context3.abrupt("return", this.resources.retrieve({
6515
- type: FixedAmountPromotions.TYPE,
7193
+ type: FreeGiftPromotions.TYPE,
6516
7194
  id: id
6517
7195
  }, params, options));
6518
7196
 
@@ -6538,7 +7216,7 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6538
7216
  switch (_context4.prev = _context4.next) {
6539
7217
  case 0:
6540
7218
  return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
6541
- type: FixedAmountPromotions.TYPE
7219
+ type: FreeGiftPromotions.TYPE
6542
7220
  }), options));
6543
7221
 
6544
7222
  case 1:
@@ -6564,7 +7242,7 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6564
7242
  case 0:
6565
7243
  _context5.next = 2;
6566
7244
  return this.resources["delete"]({
6567
- type: FixedAmountPromotions.TYPE,
7245
+ type: FreeGiftPromotions.TYPE,
6568
7246
  id: id
6569
7247
  }, options);
6570
7248
 
@@ -6584,18 +7262,18 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6584
7262
  }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
6585
7263
  ;
6586
7264
 
6587
- _proto.isFixedAmountPromotion = function isFixedAmountPromotion(resource) {
6588
- return resource.type && resource.type === FixedAmountPromotions.TYPE;
7265
+ _proto.isFreeGiftPromotion = function isFreeGiftPromotion(resource) {
7266
+ return resource.type && resource.type === FreeGiftPromotions.TYPE;
6589
7267
  }
6590
7268
  /*
6591
7269
  filter(): QueryBuilderRetrieve {
6592
- return new QueryBuilderRetrieve(FixedAmountPromotions.TYPE)
7270
+ return new QueryBuilderRetrieve(FreeGiftPromotions.TYPE)
6593
7271
  }
6594
7272
  */
6595
7273
 
6596
7274
  /*
6597
7275
  filterList(): QueryBuilderList {
6598
- return new QueryBuilderList(FixedAmountPromotions.TYPE)
7276
+ return new QueryBuilderList(FreeGiftPromotions.TYPE)
6599
7277
  }
6600
7278
  */
6601
7279
  ;
@@ -6603,17 +7281,21 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6603
7281
  _proto.relationship = function relationship(id) {
6604
7282
  return typeof id === 'string' ? {
6605
7283
  id: id,
6606
- type: FixedAmountPromotions.TYPE
7284
+ type: FreeGiftPromotions.TYPE
6607
7285
  } : {
6608
7286
  id: id.id,
6609
- type: FixedAmountPromotions.TYPE
7287
+ type: FreeGiftPromotions.TYPE
6610
7288
  };
6611
7289
  };
6612
7290
 
6613
- return FixedAmountPromotions;
7291
+ _proto.type = function type() {
7292
+ return FreeGiftPromotions.TYPE;
7293
+ };
7294
+
7295
+ return FreeGiftPromotions;
6614
7296
  }(ApiResource);
6615
7297
 
6616
- FixedAmountPromotions.TYPE = 'fixed_amount_promotions';
7298
+ FreeGiftPromotions.TYPE = 'free_gift_promotions';
6617
7299
 
6618
7300
  var FreeShippingPromotions = /*#__PURE__*/function (_ApiResource) {
6619
7301
  _inheritsLoose(FreeShippingPromotions, _ApiResource);
@@ -6782,6 +7464,10 @@ var FreeShippingPromotions = /*#__PURE__*/function (_ApiResource) {
6782
7464
  };
6783
7465
  };
6784
7466
 
7467
+ _proto.type = function type() {
7468
+ return FreeShippingPromotions.TYPE;
7469
+ };
7470
+
6785
7471
  return FreeShippingPromotions;
6786
7472
  }(ApiResource);
6787
7473
 
@@ -6851,6 +7537,10 @@ var Geocoders = /*#__PURE__*/function (_ApiResource) {
6851
7537
  };
6852
7538
  };
6853
7539
 
7540
+ _proto.type = function type() {
7541
+ return Geocoders.TYPE;
7542
+ };
7543
+
6854
7544
  return Geocoders;
6855
7545
  }(ApiResource);
6856
7546
 
@@ -7023,6 +7713,10 @@ var GiftCardRecipients = /*#__PURE__*/function (_ApiResource) {
7023
7713
  };
7024
7714
  };
7025
7715
 
7716
+ _proto.type = function type() {
7717
+ return GiftCardRecipients.TYPE;
7718
+ };
7719
+
7026
7720
  return GiftCardRecipients;
7027
7721
  }(ApiResource);
7028
7722
 
@@ -7195,6 +7889,10 @@ var GiftCards = /*#__PURE__*/function (_ApiResource) {
7195
7889
  };
7196
7890
  };
7197
7891
 
7892
+ _proto.type = function type() {
7893
+ return GiftCards.TYPE;
7894
+ };
7895
+
7198
7896
  return GiftCards;
7199
7897
  }(ApiResource);
7200
7898
 
@@ -7367,6 +8065,10 @@ var GoogleGeocoders = /*#__PURE__*/function (_ApiResource) {
7367
8065
  };
7368
8066
  };
7369
8067
 
8068
+ _proto.type = function type() {
8069
+ return GoogleGeocoders.TYPE;
8070
+ };
8071
+
7370
8072
  return GoogleGeocoders;
7371
8073
  }(ApiResource);
7372
8074
 
@@ -7514,6 +8216,10 @@ var Imports = /*#__PURE__*/function (_ApiResource) {
7514
8216
  };
7515
8217
  };
7516
8218
 
8219
+ _proto.type = function type() {
8220
+ return Imports.TYPE;
8221
+ };
8222
+
7517
8223
  return Imports;
7518
8224
  }(ApiResource);
7519
8225
 
@@ -7686,6 +8392,10 @@ var InStockSubscriptions = /*#__PURE__*/function (_ApiResource) {
7686
8392
  };
7687
8393
  };
7688
8394
 
8395
+ _proto.type = function type() {
8396
+ return InStockSubscriptions.TYPE;
8397
+ };
8398
+
7689
8399
  return InStockSubscriptions;
7690
8400
  }(ApiResource);
7691
8401
 
@@ -7858,6 +8568,10 @@ var InventoryModels = /*#__PURE__*/function (_ApiResource) {
7858
8568
  };
7859
8569
  };
7860
8570
 
8571
+ _proto.type = function type() {
8572
+ return InventoryModels.TYPE;
8573
+ };
8574
+
7861
8575
  return InventoryModels;
7862
8576
  }(ApiResource);
7863
8577
 
@@ -8030,6 +8744,10 @@ var InventoryReturnLocations = /*#__PURE__*/function (_ApiResource) {
8030
8744
  };
8031
8745
  };
8032
8746
 
8747
+ _proto.type = function type() {
8748
+ return InventoryReturnLocations.TYPE;
8749
+ };
8750
+
8033
8751
  return InventoryReturnLocations;
8034
8752
  }(ApiResource);
8035
8753
 
@@ -8202,6 +8920,10 @@ var InventoryStockLocations = /*#__PURE__*/function (_ApiResource) {
8202
8920
  };
8203
8921
  };
8204
8922
 
8923
+ _proto.type = function type() {
8924
+ return InventoryStockLocations.TYPE;
8925
+ };
8926
+
8205
8927
  return InventoryStockLocations;
8206
8928
  }(ApiResource);
8207
8929
 
@@ -8374,6 +9096,10 @@ var LineItemOptions = /*#__PURE__*/function (_ApiResource) {
8374
9096
  };
8375
9097
  };
8376
9098
 
9099
+ _proto.type = function type() {
9100
+ return LineItemOptions.TYPE;
9101
+ };
9102
+
8377
9103
  return LineItemOptions;
8378
9104
  }(ApiResource);
8379
9105
 
@@ -8546,6 +9272,10 @@ var LineItems = /*#__PURE__*/function (_ApiResource) {
8546
9272
  };
8547
9273
  };
8548
9274
 
9275
+ _proto.type = function type() {
9276
+ return LineItems.TYPE;
9277
+ };
9278
+
8549
9279
  return LineItems;
8550
9280
  }(ApiResource);
8551
9281
 
@@ -8718,6 +9448,10 @@ var ManualGateways = /*#__PURE__*/function (_ApiResource) {
8718
9448
  };
8719
9449
  };
8720
9450
 
9451
+ _proto.type = function type() {
9452
+ return ManualGateways.TYPE;
9453
+ };
9454
+
8721
9455
  return ManualGateways;
8722
9456
  }(ApiResource);
8723
9457
 
@@ -8890,6 +9624,10 @@ var ManualTaxCalculators = /*#__PURE__*/function (_ApiResource) {
8890
9624
  };
8891
9625
  };
8892
9626
 
9627
+ _proto.type = function type() {
9628
+ return ManualTaxCalculators.TYPE;
9629
+ };
9630
+
8893
9631
  return ManualTaxCalculators;
8894
9632
  }(ApiResource);
8895
9633
 
@@ -9062,6 +9800,10 @@ var Markets = /*#__PURE__*/function (_ApiResource) {
9062
9800
  };
9063
9801
  };
9064
9802
 
9803
+ _proto.type = function type() {
9804
+ return Markets.TYPE;
9805
+ };
9806
+
9065
9807
  return Markets;
9066
9808
  }(ApiResource);
9067
9809
 
@@ -9234,6 +9976,10 @@ var Merchants = /*#__PURE__*/function (_ApiResource) {
9234
9976
  };
9235
9977
  };
9236
9978
 
9979
+ _proto.type = function type() {
9980
+ return Merchants.TYPE;
9981
+ };
9982
+
9237
9983
  return Merchants;
9238
9984
  }(ApiResource);
9239
9985
 
@@ -9406,6 +10152,10 @@ var OrderAmountPromotionRules = /*#__PURE__*/function (_ApiResource) {
9406
10152
  };
9407
10153
  };
9408
10154
 
10155
+ _proto.type = function type() {
10156
+ return OrderAmountPromotionRules.TYPE;
10157
+ };
10158
+
9409
10159
  return OrderAmountPromotionRules;
9410
10160
  }(ApiResource);
9411
10161
 
@@ -9553,6 +10303,10 @@ var OrderCopies = /*#__PURE__*/function (_ApiResource) {
9553
10303
  };
9554
10304
  };
9555
10305
 
10306
+ _proto.type = function type() {
10307
+ return OrderCopies.TYPE;
10308
+ };
10309
+
9556
10310
  return OrderCopies;
9557
10311
  }(ApiResource);
9558
10312
 
@@ -9725,6 +10479,10 @@ var OrderSubscriptions = /*#__PURE__*/function (_ApiResource) {
9725
10479
  };
9726
10480
  };
9727
10481
 
10482
+ _proto.type = function type() {
10483
+ return OrderSubscriptions.TYPE;
10484
+ };
10485
+
9728
10486
  return OrderSubscriptions;
9729
10487
  }(ApiResource);
9730
10488
 
@@ -9794,6 +10552,10 @@ var OrderValidationRules = /*#__PURE__*/function (_ApiResource) {
9794
10552
  };
9795
10553
  };
9796
10554
 
10555
+ _proto.type = function type() {
10556
+ return OrderValidationRules.TYPE;
10557
+ };
10558
+
9797
10559
  return OrderValidationRules;
9798
10560
  }(ApiResource);
9799
10561
 
@@ -9966,6 +10728,10 @@ var Orders = /*#__PURE__*/function (_ApiResource) {
9966
10728
  };
9967
10729
  };
9968
10730
 
10731
+ _proto.type = function type() {
10732
+ return Orders.TYPE;
10733
+ };
10734
+
9969
10735
  return Orders;
9970
10736
  }(ApiResource);
9971
10737
 
@@ -10035,6 +10801,10 @@ var Organizations = /*#__PURE__*/function (_ApiResource) {
10035
10801
  };
10036
10802
  };
10037
10803
 
10804
+ _proto.type = function type() {
10805
+ return Organizations.TYPE;
10806
+ };
10807
+
10038
10808
  return Organizations;
10039
10809
  }(ApiResource);
10040
10810
 
@@ -10207,6 +10977,10 @@ var Packages = /*#__PURE__*/function (_ApiResource) {
10207
10977
  };
10208
10978
  };
10209
10979
 
10980
+ _proto.type = function type() {
10981
+ return Packages.TYPE;
10982
+ };
10983
+
10210
10984
  return Packages;
10211
10985
  }(ApiResource);
10212
10986
 
@@ -10379,6 +11153,10 @@ var ParcelLineItems = /*#__PURE__*/function (_ApiResource) {
10379
11153
  };
10380
11154
  };
10381
11155
 
11156
+ _proto.type = function type() {
11157
+ return ParcelLineItems.TYPE;
11158
+ };
11159
+
10382
11160
  return ParcelLineItems;
10383
11161
  }(ApiResource);
10384
11162
 
@@ -10551,6 +11329,10 @@ var Parcels = /*#__PURE__*/function (_ApiResource) {
10551
11329
  };
10552
11330
  };
10553
11331
 
11332
+ _proto.type = function type() {
11333
+ return Parcels.TYPE;
11334
+ };
11335
+
10554
11336
  return Parcels;
10555
11337
  }(ApiResource);
10556
11338
 
@@ -10723,6 +11505,10 @@ var PaymentGateways = /*#__PURE__*/function (_ApiResource) {
10723
11505
  };
10724
11506
  };
10725
11507
 
11508
+ _proto.type = function type() {
11509
+ return PaymentGateways.TYPE;
11510
+ };
11511
+
10726
11512
  return PaymentGateways;
10727
11513
  }(ApiResource);
10728
11514
 
@@ -10895,6 +11681,10 @@ var PaymentMethods = /*#__PURE__*/function (_ApiResource) {
10895
11681
  };
10896
11682
  };
10897
11683
 
11684
+ _proto.type = function type() {
11685
+ return PaymentMethods.TYPE;
11686
+ };
11687
+
10898
11688
  return PaymentMethods;
10899
11689
  }(ApiResource);
10900
11690
 
@@ -11067,6 +11857,10 @@ var PaypalGateways = /*#__PURE__*/function (_ApiResource) {
11067
11857
  };
11068
11858
  };
11069
11859
 
11860
+ _proto.type = function type() {
11861
+ return PaypalGateways.TYPE;
11862
+ };
11863
+
11070
11864
  return PaypalGateways;
11071
11865
  }(ApiResource);
11072
11866
 
@@ -11239,6 +12033,10 @@ var PaypalPayments = /*#__PURE__*/function (_ApiResource) {
11239
12033
  };
11240
12034
  };
11241
12035
 
12036
+ _proto.type = function type() {
12037
+ return PaypalPayments.TYPE;
12038
+ };
12039
+
11242
12040
  return PaypalPayments;
11243
12041
  }(ApiResource);
11244
12042
 
@@ -11411,6 +12209,10 @@ var PercentageDiscountPromotions = /*#__PURE__*/function (_ApiResource) {
11411
12209
  };
11412
12210
  };
11413
12211
 
12212
+ _proto.type = function type() {
12213
+ return PercentageDiscountPromotions.TYPE;
12214
+ };
12215
+
11414
12216
  return PercentageDiscountPromotions;
11415
12217
  }(ApiResource);
11416
12218
 
@@ -11583,6 +12385,10 @@ var PriceLists = /*#__PURE__*/function (_ApiResource) {
11583
12385
  };
11584
12386
  };
11585
12387
 
12388
+ _proto.type = function type() {
12389
+ return PriceLists.TYPE;
12390
+ };
12391
+
11586
12392
  return PriceLists;
11587
12393
  }(ApiResource);
11588
12394
 
@@ -11755,6 +12561,10 @@ var Prices = /*#__PURE__*/function (_ApiResource) {
11755
12561
  };
11756
12562
  };
11757
12563
 
12564
+ _proto.type = function type() {
12565
+ return Prices.TYPE;
12566
+ };
12567
+
11758
12568
  return Prices;
11759
12569
  }(ApiResource);
11760
12570
 
@@ -11824,6 +12634,10 @@ var PromotionRules = /*#__PURE__*/function (_ApiResource) {
11824
12634
  };
11825
12635
  };
11826
12636
 
12637
+ _proto.type = function type() {
12638
+ return PromotionRules.TYPE;
12639
+ };
12640
+
11827
12641
  return PromotionRules;
11828
12642
  }(ApiResource);
11829
12643
 
@@ -11893,6 +12707,10 @@ var Promotions = /*#__PURE__*/function (_ApiResource) {
11893
12707
  };
11894
12708
  };
11895
12709
 
12710
+ _proto.type = function type() {
12711
+ return Promotions.TYPE;
12712
+ };
12713
+
11896
12714
  return Promotions;
11897
12715
  }(ApiResource);
11898
12716
 
@@ -11988,6 +12806,10 @@ var Refunds = /*#__PURE__*/function (_ApiResource) {
11988
12806
  };
11989
12807
  };
11990
12808
 
12809
+ _proto.type = function type() {
12810
+ return Refunds.TYPE;
12811
+ };
12812
+
11991
12813
  return Refunds;
11992
12814
  }(ApiResource);
11993
12815
 
@@ -12160,6 +12982,10 @@ var ReturnLineItems = /*#__PURE__*/function (_ApiResource) {
12160
12982
  };
12161
12983
  };
12162
12984
 
12985
+ _proto.type = function type() {
12986
+ return ReturnLineItems.TYPE;
12987
+ };
12988
+
12163
12989
  return ReturnLineItems;
12164
12990
  }(ApiResource);
12165
12991
 
@@ -12332,6 +13158,10 @@ var Returns = /*#__PURE__*/function (_ApiResource) {
12332
13158
  };
12333
13159
  };
12334
13160
 
13161
+ _proto.type = function type() {
13162
+ return Returns.TYPE;
13163
+ };
13164
+
12335
13165
  return Returns;
12336
13166
  }(ApiResource);
12337
13167
 
@@ -12452,6 +13282,10 @@ var Shipments = /*#__PURE__*/function (_ApiResource) {
12452
13282
  };
12453
13283
  };
12454
13284
 
13285
+ _proto.type = function type() {
13286
+ return Shipments.TYPE;
13287
+ };
13288
+
12455
13289
  return Shipments;
12456
13290
  }(ApiResource);
12457
13291
 
@@ -12624,6 +13458,10 @@ var ShippingCategories = /*#__PURE__*/function (_ApiResource) {
12624
13458
  };
12625
13459
  };
12626
13460
 
13461
+ _proto.type = function type() {
13462
+ return ShippingCategories.TYPE;
13463
+ };
13464
+
12627
13465
  return ShippingCategories;
12628
13466
  }(ApiResource);
12629
13467
 
@@ -12796,6 +13634,10 @@ var ShippingMethods = /*#__PURE__*/function (_ApiResource) {
12796
13634
  };
12797
13635
  };
12798
13636
 
13637
+ _proto.type = function type() {
13638
+ return ShippingMethods.TYPE;
13639
+ };
13640
+
12799
13641
  return ShippingMethods;
12800
13642
  }(ApiResource);
12801
13643
 
@@ -12968,6 +13810,10 @@ var ShippingZones = /*#__PURE__*/function (_ApiResource) {
12968
13810
  };
12969
13811
  };
12970
13812
 
13813
+ _proto.type = function type() {
13814
+ return ShippingZones.TYPE;
13815
+ };
13816
+
12971
13817
  return ShippingZones;
12972
13818
  }(ApiResource);
12973
13819
 
@@ -13140,6 +13986,10 @@ var SkuListItems = /*#__PURE__*/function (_ApiResource) {
13140
13986
  };
13141
13987
  };
13142
13988
 
13989
+ _proto.type = function type() {
13990
+ return SkuListItems.TYPE;
13991
+ };
13992
+
13143
13993
  return SkuListItems;
13144
13994
  }(ApiResource);
13145
13995
 
@@ -13312,6 +14162,10 @@ var SkuListPromotionRules = /*#__PURE__*/function (_ApiResource) {
13312
14162
  };
13313
14163
  };
13314
14164
 
14165
+ _proto.type = function type() {
14166
+ return SkuListPromotionRules.TYPE;
14167
+ };
14168
+
13315
14169
  return SkuListPromotionRules;
13316
14170
  }(ApiResource);
13317
14171
 
@@ -13484,6 +14338,10 @@ var SkuLists = /*#__PURE__*/function (_ApiResource) {
13484
14338
  };
13485
14339
  };
13486
14340
 
14341
+ _proto.type = function type() {
14342
+ return SkuLists.TYPE;
14343
+ };
14344
+
13487
14345
  return SkuLists;
13488
14346
  }(ApiResource);
13489
14347
 
@@ -13656,6 +14514,10 @@ var SkuOptions = /*#__PURE__*/function (_ApiResource) {
13656
14514
  };
13657
14515
  };
13658
14516
 
14517
+ _proto.type = function type() {
14518
+ return SkuOptions.TYPE;
14519
+ };
14520
+
13659
14521
  return SkuOptions;
13660
14522
  }(ApiResource);
13661
14523
 
@@ -13828,6 +14690,10 @@ var Skus = /*#__PURE__*/function (_ApiResource) {
13828
14690
  };
13829
14691
  };
13830
14692
 
14693
+ _proto.type = function type() {
14694
+ return Skus.TYPE;
14695
+ };
14696
+
13831
14697
  return Skus;
13832
14698
  }(ApiResource);
13833
14699
 
@@ -14000,6 +14866,10 @@ var StockItems = /*#__PURE__*/function (_ApiResource) {
14000
14866
  };
14001
14867
  };
14002
14868
 
14869
+ _proto.type = function type() {
14870
+ return StockItems.TYPE;
14871
+ };
14872
+
14003
14873
  return StockItems;
14004
14874
  }(ApiResource);
14005
14875
 
@@ -14095,6 +14965,10 @@ var StockLineItems = /*#__PURE__*/function (_ApiResource) {
14095
14965
  };
14096
14966
  };
14097
14967
 
14968
+ _proto.type = function type() {
14969
+ return StockLineItems.TYPE;
14970
+ };
14971
+
14098
14972
  return StockLineItems;
14099
14973
  }(ApiResource);
14100
14974
 
@@ -14267,6 +15141,10 @@ var StockLocations = /*#__PURE__*/function (_ApiResource) {
14267
15141
  };
14268
15142
  };
14269
15143
 
15144
+ _proto.type = function type() {
15145
+ return StockLocations.TYPE;
15146
+ };
15147
+
14270
15148
  return StockLocations;
14271
15149
  }(ApiResource);
14272
15150
 
@@ -14439,6 +15317,10 @@ var StockTransfers = /*#__PURE__*/function (_ApiResource) {
14439
15317
  };
14440
15318
  };
14441
15319
 
15320
+ _proto.type = function type() {
15321
+ return StockTransfers.TYPE;
15322
+ };
15323
+
14442
15324
  return StockTransfers;
14443
15325
  }(ApiResource);
14444
15326
 
@@ -14611,6 +15493,10 @@ var StripeGateways = /*#__PURE__*/function (_ApiResource) {
14611
15493
  };
14612
15494
  };
14613
15495
 
15496
+ _proto.type = function type() {
15497
+ return StripeGateways.TYPE;
15498
+ };
15499
+
14614
15500
  return StripeGateways;
14615
15501
  }(ApiResource);
14616
15502
 
@@ -14783,6 +15669,10 @@ var StripePayments = /*#__PURE__*/function (_ApiResource) {
14783
15669
  };
14784
15670
  };
14785
15671
 
15672
+ _proto.type = function type() {
15673
+ return StripePayments.TYPE;
15674
+ };
15675
+
14786
15676
  return StripePayments;
14787
15677
  }(ApiResource);
14788
15678
 
@@ -14852,6 +15742,10 @@ var TaxCalculators = /*#__PURE__*/function (_ApiResource) {
14852
15742
  };
14853
15743
  };
14854
15744
 
15745
+ _proto.type = function type() {
15746
+ return TaxCalculators.TYPE;
15747
+ };
15748
+
14855
15749
  return TaxCalculators;
14856
15750
  }(ApiResource);
14857
15751
 
@@ -15024,6 +15918,10 @@ var TaxCategories = /*#__PURE__*/function (_ApiResource) {
15024
15918
  };
15025
15919
  };
15026
15920
 
15921
+ _proto.type = function type() {
15922
+ return TaxCategories.TYPE;
15923
+ };
15924
+
15027
15925
  return TaxCategories;
15028
15926
  }(ApiResource);
15029
15927
 
@@ -15196,6 +16094,10 @@ var TaxRules = /*#__PURE__*/function (_ApiResource) {
15196
16094
  };
15197
16095
  };
15198
16096
 
16097
+ _proto.type = function type() {
16098
+ return TaxRules.TYPE;
16099
+ };
16100
+
15199
16101
  return TaxRules;
15200
16102
  }(ApiResource);
15201
16103
 
@@ -15368,6 +16270,10 @@ var TaxjarAccounts = /*#__PURE__*/function (_ApiResource) {
15368
16270
  };
15369
16271
  };
15370
16272
 
16273
+ _proto.type = function type() {
16274
+ return TaxjarAccounts.TYPE;
16275
+ };
16276
+
15371
16277
  return TaxjarAccounts;
15372
16278
  }(ApiResource);
15373
16279
 
@@ -15437,6 +16343,10 @@ var Transactions = /*#__PURE__*/function (_ApiResource) {
15437
16343
  };
15438
16344
  };
15439
16345
 
16346
+ _proto.type = function type() {
16347
+ return Transactions.TYPE;
16348
+ };
16349
+
15440
16350
  return Transactions;
15441
16351
  }(ApiResource);
15442
16352
 
@@ -15532,6 +16442,10 @@ var Voids = /*#__PURE__*/function (_ApiResource) {
15532
16442
  };
15533
16443
  };
15534
16444
 
16445
+ _proto.type = function type() {
16446
+ return Voids.TYPE;
16447
+ };
16448
+
15535
16449
  return Voids;
15536
16450
  }(ApiResource);
15537
16451
 
@@ -15704,6 +16618,10 @@ var Webhooks = /*#__PURE__*/function (_ApiResource) {
15704
16618
  };
15705
16619
  };
15706
16620
 
16621
+ _proto.type = function type() {
16622
+ return Webhooks.TYPE;
16623
+ };
16624
+
15707
16625
  return Webhooks;
15708
16626
  }(ApiResource);
15709
16627
 
@@ -15876,6 +16794,10 @@ var WireTransfers = /*#__PURE__*/function (_ApiResource) {
15876
16794
  };
15877
16795
  };
15878
16796
 
16797
+ _proto.type = function type() {
16798
+ return WireTransfers.TYPE;
16799
+ };
16800
+
15879
16801
  return WireTransfers;
15880
16802
  }(ApiResource);
15881
16803
 
@@ -15884,7 +16806,7 @@ WireTransfers.TYPE = 'wire_transfers';
15884
16806
  // ##__API_RESOURCES_START__##
15885
16807
 
15886
16808
  var resourceList = [// ##__API_RESOURCE_LIST_START__##
15887
- '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', 'event_callbacks', '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', 'order_validation_rules', 'orders', 'organization', 'packages', 'parcel_line_items', 'parcels', 'payment_gateways', 'payment_methods', 'paypal_gateways', 'paypal_payments', 'percentage_discount_promotions', 'price_lists', 'prices', 'promotion_rules', 'promotions', 'refunds', 'return_line_items', 'returns', 'shipments', 'shipping_categories', 'shipping_methods', 'shipping_zones', 'sku_list_items', 'sku_list_promotion_rules', 'sku_lists', 'sku_options', 'skus', 'stock_items', 'stock_line_items', 'stock_locations', 'stock_transfers', 'stripe_gateways', 'stripe_payments', 'tax_calculators', 'tax_categories', 'tax_rules', 'taxjar_accounts', 'transactions', 'voids', 'webhooks', 'wire_transfers' // ##__API_RESOURCE_LIST_STOP__##
16809
+ 'addresses', 'adjustments', 'adyen_gateways', 'adyen_payments', 'application', 'attachments', 'authorizations', 'avalara_accounts', 'billing_info_validation_rules', 'bing_geocoders', 'braintree_gateways', 'braintree_payments', 'bundles', 'captures', 'carrier_accounts', 'checkout_com_gateways', 'checkout_com_payments', 'coupon_codes_promotion_rules', 'coupon_recipients', 'coupons', 'customer_addresses', 'customer_groups', 'customer_password_resets', 'customer_payment_sources', 'customer_subscriptions', 'customers', 'delivery_lead_times', 'event_callbacks', 'external_gateways', 'external_payments', 'external_promotions', 'external_tax_calculators', 'fixed_amount_promotions', 'fixed_price_promotions', 'free_gift_promotions', 'free_shipping_promotions', 'geocoders', 'gift_card_recipients', 'gift_cards', 'google_geocoders', 'imports', 'in_stock_subscriptions', 'inventory_models', 'inventory_return_locations', 'inventory_stock_locations', 'line_item_options', 'line_items', 'manual_gateways', 'manual_tax_calculators', 'markets', 'merchants', 'order_amount_promotion_rules', 'order_copies', 'order_subscriptions', 'order_validation_rules', 'orders', 'organization', 'packages', 'parcel_line_items', 'parcels', 'payment_gateways', 'payment_methods', 'paypal_gateways', 'paypal_payments', 'percentage_discount_promotions', 'price_lists', 'prices', 'promotion_rules', 'promotions', 'refunds', 'return_line_items', 'returns', 'shipments', 'shipping_categories', 'shipping_methods', 'shipping_zones', 'sku_list_items', 'sku_list_promotion_rules', 'sku_lists', 'sku_options', 'skus', 'stock_items', 'stock_line_items', 'stock_locations', 'stock_transfers', 'stripe_gateways', 'stripe_payments', 'tax_calculators', 'tax_categories', 'tax_rules', 'taxjar_accounts', 'transactions', 'voids', 'webhooks', 'wire_transfers' // ##__API_RESOURCE_LIST_STOP__##
15888
16810
  ];
15889
16811
  /*
15890
16812
  type ResourceInfo = {
@@ -16039,6 +16961,7 @@ var CommerceLayerClient = /*#__PURE__*/function () {
16039
16961
  this.checkout_com_gateways = new CheckoutComGateways(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16040
16962
  this.checkout_com_payments = new CheckoutComPayments(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16041
16963
  this.coupon_codes_promotion_rules = new CouponCodesPromotionRules(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16964
+ this.coupon_recipients = new CouponRecipients(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16042
16965
  this.coupons = new Coupons(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16043
16966
  this.customer_addresses = new CustomerAddresses(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16044
16967
  this.customer_groups = new CustomerGroups(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
@@ -16053,6 +16976,8 @@ var CommerceLayerClient = /*#__PURE__*/function () {
16053
16976
  this.external_promotions = new ExternalPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16054
16977
  this.external_tax_calculators = new ExternalTaxCalculators(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16055
16978
  this.fixed_amount_promotions = new FixedAmountPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16979
+ this.fixed_price_promotions = new FixedPricePromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16980
+ this.free_gift_promotions = new FreeGiftPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16056
16981
  this.free_shipping_promotions = new FreeShippingPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16057
16982
  this.geocoders = new Geocoders(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16058
16983
  this.gift_card_recipients = new GiftCardRecipients(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);