@commercelayer/sdk 2.1.3 → 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 (105) hide show
  1. package/lib/api.d.ts +6 -3
  2. package/lib/commercelayer.d.ts +3 -0
  3. package/lib/model.d.ts +4 -1
  4. package/lib/resources/addresses.d.ts +1 -1
  5. package/lib/resources/adjustments.d.ts +1 -1
  6. package/lib/resources/adyen_gateways.d.ts +1 -1
  7. package/lib/resources/adyen_payments.d.ts +1 -1
  8. package/lib/resources/application.d.ts +1 -1
  9. package/lib/resources/attachments.d.ts +1 -1
  10. package/lib/resources/authorizations.d.ts +1 -1
  11. package/lib/resources/avalara_accounts.d.ts +1 -1
  12. package/lib/resources/billing_info_validation_rules.d.ts +1 -1
  13. package/lib/resources/bing_geocoders.d.ts +1 -1
  14. package/lib/resources/braintree_gateways.d.ts +1 -1
  15. package/lib/resources/braintree_payments.d.ts +1 -1
  16. package/lib/resources/bundles.d.ts +1 -1
  17. package/lib/resources/captures.d.ts +1 -1
  18. package/lib/resources/carrier_accounts.d.ts +1 -1
  19. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  20. package/lib/resources/checkout_com_payments.d.ts +1 -1
  21. package/lib/resources/coupon_codes_promotion_rules.d.ts +12 -4
  22. package/lib/resources/coupon_recipients.d.ts +46 -0
  23. package/lib/resources/coupons.d.ts +4 -1
  24. package/lib/resources/customer_addresses.d.ts +1 -1
  25. package/lib/resources/customer_groups.d.ts +1 -1
  26. package/lib/resources/customer_password_resets.d.ts +1 -1
  27. package/lib/resources/customer_payment_sources.d.ts +1 -1
  28. package/lib/resources/customer_subscriptions.d.ts +1 -1
  29. package/lib/resources/customers.d.ts +1 -1
  30. package/lib/resources/delivery_lead_times.d.ts +1 -1
  31. package/lib/resources/event_callbacks.d.ts +3 -2
  32. package/lib/resources/external_gateways.d.ts +1 -1
  33. package/lib/resources/external_payments.d.ts +1 -1
  34. package/lib/resources/external_promotions.d.ts +1 -1
  35. package/lib/resources/external_tax_calculators.d.ts +1 -1
  36. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  37. package/lib/resources/fixed_price_promotions.d.ts +93 -0
  38. package/lib/resources/free_gift_promotions.d.ts +91 -0
  39. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  40. package/lib/resources/geocoders.d.ts +1 -1
  41. package/lib/resources/gift_card_recipients.d.ts +1 -1
  42. package/lib/resources/gift_cards.d.ts +1 -1
  43. package/lib/resources/google_geocoders.d.ts +1 -1
  44. package/lib/resources/imports.d.ts +1 -1
  45. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  46. package/lib/resources/inventory_models.d.ts +1 -1
  47. package/lib/resources/inventory_return_locations.d.ts +1 -1
  48. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  49. package/lib/resources/line_item_options.d.ts +1 -1
  50. package/lib/resources/line_items.d.ts +1 -1
  51. package/lib/resources/manual_gateways.d.ts +1 -1
  52. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  53. package/lib/resources/markets.d.ts +1 -1
  54. package/lib/resources/merchants.d.ts +1 -1
  55. package/lib/resources/order_amount_promotion_rules.d.ts +12 -4
  56. package/lib/resources/order_copies.d.ts +1 -1
  57. package/lib/resources/order_subscriptions.d.ts +1 -1
  58. package/lib/resources/order_validation_rules.d.ts +1 -1
  59. package/lib/resources/orders.d.ts +1 -1
  60. package/lib/resources/organization.d.ts +1 -1
  61. package/lib/resources/packages.d.ts +1 -1
  62. package/lib/resources/parcel_line_items.d.ts +1 -1
  63. package/lib/resources/parcels.d.ts +1 -1
  64. package/lib/resources/payment_gateways.d.ts +1 -1
  65. package/lib/resources/payment_methods.d.ts +1 -1
  66. package/lib/resources/paypal_gateways.d.ts +1 -1
  67. package/lib/resources/paypal_payments.d.ts +1 -1
  68. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  69. package/lib/resources/price_lists.d.ts +1 -1
  70. package/lib/resources/prices.d.ts +1 -1
  71. package/lib/resources/promotion_rules.d.ts +4 -2
  72. package/lib/resources/promotions.d.ts +1 -1
  73. package/lib/resources/refunds.d.ts +1 -1
  74. package/lib/resources/return_line_items.d.ts +1 -1
  75. package/lib/resources/returns.d.ts +1 -1
  76. package/lib/resources/shipments.d.ts +1 -1
  77. package/lib/resources/shipping_categories.d.ts +1 -1
  78. package/lib/resources/shipping_methods.d.ts +1 -1
  79. package/lib/resources/shipping_zones.d.ts +1 -1
  80. package/lib/resources/sku_list_items.d.ts +1 -1
  81. package/lib/resources/sku_list_promotion_rules.d.ts +15 -4
  82. package/lib/resources/sku_lists.d.ts +1 -1
  83. package/lib/resources/sku_options.d.ts +1 -1
  84. package/lib/resources/skus.d.ts +1 -1
  85. package/lib/resources/stock_items.d.ts +1 -1
  86. package/lib/resources/stock_line_items.d.ts +1 -1
  87. package/lib/resources/stock_locations.d.ts +1 -1
  88. package/lib/resources/stock_transfers.d.ts +1 -1
  89. package/lib/resources/stripe_gateways.d.ts +1 -1
  90. package/lib/resources/stripe_payments.d.ts +1 -1
  91. package/lib/resources/tax_calculators.d.ts +1 -1
  92. package/lib/resources/tax_categories.d.ts +1 -1
  93. package/lib/resources/tax_rules.d.ts +1 -1
  94. package/lib/resources/taxjar_accounts.d.ts +1 -1
  95. package/lib/resources/transactions.d.ts +1 -1
  96. package/lib/resources/voids.d.ts +1 -1
  97. package/lib/resources/webhooks.d.ts +2 -2
  98. package/lib/resources/wire_transfers.d.ts +1 -1
  99. package/lib/sdk.cjs.development.js +558 -1
  100. package/lib/sdk.cjs.development.js.map +1 -1
  101. package/lib/sdk.cjs.production.min.js +1 -1
  102. package/lib/sdk.cjs.production.min.js.map +1 -1
  103. package/lib/sdk.esm.js +558 -1
  104. package/lib/sdk.esm.js.map +1 -1
  105. package/package.json +2 -3
