@commercelayer/sdk 4.7.5 → 4.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api.d.ts +1 -103
- package/lib/cjs/client.d.ts +1 -31
- package/lib/cjs/commercelayer.d.ts +1 -122
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/common.d.ts +1 -4
- package/lib/cjs/config.d.ts +1 -11
- package/lib/cjs/debug.d.ts +1 -3
- package/lib/cjs/error.d.ts +1 -26
- package/lib/cjs/index.d.ts +1 -7
- package/lib/cjs/interceptor.d.ts +1 -19
- package/lib/cjs/jsonapi.d.ts +1 -5
- package/lib/cjs/model.d.ts +1 -101
- package/lib/cjs/query.d.ts +1 -23
- package/lib/cjs/resource.d.ts +1 -76
- package/lib/cjs/resources/addresses.d.ts +1 -88
- package/lib/cjs/resources/adjustments.d.ts +1 -35
- package/lib/cjs/resources/adyen_gateways.d.ts +1 -47
- package/lib/cjs/resources/adyen_payments.d.ts +1 -44
- package/lib/cjs/resources/application.d.ts +1 -21
- package/lib/cjs/resources/attachments.d.ts +1 -156
- package/lib/cjs/resources/authorizations.d.ts +1 -57
- package/lib/cjs/resources/avalara_accounts.d.ts +1 -52
- package/lib/cjs/resources/billing_info_validation_rules.d.ts +1 -32
- package/lib/cjs/resources/bing_geocoders.d.ts +1 -35
- package/lib/cjs/resources/braintree_gateways.d.ts +1 -56
- package/lib/cjs/resources/braintree_payments.d.ts +1 -47
- package/lib/cjs/resources/bundles.d.ts +1 -74
- package/lib/cjs/resources/captures.d.ts +1 -48
- package/lib/cjs/resources/carrier_accounts.d.ts +1 -26
- package/lib/cjs/resources/checkout_com_gateways.d.ts +1 -45
- package/lib/cjs/resources/checkout_com_payments.d.ts +1 -51
- package/lib/cjs/resources/coupon_codes_promotion_rules.d.ts +1 -59
- package/lib/cjs/resources/coupon_recipients.d.ts +1 -44
- package/lib/cjs/resources/coupons.d.ts +1 -45
- package/lib/cjs/resources/customer_addresses.d.ts +1 -41
- package/lib/cjs/resources/customer_groups.d.ts +1 -36
- package/lib/cjs/resources/customer_password_resets.d.ts +1 -33
- package/lib/cjs/resources/customer_payment_sources.d.ts +1 -70
- package/lib/cjs/resources/customer_subscriptions.d.ts +1 -28
- package/lib/cjs/resources/customers.d.ts +1 -60
- package/lib/cjs/resources/delivery_lead_times.d.ts +1 -51
- package/lib/cjs/resources/event_callbacks.d.ts +1 -24
- package/lib/cjs/resources/external_gateways.d.ts +1 -49
- package/lib/cjs/resources/external_payments.d.ts +1 -43
- package/lib/cjs/resources/external_promotions.d.ts +1 -86
- package/lib/cjs/resources/external_tax_calculators.d.ts +1 -44
- package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -88
- package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -99
- package/lib/cjs/resources/free_gift_promotions.d.ts +1 -97
- package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -83
- package/lib/cjs/resources/geocoders.d.ts +1 -24
- package/lib/cjs/resources/gift_card_recipients.d.ts +1 -44
- package/lib/cjs/resources/gift_cards.d.ts +1 -82
- package/lib/cjs/resources/google_geocoders.d.ts +1 -35
- package/lib/cjs/resources/imports.d.ts +1 -40
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +1 -59
- package/lib/cjs/resources/inventory_models.d.ts +1 -42
- package/lib/cjs/resources/inventory_return_locations.d.ts +1 -43
- package/lib/cjs/resources/inventory_stock_locations.d.ts +1 -46
- package/lib/cjs/resources/klarna_gateways.d.ts +1 -44
- package/lib/cjs/resources/klarna_payments.d.ts +1 -41
- package/lib/cjs/resources/line_item_options.d.ts +1 -57
- package/lib/cjs/resources/line_items.d.ts +1 -125
- package/lib/cjs/resources/manual_gateways.d.ts +1 -33
- package/lib/cjs/resources/manual_tax_calculators.d.ts +1 -49
- package/lib/cjs/resources/markets.d.ts +1 -81
- package/lib/cjs/resources/merchants.d.ts +1 -38
- package/lib/cjs/resources/order_amount_promotion_rules.d.ts +1 -56
- package/lib/cjs/resources/order_copies.d.ts +1 -45
- package/lib/cjs/resources/order_subscriptions.d.ts +1 -67
- package/lib/cjs/resources/order_validation_rules.d.ts +1 -20
- package/lib/cjs/resources/orders.d.ts +1 -271
- package/lib/cjs/resources/organization.d.ts +1 -32
- package/lib/cjs/resources/packages.d.ts +1 -56
- package/lib/cjs/resources/parcel_line_items.d.ts +1 -49
- package/lib/cjs/resources/parcels.d.ts +1 -108
- package/lib/cjs/resources/payment_gateways.d.ts +1 -21
- package/lib/cjs/resources/payment_methods.d.ts +1 -59
- package/lib/cjs/resources/paypal_gateways.d.ts +1 -39
- package/lib/cjs/resources/paypal_payments.d.ts +1 -49
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -97
- package/lib/cjs/resources/price_lists.d.ts +1 -39
- package/lib/cjs/resources/prices.d.ts +1 -57
- package/lib/cjs/resources/promotion_rules.d.ts +1 -24
- package/lib/cjs/resources/promotions.d.ts +1 -41
- package/lib/cjs/resources/refunds.d.ts +1 -34
- package/lib/cjs/resources/return_line_items.d.ts +1 -49
- package/lib/cjs/resources/returns.d.ts +1 -72
- package/lib/cjs/resources/shipments.d.ts +1 -89
- package/lib/cjs/resources/shipping_categories.d.ts +1 -33
- package/lib/cjs/resources/shipping_methods.d.ts +1 -74
- package/lib/cjs/resources/shipping_zones.d.ts +1 -48
- package/lib/cjs/resources/sku_list_items.d.ts +1 -47
- package/lib/cjs/resources/sku_list_promotion_rules.d.ts +1 -68
- package/lib/cjs/resources/sku_lists.d.ts +1 -49
- package/lib/cjs/resources/sku_options.d.ts +1 -56
- package/lib/cjs/resources/skus.d.ts +1 -78
- package/lib/cjs/resources/stock_items.d.ts +1 -49
- package/lib/cjs/resources/stock_line_items.d.ts +1 -29
- package/lib/cjs/resources/stock_locations.d.ts +1 -57
- package/lib/cjs/resources/stock_transfers.d.ts +1 -71
- package/lib/cjs/resources/stripe_gateways.d.ts +1 -38
- package/lib/cjs/resources/stripe_payments.d.ts +1 -42
- package/lib/cjs/resources/tax_calculators.d.ts +1 -27
- package/lib/cjs/resources/tax_categories.d.ts +1 -59
- package/lib/cjs/resources/tax_rules.d.ts +1 -69
- package/lib/cjs/resources/taxjar_accounts.d.ts +1 -43
- package/lib/cjs/resources/transactions.d.ts +1 -31
- package/lib/cjs/resources/voids.d.ts +1 -34
- package/lib/cjs/resources/webhooks.d.ts +1 -42
- package/lib/cjs/resources/wire_transfers.d.ts +1 -32
- package/lib/cjs/static.d.ts +1 -6
- package/lib/cjs/static.js +1 -1
- package/lib/cjs/util.d.ts +1 -2
- package/lib/esm/api.d.ts +1 -103
- package/lib/esm/client.d.ts +1 -31
- package/lib/esm/commercelayer.d.ts +1 -122
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/common.d.ts +1 -4
- package/lib/esm/config.d.ts +1 -11
- package/lib/esm/debug.d.ts +1 -3
- package/lib/esm/error.d.ts +1 -26
- package/lib/esm/index.d.ts +1 -7
- package/lib/esm/interceptor.d.ts +1 -19
- package/lib/esm/jsonapi.d.ts +1 -5
- package/lib/esm/model.d.ts +1 -101
- package/lib/esm/query.d.ts +1 -23
- package/lib/esm/resource.d.ts +1 -76
- package/lib/esm/resources/addresses.d.ts +1 -88
- package/lib/esm/resources/adjustments.d.ts +1 -35
- package/lib/esm/resources/adyen_gateways.d.ts +1 -47
- package/lib/esm/resources/adyen_payments.d.ts +1 -44
- package/lib/esm/resources/application.d.ts +1 -21
- package/lib/esm/resources/attachments.d.ts +1 -156
- package/lib/esm/resources/authorizations.d.ts +1 -57
- package/lib/esm/resources/avalara_accounts.d.ts +1 -52
- package/lib/esm/resources/billing_info_validation_rules.d.ts +1 -32
- package/lib/esm/resources/bing_geocoders.d.ts +1 -35
- package/lib/esm/resources/braintree_gateways.d.ts +1 -56
- package/lib/esm/resources/braintree_payments.d.ts +1 -47
- package/lib/esm/resources/bundles.d.ts +1 -74
- package/lib/esm/resources/captures.d.ts +1 -48
- package/lib/esm/resources/carrier_accounts.d.ts +1 -26
- package/lib/esm/resources/checkout_com_gateways.d.ts +1 -45
- package/lib/esm/resources/checkout_com_payments.d.ts +1 -51
- package/lib/esm/resources/coupon_codes_promotion_rules.d.ts +1 -59
- package/lib/esm/resources/coupon_recipients.d.ts +1 -44
- package/lib/esm/resources/coupons.d.ts +1 -45
- package/lib/esm/resources/customer_addresses.d.ts +1 -41
- package/lib/esm/resources/customer_groups.d.ts +1 -36
- package/lib/esm/resources/customer_password_resets.d.ts +1 -33
- package/lib/esm/resources/customer_payment_sources.d.ts +1 -70
- package/lib/esm/resources/customer_subscriptions.d.ts +1 -28
- package/lib/esm/resources/customers.d.ts +1 -60
- package/lib/esm/resources/delivery_lead_times.d.ts +1 -51
- package/lib/esm/resources/event_callbacks.d.ts +1 -24
- package/lib/esm/resources/external_gateways.d.ts +1 -49
- package/lib/esm/resources/external_payments.d.ts +1 -43
- package/lib/esm/resources/external_promotions.d.ts +1 -86
- package/lib/esm/resources/external_tax_calculators.d.ts +1 -44
- package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -88
- package/lib/esm/resources/fixed_price_promotions.d.ts +1 -99
- package/lib/esm/resources/free_gift_promotions.d.ts +1 -97
- package/lib/esm/resources/free_shipping_promotions.d.ts +1 -83
- package/lib/esm/resources/geocoders.d.ts +1 -24
- package/lib/esm/resources/gift_card_recipients.d.ts +1 -44
- package/lib/esm/resources/gift_cards.d.ts +1 -82
- package/lib/esm/resources/google_geocoders.d.ts +1 -35
- package/lib/esm/resources/imports.d.ts +1 -40
- package/lib/esm/resources/in_stock_subscriptions.d.ts +1 -59
- package/lib/esm/resources/inventory_models.d.ts +1 -42
- package/lib/esm/resources/inventory_return_locations.d.ts +1 -43
- package/lib/esm/resources/inventory_stock_locations.d.ts +1 -46
- package/lib/esm/resources/klarna_gateways.d.ts +1 -44
- package/lib/esm/resources/klarna_payments.d.ts +1 -41
- package/lib/esm/resources/line_item_options.d.ts +1 -57
- package/lib/esm/resources/line_items.d.ts +1 -125
- package/lib/esm/resources/manual_gateways.d.ts +1 -33
- package/lib/esm/resources/manual_tax_calculators.d.ts +1 -49
- package/lib/esm/resources/markets.d.ts +1 -81
- package/lib/esm/resources/merchants.d.ts +1 -38
- package/lib/esm/resources/order_amount_promotion_rules.d.ts +1 -56
- package/lib/esm/resources/order_copies.d.ts +1 -45
- package/lib/esm/resources/order_subscriptions.d.ts +1 -67
- package/lib/esm/resources/order_validation_rules.d.ts +1 -20
- package/lib/esm/resources/orders.d.ts +1 -271
- package/lib/esm/resources/organization.d.ts +1 -32
- package/lib/esm/resources/packages.d.ts +1 -56
- package/lib/esm/resources/parcel_line_items.d.ts +1 -49
- package/lib/esm/resources/parcels.d.ts +1 -108
- package/lib/esm/resources/payment_gateways.d.ts +1 -21
- package/lib/esm/resources/payment_methods.d.ts +1 -59
- package/lib/esm/resources/paypal_gateways.d.ts +1 -39
- package/lib/esm/resources/paypal_payments.d.ts +1 -49
- package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -97
- package/lib/esm/resources/price_lists.d.ts +1 -39
- package/lib/esm/resources/prices.d.ts +1 -57
- package/lib/esm/resources/promotion_rules.d.ts +1 -24
- package/lib/esm/resources/promotions.d.ts +1 -41
- package/lib/esm/resources/refunds.d.ts +1 -34
- package/lib/esm/resources/return_line_items.d.ts +1 -49
- package/lib/esm/resources/returns.d.ts +1 -72
- package/lib/esm/resources/shipments.d.ts +1 -89
- package/lib/esm/resources/shipping_categories.d.ts +1 -33
- package/lib/esm/resources/shipping_methods.d.ts +1 -74
- package/lib/esm/resources/shipping_zones.d.ts +1 -48
- package/lib/esm/resources/sku_list_items.d.ts +1 -47
- package/lib/esm/resources/sku_list_promotion_rules.d.ts +1 -68
- package/lib/esm/resources/sku_lists.d.ts +1 -49
- package/lib/esm/resources/sku_options.d.ts +1 -56
- package/lib/esm/resources/skus.d.ts +1 -78
- package/lib/esm/resources/stock_items.d.ts +1 -49
- package/lib/esm/resources/stock_line_items.d.ts +1 -29
- package/lib/esm/resources/stock_locations.d.ts +1 -57
- package/lib/esm/resources/stock_transfers.d.ts +1 -71
- package/lib/esm/resources/stripe_gateways.d.ts +1 -38
- package/lib/esm/resources/stripe_payments.d.ts +1 -42
- package/lib/esm/resources/tax_calculators.d.ts +1 -27
- package/lib/esm/resources/tax_categories.d.ts +1 -59
- package/lib/esm/resources/tax_rules.d.ts +1 -69
- package/lib/esm/resources/taxjar_accounts.d.ts +1 -43
- package/lib/esm/resources/transactions.d.ts +1 -31
- package/lib/esm/resources/voids.d.ts +1 -34
- package/lib/esm/resources/webhooks.d.ts +1 -42
- package/lib/esm/resources/wire_transfers.d.ts +1 -32
- package/lib/esm/static.d.ts +1 -6
- package/lib/esm/static.js +1 -1
- package/lib/esm/util.d.ts +1 -2
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
@@ -1,51 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { StockLocation } from './stock_locations';
|
4
|
-
import type { ShippingMethod } from './shipping_methods';
|
5
|
-
import type { Attachment } from './attachments';
|
6
|
-
declare type DeliveryLeadTimeRel = ResourceRel & {
|
7
|
-
type: typeof DeliveryLeadTimes.TYPE;
|
8
|
-
};
|
9
|
-
declare type StockLocationRel = ResourceRel & {
|
10
|
-
type: 'stock_locations';
|
11
|
-
};
|
12
|
-
declare type ShippingMethodRel = ResourceRel & {
|
13
|
-
type: 'shipping_methods';
|
14
|
-
};
|
15
|
-
interface DeliveryLeadTime extends Resource {
|
16
|
-
min_hours?: number;
|
17
|
-
max_hours?: number;
|
18
|
-
min_days?: number;
|
19
|
-
max_days?: number;
|
20
|
-
stock_location?: StockLocation;
|
21
|
-
shipping_method?: ShippingMethod;
|
22
|
-
attachments?: Attachment[];
|
23
|
-
}
|
24
|
-
interface DeliveryLeadTimeCreate extends ResourceCreate {
|
25
|
-
min_hours: number;
|
26
|
-
max_hours: number;
|
27
|
-
stock_location: StockLocationRel;
|
28
|
-
shipping_method: ShippingMethodRel;
|
29
|
-
}
|
30
|
-
interface DeliveryLeadTimeUpdate extends ResourceUpdate {
|
31
|
-
min_hours?: number;
|
32
|
-
max_hours?: number;
|
33
|
-
stock_location?: StockLocationRel;
|
34
|
-
shipping_method?: ShippingMethodRel;
|
35
|
-
}
|
36
|
-
declare class DeliveryLeadTimes extends ApiResource {
|
37
|
-
static readonly TYPE: 'delivery_lead_times';
|
38
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
|
39
|
-
create(resource: DeliveryLeadTimeCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
40
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
41
|
-
update(resource: DeliveryLeadTimeUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
42
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
|
-
stock_location(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
44
|
-
shipping_method(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethod>;
|
45
|
-
attachments(deliveryLeadTimeId: string | DeliveryLeadTime, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
46
|
-
isDeliveryLeadTime(resource: any): resource is DeliveryLeadTime;
|
47
|
-
relationship(id: string | ResourceId | null): DeliveryLeadTimeRel;
|
48
|
-
type(): string;
|
49
|
-
}
|
50
|
-
export default DeliveryLeadTimes;
|
51
|
-
export { DeliveryLeadTime, DeliveryLeadTimeCreate, DeliveryLeadTimeUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{StockLocation}from'./stock_locations';import type{ShippingMethod}from'./shipping_methods';import type{Attachment}from'./attachments';declare type DeliveryLeadTimeRel=ResourceRel&{type:typeof DeliveryLeadTimes.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type ShippingMethodRel=ResourceRel&{type:'shipping_methods';};interface DeliveryLeadTime extends Resource{min_hours?:number;max_hours?:number;min_days?:number;max_days?:number;stock_location?:StockLocation;shipping_method?:ShippingMethod;attachments?:Attachment[];}interface DeliveryLeadTimeCreate extends ResourceCreate{min_hours:number;max_hours:number;stock_location:StockLocationRel;shipping_method:ShippingMethodRel;}interface DeliveryLeadTimeUpdate extends ResourceUpdate{min_hours?:number;max_hours?:number;stock_location?:StockLocationRel;shipping_method?:ShippingMethodRel;}declare class DeliveryLeadTimes extends ApiResource{static readonly TYPE:'delivery_lead_times';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<DeliveryLeadTime>>;create(resource:DeliveryLeadTimeCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;update(resource:DeliveryLeadTimeUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<DeliveryLeadTime>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(deliveryLeadTimeId:string|DeliveryLeadTime,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipping_method(deliveryLeadTimeId:string|DeliveryLeadTime,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingMethod>;attachments(deliveryLeadTimeId:string|DeliveryLeadTime,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isDeliveryLeadTime(resource:any):resource is DeliveryLeadTime;relationship(id:string|ResourceId|null):DeliveryLeadTimeRel;type():string;}export default DeliveryLeadTimes;export{DeliveryLeadTime,DeliveryLeadTimeCreate,DeliveryLeadTimeUpdate};
|
@@ -1,24 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Webhook } from './webhooks';
|
4
|
-
declare type EventCallbackRel = ResourceRel & {
|
5
|
-
type: typeof EventCallbacks.TYPE;
|
6
|
-
};
|
7
|
-
interface EventCallback extends Resource {
|
8
|
-
callback_url?: string;
|
9
|
-
payload?: object;
|
10
|
-
response_code?: string;
|
11
|
-
response_message?: string;
|
12
|
-
webhook?: Webhook;
|
13
|
-
}
|
14
|
-
declare class EventCallbacks extends ApiResource {
|
15
|
-
static readonly TYPE: 'event_callbacks';
|
16
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>;
|
17
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<EventCallback>;
|
18
|
-
webhook(eventCallbackId: string | EventCallback, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Webhook>;
|
19
|
-
isEventCallback(resource: any): resource is EventCallback;
|
20
|
-
relationship(id: string | ResourceId | null): EventCallbackRel;
|
21
|
-
type(): string;
|
22
|
-
}
|
23
|
-
export default EventCallbacks;
|
24
|
-
export { EventCallback };
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Webhook}from'./webhooks';declare type EventCallbackRel=ResourceRel&{type:typeof EventCallbacks.TYPE;};interface EventCallback extends Resource{callback_url?:string;payload?:object;response_code?:string;response_message?:string;webhook?:Webhook;}declare class EventCallbacks extends ApiResource{static readonly TYPE:'event_callbacks';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<EventCallback>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<EventCallback>;webhook(eventCallbackId:string|EventCallback,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Webhook>;isEventCallback(resource:any):resource is EventCallback;relationship(id:string|ResourceId|null):EventCallbackRel;type():string;}export default EventCallbacks;export{EventCallback};
|
@@ -1,49 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PaymentMethod } from './payment_methods';
|
4
|
-
import type { ExternalPayment } from './external_payments';
|
5
|
-
declare type ExternalGatewayRel = ResourceRel & {
|
6
|
-
type: typeof ExternalGateways.TYPE;
|
7
|
-
};
|
8
|
-
interface ExternalGateway extends Resource {
|
9
|
-
name?: string;
|
10
|
-
shared_secret?: string;
|
11
|
-
authorize_url?: string;
|
12
|
-
capture_url?: string;
|
13
|
-
void_url?: string;
|
14
|
-
refund_url?: string;
|
15
|
-
token_url?: string;
|
16
|
-
payment_methods?: PaymentMethod[];
|
17
|
-
external_payments?: ExternalPayment[];
|
18
|
-
}
|
19
|
-
interface ExternalGatewayCreate extends ResourceCreate {
|
20
|
-
name: string;
|
21
|
-
authorize_url?: string;
|
22
|
-
capture_url?: string;
|
23
|
-
void_url?: string;
|
24
|
-
refund_url?: string;
|
25
|
-
token_url?: string;
|
26
|
-
}
|
27
|
-
interface ExternalGatewayUpdate extends ResourceUpdate {
|
28
|
-
name?: string;
|
29
|
-
authorize_url?: string;
|
30
|
-
capture_url?: string;
|
31
|
-
void_url?: string;
|
32
|
-
refund_url?: string;
|
33
|
-
token_url?: string;
|
34
|
-
}
|
35
|
-
declare class ExternalGateways extends ApiResource {
|
36
|
-
static readonly TYPE: 'external_gateways';
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalGateway>>;
|
38
|
-
create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
39
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
40
|
-
update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
41
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
|
-
payment_methods(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
43
|
-
external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
|
44
|
-
isExternalGateway(resource: any): resource is ExternalGateway;
|
45
|
-
relationship(id: string | ResourceId | null): ExternalGatewayRel;
|
46
|
-
type(): string;
|
47
|
-
}
|
48
|
-
export default ExternalGateways;
|
49
|
-
export { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';import type{ExternalPayment}from'./external_payments';declare type ExternalGatewayRel=ResourceRel&{type:typeof ExternalGateways.TYPE;};interface ExternalGateway extends Resource{name?:string;shared_secret?:string;authorize_url?:string;capture_url?:string;void_url?:string;refund_url?:string;token_url?:string;payment_methods?:PaymentMethod[];external_payments?:ExternalPayment[];}interface ExternalGatewayCreate extends ResourceCreate{name:string;authorize_url?:string;capture_url?:string;void_url?:string;refund_url?:string;token_url?:string;}interface ExternalGatewayUpdate extends ResourceUpdate{name?:string;authorize_url?:string;capture_url?:string;void_url?:string;refund_url?:string;token_url?:string;}declare class ExternalGateways extends ApiResource{static readonly TYPE:'external_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalGateway>>;create(resource:ExternalGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalGateway>;update(resource:ExternalGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(externalGatewayId:string|ExternalGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;external_payments(externalGatewayId:string|ExternalGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPayment>>;isExternalGateway(resource:any):resource is ExternalGateway;relationship(id:string|ResourceId|null):ExternalGatewayRel;type():string;}export default ExternalGateways;export{ExternalGateway,ExternalGatewayCreate,ExternalGatewayUpdate};
|
@@ -1,43 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { PaymentGateway } from './payment_gateways';
|
5
|
-
import type { CustomerPaymentSource } from './customer_payment_sources';
|
6
|
-
declare type ExternalPaymentRel = ResourceRel & {
|
7
|
-
type: typeof ExternalPayments.TYPE;
|
8
|
-
};
|
9
|
-
declare type OrderRel = ResourceRel & {
|
10
|
-
type: 'orders';
|
11
|
-
};
|
12
|
-
interface ExternalPayment extends Resource {
|
13
|
-
payment_source_token?: string;
|
14
|
-
options?: object;
|
15
|
-
order?: Order;
|
16
|
-
payment_gateway?: PaymentGateway;
|
17
|
-
wallet?: CustomerPaymentSource;
|
18
|
-
}
|
19
|
-
interface ExternalPaymentCreate extends ResourceCreate {
|
20
|
-
payment_source_token: string;
|
21
|
-
options?: object;
|
22
|
-
order: OrderRel;
|
23
|
-
}
|
24
|
-
interface ExternalPaymentUpdate extends ResourceUpdate {
|
25
|
-
options?: object;
|
26
|
-
order?: OrderRel;
|
27
|
-
}
|
28
|
-
declare class ExternalPayments extends ApiResource {
|
29
|
-
static readonly TYPE: 'external_payments';
|
30
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
|
31
|
-
create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
32
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
33
|
-
update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
34
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
35
|
-
order(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
36
|
-
payment_gateway(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
37
|
-
wallet(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
38
|
-
isExternalPayment(resource: any): resource is ExternalPayment;
|
39
|
-
relationship(id: string | ResourceId | null): ExternalPaymentRel;
|
40
|
-
type(): string;
|
41
|
-
}
|
42
|
-
export default ExternalPayments;
|
43
|
-
export { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{PaymentGateway}from'./payment_gateways';import type{CustomerPaymentSource}from'./customer_payment_sources';declare type ExternalPaymentRel=ResourceRel&{type:typeof ExternalPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface ExternalPayment extends Resource{payment_source_token?:string;options?:object;order?:Order;payment_gateway?:PaymentGateway;wallet?:CustomerPaymentSource;}interface ExternalPaymentCreate extends ResourceCreate{payment_source_token:string;options?:object;order:OrderRel;}interface ExternalPaymentUpdate extends ResourceUpdate{options?:object;order?:OrderRel;}declare class ExternalPayments extends ApiResource{static readonly TYPE:'external_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPayment>>;create(resource:ExternalPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPayment>;update(resource:ExternalPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(externalPaymentId:string|ExternalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(externalPaymentId:string|ExternalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;wallet(externalPaymentId:string|ExternalPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerPaymentSource>;isExternalPayment(resource:any):resource is ExternalPayment;relationship(id:string|ResourceId|null):ExternalPaymentRel;type():string;}export default ExternalPayments;export{ExternalPayment,ExternalPaymentCreate,ExternalPaymentUpdate};
|
@@ -1,86 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { PromotionRule } from './promotion_rules';
|
5
|
-
import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
|
-
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
|
-
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
-
import type { Attachment } from './attachments';
|
9
|
-
declare type ExternalPromotionRel = ResourceRel & {
|
10
|
-
type: typeof ExternalPromotions.TYPE;
|
11
|
-
};
|
12
|
-
declare type MarketRel = ResourceRel & {
|
13
|
-
type: 'markets';
|
14
|
-
};
|
15
|
-
declare type PromotionRuleRel = ResourceRel & {
|
16
|
-
type: 'promotion_rules';
|
17
|
-
};
|
18
|
-
declare type OrderAmountPromotionRuleRel = ResourceRel & {
|
19
|
-
type: 'order_amount_promotion_rules';
|
20
|
-
};
|
21
|
-
declare type SkuListPromotionRuleRel = ResourceRel & {
|
22
|
-
type: 'sku_list_promotion_rules';
|
23
|
-
};
|
24
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
25
|
-
type: 'coupon_codes_promotion_rules';
|
26
|
-
};
|
27
|
-
interface ExternalPromotion extends Resource {
|
28
|
-
name?: string;
|
29
|
-
currency_code?: string;
|
30
|
-
starts_at?: string;
|
31
|
-
expires_at?: string;
|
32
|
-
total_usage_limit?: number;
|
33
|
-
total_usage_count?: number;
|
34
|
-
active?: boolean;
|
35
|
-
promotion_url?: string;
|
36
|
-
market?: Market;
|
37
|
-
promotion_rules?: PromotionRule[];
|
38
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
39
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
40
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
41
|
-
attachments?: Attachment[];
|
42
|
-
}
|
43
|
-
interface ExternalPromotionCreate extends ResourceCreate {
|
44
|
-
name: string;
|
45
|
-
currency_code?: string;
|
46
|
-
starts_at: string;
|
47
|
-
expires_at: string;
|
48
|
-
total_usage_limit: number;
|
49
|
-
promotion_url: string;
|
50
|
-
market?: MarketRel;
|
51
|
-
promotion_rules?: PromotionRuleRel[];
|
52
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
53
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
54
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
55
|
-
}
|
56
|
-
interface ExternalPromotionUpdate extends ResourceUpdate {
|
57
|
-
name?: string;
|
58
|
-
currency_code?: string;
|
59
|
-
starts_at?: string;
|
60
|
-
expires_at?: string;
|
61
|
-
total_usage_limit?: number;
|
62
|
-
promotion_url?: string;
|
63
|
-
market?: MarketRel;
|
64
|
-
promotion_rules?: PromotionRuleRel[];
|
65
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
66
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
67
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
68
|
-
}
|
69
|
-
declare class ExternalPromotions extends ApiResource {
|
70
|
-
static readonly TYPE: 'external_promotions';
|
71
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPromotion>>;
|
72
|
-
create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
73
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
74
|
-
update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
75
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
76
|
-
market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
77
|
-
order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
78
|
-
sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
79
|
-
coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
80
|
-
attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
81
|
-
isExternalPromotion(resource: any): resource is ExternalPromotion;
|
82
|
-
relationship(id: string | ResourceId | null): ExternalPromotionRel;
|
83
|
-
type(): string;
|
84
|
-
}
|
85
|
-
export default ExternalPromotions;
|
86
|
-
export { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';declare type ExternalPromotionRel=ResourceRel&{type:typeof ExternalPromotions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PromotionRuleRel=ResourceRel&{type:'promotion_rules';};declare type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};declare type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};interface ExternalPromotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;promotion_url?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];}interface ExternalPromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;promotion_url:string;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}interface ExternalPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;promotion_url?:string;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}declare class ExternalPromotions extends ApiResource{static readonly TYPE:'external_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPromotion>>;create(resource:ExternalPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;update(resource:ExternalPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isExternalPromotion(resource:any):resource is ExternalPromotion;relationship(id:string|ResourceId|null):ExternalPromotionRel;type():string;}export default ExternalPromotions;export{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate};
|
@@ -1,44 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { TaxCategory } from './tax_categories';
|
4
|
-
import type { Market } from './markets';
|
5
|
-
import type { Attachment } from './attachments';
|
6
|
-
declare type ExternalTaxCalculatorRel = ResourceRel & {
|
7
|
-
type: typeof ExternalTaxCalculators.TYPE;
|
8
|
-
};
|
9
|
-
declare type TaxCategoryRel = ResourceRel & {
|
10
|
-
type: 'tax_categories';
|
11
|
-
};
|
12
|
-
interface ExternalTaxCalculator extends Resource {
|
13
|
-
name?: string;
|
14
|
-
tax_calculator_url?: string;
|
15
|
-
tax_categories?: TaxCategory[];
|
16
|
-
markets?: Market[];
|
17
|
-
attachments?: Attachment[];
|
18
|
-
}
|
19
|
-
interface ExternalTaxCalculatorCreate extends ResourceCreate {
|
20
|
-
name: string;
|
21
|
-
tax_calculator_url: string;
|
22
|
-
tax_categories?: TaxCategoryRel[];
|
23
|
-
}
|
24
|
-
interface ExternalTaxCalculatorUpdate extends ResourceUpdate {
|
25
|
-
name?: string;
|
26
|
-
tax_calculator_url?: string;
|
27
|
-
tax_categories?: TaxCategoryRel[];
|
28
|
-
}
|
29
|
-
declare class ExternalTaxCalculators extends ApiResource {
|
30
|
-
static readonly TYPE: 'external_tax_calculators';
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalTaxCalculator>>;
|
32
|
-
create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
33
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
34
|
-
update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
35
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
|
-
tax_categories(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
37
|
-
markets(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
38
|
-
attachments(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
39
|
-
isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator;
|
40
|
-
relationship(id: string | ResourceId | null): ExternalTaxCalculatorRel;
|
41
|
-
type(): string;
|
42
|
-
}
|
43
|
-
export default ExternalTaxCalculators;
|
44
|
-
export { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{TaxCategory}from'./tax_categories';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type ExternalTaxCalculatorRel=ResourceRel&{type:typeof ExternalTaxCalculators.TYPE;};declare type TaxCategoryRel=ResourceRel&{type:'tax_categories';};interface ExternalTaxCalculator extends Resource{name?:string;tax_calculator_url?:string;tax_categories?:TaxCategory[];markets?:Market[];attachments?:Attachment[];}interface ExternalTaxCalculatorCreate extends ResourceCreate{name:string;tax_calculator_url:string;tax_categories?:TaxCategoryRel[];}interface ExternalTaxCalculatorUpdate extends ResourceUpdate{name?:string;tax_calculator_url?:string;tax_categories?:TaxCategoryRel[];}declare class ExternalTaxCalculators extends ApiResource{static readonly TYPE:'external_tax_calculators';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalTaxCalculator>>;create(resource:ExternalTaxCalculatorCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalTaxCalculator>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalTaxCalculator>;update(resource:ExternalTaxCalculatorUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalTaxCalculator>;delete(id:string,options?:ResourcesConfig):Promise<void>;tax_categories(externalTaxCalculatorId:string|ExternalTaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;markets(externalTaxCalculatorId:string|ExternalTaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(externalTaxCalculatorId:string|ExternalTaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isExternalTaxCalculator(resource:any):resource is ExternalTaxCalculator;relationship(id:string|ResourceId|null):ExternalTaxCalculatorRel;type():string;}export default ExternalTaxCalculators;export{ExternalTaxCalculator,ExternalTaxCalculatorCreate,ExternalTaxCalculatorUpdate};
|
@@ -1,88 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { PromotionRule } from './promotion_rules';
|
5
|
-
import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
|
-
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
|
-
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
-
import type { Attachment } from './attachments';
|
9
|
-
declare type FixedAmountPromotionRel = ResourceRel & {
|
10
|
-
type: typeof FixedAmountPromotions.TYPE;
|
11
|
-
};
|
12
|
-
declare type MarketRel = ResourceRel & {
|
13
|
-
type: 'markets';
|
14
|
-
};
|
15
|
-
declare type PromotionRuleRel = ResourceRel & {
|
16
|
-
type: 'promotion_rules';
|
17
|
-
};
|
18
|
-
declare type OrderAmountPromotionRuleRel = ResourceRel & {
|
19
|
-
type: 'order_amount_promotion_rules';
|
20
|
-
};
|
21
|
-
declare type SkuListPromotionRuleRel = ResourceRel & {
|
22
|
-
type: 'sku_list_promotion_rules';
|
23
|
-
};
|
24
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
25
|
-
type: 'coupon_codes_promotion_rules';
|
26
|
-
};
|
27
|
-
interface FixedAmountPromotion extends Resource {
|
28
|
-
name?: string;
|
29
|
-
currency_code?: string;
|
30
|
-
starts_at?: string;
|
31
|
-
expires_at?: string;
|
32
|
-
total_usage_limit?: number;
|
33
|
-
total_usage_count?: number;
|
34
|
-
active?: boolean;
|
35
|
-
fixed_amount_cents?: number;
|
36
|
-
fixed_amount_float?: number;
|
37
|
-
formatted_fixed_amount?: string;
|
38
|
-
market?: Market;
|
39
|
-
promotion_rules?: PromotionRule[];
|
40
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
41
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
42
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
43
|
-
attachments?: Attachment[];
|
44
|
-
}
|
45
|
-
interface FixedAmountPromotionCreate extends ResourceCreate {
|
46
|
-
name: string;
|
47
|
-
currency_code?: string;
|
48
|
-
starts_at: string;
|
49
|
-
expires_at: string;
|
50
|
-
total_usage_limit: number;
|
51
|
-
fixed_amount_cents: number;
|
52
|
-
market?: MarketRel;
|
53
|
-
promotion_rules?: PromotionRuleRel[];
|
54
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
55
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
56
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
57
|
-
}
|
58
|
-
interface FixedAmountPromotionUpdate extends ResourceUpdate {
|
59
|
-
name?: string;
|
60
|
-
currency_code?: string;
|
61
|
-
starts_at?: string;
|
62
|
-
expires_at?: string;
|
63
|
-
total_usage_limit?: number;
|
64
|
-
fixed_amount_cents?: number;
|
65
|
-
market?: MarketRel;
|
66
|
-
promotion_rules?: PromotionRuleRel[];
|
67
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
68
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
69
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
70
|
-
}
|
71
|
-
declare class FixedAmountPromotions extends ApiResource {
|
72
|
-
static readonly TYPE: 'fixed_amount_promotions';
|
73
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedAmountPromotion>>;
|
74
|
-
create(resource: FixedAmountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
75
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
76
|
-
update(resource: FixedAmountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
77
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
78
|
-
market(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
79
|
-
order_amount_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
80
|
-
sku_list_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
81
|
-
coupon_codes_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
82
|
-
attachments(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
83
|
-
isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion;
|
84
|
-
relationship(id: string | ResourceId | null): FixedAmountPromotionRel;
|
85
|
-
type(): string;
|
86
|
-
}
|
87
|
-
export default FixedAmountPromotions;
|
88
|
-
export { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';declare type FixedAmountPromotionRel=ResourceRel&{type:typeof FixedAmountPromotions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PromotionRuleRel=ResourceRel&{type:'promotion_rules';};declare type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};declare type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};interface FixedAmountPromotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;fixed_amount_cents?:number;fixed_amount_float?:number;formatted_fixed_amount?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];}interface FixedAmountPromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;fixed_amount_cents:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}interface FixedAmountPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;fixed_amount_cents?:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;}declare class FixedAmountPromotions extends ApiResource{static readonly TYPE:'fixed_amount_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FixedAmountPromotion>>;create(resource:FixedAmountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;update(resource:FixedAmountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isFixedAmountPromotion(resource:any):resource is FixedAmountPromotion;relationship(id:string|ResourceId|null):FixedAmountPromotionRel;type():string;}export default FixedAmountPromotions;export{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate};
|
@@ -1,99 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { PromotionRule } from './promotion_rules';
|
5
|
-
import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
6
|
-
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
|
-
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
|
-
import type { Attachment } from './attachments';
|
9
|
-
import type { SkuList } from './sku_lists';
|
10
|
-
import type { Sku } from './skus';
|
11
|
-
declare type FixedPricePromotionRel = ResourceRel & {
|
12
|
-
type: typeof FixedPricePromotions.TYPE;
|
13
|
-
};
|
14
|
-
declare type MarketRel = ResourceRel & {
|
15
|
-
type: 'markets';
|
16
|
-
};
|
17
|
-
declare type PromotionRuleRel = ResourceRel & {
|
18
|
-
type: 'promotion_rules';
|
19
|
-
};
|
20
|
-
declare type OrderAmountPromotionRuleRel = ResourceRel & {
|
21
|
-
type: 'order_amount_promotion_rules';
|
22
|
-
};
|
23
|
-
declare type SkuListPromotionRuleRel = ResourceRel & {
|
24
|
-
type: 'sku_list_promotion_rules';
|
25
|
-
};
|
26
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
27
|
-
type: 'coupon_codes_promotion_rules';
|
28
|
-
};
|
29
|
-
declare type SkuListRel = ResourceRel & {
|
30
|
-
type: 'sku_lists';
|
31
|
-
};
|
32
|
-
interface FixedPricePromotion extends Resource {
|
33
|
-
name?: string;
|
34
|
-
currency_code?: string;
|
35
|
-
starts_at?: string;
|
36
|
-
expires_at?: string;
|
37
|
-
total_usage_limit?: number;
|
38
|
-
total_usage_count?: number;
|
39
|
-
active?: boolean;
|
40
|
-
fixed_amount_cents?: number;
|
41
|
-
fixed_amount_float?: number;
|
42
|
-
formatted_fixed_amount?: string;
|
43
|
-
market?: Market;
|
44
|
-
promotion_rules?: PromotionRule[];
|
45
|
-
order_amount_promotion_rule?: OrderAmountPromotionRule;
|
46
|
-
sku_list_promotion_rule?: SkuListPromotionRule;
|
47
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
48
|
-
attachments?: Attachment[];
|
49
|
-
sku_list?: SkuList;
|
50
|
-
skus?: Sku[];
|
51
|
-
}
|
52
|
-
interface FixedPricePromotionCreate extends ResourceCreate {
|
53
|
-
name: string;
|
54
|
-
currency_code?: string;
|
55
|
-
starts_at: string;
|
56
|
-
expires_at: string;
|
57
|
-
total_usage_limit: number;
|
58
|
-
fixed_amount_cents: 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 FixedPricePromotionUpdate extends ResourceUpdate {
|
67
|
-
name?: string;
|
68
|
-
currency_code?: string;
|
69
|
-
starts_at?: string;
|
70
|
-
expires_at?: string;
|
71
|
-
total_usage_limit?: number;
|
72
|
-
fixed_amount_cents?: number;
|
73
|
-
market?: MarketRel;
|
74
|
-
promotion_rules?: PromotionRuleRel[];
|
75
|
-
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
76
|
-
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
77
|
-
coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel;
|
78
|
-
sku_list?: SkuListRel;
|
79
|
-
}
|
80
|
-
declare class FixedPricePromotions extends ApiResource {
|
81
|
-
static readonly TYPE: 'fixed_price_promotions';
|
82
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedPricePromotion>>;
|
83
|
-
create(resource: FixedPricePromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
84
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
85
|
-
update(resource: FixedPricePromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
86
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
87
|
-
market(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
88
|
-
order_amount_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderAmountPromotionRule>;
|
89
|
-
sku_list_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
90
|
-
coupon_codes_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
91
|
-
attachments(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
92
|
-
sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
93
|
-
skus(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
94
|
-
isFixedPricePromotion(resource: any): resource is FixedPricePromotion;
|
95
|
-
relationship(id: string | ResourceId | null): FixedPricePromotionRel;
|
96
|
-
type(): string;
|
97
|
-
}
|
98
|
-
export default FixedPricePromotions;
|
99
|
-
export { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotionUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{Attachment}from'./attachments';import type{SkuList}from'./sku_lists';import type{Sku}from'./skus';declare type FixedPricePromotionRel=ResourceRel&{type:typeof FixedPricePromotions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type PromotionRuleRel=ResourceRel&{type:'promotion_rules';};declare type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};declare type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};declare type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};declare type SkuListRel=ResourceRel&{type:'sku_lists';};interface FixedPricePromotion extends Resource{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;fixed_amount_cents?:number;fixed_amount_float?:number;formatted_fixed_amount?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;attachments?:Attachment[];sku_list?:SkuList;skus?:Sku[];}interface FixedPricePromotionCreate extends ResourceCreate{name:string;currency_code?:string;starts_at:string;expires_at:string;total_usage_limit:number;fixed_amount_cents:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;sku_list:SkuListRel;}interface FixedPricePromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;starts_at?:string;expires_at?:string;total_usage_limit?:number;fixed_amount_cents?:number;market?:MarketRel;promotion_rules?:PromotionRuleRel[];order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;sku_list?:SkuListRel;}declare class FixedPricePromotions extends ApiResource{static readonly TYPE:'fixed_price_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FixedPricePromotion>>;create(resource:FixedPricePromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;update(resource:FixedPricePromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;attachments(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;sku_list(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFixedPricePromotion(resource:any):resource is FixedPricePromotion;relationship(id:string|ResourceId|null):FixedPricePromotionRel;type():string;}export default FixedPricePromotions;export{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate};
|