@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
@@ -0,0 +1,91 @@
1
+ /**
2
+ * ©2021 Commerce Layer Inc.
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
+ **/
5
+ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
+ import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
+ import { Market } from './markets';
8
+ import { PromotionRule } from './promotion_rules';
9
+ import { OrderAmountPromotionRule } from './order_amount_promotion_rules';
10
+ import { SkuListPromotionRule } from './sku_list_promotion_rules';
11
+ import { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
12
+ import { Attachment } from './attachments';
13
+ import { SkuList } from './sku_lists';
14
+ import { Sku } from './skus';
15
+ declare type FreeGiftPromotionRel = ResourceId & {
16
+ type: typeof FreeGiftPromotions.TYPE;
17
+ };
18
+ declare type MarketRel = ResourceId & {
19
+ type: 'markets';
20
+ };
21
+ declare type PromotionRuleRel = ResourceId & {
22
+ type: 'promotion_rules';
23
+ };
24
+ declare type OrderAmountPromotionRuleRel = ResourceId & {
25
+ type: 'order_amount_promotion_rules';
26
+ };
27
+ declare type SkuListPromotionRuleRel = ResourceId & {
28
+ type: 'sku_list_promotion_rules';
29
+ };
30
+ declare type CouponCodesPromotionRuleRel = ResourceId & {
31
+ type: 'coupon_codes_promotion_rules';
32
+ };
33
+ declare type SkuListRel = ResourceId & {
34
+ type: 'sku_lists';
35
+ };
36
+ interface FreeGiftPromotion extends Resource {
37
+ name?: string;
38
+ starts_at?: string;
39
+ expires_at?: string;
40
+ total_usage_limit?: number;
41
+ total_usage_count?: number;
42
+ active?: boolean;
43
+ max_quantity?: number;
44
+ market?: Market;
45
+ promotion_rules?: PromotionRule[];
46
+ order_amount_promotion_rule?: OrderAmountPromotionRule;
47
+ sku_list_promotion_rule?: SkuListPromotionRule;
48
+ coupon_codes_promotion_rule?: CouponCodesPromotionRule;
49
+ attachments?: Attachment[];
50
+ sku_list?: SkuList;
51
+ skus?: Sku[];
52
+ }
53
+ interface FreeGiftPromotionCreate extends ResourceCreate {
54
+ name: string;
55
+ starts_at: string;
56
+ expires_at: string;
57
+ total_usage_limit: number;
58
+ max_quantity?: number;
59
+ market?: MarketRel;
60
+ promotion_rules?: PromotionRuleRel[];
61
+ order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
62
+ sku_list_promotion_rule?: SkuListPromotionRuleRel;
63
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
64
+ sku_list?: SkuListRel;
65
+ }
66
+ interface FreeGiftPromotionUpdate extends ResourceUpdate {
67
+ name?: string;
68
+ starts_at?: string;
69
+ expires_at?: string;
70
+ total_usage_limit?: number;
71
+ max_quantity?: number;
72
+ market?: MarketRel;
73
+ promotion_rules?: PromotionRuleRel[];
74
+ order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
75
+ sku_list_promotion_rule?: SkuListPromotionRuleRel;
76
+ coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
77
+ sku_list?: SkuListRel;
78
+ }
79
+ declare class FreeGiftPromotions extends ApiResource {
80
+ static readonly TYPE: 'free_gift_promotions';
81
+ list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeGiftPromotion>>;
82
+ create(resource: FreeGiftPromotionCreate, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
83
+ retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
84
+ update(resource: FreeGiftPromotionUpdate, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
85
+ delete(id: string, options?: ResourcesConfig): Promise<void>;
86
+ isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
87
+ relationship(id: string | ResourceId): FreeGiftPromotionRel;
88
+ type(): string;
89
+ }
90
+ export default FreeGiftPromotions;
91
+ export { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate };
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,12 +1,14 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
7
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
8
8
  import { FreeShippingPromotion } from './free_shipping_promotions';
9
9
  import { FixedAmountPromotion } from './fixed_amount_promotions';
10
+ import { FreeGiftPromotion } from './free_gift_promotions';
11
+ import { FixedPricePromotion } from './fixed_price_promotions';
10
12
  import { ExternalPromotion } from './external_promotions';
11
13
  declare type OrderAmountPromotionRuleRel = ResourceId & {
12
14
  type: typeof OrderAmountPromotionRules.TYPE;
@@ -20,6 +22,12 @@ declare type FreeShippingPromotionRel = ResourceId & {
20
22
  declare type FixedAmountPromotionRel = ResourceId & {
21
23
  type: 'fixed_amount_promotions';
22
24
  };
25
+ declare type FreeGiftPromotionRel = ResourceId & {
26
+ type: 'free_gift_promotions';
27
+ };
28
+ declare type FixedPricePromotionRel = ResourceId & {
29
+ type: 'fixed_price_promotions';
30
+ };
23
31
  declare type ExternalPromotionRel = ResourceId & {
24
32
  type: 'external_promotions';
25
33
  };
@@ -27,15 +35,15 @@ interface OrderAmountPromotionRule extends Resource {
27
35
  order_amount_cents?: number;
28
36
  order_amount_float?: number;
29
37
  formatted_order_amount?: string;
30
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion;
38
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
31
39
  }
32
40
  interface OrderAmountPromotionRuleCreate extends ResourceCreate {
33
41
  order_amount_cents?: number;
34
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel;
42
+ promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
35
43
  }
36
44
  interface OrderAmountPromotionRuleUpdate extends ResourceUpdate {
37
45
  order_amount_cents?: number;
38
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel;
46
+ promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
39
47
  }
40
48
  declare class OrderAmountPromotionRules extends ApiResource {
41
49
  static readonly TYPE: 'order_amount_promotion_rules';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,18 +1,20 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
7
7
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
8
8
  import { FreeShippingPromotion } from './free_shipping_promotions';
9
9
  import { FixedAmountPromotion } from './fixed_amount_promotions';
10
+ import { FreeGiftPromotion } from './free_gift_promotions';
11
+ import { FixedPricePromotion } from './fixed_price_promotions';
10
12
  import { ExternalPromotion } from './external_promotions';
11
13
  declare type PromotionRuleRel = ResourceId & {
12
14
  type: typeof PromotionRules.TYPE;
13
15
  };
14
16
  interface PromotionRule extends Resource {
15
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion;
17
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
16
18
  }
17
19
  declare class PromotionRules extends ApiResource {
18
20
  static readonly TYPE: 'promotion_rules';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,12 +1,14 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
7
7
  import { PercentageDiscountPromotion } from './percentage_discount_promotions';
8
8
  import { FreeShippingPromotion } from './free_shipping_promotions';
9
9
  import { FixedAmountPromotion } from './fixed_amount_promotions';
10
+ import { FreeGiftPromotion } from './free_gift_promotions';
11
+ import { FixedPricePromotion } from './fixed_price_promotions';
10
12
  import { ExternalPromotion } from './external_promotions';
11
13
  import { SkuList } from './sku_lists';
12
14
  import { Sku } from './skus';
@@ -22,6 +24,12 @@ declare type FreeShippingPromotionRel = ResourceId & {
22
24
  declare type FixedAmountPromotionRel = ResourceId & {
23
25
  type: 'fixed_amount_promotions';
24
26
  };
27
+ declare type FreeGiftPromotionRel = ResourceId & {
28
+ type: 'free_gift_promotions';
29
+ };
30
+ declare type FixedPricePromotionRel = ResourceId & {
31
+ type: 'fixed_price_promotions';
32
+ };
25
33
  declare type ExternalPromotionRel = ResourceId & {
26
34
  type: 'external_promotions';
27
35
  };
@@ -30,18 +38,21 @@ declare type SkuListRel = ResourceId & {
30
38
  };
31
39
  interface SkuListPromotionRule extends Resource {
32
40
  all_skus?: boolean;
33
- promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion;
41
+ min_quantity?: number;
42
+ promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
34
43
  sku_list?: SkuList;
35
44
  skus?: Sku[];
36
45
  }
37
46
  interface SkuListPromotionRuleCreate extends ResourceCreate {
38
47
  all_skus?: boolean;
39
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel;
48
+ min_quantity?: number;
49
+ promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
40
50
  sku_list?: SkuListRel;
41
51
  }
42
52
  interface SkuListPromotionRuleUpdate extends ResourceUpdate {
43
53
  all_skus?: boolean;
44
- promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel;
54
+ min_quantity?: number;
55
+ promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
45
56
  sku_list?: SkuListRel;
46
57
  }
47
58
  declare class SkuListPromotionRules extends ApiResource {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * ©2021 Commerce Layer Inc.
3
- * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
3
+ * Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
4
4
  **/
5
5
  import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
6
6
  import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';