@@ -4388,6 +4388,182 @@ var CouponCodesPromotionRules = /*#__PURE__*/function (_ApiResource) {
4388
4388
 
4389
4389
  CouponCodesPromotionRules.TYPE = 'coupon_codes_promotion_rules';
4390
4390
 
4391
+ var CouponRecipients = /*#__PURE__*/function (_ApiResource) {
4392
+ _inheritsLoose(CouponRecipients, _ApiResource);
4393
+
4394
+ function CouponRecipients() {
4395
+ return _ApiResource.apply(this, arguments) || this;
4396
+ }
4397
+
4398
+ var _proto = CouponRecipients.prototype;
4399
+
4400
+ // static readonly PATH = 'coupon_recipients'
4401
+ _proto.list =
4402
+ /*#__PURE__*/
4403
+ function () {
4404
+ var _list = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(params, options) {
4405
+ return runtime_1.wrap(function _callee$(_context) {
4406
+ while (1) {
4407
+ switch (_context.prev = _context.next) {
4408
+ case 0:
4409
+ return _context.abrupt("return", this.resources.list({
4410
+ type: CouponRecipients.TYPE
4411
+ }, params, options));
4412
+
4413
+ case 1:
4414
+ case "end":
4415
+ return _context.stop();
4416
+ }
4417
+ }
4418
+ }, _callee, this);
4419
+ }));
4420
+
4421
+ function list(_x, _x2) {
4422
+ return _list.apply(this, arguments);
4423
+ }
4424
+
4425
+ return list;
4426
+ }();
4427
+
4428
+ _proto.create = /*#__PURE__*/function () {
4429
+ var _create = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(resource, options) {
4430
+ return runtime_1.wrap(function _callee2$(_context2) {
4431
+ while (1) {
4432
+ switch (_context2.prev = _context2.next) {
4433
+ case 0:
4434
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
4435
+ type: CouponRecipients.TYPE
4436
+ }), options));
4437
+
4438
+ case 1:
4439
+ case "end":
4440
+ return _context2.stop();
4441
+ }
4442
+ }
4443
+ }, _callee2, this);
4444
+ }));
4445
+
4446
+ function create(_x3, _x4) {
4447
+ return _create.apply(this, arguments);
4448
+ }
4449
+
4450
+ return create;
4451
+ }();
4452
+
4453
+ _proto.retrieve = /*#__PURE__*/function () {
4454
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(id, params, options) {
4455
+ return runtime_1.wrap(function _callee3$(_context3) {
4456
+ while (1) {
4457
+ switch (_context3.prev = _context3.next) {
4458
+ case 0:
4459
+ return _context3.abrupt("return", this.resources.retrieve({
4460
+ type: CouponRecipients.TYPE,
4461
+ id: id
4462
+ }, params, options));
4463
+
4464
+ case 1:
4465
+ case "end":
4466
+ return _context3.stop();
4467
+ }
4468
+ }
4469
+ }, _callee3, this);
4470
+ }));
4471
+
4472
+ function retrieve(_x5, _x6, _x7) {
4473
+ return _retrieve.apply(this, arguments);
4474
+ }
4475
+
4476
+ return retrieve;
4477
+ }();
4478
+
4479
+ _proto.update = /*#__PURE__*/function () {
4480
+ var _update = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(resource, options) {
4481
+ return runtime_1.wrap(function _callee4$(_context4) {
4482
+ while (1) {
4483
+ switch (_context4.prev = _context4.next) {
4484
+ case 0:
4485
+ return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
4486
+ type: CouponRecipients.TYPE
4487
+ }), options));
4488
+
4489
+ case 1:
4490
+ case "end":
4491
+ return _context4.stop();
4492
+ }
4493
+ }
4494
+ }, _callee4, this);
4495
+ }));
4496
+
4497
+ function update(_x8, _x9) {
4498
+ return _update.apply(this, arguments);
4499
+ }
4500
+
4501
+ return update;
4502
+ }();
4503
+
4504
+ _proto["delete"] = /*#__PURE__*/function () {
4505
+ var _delete2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(id, options) {
4506
+ return runtime_1.wrap(function _callee5$(_context5) {
4507
+ while (1) {
4508
+ switch (_context5.prev = _context5.next) {
4509
+ case 0:
4510
+ _context5.next = 2;
4511
+ return this.resources["delete"]({
4512
+ type: CouponRecipients.TYPE,
4513
+ id: id
4514
+ }, options);
4515
+
4516
+ case 2:
4517
+ case "end":
4518
+ return _context5.stop();
4519
+ }
4520
+ }
4521
+ }, _callee5, this);
4522
+ }));
4523
+
4524
+ function _delete(_x10, _x11) {
4525
+ return _delete2.apply(this, arguments);
4526
+ }
4527
+
4528
+ return _delete;
4529
+ }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
4530
+ ;
4531
+
4532
+ _proto.isCouponRecipient = function isCouponRecipient(resource) {
4533
+ return resource.type && resource.type === CouponRecipients.TYPE;
4534
+ }
4535
+ /*
4536
+ filter(): QueryBuilderRetrieve {
4537
+ return new QueryBuilderRetrieve(CouponRecipients.TYPE)
4538
+ }
4539
+ */
4540
+
4541
+ /*
4542
+ filterList(): QueryBuilderList {
4543
+ return new QueryBuilderList(CouponRecipients.TYPE)
4544
+ }
4545
+ */
4546
+ ;
4547
+
4548
+ _proto.relationship = function relationship(id) {
4549
+ return typeof id === 'string' ? {
4550
+ id: id,
4551
+ type: CouponRecipients.TYPE
4552
+ } : {
4553
+ id: id.id,
4554
+ type: CouponRecipients.TYPE
4555
+ };
4556
+ };
4557
+
4558
+ _proto.type = function type() {
4559
+ return CouponRecipients.TYPE;
4560
+ };
4561
+
4562
+ return CouponRecipients;
4563
+ }(ApiResource);
4564
+
4565
+ CouponRecipients.TYPE = 'coupon_recipients';
4566
+
4391
4567
  var Coupons = /*#__PURE__*/function (_ApiResource) {
4392
4568
  _inheritsLoose(Coupons, _ApiResource);
4393
4569
 
@@ -5831,6 +6007,32 @@ var EventCallbacks = /*#__PURE__*/function (_ApiResource) {
5831
6007
  }
5832
6008
 
5833
6009
  return list;
6010
+ }();
6011
+
6012
+ _proto.retrieve = /*#__PURE__*/function () {
6013
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(id, params, options) {
6014
+ return runtime_1.wrap(function _callee2$(_context2) {
6015
+ while (1) {
6016
+ switch (_context2.prev = _context2.next) {
6017
+ case 0:
6018
+ return _context2.abrupt("return", this.resources.retrieve({
6019
+ type: EventCallbacks.TYPE,
6020
+ id: id
6021
+ }, params, options));
6022
+
6023
+ case 1:
6024
+ case "end":
6025
+ return _context2.stop();
6026
+ }
6027
+ }
6028
+ }, _callee2, this);
6029
+ }));
6030
+
6031
+ function retrieve(_x3, _x4, _x5) {
6032
+ return _retrieve.apply(this, arguments);
6033
+ }
6034
+
6035
+ return retrieve;
5834
6036
  }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
