@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.
- package/lib/api.d.ts +6 -3
- package/lib/commercelayer.d.ts +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/interceptor.d.ts +2 -1
- package/lib/model.d.ts +4 -1
- package/lib/resources/addresses.d.ts +2 -1
- package/lib/resources/adjustments.d.ts +2 -1
- package/lib/resources/adyen_gateways.d.ts +2 -1
- package/lib/resources/adyen_payments.d.ts +2 -1
- package/lib/resources/application.d.ts +2 -1
- package/lib/resources/attachments.d.ts +2 -1
- package/lib/resources/authorizations.d.ts +2 -1
- package/lib/resources/avalara_accounts.d.ts +2 -1
- package/lib/resources/billing_info_validation_rules.d.ts +2 -1
- package/lib/resources/bing_geocoders.d.ts +2 -1
- package/lib/resources/braintree_gateways.d.ts +2 -1
- package/lib/resources/braintree_payments.d.ts +2 -1
- package/lib/resources/bundles.d.ts +2 -1
- package/lib/resources/captures.d.ts +2 -1
- package/lib/resources/carrier_accounts.d.ts +2 -1
- package/lib/resources/checkout_com_gateways.d.ts +2 -1
- package/lib/resources/checkout_com_payments.d.ts +2 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +13 -4
- package/lib/resources/coupon_recipients.d.ts +46 -0
- package/lib/resources/coupons.d.ts +5 -1
- package/lib/resources/customer_addresses.d.ts +2 -1
- package/lib/resources/customer_groups.d.ts +2 -1
- package/lib/resources/customer_password_resets.d.ts +2 -1
- package/lib/resources/customer_payment_sources.d.ts +2 -1
- package/lib/resources/customer_subscriptions.d.ts +2 -1
- package/lib/resources/customers.d.ts +2 -1
- package/lib/resources/delivery_lead_times.d.ts +2 -1
- package/lib/resources/event_callbacks.d.ts +4 -2
- package/lib/resources/external_gateways.d.ts +2 -1
- package/lib/resources/external_payments.d.ts +2 -1
- package/lib/resources/external_promotions.d.ts +2 -1
- package/lib/resources/external_tax_calculators.d.ts +2 -1
- package/lib/resources/fixed_amount_promotions.d.ts +2 -1
- package/lib/resources/fixed_price_promotions.d.ts +93 -0
- package/lib/resources/free_gift_promotions.d.ts +91 -0
- package/lib/resources/free_shipping_promotions.d.ts +2 -1
- package/lib/resources/geocoders.d.ts +2 -1
- package/lib/resources/gift_card_recipients.d.ts +2 -1
- package/lib/resources/gift_cards.d.ts +2 -1
- package/lib/resources/google_geocoders.d.ts +2 -1
- package/lib/resources/imports.d.ts +2 -1
- package/lib/resources/in_stock_subscriptions.d.ts +2 -1
- package/lib/resources/inventory_models.d.ts +2 -1
- package/lib/resources/inventory_return_locations.d.ts +2 -1
- package/lib/resources/inventory_stock_locations.d.ts +2 -1
- package/lib/resources/line_item_options.d.ts +2 -1
- package/lib/resources/line_items.d.ts +2 -1
- package/lib/resources/manual_gateways.d.ts +2 -1
- package/lib/resources/manual_tax_calculators.d.ts +2 -1
- package/lib/resources/markets.d.ts +2 -1
- package/lib/resources/merchants.d.ts +2 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +13 -4
- package/lib/resources/order_copies.d.ts +2 -1
- package/lib/resources/order_subscriptions.d.ts +2 -1
- package/lib/resources/order_validation_rules.d.ts +2 -1
- package/lib/resources/orders.d.ts +2 -1
- package/lib/resources/organization.d.ts +2 -1
- package/lib/resources/packages.d.ts +2 -1
- package/lib/resources/parcel_line_items.d.ts +2 -1
- package/lib/resources/parcels.d.ts +2 -1
- package/lib/resources/payment_gateways.d.ts +2 -1
- package/lib/resources/payment_methods.d.ts +2 -1
- package/lib/resources/paypal_gateways.d.ts +2 -1
- package/lib/resources/paypal_payments.d.ts +2 -1
- package/lib/resources/percentage_discount_promotions.d.ts +2 -1
- package/lib/resources/price_lists.d.ts +2 -1
- package/lib/resources/prices.d.ts +2 -1
- package/lib/resources/promotion_rules.d.ts +5 -2
- package/lib/resources/promotions.d.ts +2 -1
- package/lib/resources/refunds.d.ts +2 -1
- package/lib/resources/return_line_items.d.ts +2 -1
- package/lib/resources/returns.d.ts +2 -1
- package/lib/resources/shipments.d.ts +2 -1
- package/lib/resources/shipping_categories.d.ts +2 -1
- package/lib/resources/shipping_methods.d.ts +2 -1
- package/lib/resources/shipping_zones.d.ts +2 -1
- package/lib/resources/sku_list_items.d.ts +2 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +16 -4
- package/lib/resources/sku_lists.d.ts +2 -1
- package/lib/resources/sku_options.d.ts +2 -1
- package/lib/resources/skus.d.ts +2 -1
- package/lib/resources/stock_items.d.ts +2 -1
- package/lib/resources/stock_line_items.d.ts +2 -1
- package/lib/resources/stock_locations.d.ts +2 -1
- package/lib/resources/stock_transfers.d.ts +2 -1
- package/lib/resources/stripe_gateways.d.ts +2 -1
- package/lib/resources/stripe_payments.d.ts +2 -1
- package/lib/resources/tax_calculators.d.ts +2 -1
- package/lib/resources/tax_categories.d.ts +2 -1
- package/lib/resources/tax_rules.d.ts +2 -1
- package/lib/resources/taxjar_accounts.d.ts +2 -1
- package/lib/resources/transactions.d.ts +2 -1
- package/lib/resources/voids.d.ts +2 -1
- package/lib/resources/webhooks.d.ts +3 -2
- package/lib/resources/wire_transfers.d.ts +2 -1
- package/lib/sdk.cjs.development.js +1007 -82
- package/lib/sdk.cjs.development.js.map +1 -1
- package/lib/sdk.cjs.production.min.js +1 -1
- package/lib/sdk.cjs.production.min.js.map +1 -1
- package/lib/sdk.esm.js +1007 -82
- package/lib/sdk.esm.js.map +1 -1
- package/package.json +3 -2
@@ -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.
|
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';
|
@@ -50,6 +50,7 @@ declare class Customers extends ApiResource {
|
|
50
50
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
51
51
|
isCustomer(resource: any): resource is Customer;
|
52
52
|
relationship(id: string | ResourceId): CustomerRel;
|
53
|
+
type(): string;
|
53
54
|
}
|
54
55
|
export default Customers;
|
55
56
|
export { Customer, CustomerCreate, CustomerUpdate };
|
@@ -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.
|
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';
|
@@ -46,6 +46,7 @@ declare class DeliveryLeadTimes extends ApiResource {
|
|
46
46
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
47
47
|
isDeliveryLeadTime(resource: any): resource is DeliveryLeadTime;
|
48
48
|
relationship(id: string | ResourceId): DeliveryLeadTimeRel;
|
49
|
+
type(): string;
|
49
50
|
}
|
50
51
|
export default DeliveryLeadTimes;
|
51
52
|
export { DeliveryLeadTime, DeliveryLeadTimeCreate, DeliveryLeadTimeUpdate };
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
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
|
-
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
7
|
import { Webhook } from './webhooks';
|
8
8
|
declare type EventCallbackRel = ResourceId & {
|
9
9
|
type: typeof EventCallbacks.TYPE;
|
@@ -18,8 +18,10 @@ interface EventCallback extends Resource {
|
|
18
18
|
declare class EventCallbacks extends ApiResource {
|
19
19
|
static readonly TYPE: 'event_callbacks';
|
20
20
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
|
21
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<EventCallback>;
|
21
22
|
isEventCallback(resource: any): resource is EventCallback;
|
22
23
|
relationship(id: string | ResourceId): EventCallbackRel;
|
24
|
+
type(): string;
|
23
25
|
}
|
24
26
|
export default EventCallbacks;
|
25
27
|
export { EventCallback };
|
@@ -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.
|
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';
|
@@ -42,6 +42,7 @@ declare class ExternalGateways extends ApiResource {
|
|
42
42
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
43
|
isExternalGateway(resource: any): resource is ExternalGateway;
|
44
44
|
relationship(id: string | ResourceId): ExternalGatewayRel;
|
45
|
+
type(): string;
|
45
46
|
}
|
46
47
|
export default ExternalGateways;
|
47
48
|
export { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate };
|
@@ -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.
|
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';
|
@@ -36,6 +36,7 @@ declare class ExternalPayments extends ApiResource {
|
|
36
36
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
37
|
isExternalPayment(resource: any): resource is ExternalPayment;
|
38
38
|
relationship(id: string | ResourceId): ExternalPaymentRel;
|
39
|
+
type(): string;
|
39
40
|
}
|
40
41
|
export default ExternalPayments;
|
41
42
|
export { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate };
|
@@ -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.
|
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';
|
@@ -76,6 +76,7 @@ declare class ExternalPromotions extends ApiResource {
|
|
76
76
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
77
77
|
isExternalPromotion(resource: any): resource is ExternalPromotion;
|
78
78
|
relationship(id: string | ResourceId): ExternalPromotionRel;
|
79
|
+
type(): string;
|
79
80
|
}
|
80
81
|
export default ExternalPromotions;
|
81
82
|
export { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate };
|
@@ -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.
|
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';
|
@@ -39,6 +39,7 @@ declare class ExternalTaxCalculators extends ApiResource {
|
|
39
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
40
|
isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator;
|
41
41
|
relationship(id: string | ResourceId): ExternalTaxCalculatorRel;
|
42
|
+
type(): string;
|
42
43
|
}
|
43
44
|
export default ExternalTaxCalculators;
|
44
45
|
export { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate };
|
@@ -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.
|
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';
|
@@ -78,6 +78,7 @@ declare class FixedAmountPromotions extends ApiResource {
|
|
78
78
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
79
79
|
isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion;
|
80
80
|
relationship(id: string | ResourceId): FixedAmountPromotionRel;
|
81
|
+
type(): string;
|
81
82
|
}
|
82
83
|
export default FixedAmountPromotions;
|
83
84
|
export { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate };
|
@@ -0,0 +1,93 @@
|
|
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 FixedPricePromotionRel = ResourceId & {
|
16
|
+
type: typeof FixedPricePromotions.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 FixedPricePromotion 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
|
+
fixed_amount_cents?: number;
|
44
|
+
fixed_amount_float?: number;
|
45
|
+
formatted_fixed_amount?: string;
|
46
|
+
market?: Market;
|
47
|
+
promotion_rules?: PromotionRule[];
|
48
|
+
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
49
|
+
sku_list_promotion_rule?: SkuListPromotionRule;
|
50
|
+
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
51
|
+
attachments?: Attachment[];
|
52
|
+
sku_list?: SkuList;
|
53
|
+
skus?: Sku[];
|
54
|
+
}
|
55
|
+
interface FixedPricePromotionCreate extends ResourceCreate {
|
56
|
+
name: string;
|
57
|
+
starts_at: string;
|
58
|
+
expires_at: string;
|
59
|
+
total_usage_limit: number;
|
60
|
+
fixed_amount_cents: number;
|
61
|
+
market?: MarketRel;
|
62
|
+
promotion_rules?: PromotionRuleRel[];
|
63
|
+
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
64
|
+
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
65
|
+
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
66
|
+
sku_list?: SkuListRel;
|
67
|
+
}
|
68
|
+
interface FixedPricePromotionUpdate extends ResourceUpdate {
|
69
|
+
name?: string;
|
70
|
+
starts_at?: string;
|
71
|
+
expires_at?: string;
|
72
|
+
total_usage_limit?: number;
|
73
|
+
fixed_amount_cents?: number;
|
74
|
+
market?: MarketRel;
|
75
|
+
promotion_rules?: PromotionRuleRel[];
|
76
|
+
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
77
|
+
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
78
|
+
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
79
|
+
sku_list?: SkuListRel;
|
80
|
+
}
|
81
|
+
declare class FixedPricePromotions extends ApiResource {
|
82
|
+
static readonly TYPE: 'fixed_price_promotions';
|
83
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedPricePromotion>>;
|
84
|
+
create(resource: FixedPricePromotionCreate, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
85
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
86
|
+
update(resource: FixedPricePromotionUpdate, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
87
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
88
|
+
isFixedPricePromotion(resource: any): resource is FixedPricePromotion;
|
89
|
+
relationship(id: string | ResourceId): FixedPricePromotionRel;
|
90
|
+
type(): string;
|
91
|
+
}
|
92
|
+
export default FixedPricePromotions;
|
93
|
+
export { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotionUpdate };
|
@@ -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.
|
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';
|
@@ -73,6 +73,7 @@ declare class FreeShippingPromotions extends ApiResource {
|
|
73
73
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
74
74
|
isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion;
|
75
75
|
relationship(id: string | ResourceId): FreeShippingPromotionRel;
|
76
|
+
type(): string;
|
76
77
|
}
|
77
78
|
export default FreeShippingPromotions;
|
78
79
|
export { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate };
|
@@ -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.
|
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';
|
@@ -19,6 +19,7 @@ declare class Geocoders extends ApiResource {
|
|
19
19
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Geocoder>>;
|
20
20
|
isGeocoder(resource: any): resource is Geocoder;
|
21
21
|
relationship(id: string | ResourceId): GeocoderRel;
|
22
|
+
type(): string;
|
22
23
|
}
|
23
24
|
export default Geocoders;
|
24
25
|
export { Geocoder };
|
@@ -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.
|
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';
|
@@ -40,6 +40,7 @@ declare class GiftCardRecipients extends ApiResource {
|
|
40
40
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
41
41
|
isGiftCardRecipient(resource: any): resource is GiftCardRecipient;
|
42
42
|
relationship(id: string | ResourceId): GiftCardRecipientRel;
|
43
|
+
type(): string;
|
43
44
|
}
|
44
45
|
export default GiftCardRecipients;
|
45
46
|
export { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate };
|
@@ -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.
|
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';
|
@@ -78,6 +78,7 @@ declare class GiftCards extends ApiResource {
|
|
78
78
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
79
79
|
isGiftCard(resource: any): resource is GiftCard;
|
80
80
|
relationship(id: string | ResourceId): GiftCardRel;
|
81
|
+
type(): string;
|
81
82
|
}
|
82
83
|
export default GiftCards;
|
83
84
|
export { GiftCard, GiftCardCreate, GiftCardUpdate };
|
@@ -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.
|
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';
|
@@ -31,6 +31,7 @@ declare class GoogleGeocoders extends ApiResource {
|
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isGoogleGeocoder(resource: any): resource is GoogleGeocoder;
|
33
33
|
relationship(id: string | ResourceId): GoogleGeocoderRel;
|
34
|
+
type(): string;
|
34
35
|
}
|
35
36
|
export default GoogleGeocoders;
|
36
37
|
export { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoderUpdate };
|
@@ -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.
|
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';
|
@@ -38,6 +38,7 @@ declare class Imports extends ApiResource {
|
|
38
38
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
39
|
isImport(resource: any): resource is Import;
|
40
40
|
relationship(id: string | ResourceId): ImportRel;
|
41
|
+
type(): string;
|
41
42
|
}
|
42
43
|
export default Imports;
|
43
44
|
export { Import, ImportCreate };
|
@@ -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.
|
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';
|
@@ -54,6 +54,7 @@ declare class InStockSubscriptions extends ApiResource {
|
|
54
54
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
55
55
|
isInStockSubscription(resource: any): resource is InStockSubscription;
|
56
56
|
relationship(id: string | ResourceId): InStockSubscriptionRel;
|
57
|
+
type(): string;
|
57
58
|
}
|
58
59
|
export default InStockSubscriptions;
|
59
60
|
export { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate };
|
@@ -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.
|
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';
|
@@ -37,6 +37,7 @@ declare class InventoryModels extends ApiResource {
|
|
37
37
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
38
|
isInventoryModel(resource: any): resource is InventoryModel;
|
39
39
|
relationship(id: string | ResourceId): InventoryModelRel;
|
40
|
+
type(): string;
|
40
41
|
}
|
41
42
|
export default InventoryModels;
|
42
43
|
export { InventoryModel, InventoryModelCreate, InventoryModelUpdate };
|
@@ -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.
|
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';
|
@@ -39,6 +39,7 @@ declare class InventoryReturnLocations extends ApiResource {
|
|
39
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
40
|
isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
|
41
41
|
relationship(id: string | ResourceId): InventoryReturnLocationRel;
|
42
|
+
type(): string;
|
42
43
|
}
|
43
44
|
export default InventoryReturnLocations;
|
44
45
|
export { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate };
|
@@ -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.
|
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';
|
@@ -42,6 +42,7 @@ declare class InventoryStockLocations extends ApiResource {
|
|
42
42
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
43
|
isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
|
44
44
|
relationship(id: string | ResourceId): InventoryStockLocationRel;
|
45
|
+
type(): string;
|
45
46
|
}
|
46
47
|
export default InventoryStockLocations;
|
47
48
|
export { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate };
|
@@ -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.
|
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';
|
@@ -53,6 +53,7 @@ declare class LineItemOptions extends ApiResource {
|
|
53
53
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
54
54
|
isLineItemOption(resource: any): resource is LineItemOption;
|
55
55
|
relationship(id: string | ResourceId): LineItemOptionRel;
|
56
|
+
type(): string;
|
56
57
|
}
|
57
58
|
export default LineItemOptions;
|
58
59
|
export { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate };
|
@@ -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.
|
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';
|
@@ -119,6 +119,7 @@ declare class LineItems extends ApiResource {
|
|
119
119
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
120
120
|
isLineItem(resource: any): resource is LineItem;
|
121
121
|
relationship(id: string | ResourceId): LineItemRel;
|
122
|
+
type(): string;
|
122
123
|
}
|
123
124
|
export default LineItems;
|
124
125
|
export { LineItem, LineItemCreate, LineItemUpdate };
|
@@ -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.
|
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';
|
@@ -30,6 +30,7 @@ declare class ManualGateways extends ApiResource {
|
|
30
30
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
31
31
|
isManualGateway(resource: any): resource is ManualGateway;
|
32
32
|
relationship(id: string | ResourceId): ManualGatewayRel;
|
33
|
+
type(): string;
|
33
34
|
}
|
34
35
|
export default ManualGateways;
|
35
36
|
export { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate };
|
@@ -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.
|
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';
|
@@ -43,6 +43,7 @@ declare class ManualTaxCalculators extends ApiResource {
|
|
43
43
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
44
|
isManualTaxCalculator(resource: any): resource is ManualTaxCalculator;
|
45
45
|
relationship(id: string | ResourceId): ManualTaxCalculatorRel;
|
46
|
+
type(): string;
|
46
47
|
}
|
47
48
|
export default ManualTaxCalculators;
|
48
49
|
export { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate };
|
@@ -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.
|
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';
|
@@ -73,6 +73,7 @@ declare class Markets extends ApiResource {
|
|
73
73
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
74
74
|
isMarket(resource: any): resource is Market;
|
75
75
|
relationship(id: string | ResourceId): MarketRel;
|
76
|
+
type(): string;
|
76
77
|
}
|
77
78
|
export default Markets;
|
78
79
|
export { Market, MarketCreate, MarketUpdate };
|
@@ -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.
|
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';
|
@@ -34,6 +34,7 @@ declare class Merchants extends ApiResource {
|
|
34
34
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
35
35
|
isMerchant(resource: any): resource is Merchant;
|
36
36
|
relationship(id: string | ResourceId): MerchantRel;
|
37
|
+
type(): string;
|
37
38
|
}
|
38
39
|
export default Merchants;
|
39
40
|
export { Merchant, MerchantCreate, MerchantUpdate };
|
@@ -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.
|
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';
|
@@ -46,6 +54,7 @@ declare class OrderAmountPromotionRules extends ApiResource {
|
|
46
54
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
47
55
|
isOrderAmountPromotionRule(resource: any): resource is OrderAmountPromotionRule;
|
48
56
|
relationship(id: string | ResourceId): OrderAmountPromotionRuleRel;
|
57
|
+
type(): string;
|
49
58
|
}
|
50
59
|
export default OrderAmountPromotionRules;
|
51
60
|
export { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate };
|