@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,52 +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 AvalaraAccountRel = ResourceRel & {
|
7
|
-
type: typeof AvalaraAccounts.TYPE;
|
8
|
-
};
|
9
|
-
declare type TaxCategoryRel = ResourceRel & {
|
10
|
-
type: 'tax_categories';
|
11
|
-
};
|
12
|
-
interface AvalaraAccount extends Resource {
|
13
|
-
name?: string;
|
14
|
-
username?: string;
|
15
|
-
company_code?: string;
|
16
|
-
ddp?: string;
|
17
|
-
tax_categories?: TaxCategory[];
|
18
|
-
markets?: Market[];
|
19
|
-
attachments?: Attachment[];
|
20
|
-
}
|
21
|
-
interface AvalaraAccountCreate extends ResourceCreate {
|
22
|
-
name: string;
|
23
|
-
username: string;
|
24
|
-
password: string;
|
25
|
-
company_code: string;
|
26
|
-
ddp?: string;
|
27
|
-
tax_categories?: TaxCategoryRel[];
|
28
|
-
}
|
29
|
-
interface AvalaraAccountUpdate extends ResourceUpdate {
|
30
|
-
name?: string;
|
31
|
-
username?: string;
|
32
|
-
password?: string;
|
33
|
-
company_code?: string;
|
34
|
-
ddp?: string;
|
35
|
-
tax_categories?: TaxCategoryRel[];
|
36
|
-
}
|
37
|
-
declare class AvalaraAccounts extends ApiResource {
|
38
|
-
static readonly TYPE: 'avalara_accounts';
|
39
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AvalaraAccount>>;
|
40
|
-
create(resource: AvalaraAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
41
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
42
|
-
update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
43
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
|
-
tax_categories(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
45
|
-
markets(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
46
|
-
attachments(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
47
|
-
isAvalaraAccount(resource: any): resource is AvalaraAccount;
|
48
|
-
relationship(id: string | ResourceId | null): AvalaraAccountRel;
|
49
|
-
type(): string;
|
50
|
-
}
|
51
|
-
export default AvalaraAccounts;
|
52
|
-
export { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate };
|
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 AvalaraAccountRel=ResourceRel&{type:typeof AvalaraAccounts.TYPE;};declare type TaxCategoryRel=ResourceRel&{type:'tax_categories';};interface AvalaraAccount extends Resource{name?:string;username?:string;company_code?:string;ddp?:string;tax_categories?:TaxCategory[];markets?:Market[];attachments?:Attachment[];}interface AvalaraAccountCreate extends ResourceCreate{name:string;username:string;password:string;company_code:string;ddp?:string;tax_categories?:TaxCategoryRel[];}interface AvalaraAccountUpdate extends ResourceUpdate{name?:string;username?:string;password?:string;company_code?:string;ddp?:string;tax_categories?:TaxCategoryRel[];}declare class AvalaraAccounts extends ApiResource{static readonly TYPE:'avalara_accounts';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<AvalaraAccount>>;create(resource:AvalaraAccountCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AvalaraAccount>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AvalaraAccount>;update(resource:AvalaraAccountUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<AvalaraAccount>;delete(id:string,options?:ResourcesConfig):Promise<void>;tax_categories(avalaraAccountId:string|AvalaraAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;markets(avalaraAccountId:string|AvalaraAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(avalaraAccountId:string|AvalaraAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isAvalaraAccount(resource:any):resource is AvalaraAccount;relationship(id:string|ResourceId|null):AvalaraAccountRel;type():string;}export default AvalaraAccounts;export{AvalaraAccount,AvalaraAccountCreate,AvalaraAccountUpdate};
|
@@ -1,32 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
declare type BillingInfoValidationRuleRel = ResourceRel & {
|
5
|
-
type: typeof BillingInfoValidationRules.TYPE;
|
6
|
-
};
|
7
|
-
declare type MarketRel = ResourceRel & {
|
8
|
-
type: 'markets';
|
9
|
-
};
|
10
|
-
interface BillingInfoValidationRule extends Resource {
|
11
|
-
market?: Market;
|
12
|
-
}
|
13
|
-
interface BillingInfoValidationRuleCreate extends ResourceCreate {
|
14
|
-
market: MarketRel;
|
15
|
-
}
|
16
|
-
interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
|
17
|
-
market?: MarketRel;
|
18
|
-
}
|
19
|
-
declare class BillingInfoValidationRules extends ApiResource {
|
20
|
-
static readonly TYPE: 'billing_info_validation_rules';
|
21
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BillingInfoValidationRule>>;
|
22
|
-
create(resource: BillingInfoValidationRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
23
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
24
|
-
update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
25
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
26
|
-
market(billingInfoValidationRuleId: string | BillingInfoValidationRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
27
|
-
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
28
|
-
relationship(id: string | ResourceId | null): BillingInfoValidationRuleRel;
|
29
|
-
type(): string;
|
30
|
-
}
|
31
|
-
export default BillingInfoValidationRules;
|
32
|
-
export { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';declare type BillingInfoValidationRuleRel=ResourceRel&{type:typeof BillingInfoValidationRules.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};interface BillingInfoValidationRule extends Resource{market?:Market;}interface BillingInfoValidationRuleCreate extends ResourceCreate{market:MarketRel;}interface BillingInfoValidationRuleUpdate extends ResourceUpdate{market?:MarketRel;}declare class BillingInfoValidationRules extends ApiResource{static readonly TYPE:'billing_info_validation_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BillingInfoValidationRule>>;create(resource:BillingInfoValidationRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BillingInfoValidationRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BillingInfoValidationRule>;update(resource:BillingInfoValidationRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BillingInfoValidationRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(billingInfoValidationRuleId:string|BillingInfoValidationRule,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;isBillingInfoValidationRule(resource:any):resource is BillingInfoValidationRule;relationship(id:string|ResourceId|null):BillingInfoValidationRuleRel;type():string;}export default BillingInfoValidationRules;export{BillingInfoValidationRule,BillingInfoValidationRuleCreate,BillingInfoValidationRuleUpdate};
|
@@ -1,35 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Address } from './addresses';
|
4
|
-
import type { Attachment } from './attachments';
|
5
|
-
declare type BingGeocoderRel = ResourceRel & {
|
6
|
-
type: typeof BingGeocoders.TYPE;
|
7
|
-
};
|
8
|
-
interface BingGeocoder extends Resource {
|
9
|
-
name?: string;
|
10
|
-
addresses?: Address[];
|
11
|
-
attachments?: Attachment[];
|
12
|
-
}
|
13
|
-
interface BingGeocoderCreate extends ResourceCreate {
|
14
|
-
name: string;
|
15
|
-
key: string;
|
16
|
-
}
|
17
|
-
interface BingGeocoderUpdate extends ResourceUpdate {
|
18
|
-
name?: string;
|
19
|
-
key?: string;
|
20
|
-
}
|
21
|
-
declare class BingGeocoders extends ApiResource {
|
22
|
-
static readonly TYPE: 'bing_geocoders';
|
23
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BingGeocoder>>;
|
24
|
-
create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
25
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
26
|
-
update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
27
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
28
|
-
addresses(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
|
29
|
-
attachments(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
30
|
-
isBingGeocoder(resource: any): resource is BingGeocoder;
|
31
|
-
relationship(id: string | ResourceId | null): BingGeocoderRel;
|
32
|
-
type(): string;
|
33
|
-
}
|
34
|
-
export default BingGeocoders;
|
35
|
-
export { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Address}from'./addresses';import type{Attachment}from'./attachments';declare type BingGeocoderRel=ResourceRel&{type:typeof BingGeocoders.TYPE;};interface BingGeocoder extends Resource{name?:string;addresses?:Address[];attachments?:Attachment[];}interface BingGeocoderCreate extends ResourceCreate{name:string;key:string;}interface BingGeocoderUpdate extends ResourceUpdate{name?:string;key?:string;}declare class BingGeocoders extends ApiResource{static readonly TYPE:'bing_geocoders';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BingGeocoder>>;create(resource:BingGeocoderCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BingGeocoder>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BingGeocoder>;update(resource:BingGeocoderUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BingGeocoder>;delete(id:string,options?:ResourcesConfig):Promise<void>;addresses(bingGeocoderId:string|BingGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Address>>;attachments(bingGeocoderId:string|BingGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isBingGeocoder(resource:any):resource is BingGeocoder;relationship(id:string|ResourceId|null):BingGeocoderRel;type():string;}export default BingGeocoders;export{BingGeocoder,BingGeocoderCreate,BingGeocoderUpdate};
|
@@ -1,56 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PaymentMethod } from './payment_methods';
|
4
|
-
import type { BraintreePayment } from './braintree_payments';
|
5
|
-
declare type BraintreeGatewayRel = ResourceRel & {
|
6
|
-
type: typeof BraintreeGateways.TYPE;
|
7
|
-
};
|
8
|
-
declare type BraintreePaymentRel = ResourceRel & {
|
9
|
-
type: 'braintree_payments';
|
10
|
-
};
|
11
|
-
interface BraintreeGateway extends Resource {
|
12
|
-
name?: string;
|
13
|
-
descriptor_name?: string;
|
14
|
-
descriptor_phone?: string;
|
15
|
-
descriptor_url?: string;
|
16
|
-
webhook_endpoint_url?: string;
|
17
|
-
payment_methods?: PaymentMethod[];
|
18
|
-
braintree_payments?: BraintreePayment[];
|
19
|
-
}
|
20
|
-
interface BraintreeGatewayCreate extends ResourceCreate {
|
21
|
-
name: string;
|
22
|
-
merchant_account_id: string;
|
23
|
-
merchant_id: string;
|
24
|
-
public_key: string;
|
25
|
-
private_key: string;
|
26
|
-
descriptor_name?: string;
|
27
|
-
descriptor_phone?: string;
|
28
|
-
descriptor_url?: string;
|
29
|
-
braintree_payments?: BraintreePaymentRel[];
|
30
|
-
}
|
31
|
-
interface BraintreeGatewayUpdate extends ResourceUpdate {
|
32
|
-
name?: string;
|
33
|
-
merchant_account_id?: string;
|
34
|
-
merchant_id?: string;
|
35
|
-
public_key?: string;
|
36
|
-
private_key?: string;
|
37
|
-
descriptor_name?: string;
|
38
|
-
descriptor_phone?: string;
|
39
|
-
descriptor_url?: string;
|
40
|
-
braintree_payments?: BraintreePaymentRel[];
|
41
|
-
}
|
42
|
-
declare class BraintreeGateways extends ApiResource {
|
43
|
-
static readonly TYPE: 'braintree_gateways';
|
44
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreeGateway>>;
|
45
|
-
create(resource: BraintreeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
46
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
47
|
-
update(resource: BraintreeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
48
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
|
-
payment_methods(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
50
|
-
braintree_payments(braintreeGatewayId: string | BraintreeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
|
51
|
-
isBraintreeGateway(resource: any): resource is BraintreeGateway;
|
52
|
-
relationship(id: string | ResourceId | null): BraintreeGatewayRel;
|
53
|
-
type(): string;
|
54
|
-
}
|
55
|
-
export default BraintreeGateways;
|
56
|
-
export { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate };
|
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{BraintreePayment}from'./braintree_payments';declare type BraintreeGatewayRel=ResourceRel&{type:typeof BraintreeGateways.TYPE;};declare type BraintreePaymentRel=ResourceRel&{type:'braintree_payments';};interface BraintreeGateway extends Resource{name?:string;descriptor_name?:string;descriptor_phone?:string;descriptor_url?:string;webhook_endpoint_url?:string;payment_methods?:PaymentMethod[];braintree_payments?:BraintreePayment[];}interface BraintreeGatewayCreate extends ResourceCreate{name:string;merchant_account_id:string;merchant_id:string;public_key:string;private_key:string;descriptor_name?:string;descriptor_phone?:string;descriptor_url?:string;braintree_payments?:BraintreePaymentRel[];}interface BraintreeGatewayUpdate extends ResourceUpdate{name?:string;merchant_account_id?:string;merchant_id?:string;public_key?:string;private_key?:string;descriptor_name?:string;descriptor_phone?:string;descriptor_url?:string;braintree_payments?:BraintreePaymentRel[];}declare class BraintreeGateways extends ApiResource{static readonly TYPE:'braintree_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BraintreeGateway>>;create(resource:BraintreeGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreeGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreeGateway>;update(resource:BraintreeGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreeGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(braintreeGatewayId:string|BraintreeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;braintree_payments(braintreeGatewayId:string|BraintreeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BraintreePayment>>;isBraintreeGateway(resource:any):resource is BraintreeGateway;relationship(id:string|ResourceId|null):BraintreeGatewayRel;type():string;}export default BraintreeGateways;export{BraintreeGateway,BraintreeGatewayCreate,BraintreeGatewayUpdate};
|
@@ -1,47 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { PaymentGateway } from './payment_gateways';
|
5
|
-
declare type BraintreePaymentRel = ResourceRel & {
|
6
|
-
type: typeof BraintreePayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface BraintreePayment extends Resource {
|
12
|
-
client_token?: string;
|
13
|
-
payment_method_nonce?: string;
|
14
|
-
payment_id?: string;
|
15
|
-
local?: boolean;
|
16
|
-
options?: object;
|
17
|
-
order?: Order;
|
18
|
-
payment_gateway?: PaymentGateway;
|
19
|
-
}
|
20
|
-
interface BraintreePaymentCreate extends ResourceCreate {
|
21
|
-
payment_id?: string;
|
22
|
-
local?: boolean;
|
23
|
-
options?: object;
|
24
|
-
order: OrderRel;
|
25
|
-
}
|
26
|
-
interface BraintreePaymentUpdate extends ResourceUpdate {
|
27
|
-
payment_method_nonce?: string;
|
28
|
-
payment_id?: string;
|
29
|
-
local?: boolean;
|
30
|
-
options?: object;
|
31
|
-
order?: OrderRel;
|
32
|
-
}
|
33
|
-
declare class BraintreePayments extends ApiResource {
|
34
|
-
static readonly TYPE: 'braintree_payments';
|
35
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
|
36
|
-
create(resource: BraintreePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
37
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
38
|
-
update(resource: BraintreePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
39
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
|
-
order(braintreePaymentId: string | BraintreePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
41
|
-
payment_gateway(braintreePaymentId: string | BraintreePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
42
|
-
isBraintreePayment(resource: any): resource is BraintreePayment;
|
43
|
-
relationship(id: string | ResourceId | null): BraintreePaymentRel;
|
44
|
-
type(): string;
|
45
|
-
}
|
46
|
-
export default BraintreePayments;
|
47
|
-
export { BraintreePayment, BraintreePaymentCreate, BraintreePaymentUpdate };
|
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';declare type BraintreePaymentRel=ResourceRel&{type:typeof BraintreePayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface BraintreePayment extends Resource{client_token?:string;payment_method_nonce?:string;payment_id?:string;local?:boolean;options?:object;order?:Order;payment_gateway?:PaymentGateway;}interface BraintreePaymentCreate extends ResourceCreate{payment_id?:string;local?:boolean;options?:object;order:OrderRel;}interface BraintreePaymentUpdate extends ResourceUpdate{payment_method_nonce?:string;payment_id?:string;local?:boolean;options?:object;order?:OrderRel;}declare class BraintreePayments extends ApiResource{static readonly TYPE:'braintree_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BraintreePayment>>;create(resource:BraintreePaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreePayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreePayment>;update(resource:BraintreePaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BraintreePayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(braintreePaymentId:string|BraintreePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(braintreePaymentId:string|BraintreePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isBraintreePayment(resource:any):resource is BraintreePayment;relationship(id:string|ResourceId|null):BraintreePaymentRel;type():string;}export default BraintreePayments;export{BraintreePayment,BraintreePaymentCreate,BraintreePaymentUpdate};
|
@@ -1,74 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { SkuList } from './sku_lists';
|
5
|
-
import type { Sku } from './skus';
|
6
|
-
import type { Attachment } from './attachments';
|
7
|
-
declare type BundleRel = ResourceRel & {
|
8
|
-
type: typeof Bundles.TYPE;
|
9
|
-
};
|
10
|
-
declare type MarketRel = ResourceRel & {
|
11
|
-
type: 'markets';
|
12
|
-
};
|
13
|
-
declare type SkuListRel = ResourceRel & {
|
14
|
-
type: 'sku_lists';
|
15
|
-
};
|
16
|
-
interface Bundle extends Resource {
|
17
|
-
code?: string;
|
18
|
-
name?: string;
|
19
|
-
currency_code?: string;
|
20
|
-
description?: string;
|
21
|
-
image_url?: string;
|
22
|
-
price_amount_cents?: number;
|
23
|
-
price_amount_float?: number;
|
24
|
-
formatted_price_amount?: string;
|
25
|
-
compare_at_amount_cents?: number;
|
26
|
-
compare_at_amount_float?: number;
|
27
|
-
formatted_compare_at_amount?: string;
|
28
|
-
skus_count?: number;
|
29
|
-
market?: Market;
|
30
|
-
sku_list?: SkuList;
|
31
|
-
skus?: Sku[];
|
32
|
-
attachments?: Attachment[];
|
33
|
-
}
|
34
|
-
interface BundleCreate extends ResourceCreate {
|
35
|
-
code: string;
|
36
|
-
name: string;
|
37
|
-
currency_code?: string;
|
38
|
-
description?: string;
|
39
|
-
image_url?: string;
|
40
|
-
price_amount_cents: number;
|
41
|
-
compare_at_amount_cents: number;
|
42
|
-
_compute_price_amount?: boolean;
|
43
|
-
_compute_compare_at_amount?: boolean;
|
44
|
-
market?: MarketRel;
|
45
|
-
sku_list: SkuListRel;
|
46
|
-
}
|
47
|
-
interface BundleUpdate extends ResourceUpdate {
|
48
|
-
code?: string;
|
49
|
-
name?: string;
|
50
|
-
currency_code?: string;
|
51
|
-
description?: string;
|
52
|
-
image_url?: string;
|
53
|
-
price_amount_cents?: number;
|
54
|
-
compare_at_amount_cents?: number;
|
55
|
-
_compute_price_amount?: boolean;
|
56
|
-
_compute_compare_at_amount?: boolean;
|
57
|
-
}
|
58
|
-
declare class Bundles extends ApiResource {
|
59
|
-
static readonly TYPE: 'bundles';
|
60
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
61
|
-
create(resource: BundleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
62
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
63
|
-
update(resource: BundleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
64
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
65
|
-
market(bundleId: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
66
|
-
sku_list(bundleId: string | Bundle, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>;
|
67
|
-
skus(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
68
|
-
attachments(bundleId: string | Bundle, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
69
|
-
isBundle(resource: any): resource is Bundle;
|
70
|
-
relationship(id: string | ResourceId | null): BundleRel;
|
71
|
-
type(): string;
|
72
|
-
}
|
73
|
-
export default Bundles;
|
74
|
-
export { Bundle, BundleCreate, BundleUpdate };
|
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{SkuList}from'./sku_lists';import type{Sku}from'./skus';import type{Attachment}from'./attachments';declare type BundleRel=ResourceRel&{type:typeof Bundles.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type SkuListRel=ResourceRel&{type:'sku_lists';};interface Bundle extends Resource{code?:string;name?:string;currency_code?:string;description?:string;image_url?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;compare_at_amount_cents?:number;compare_at_amount_float?:number;formatted_compare_at_amount?:string;skus_count?:number;market?:Market;sku_list?:SkuList;skus?:Sku[];attachments?:Attachment[];}interface BundleCreate extends ResourceCreate{code:string;name:string;currency_code?:string;description?:string;image_url?:string;price_amount_cents:number;compare_at_amount_cents:number;_compute_price_amount?:boolean;_compute_compare_at_amount?:boolean;market?:MarketRel;sku_list:SkuListRel;}interface BundleUpdate extends ResourceUpdate{code?:string;name?:string;currency_code?:string;description?:string;image_url?:string;price_amount_cents?:number;compare_at_amount_cents?:number;_compute_price_amount?:boolean;_compute_compare_at_amount?:boolean;}declare class Bundles extends ApiResource{static readonly TYPE:'bundles';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Bundle>>;create(resource:BundleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Bundle>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Bundle>;update(resource:BundleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Bundle>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(bundleId:string|Bundle,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;sku_list(bundleId:string|Bundle,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuList>;skus(bundleId:string|Bundle,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;attachments(bundleId:string|Bundle,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isBundle(resource:any):resource is Bundle;relationship(id:string|ResourceId|null):BundleRel;type():string;}export default Bundles;export{Bundle,BundleCreate,BundleUpdate};
|
@@ -1,48 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { Authorization } from './authorizations';
|
5
|
-
import type { Refund } from './refunds';
|
6
|
-
declare type CaptureRel = ResourceRel & {
|
7
|
-
type: typeof Captures.TYPE;
|
8
|
-
};
|
9
|
-
interface Capture extends Resource {
|
10
|
-
number?: string;
|
11
|
-
currency_code?: string;
|
12
|
-
amount_cents?: number;
|
13
|
-
amount_float?: number;
|
14
|
-
formatted_amount?: string;
|
15
|
-
succeeded?: boolean;
|
16
|
-
message?: string;
|
17
|
-
error_code?: string;
|
18
|
-
error_detail?: string;
|
19
|
-
token?: string;
|
20
|
-
gateway_transaction_id?: string;
|
21
|
-
refund_amount_cents?: number;
|
22
|
-
refund_amount_float?: number;
|
23
|
-
formatted_refund_amount?: string;
|
24
|
-
refund_balance_cents?: number;
|
25
|
-
refund_balance_float?: number;
|
26
|
-
formatted_refund_balance?: string;
|
27
|
-
order?: Order;
|
28
|
-
reference_authorization?: Authorization;
|
29
|
-
refunds?: Refund[];
|
30
|
-
}
|
31
|
-
interface CaptureUpdate extends ResourceUpdate {
|
32
|
-
_refund?: boolean;
|
33
|
-
_refund_amount_cents?: number;
|
34
|
-
}
|
35
|
-
declare class Captures extends ApiResource {
|
36
|
-
static readonly TYPE: 'captures';
|
37
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
|
38
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
39
|
-
update(resource: CaptureUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
40
|
-
order(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
41
|
-
reference_authorization(captureId: string | Capture, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
42
|
-
refunds(captureId: string | Capture, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Refund>>;
|
43
|
-
isCapture(resource: any): resource is Capture;
|
44
|
-
relationship(id: string | ResourceId | null): CaptureRel;
|
45
|
-
type(): string;
|
46
|
-
}
|
47
|
-
export default Captures;
|
48
|
-
export { Capture, CaptureUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Authorization}from'./authorizations';import type{Refund}from'./refunds';declare type CaptureRel=ResourceRel&{type:typeof Captures.TYPE;};interface Capture extends Resource{number?:string;currency_code?:string;amount_cents?:number;amount_float?:number;formatted_amount?:string;succeeded?:boolean;message?:string;error_code?:string;error_detail?:string;token?:string;gateway_transaction_id?:string;refund_amount_cents?:number;refund_amount_float?:number;formatted_refund_amount?:string;refund_balance_cents?:number;refund_balance_float?:number;formatted_refund_balance?:string;order?:Order;reference_authorization?:Authorization;refunds?:Refund[];}interface CaptureUpdate extends ResourceUpdate{_refund?:boolean;_refund_amount_cents?:number;}declare class Captures extends ApiResource{static readonly TYPE:'captures';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Capture>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Capture>;update(resource:CaptureUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Capture>;order(captureId:string|Capture,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;reference_authorization(captureId:string|Capture,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Authorization>;refunds(captureId:string|Capture,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Refund>>;isCapture(resource:any):resource is Capture;relationship(id:string|ResourceId|null):CaptureRel;type():string;}export default Captures;export{Capture,CaptureUpdate};
|
@@ -1,26 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { Attachment } from './attachments';
|
5
|
-
declare type CarrierAccountRel = ResourceRel & {
|
6
|
-
type: typeof CarrierAccounts.TYPE;
|
7
|
-
};
|
8
|
-
interface CarrierAccount extends Resource {
|
9
|
-
name?: string;
|
10
|
-
easypost_type?: string;
|
11
|
-
easypost_id?: string;
|
12
|
-
market?: Market;
|
13
|
-
attachments?: Attachment[];
|
14
|
-
}
|
15
|
-
declare class CarrierAccounts extends ApiResource {
|
16
|
-
static readonly TYPE: 'carrier_accounts';
|
17
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>>;
|
18
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CarrierAccount>;
|
19
|
-
market(carrierAccountId: string | CarrierAccount, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
20
|
-
attachments(carrierAccountId: string | CarrierAccount, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
21
|
-
isCarrierAccount(resource: any): resource is CarrierAccount;
|
22
|
-
relationship(id: string | ResourceId | null): CarrierAccountRel;
|
23
|
-
type(): string;
|
24
|
-
}
|
25
|
-
export default CarrierAccounts;
|
26
|
-
export { CarrierAccount };
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{Attachment}from'./attachments';declare type CarrierAccountRel=ResourceRel&{type:typeof CarrierAccounts.TYPE;};interface CarrierAccount extends Resource{name?:string;easypost_type?:string;easypost_id?:string;market?:Market;attachments?:Attachment[];}declare class CarrierAccounts extends ApiResource{static readonly TYPE:'carrier_accounts';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CarrierAccount>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CarrierAccount>;market(carrierAccountId:string|CarrierAccount,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;attachments(carrierAccountId:string|CarrierAccount,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isCarrierAccount(resource:any):resource is CarrierAccount;relationship(id:string|ResourceId|null):CarrierAccountRel;type():string;}export default CarrierAccounts;export{CarrierAccount};
|
@@ -1,45 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PaymentMethod } from './payment_methods';
|
4
|
-
import type { CheckoutComPayment } from './checkout_com_payments';
|
5
|
-
declare type CheckoutComGatewayRel = ResourceRel & {
|
6
|
-
type: typeof CheckoutComGateways.TYPE;
|
7
|
-
};
|
8
|
-
declare type CheckoutComPaymentRel = ResourceRel & {
|
9
|
-
type: 'checkout_com_payments';
|
10
|
-
};
|
11
|
-
interface CheckoutComGateway extends Resource {
|
12
|
-
name?: string;
|
13
|
-
webhook_endpoint_id?: string;
|
14
|
-
webhook_endpoint_secret?: string;
|
15
|
-
webhook_endpoint_url?: string;
|
16
|
-
payment_methods?: PaymentMethod[];
|
17
|
-
checkout_com_payments?: CheckoutComPayment[];
|
18
|
-
}
|
19
|
-
interface CheckoutComGatewayCreate extends ResourceCreate {
|
20
|
-
name: string;
|
21
|
-
secret_key: string;
|
22
|
-
public_key: string;
|
23
|
-
checkout_com_payments?: CheckoutComPaymentRel[];
|
24
|
-
}
|
25
|
-
interface CheckoutComGatewayUpdate extends ResourceUpdate {
|
26
|
-
name?: string;
|
27
|
-
secret_key?: string;
|
28
|
-
public_key?: string;
|
29
|
-
checkout_com_payments?: CheckoutComPaymentRel[];
|
30
|
-
}
|
31
|
-
declare class CheckoutComGateways extends ApiResource {
|
32
|
-
static readonly TYPE: 'checkout_com_gateways';
|
33
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComGateway>>;
|
34
|
-
create(resource: CheckoutComGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
35
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
36
|
-
update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
37
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
|
-
payment_methods(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
39
|
-
checkout_com_payments(checkoutComGatewayId: string | CheckoutComGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
|
40
|
-
isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
|
41
|
-
relationship(id: string | ResourceId | null): CheckoutComGatewayRel;
|
42
|
-
type(): string;
|
43
|
-
}
|
44
|
-
export default CheckoutComGateways;
|
45
|
-
export { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate };
|
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{CheckoutComPayment}from'./checkout_com_payments';declare type CheckoutComGatewayRel=ResourceRel&{type:typeof CheckoutComGateways.TYPE;};declare type CheckoutComPaymentRel=ResourceRel&{type:'checkout_com_payments';};interface CheckoutComGateway extends Resource{name?:string;webhook_endpoint_id?:string;webhook_endpoint_secret?:string;webhook_endpoint_url?:string;payment_methods?:PaymentMethod[];checkout_com_payments?:CheckoutComPayment[];}interface CheckoutComGatewayCreate extends ResourceCreate{name:string;secret_key:string;public_key:string;checkout_com_payments?:CheckoutComPaymentRel[];}interface CheckoutComGatewayUpdate extends ResourceUpdate{name?:string;secret_key?:string;public_key?:string;checkout_com_payments?:CheckoutComPaymentRel[];}declare class CheckoutComGateways extends ApiResource{static readonly TYPE:'checkout_com_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CheckoutComGateway>>;create(resource:CheckoutComGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComGateway>;update(resource:CheckoutComGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(checkoutComGatewayId:string|CheckoutComGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;checkout_com_payments(checkoutComGatewayId:string|CheckoutComGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CheckoutComPayment>>;isCheckoutComGateway(resource:any):resource is CheckoutComGateway;relationship(id:string|ResourceId|null):CheckoutComGatewayRel;type():string;}export default CheckoutComGateways;export{CheckoutComGateway,CheckoutComGatewayCreate,CheckoutComGatewayUpdate};
|
@@ -1,51 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { PaymentGateway } from './payment_gateways';
|
5
|
-
declare type CheckoutComPaymentRel = ResourceRel & {
|
6
|
-
type: typeof CheckoutComPayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface CheckoutComPayment extends Resource {
|
12
|
-
public_key?: string;
|
13
|
-
payment_type?: string;
|
14
|
-
token?: string;
|
15
|
-
session_id?: string;
|
16
|
-
source_id?: string;
|
17
|
-
customer_token?: string;
|
18
|
-
redirect_uri?: string;
|
19
|
-
payment_response?: object;
|
20
|
-
order?: Order;
|
21
|
-
payment_gateway?: PaymentGateway;
|
22
|
-
}
|
23
|
-
interface CheckoutComPaymentCreate extends ResourceCreate {
|
24
|
-
payment_type: string;
|
25
|
-
token: string;
|
26
|
-
session_id?: string;
|
27
|
-
order: OrderRel;
|
28
|
-
}
|
29
|
-
interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
30
|
-
payment_type?: string;
|
31
|
-
token?: string;
|
32
|
-
session_id?: string;
|
33
|
-
_details?: boolean;
|
34
|
-
_refresh?: boolean;
|
35
|
-
order?: OrderRel;
|
36
|
-
}
|
37
|
-
declare class CheckoutComPayments extends ApiResource {
|
38
|
-
static readonly TYPE: 'checkout_com_payments';
|
39
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
|
40
|
-
create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
41
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
42
|
-
update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
43
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
|
-
order(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
45
|
-
payment_gateway(checkoutComPaymentId: string | CheckoutComPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
46
|
-
isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
|
47
|
-
relationship(id: string | ResourceId | null): CheckoutComPaymentRel;
|
48
|
-
type(): string;
|
49
|
-
}
|
50
|
-
export default CheckoutComPayments;
|
51
|
-
export { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate };
|
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';declare type CheckoutComPaymentRel=ResourceRel&{type:typeof CheckoutComPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface CheckoutComPayment extends Resource{public_key?:string;payment_type?:string;token?:string;session_id?:string;success_url?:string;failure_url?:string;source_id?:string;customer_token?:string;redirect_uri?:string;payment_response?:object;mismatched_amounts?:boolean;order?:Order;payment_gateway?:PaymentGateway;}interface CheckoutComPaymentCreate extends ResourceCreate{payment_type:string;token:string;session_id?:string;success_url?:string;failure_url?:string;order:OrderRel;}interface CheckoutComPaymentUpdate extends ResourceUpdate{payment_type?:string;token?:string;session_id?:string;success_url?:string;failure_url?:string;_details?:boolean;_refresh?:boolean;order?:OrderRel;}declare class CheckoutComPayments extends ApiResource{static readonly TYPE:'checkout_com_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CheckoutComPayment>>;create(resource:CheckoutComPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComPayment>;update(resource:CheckoutComPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CheckoutComPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(checkoutComPaymentId:string|CheckoutComPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(checkoutComPaymentId:string|CheckoutComPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isCheckoutComPayment(resource:any):resource is CheckoutComPayment;relationship(id:string|ResourceId|null):CheckoutComPaymentRel;type():string;}export default CheckoutComPayments;export{CheckoutComPayment,CheckoutComPaymentCreate,CheckoutComPaymentUpdate};
|
@@ -1,59 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
4
|
-
import type { FreeShippingPromotion } from './free_shipping_promotions';
|
5
|
-
import type { FixedAmountPromotion } from './fixed_amount_promotions';
|
6
|
-
import type { FreeGiftPromotion } from './free_gift_promotions';
|
7
|
-
import type { FixedPricePromotion } from './fixed_price_promotions';
|
8
|
-
import type { ExternalPromotion } from './external_promotions';
|
9
|
-
import type { Coupon } from './coupons';
|
10
|
-
declare type CouponCodesPromotionRuleRel = ResourceRel & {
|
11
|
-
type: typeof CouponCodesPromotionRules.TYPE;
|
12
|
-
};
|
13
|
-
declare type PercentageDiscountPromotionRel = ResourceRel & {
|
14
|
-
type: 'percentage_discount_promotions';
|
15
|
-
};
|
16
|
-
declare type FreeShippingPromotionRel = ResourceRel & {
|
17
|
-
type: 'free_shipping_promotions';
|
18
|
-
};
|
19
|
-
declare type FixedAmountPromotionRel = ResourceRel & {
|
20
|
-
type: 'fixed_amount_promotions';
|
21
|
-
};
|
22
|
-
declare type FreeGiftPromotionRel = ResourceRel & {
|
23
|
-
type: 'free_gift_promotions';
|
24
|
-
};
|
25
|
-
declare type FixedPricePromotionRel = ResourceRel & {
|
26
|
-
type: 'fixed_price_promotions';
|
27
|
-
};
|
28
|
-
declare type ExternalPromotionRel = ResourceRel & {
|
29
|
-
type: 'external_promotions';
|
30
|
-
};
|
31
|
-
declare type CouponRel = ResourceRel & {
|
32
|
-
type: 'coupons';
|
33
|
-
};
|
34
|
-
interface CouponCodesPromotionRule extends Resource {
|
35
|
-
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
|
36
|
-
coupons?: Coupon[];
|
37
|
-
}
|
38
|
-
interface CouponCodesPromotionRuleCreate extends ResourceCreate {
|
39
|
-
promotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
40
|
-
coupons?: CouponRel[];
|
41
|
-
}
|
42
|
-
interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
|
43
|
-
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
44
|
-
coupons?: CouponRel[];
|
45
|
-
}
|
46
|
-
declare class CouponCodesPromotionRules extends ApiResource {
|
47
|
-
static readonly TYPE: 'coupon_codes_promotion_rules';
|
48
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponCodesPromotionRule>>;
|
49
|
-
create(resource: CouponCodesPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
50
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
51
|
-
update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
52
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
53
|
-
coupons(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
54
|
-
isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
|
55
|
-
relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel;
|
56
|
-
type(): string;
|
57
|
-
}
|
58
|
-
export default CouponCodesPromotionRules;
|
59
|
-
export { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeGiftPromotion}from'./free_gift_promotions';import type{FixedPricePromotion}from'./fixed_price_promotions';import type{ExternalPromotion}from'./external_promotions';import type{Coupon}from'./coupons';declare type CouponCodesPromotionRuleRel=ResourceRel&{type:typeof CouponCodesPromotionRules.TYPE;};declare type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};declare type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};declare type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};declare type FreeGiftPromotionRel=ResourceRel&{type:'free_gift_promotions';};declare type FixedPricePromotionRel=ResourceRel&{type:'fixed_price_promotions';};declare type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};declare type CouponRel=ResourceRel&{type:'coupons';};interface CouponCodesPromotionRule extends Resource{promotion?:PercentageDiscountPromotion|FreeShippingPromotion|FixedAmountPromotion|FreeGiftPromotion|FixedPricePromotion|ExternalPromotion;coupons?:Coupon[];}interface CouponCodesPromotionRuleCreate extends ResourceCreate{promotion:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;coupons?:CouponRel[];}interface CouponCodesPromotionRuleUpdate extends ResourceUpdate{promotion?:PercentageDiscountPromotionRel|FreeShippingPromotionRel|FixedAmountPromotionRel|FreeGiftPromotionRel|FixedPricePromotionRel|ExternalPromotionRel;coupons?:CouponRel[];}declare class CouponCodesPromotionRules extends ApiResource{static readonly TYPE:'coupon_codes_promotion_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CouponCodesPromotionRule>>;create(resource:CouponCodesPromotionRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;update(resource:CouponCodesPromotionRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;coupons(couponCodesPromotionRuleId:string|CouponCodesPromotionRule,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Coupon>>;isCouponCodesPromotionRule(resource:any):resource is CouponCodesPromotionRule;relationship(id:string|ResourceId|null):CouponCodesPromotionRuleRel;type():string;}export default CouponCodesPromotionRules;export{CouponCodesPromotionRule,CouponCodesPromotionRuleCreate,CouponCodesPromotionRuleUpdate};
|