5835
6037
  ;
5836
6038
 
@@ -6749,6 +6951,358 @@ var FixedAmountPromotions = /*#__PURE__*/function (_ApiResource) {
6749
6951
 
6750
6952
  FixedAmountPromotions.TYPE = 'fixed_amount_promotions';
6751
6953
 
6954
+ var FixedPricePromotions = /*#__PURE__*/function (_ApiResource) {
6955
+ _inheritsLoose(FixedPricePromotions, _ApiResource);
6956
+
6957
+ function FixedPricePromotions() {
6958
+ return _ApiResource.apply(this, arguments) || this;
6959
+ }
6960
+
6961
+ var _proto = FixedPricePromotions.prototype;
6962
+
6963
+ // static readonly PATH = 'fixed_price_promotions'
6964
+ _proto.list =
6965
+ /*#__PURE__*/
6966
+ function () {
6967
+ var _list = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(params, options) {
6968
+ return runtime_1.wrap(function _callee$(_context) {
6969
+ while (1) {
6970
+ switch (_context.prev = _context.next) {
6971
+ case 0:
6972
+ return _context.abrupt("return", this.resources.list({
6973
+ type: FixedPricePromotions.TYPE
6974
+ }, params, options));
6975
+
6976
+ case 1:
6977
+ case "end":
6978
+ return _context.stop();
6979
+ }
6980
+ }
6981
+ }, _callee, this);
6982
+ }));
6983
+
6984
+ function list(_x, _x2) {
6985
+ return _list.apply(this, arguments);
6986
+ }
6987
+
6988
+ return list;
6989
+ }();
6990
+
6991
+ _proto.create = /*#__PURE__*/function () {
6992
+ var _create = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(resource, options) {
6993
+ return runtime_1.wrap(function _callee2$(_context2) {
6994
+ while (1) {
6995
+ switch (_context2.prev = _context2.next) {
6996
+ case 0:
6997
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
6998
+ type: FixedPricePromotions.TYPE
6999
+ }), options));
7000
+
7001
+ case 1:
7002
+ case "end":
7003
+ return _context2.stop();
7004
+ }
7005
+ }
7006
+ }, _callee2, this);
7007
+ }));
7008
+
7009
+ function create(_x3, _x4) {
7010
+ return _create.apply(this, arguments);
7011
+ }
7012
+
7013
+ return create;
7014
+ }();
7015
+
7016
+ _proto.retrieve = /*#__PURE__*/function () {
7017
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(id, params, options) {
7018
+ return runtime_1.wrap(function _callee3$(_context3) {
7019
+ while (1) {
7020
+ switch (_context3.prev = _context3.next) {
7021
+ case 0:
7022
+ return _context3.abrupt("return", this.resources.retrieve({
7023
+ type: FixedPricePromotions.TYPE,
7024
+ id: id
7025
+ }, params, options));
7026
+
7027
+ case 1:
7028
+ case "end":
7029
+ return _context3.stop();
7030
+ }
7031
+ }
7032
+ }, _callee3, this);
7033
+ }));
7034
+
7035
+ function retrieve(_x5, _x6, _x7) {
7036
+ return _retrieve.apply(this, arguments);
7037
+ }
7038
+
7039
+ return retrieve;
7040
+ }();
7041
+
7042
+ _proto.update = /*#__PURE__*/function () {
7043
+ var _update = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(resource, options) {
7044
+ return runtime_1.wrap(function _callee4$(_context4) {
7045
+ while (1) {
7046
+ switch (_context4.prev = _context4.next) {
7047
+ case 0:
7048
+ return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
7049
+ type: FixedPricePromotions.TYPE
7050
+ }), options));
7051
+
7052
+ case 1:
7053
+ case "end":
7054
+ return _context4.stop();
7055
+ }
7056
+ }
7057
+ }, _callee4, this);
7058
+ }));
7059
+
7060
+ function update(_x8, _x9) {
7061
+ return _update.apply(this, arguments);
7062
+ }
7063
+
7064
+ return update;
7065
+ }();
7066
+
7067
+ _proto["delete"] = /*#__PURE__*/function () {
7068
+ var _delete2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(id, options) {
7069
+ return runtime_1.wrap(function _callee5$(_context5) {
7070
+ while (1) {
7071
+ switch (_context5.prev = _context5.next) {
7072
+ case 0:
7073
+ _context5.next = 2;
7074
+ return this.resources["delete"]({
7075
+ type: FixedPricePromotions.TYPE,
7076
+ id: id
7077
+ }, options);
7078
+
7079
+ case 2:
7080
+ case "end":
7081
+ return _context5.stop();
7082
+ }
7083
+ }
7084
+ }, _callee5, this);
7085
+ }));
7086
+
7087
+ function _delete(_x10, _x11) {
7088
+ return _delete2.apply(this, arguments);
7089
+ }
7090
+
7091
+ return _delete;
7092
+ }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
7093
+ ;
7094
+
7095
+ _proto.isFixedPricePromotion = function isFixedPricePromotion(resource) {
7096
+ return resource.type && resource.type === FixedPricePromotions.TYPE;
7097
+ }
7098
+ /*
7099
+ filter(): QueryBuilderRetrieve {
7100
+ return new QueryBuilderRetrieve(FixedPricePromotions.TYPE)
7101
+ }
7102
+ */
7103
+
7104
+ /*
7105
+ filterList(): QueryBuilderList {
7106
+ return new QueryBuilderList(FixedPricePromotions.TYPE)
7107
+ }
7108
+ */
7109
+ ;
7110
+
7111
+ _proto.relationship = function relationship(id) {
7112
+ return typeof id === 'string' ? {
7113
+ id: id,
7114
+ type: FixedPricePromotions.TYPE
7115
+ } : {
7116
+ id: id.id,
7117
+ type: FixedPricePromotions.TYPE
7118
+ };
7119
+ };
7120
+
7121
+ _proto.type = function type() {
7122
+ return FixedPricePromotions.TYPE;
7123
+ };
7124
+
7125
+ return FixedPricePromotions;
7126
+ }(ApiResource);
7127
+
7128
+ FixedPricePromotions.TYPE = 'fixed_price_promotions';
7129
+
7130
+ var FreeGiftPromotions = /*#__PURE__*/function (_ApiResource) {
7131
+ _inheritsLoose(FreeGiftPromotions, _ApiResource);
7132
+
7133
+ function FreeGiftPromotions() {
7134
+ return _ApiResource.apply(this, arguments) || this;
7135
+ }
7136
+
7137
+ var _proto = FreeGiftPromotions.prototype;
7138
+
7139
+ // static readonly PATH = 'free_gift_promotions'
7140
+ _proto.list =
7141
+ /*#__PURE__*/
7142
+ function () {
7143
+ var _list = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee(params, options) {
7144
+ return runtime_1.wrap(function _callee$(_context) {
7145
+ while (1) {
7146
+ switch (_context.prev = _context.next) {
7147
+ case 0:
7148
+ return _context.abrupt("return", this.resources.list({
7149
+ type: FreeGiftPromotions.TYPE
7150
+ }, params, options));
7151
+
7152
+ case 1:
7153
+ case "end":
7154
+ return _context.stop();
7155
+ }
7156
+ }
7157
+ }, _callee, this);
7158
+ }));
7159
+
7160
+ function list(_x, _x2) {
7161
+ return _list.apply(this, arguments);
7162
+ }
7163
+
7164
+ return list;
7165
+ }();
7166
+
7167
+ _proto.create = /*#__PURE__*/function () {
7168
+ var _create = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee2(resource, options) {
7169
+ return runtime_1.wrap(function _callee2$(_context2) {
7170
+ while (1) {
7171
+ switch (_context2.prev = _context2.next) {
7172
+ case 0:
7173
+ return _context2.abrupt("return", this.resources.create(_extends({}, resource, {
7174
+ type: FreeGiftPromotions.TYPE
7175
+ }), options));
7176
+
7177
+ case 1:
7178
+ case "end":
7179
+ return _context2.stop();
7180
+ }
7181
+ }
7182
+ }, _callee2, this);
7183
+ }));
7184
+
7185
+ function create(_x3, _x4) {
7186
+ return _create.apply(this, arguments);
7187
+ }
7188
+
7189
+ return create;
7190
+ }();
7191
+
7192
+ _proto.retrieve = /*#__PURE__*/function () {
7193
+ var _retrieve = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee3(id, params, options) {
7194
+ return runtime_1.wrap(function _callee3$(_context3) {
7195
+ while (1) {
7196
+ switch (_context3.prev = _context3.next) {
7197
+ case 0:
7198
+ return _context3.abrupt("return", this.resources.retrieve({
7199
+ type: FreeGiftPromotions.TYPE,
7200
+ id: id
7201
+ }, params, options));
7202
+
7203
+ case 1:
7204
+ case "end":
7205
+ return _context3.stop();
7206
+ }
7207
+ }
7208
+ }, _callee3, this);
7209
+ }));
7210
+
7211
+ function retrieve(_x5, _x6, _x7) {
7212
+ return _retrieve.apply(this, arguments);
7213
+ }
7214
+
7215
+ return retrieve;
7216
+ }();
7217
+
7218
+ _proto.update = /*#__PURE__*/function () {
7219
+ var _update = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee4(resource, options) {
7220
+ return runtime_1.wrap(function _callee4$(_context4) {
7221
+ while (1) {
7222
+ switch (_context4.prev = _context4.next) {
7223
+ case 0:
7224
+ return _context4.abrupt("return", this.resources.update(_extends({}, resource, {
7225
+ type: FreeGiftPromotions.TYPE
7226
+ }), options));
7227
+
7228
+ case 1:
7229
+ case "end":
7230
+ return _context4.stop();
7231
+ }
7232
+ }
7233
+ }, _callee4, this);
7234
+ }));
7235
+
7236
+ function update(_x8, _x9) {
7237
+ return _update.apply(this, arguments);
7238
+ }
7239
+
7240
+ return update;
7241
+ }();
7242
+
7243
+ _proto["delete"] = /*#__PURE__*/function () {
7244
+ var _delete2 = /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/runtime_1.mark(function _callee5(id, options) {
7245
+ return runtime_1.wrap(function _callee5$(_context5) {
7246
+ while (1) {
7247
+ switch (_context5.prev = _context5.next) {
7248
+ case 0:
7249
+ _context5.next = 2;
7250
+ return this.resources["delete"]({
7251
+ type: FreeGiftPromotions.TYPE,
7252
+ id: id
7253
+ }, options);
7254
+
7255
+ case 2:
7256
+ case "end":
7257
+ return _context5.stop();
7258
+ }
7259
+ }
7260
+ }, _callee5, this);
7261
+ }));
7262
+
7263
+ function _delete(_x10, _x11) {
7264
+ return _delete2.apply(this, arguments);
7265
+ }
7266
+
7267
+ return _delete;
7268
+ }() // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
7269
+ ;
7270
+
7271
+ _proto.isFreeGiftPromotion = function isFreeGiftPromotion(resource) {
7272
+ return resource.type && resource.type === FreeGiftPromotions.TYPE;
7273
+ }
7274
+ /*
7275
+ filter(): QueryBuilderRetrieve {
7276
+ return new QueryBuilderRetrieve(FreeGiftPromotions.TYPE)
7277
+ }
7278
+ */
7279
+
7280
+ /*
7281
+ filterList(): QueryBuilderList {
7282
+ return new QueryBuilderList(FreeGiftPromotions.TYPE)
7283
+ }
7284
+ */
7285
+ ;
7286
+
7287
+ _proto.relationship = function relationship(id) {
7288
+ return typeof id === 'string' ? {
7289
+ id: id,
7290
+ type: FreeGiftPromotions.TYPE
7291
+ } : {
7292
+ id: id.id,
7293
+ type: FreeGiftPromotions.TYPE
7294
+ };
7295
+ };
7296
+
7297
+ _proto.type = function type() {
7298
+ return FreeGiftPromotions.TYPE;
7299
+ };
7300
+
7301
+ return FreeGiftPromotions;
7302
+ }(ApiResource);
7303
+
7304
+ FreeGiftPromotions.TYPE = 'free_gift_promotions';
7305
+
6752
7306
  var FreeShippingPromotions = /*#__PURE__*/function (_ApiResource) {
6753
7307
  _inheritsLoose(FreeShippingPromotions, _ApiResource);
6754
7308
 
@@ -16258,7 +16812,7 @@ WireTransfers.TYPE = 'wire_transfers';
16258
16812
  // ##__API_RESOURCES_START__##
16259
16813
 
16260
16814
  var resourceList = [// ##__API_RESOURCE_LIST_START__##
16261
- '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__##
16815
+ '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__##
16262
16816
  ];
16263
16817
  /*
16264
16818
  type ResourceInfo = {
@@ -16413,6 +16967,7 @@ var CommerceLayerClient = /*#__PURE__*/function () {
16413
16967
  this.checkout_com_gateways = new CheckoutComGateways(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16414
16968
  this.checkout_com_payments = new CheckoutComPayments(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16415
16969
  this.coupon_codes_promotion_rules = new CouponCodesPromotionRules(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16970
+ this.coupon_recipients = new CouponRecipients(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16416
16971
  this.coupons = new Coupons(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16417
16972
  this.customer_addresses = new CustomerAddresses(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16418
16973
  this.customer_groups = new CustomerGroups(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
@@ -16427,6 +16982,8 @@ var CommerceLayerClient = /*#__PURE__*/function () {
16427
16982
  this.external_promotions = new ExternalPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16428
16983
  this.external_tax_calculators = new ExternalTaxCalculators(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16429
16984
  this.fixed_amount_promotions = new FixedAmountPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16985
+ this.fixed_price_promotions = new FixedPricePromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16986
+ this.free_gift_promotions = new FreeGiftPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16430
16987
  this.free_shipping_promotions = new FreeShippingPromotions(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16431
16988
  this.geocoders = new Geocoders(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);
16432
16989
  this.gift_card_recipients = new GiftCardRecipients(_classPrivateFieldLooseBase(this, _adapter)[_adapter]);