@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,56 +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 SkuOptionRel = ResourceRel & {
|
6
|
-
type: typeof SkuOptions.TYPE;
|
7
|
-
};
|
8
|
-
declare type MarketRel = ResourceRel & {
|
9
|
-
type: 'markets';
|
10
|
-
};
|
11
|
-
interface SkuOption extends Resource {
|
12
|
-
name?: string;
|
13
|
-
currency_code?: string;
|
14
|
-
description?: string;
|
15
|
-
price_amount_cents?: number;
|
16
|
-
price_amount_float?: number;
|
17
|
-
formatted_price_amount?: string;
|
18
|
-
delay_hours?: number;
|
19
|
-
delay_days?: number;
|
20
|
-
sku_code_regex?: string;
|
21
|
-
market?: Market;
|
22
|
-
attachments?: Attachment[];
|
23
|
-
}
|
24
|
-
interface SkuOptionCreate extends ResourceCreate {
|
25
|
-
name: string;
|
26
|
-
currency_code?: string;
|
27
|
-
description?: string;
|
28
|
-
price_amount_cents?: number;
|
29
|
-
delay_hours?: number;
|
30
|
-
sku_code_regex?: string;
|
31
|
-
market: MarketRel;
|
32
|
-
}
|
33
|
-
interface SkuOptionUpdate extends ResourceUpdate {
|
34
|
-
name?: string;
|
35
|
-
currency_code?: string;
|
36
|
-
description?: string;
|
37
|
-
price_amount_cents?: number;
|
38
|
-
delay_hours?: number;
|
39
|
-
sku_code_regex?: string;
|
40
|
-
market?: MarketRel;
|
41
|
-
}
|
42
|
-
declare class SkuOptions extends ApiResource {
|
43
|
-
static readonly TYPE: 'sku_options';
|
44
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
|
45
|
-
create(resource: SkuOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
|
46
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
|
47
|
-
update(resource: SkuOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
|
48
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
|
-
market(skuOptionId: string | SkuOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
50
|
-
attachments(skuOptionId: string | SkuOption, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
51
|
-
isSkuOption(resource: any): resource is SkuOption;
|
52
|
-
relationship(id: string | ResourceId | null): SkuOptionRel;
|
53
|
-
type(): string;
|
54
|
-
}
|
55
|
-
export default SkuOptions;
|
56
|
-
export { SkuOption, SkuOptionCreate, SkuOptionUpdate };
|
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{Attachment}from'./attachments';declare type SkuOptionRel=ResourceRel&{type:typeof SkuOptions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};interface SkuOption extends Resource{name?:string;currency_code?:string;description?:string;price_amount_cents?:number;price_amount_float?:number;formatted_price_amount?:string;delay_hours?:number;delay_days?:number;sku_code_regex?:string;market?:Market;attachments?:Attachment[];}interface SkuOptionCreate extends ResourceCreate{name:string;currency_code?:string;description?:string;price_amount_cents?:number;delay_hours?:number;sku_code_regex?:string;market?:MarketRel;}interface SkuOptionUpdate extends ResourceUpdate{name?:string;currency_code?:string;description?:string;price_amount_cents?:number;delay_hours?:number;sku_code_regex?:string;market?:MarketRel;}declare class SkuOptions extends ApiResource{static readonly TYPE:'sku_options';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuOption>>;create(resource:SkuOptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;update(resource:SkuOptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(skuOptionId:string|SkuOption,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;attachments(skuOptionId:string|SkuOption,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isSkuOption(resource:any):resource is SkuOption;relationship(id:string|ResourceId|null):SkuOptionRel;type():string;}export default SkuOptions;export{SkuOption,SkuOptionCreate,SkuOptionUpdate};
|
@@ -1,78 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { ShippingCategory } from './shipping_categories';
|
4
|
-
import type { Price } from './prices';
|
5
|
-
import type { StockItem } from './stock_items';
|
6
|
-
import type { DeliveryLeadTime } from './delivery_lead_times';
|
7
|
-
import type { SkuOption } from './sku_options';
|
8
|
-
import type { Attachment } from './attachments';
|
9
|
-
declare type SkuRel = ResourceRel & {
|
10
|
-
type: typeof Skus.TYPE;
|
11
|
-
};
|
12
|
-
declare type ShippingCategoryRel = ResourceRel & {
|
13
|
-
type: 'shipping_categories';
|
14
|
-
};
|
15
|
-
interface Sku extends Resource {
|
16
|
-
code?: string;
|
17
|
-
name?: string;
|
18
|
-
description?: string;
|
19
|
-
image_url?: string;
|
20
|
-
pieces_per_pack?: number;
|
21
|
-
weight?: number;
|
22
|
-
unit_of_weight?: string;
|
23
|
-
hs_tariff_number?: string;
|
24
|
-
do_not_ship?: boolean;
|
25
|
-
do_not_track?: boolean;
|
26
|
-
inventory?: object;
|
27
|
-
shipping_category?: ShippingCategory;
|
28
|
-
prices?: Price[];
|
29
|
-
stock_items?: StockItem[];
|
30
|
-
delivery_lead_times?: DeliveryLeadTime[];
|
31
|
-
sku_options?: SkuOption[];
|
32
|
-
attachments?: Attachment[];
|
33
|
-
}
|
34
|
-
interface SkuCreate extends ResourceCreate {
|
35
|
-
code: string;
|
36
|
-
name: string;
|
37
|
-
description?: string;
|
38
|
-
image_url?: string;
|
39
|
-
pieces_per_pack?: number;
|
40
|
-
weight?: number;
|
41
|
-
unit_of_weight?: string;
|
42
|
-
hs_tariff_number?: string;
|
43
|
-
do_not_ship?: boolean;
|
44
|
-
do_not_track?: boolean;
|
45
|
-
shipping_category: ShippingCategoryRel;
|
46
|
-
}
|
47
|
-
interface SkuUpdate extends ResourceUpdate {
|
48
|
-
code?: string;
|
49
|
-
name?: string;
|
50
|
-
description?: string;
|
51
|
-
image_url?: string;
|
52
|
-
pieces_per_pack?: number;
|
53
|
-
weight?: number;
|
54
|
-
unit_of_weight?: string;
|
55
|
-
hs_tariff_number?: string;
|
56
|
-
do_not_ship?: boolean;
|
57
|
-
do_not_track?: boolean;
|
58
|
-
shipping_category?: ShippingCategoryRel;
|
59
|
-
}
|
60
|
-
declare class Skus extends ApiResource {
|
61
|
-
static readonly TYPE: 'skus';
|
62
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
63
|
-
create(resource: SkuCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
64
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
65
|
-
update(resource: SkuUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
66
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
67
|
-
shipping_category(skuId: string | Sku, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingCategory>;
|
68
|
-
prices(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Price>>;
|
69
|
-
stock_items(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
|
70
|
-
delivery_lead_times(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
|
71
|
-
sku_options(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SkuOption>>;
|
72
|
-
attachments(skuId: string | Sku, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
73
|
-
isSku(resource: any): resource is Sku;
|
74
|
-
relationship(id: string | ResourceId | null): SkuRel;
|
75
|
-
type(): string;
|
76
|
-
}
|
77
|
-
export default Skus;
|
78
|
-
export { Sku, SkuCreate, SkuUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ShippingCategory}from'./shipping_categories';import type{Price}from'./prices';import type{StockItem}from'./stock_items';import type{DeliveryLeadTime}from'./delivery_lead_times';import type{SkuOption}from'./sku_options';import type{Attachment}from'./attachments';declare type SkuRel=ResourceRel&{type:typeof Skus.TYPE;};declare type ShippingCategoryRel=ResourceRel&{type:'shipping_categories';};interface Sku extends Resource{code?:string;name?:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;inventory?:object;shipping_category?:ShippingCategory;prices?:Price[];stock_items?:StockItem[];delivery_lead_times?:DeliveryLeadTime[];sku_options?:SkuOption[];attachments?:Attachment[];}interface SkuCreate extends ResourceCreate{code:string;name:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;shipping_category:ShippingCategoryRel;}interface SkuUpdate extends ResourceUpdate{code?:string;name?:string;description?:string;image_url?:string;pieces_per_pack?:number;weight?:number;unit_of_weight?:string;hs_tariff_number?:string;do_not_ship?:boolean;do_not_track?:boolean;shipping_category?:ShippingCategoryRel;}declare class Skus extends ApiResource{static readonly TYPE:'skus';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;create(resource:SkuCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;update(resource:SkuUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;delete(id:string,options?:ResourcesConfig):Promise<void>;shipping_category(skuId:string|Sku,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ShippingCategory>;prices(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;stock_items(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;delivery_lead_times(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<DeliveryLeadTime>>;sku_options(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<SkuOption>>;attachments(skuId:string|Sku,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isSku(resource:any):resource is Sku;relationship(id:string|ResourceId|null):SkuRel;type():string;}export default Skus;export{Sku,SkuCreate,SkuUpdate};
|
@@ -1,49 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { StockLocation } from './stock_locations';
|
4
|
-
import type { Sku } from './skus';
|
5
|
-
import type { Attachment } from './attachments';
|
6
|
-
declare type StockItemRel = ResourceRel & {
|
7
|
-
type: typeof StockItems.TYPE;
|
8
|
-
};
|
9
|
-
declare type StockLocationRel = ResourceRel & {
|
10
|
-
type: 'stock_locations';
|
11
|
-
};
|
12
|
-
declare type SkuRel = ResourceRel & {
|
13
|
-
type: 'skus';
|
14
|
-
};
|
15
|
-
interface StockItem extends Resource {
|
16
|
-
sku_code?: string;
|
17
|
-
quantity?: number;
|
18
|
-
stock_location?: StockLocation;
|
19
|
-
sku?: Sku;
|
20
|
-
attachments?: Attachment[];
|
21
|
-
}
|
22
|
-
interface StockItemCreate extends ResourceCreate {
|
23
|
-
sku_code?: string;
|
24
|
-
quantity: number;
|
25
|
-
stock_location: StockLocationRel;
|
26
|
-
sku?: SkuRel;
|
27
|
-
}
|
28
|
-
interface StockItemUpdate extends ResourceUpdate {
|
29
|
-
sku_code?: string;
|
30
|
-
quantity?: number;
|
31
|
-
stock_location?: StockLocationRel;
|
32
|
-
sku?: SkuRel;
|
33
|
-
}
|
34
|
-
declare class StockItems extends ApiResource {
|
35
|
-
static readonly TYPE: 'stock_items';
|
36
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
|
37
|
-
create(resource: StockItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
38
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
39
|
-
update(resource: StockItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
40
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
41
|
-
stock_location(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
42
|
-
sku(stockItemId: string | StockItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
43
|
-
attachments(stockItemId: string | StockItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
44
|
-
isStockItem(resource: any): resource is StockItem;
|
45
|
-
relationship(id: string | ResourceId | null): StockItemRel;
|
46
|
-
type(): string;
|
47
|
-
}
|
48
|
-
export default StockItems;
|
49
|
-
export { StockItem, StockItemCreate, StockItemUpdate };
|
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{Sku}from'./skus';import type{Attachment}from'./attachments';declare type StockItemRel=ResourceRel&{type:typeof StockItems.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type SkuRel=ResourceRel&{type:'skus';};interface StockItem extends Resource{sku_code?:string;quantity?:number;stock_location?:StockLocation;sku?:Sku;attachments?:Attachment[];}interface StockItemCreate extends ResourceCreate{sku_code?:string;quantity:number;stock_location:StockLocationRel;sku?:SkuRel;}interface StockItemUpdate extends ResourceUpdate{sku_code?:string;quantity?:number;stock_location?:StockLocationRel;sku?:SkuRel;}declare class StockItems extends ApiResource{static readonly TYPE:'stock_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;create(resource:StockItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;update(resource:StockItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(stockItemId:string|StockItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;sku(stockItemId:string|StockItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(stockItemId:string|StockItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isStockItem(resource:any):resource is StockItem;relationship(id:string|ResourceId|null):StockItemRel;type():string;}export default StockItems;export{StockItem,StockItemCreate,StockItemUpdate};
|
@@ -1,29 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Shipment } from './shipments';
|
4
|
-
import type { LineItem } from './line_items';
|
5
|
-
import type { StockItem } from './stock_items';
|
6
|
-
declare type StockLineItemRel = ResourceRel & {
|
7
|
-
type: typeof StockLineItems.TYPE;
|
8
|
-
};
|
9
|
-
interface StockLineItem extends Resource {
|
10
|
-
sku_code?: string;
|
11
|
-
bundle_code?: string;
|
12
|
-
quantity?: number;
|
13
|
-
shipment?: Shipment;
|
14
|
-
line_item?: LineItem;
|
15
|
-
stock_item?: StockItem;
|
16
|
-
}
|
17
|
-
declare class StockLineItems extends ApiResource {
|
18
|
-
static readonly TYPE: 'stock_line_items';
|
19
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
20
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLineItem>;
|
21
|
-
shipment(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
22
|
-
line_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
23
|
-
stock_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockItem>;
|
24
|
-
isStockLineItem(resource: any): resource is StockLineItem;
|
25
|
-
relationship(id: string | ResourceId | null): StockLineItemRel;
|
26
|
-
type(): string;
|
27
|
-
}
|
28
|
-
export default StockLineItems;
|
29
|
-
export { StockLineItem };
|
1
|
+
import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{StockItem}from'./stock_items';declare type StockLineItemRel=ResourceRel&{type:typeof StockLineItems.TYPE;};interface StockLineItem extends Resource{sku_code?:string;bundle_code?:string;quantity?:number;shipment?:Shipment;line_item?:LineItem;stock_item?:StockItem;}declare class StockLineItems extends ApiResource{static readonly TYPE:'stock_line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLineItem>;shipment(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;stock_item(stockLineItemId:string|StockLineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockItem>;isStockLineItem(resource:any):resource is StockLineItem;relationship(id:string|ResourceId|null):StockLineItemRel;type():string;}export default StockLineItems;export{StockLineItem};
|
@@ -1,57 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Address } from './addresses';
|
4
|
-
import type { InventoryStockLocation } from './inventory_stock_locations';
|
5
|
-
import type { InventoryReturnLocation } from './inventory_return_locations';
|
6
|
-
import type { StockItem } from './stock_items';
|
7
|
-
import type { StockTransfer } from './stock_transfers';
|
8
|
-
import type { Attachment } from './attachments';
|
9
|
-
declare type StockLocationRel = ResourceRel & {
|
10
|
-
type: typeof StockLocations.TYPE;
|
11
|
-
};
|
12
|
-
declare type AddressRel = ResourceRel & {
|
13
|
-
type: 'addresses';
|
14
|
-
};
|
15
|
-
interface StockLocation extends Resource {
|
16
|
-
number?: number;
|
17
|
-
name?: string;
|
18
|
-
label_format?: string;
|
19
|
-
suppress_etd?: boolean;
|
20
|
-
address?: Address;
|
21
|
-
inventory_stock_locations?: InventoryStockLocation[];
|
22
|
-
inventory_return_locations?: InventoryReturnLocation[];
|
23
|
-
stock_items?: StockItem[];
|
24
|
-
stock_transfers?: StockTransfer[];
|
25
|
-
attachments?: Attachment[];
|
26
|
-
}
|
27
|
-
interface StockLocationCreate extends ResourceCreate {
|
28
|
-
name: string;
|
29
|
-
label_format?: string;
|
30
|
-
suppress_etd?: boolean;
|
31
|
-
address: AddressRel;
|
32
|
-
}
|
33
|
-
interface StockLocationUpdate extends ResourceUpdate {
|
34
|
-
name?: string;
|
35
|
-
label_format?: string;
|
36
|
-
suppress_etd?: boolean;
|
37
|
-
address?: AddressRel;
|
38
|
-
}
|
39
|
-
declare class StockLocations extends ApiResource {
|
40
|
-
static readonly TYPE: 'stock_locations';
|
41
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLocation>>;
|
42
|
-
create(resource: StockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
43
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
44
|
-
update(resource: StockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
45
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
46
|
-
address(stockLocationId: string | StockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
|
47
|
-
inventory_stock_locations(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
|
48
|
-
inventory_return_locations(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
|
49
|
-
stock_items(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockItem>>;
|
50
|
-
stock_transfers(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
51
|
-
attachments(stockLocationId: string | StockLocation, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
52
|
-
isStockLocation(resource: any): resource is StockLocation;
|
53
|
-
relationship(id: string | ResourceId | null): StockLocationRel;
|
54
|
-
type(): string;
|
55
|
-
}
|
56
|
-
export default StockLocations;
|
57
|
-
export { StockLocation, StockLocationCreate, StockLocationUpdate };
|
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{InventoryStockLocation}from'./inventory_stock_locations';import type{InventoryReturnLocation}from'./inventory_return_locations';import type{StockItem}from'./stock_items';import type{StockTransfer}from'./stock_transfers';import type{Attachment}from'./attachments';declare type StockLocationRel=ResourceRel&{type:typeof StockLocations.TYPE;};declare type AddressRel=ResourceRel&{type:'addresses';};interface StockLocation extends Resource{number?:number;name?:string;label_format?:string;suppress_etd?:boolean;address?:Address;inventory_stock_locations?:InventoryStockLocation[];inventory_return_locations?:InventoryReturnLocation[];stock_items?:StockItem[];stock_transfers?:StockTransfer[];attachments?:Attachment[];}interface StockLocationCreate extends ResourceCreate{name:string;label_format?:string;suppress_etd?:boolean;address:AddressRel;}interface StockLocationUpdate extends ResourceUpdate{name?:string;label_format?:string;suppress_etd?:boolean;address?:AddressRel;}declare class StockLocations extends ApiResource{static readonly TYPE:'stock_locations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLocation>>;create(resource:StockLocationCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;update(resource:StockLocationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;delete(id:string,options?:ResourcesConfig):Promise<void>;address(stockLocationId:string|StockLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Address>;inventory_stock_locations(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryStockLocation>>;inventory_return_locations(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryReturnLocation>>;stock_items(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockItem>>;stock_transfers(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;attachments(stockLocationId:string|StockLocation,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isStockLocation(resource:any):resource is StockLocation;relationship(id:string|ResourceId|null):StockLocationRel;type():string;}export default StockLocations;export{StockLocation,StockLocationCreate,StockLocationUpdate};
|
@@ -1,71 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Sku } from './skus';
|
4
|
-
import type { StockLocation } from './stock_locations';
|
5
|
-
import type { Shipment } from './shipments';
|
6
|
-
import type { LineItem } from './line_items';
|
7
|
-
declare type StockTransferRel = ResourceRel & {
|
8
|
-
type: typeof StockTransfers.TYPE;
|
9
|
-
};
|
10
|
-
declare type SkuRel = ResourceRel & {
|
11
|
-
type: 'skus';
|
12
|
-
};
|
13
|
-
declare type StockLocationRel = ResourceRel & {
|
14
|
-
type: 'stock_locations';
|
15
|
-
};
|
16
|
-
declare type ShipmentRel = ResourceRel & {
|
17
|
-
type: 'shipments';
|
18
|
-
};
|
19
|
-
declare type LineItemRel = ResourceRel & {
|
20
|
-
type: 'line_items';
|
21
|
-
};
|
22
|
-
interface StockTransfer extends Resource {
|
23
|
-
sku_code?: string;
|
24
|
-
status?: string;
|
25
|
-
quantity?: number;
|
26
|
-
completed_at?: string;
|
27
|
-
cancelled_at?: string;
|
28
|
-
sku?: Sku;
|
29
|
-
origin_stock_location?: StockLocation;
|
30
|
-
destination_stock_location?: StockLocation;
|
31
|
-
shipment?: Shipment;
|
32
|
-
line_item?: LineItem;
|
33
|
-
}
|
34
|
-
interface StockTransferCreate extends ResourceCreate {
|
35
|
-
sku_code?: string;
|
36
|
-
quantity: number;
|
37
|
-
sku: SkuRel;
|
38
|
-
origin_stock_location: StockLocationRel;
|
39
|
-
destination_stock_location: StockLocationRel;
|
40
|
-
shipment?: ShipmentRel;
|
41
|
-
line_item?: LineItemRel;
|
42
|
-
}
|
43
|
-
interface StockTransferUpdate extends ResourceUpdate {
|
44
|
-
sku_code?: string;
|
45
|
-
_upcoming?: boolean;
|
46
|
-
_picking?: boolean;
|
47
|
-
_in_transit?: boolean;
|
48
|
-
_complete?: boolean;
|
49
|
-
_cancel?: boolean;
|
50
|
-
sku?: SkuRel;
|
51
|
-
origin_stock_location?: StockLocationRel;
|
52
|
-
destination_stock_location?: StockLocationRel;
|
53
|
-
}
|
54
|
-
declare class StockTransfers extends ApiResource {
|
55
|
-
static readonly TYPE: 'stock_transfers';
|
56
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
57
|
-
create(resource: StockTransferCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
58
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
59
|
-
update(resource: StockTransferUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockTransfer>;
|
60
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
61
|
-
sku(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
62
|
-
origin_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
63
|
-
destination_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
64
|
-
shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Shipment>;
|
65
|
-
line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
66
|
-
isStockTransfer(resource: any): resource is StockTransfer;
|
67
|
-
relationship(id: string | ResourceId | null): StockTransferRel;
|
68
|
-
type(): string;
|
69
|
-
}
|
70
|
-
export default StockTransfers;
|
71
|
-
export { StockTransfer, StockTransferCreate, StockTransferUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{StockLocation}from'./stock_locations';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';declare type StockTransferRel=ResourceRel&{type:typeof StockTransfers.TYPE;};declare type SkuRel=ResourceRel&{type:'skus';};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type ShipmentRel=ResourceRel&{type:'shipments';};declare type LineItemRel=ResourceRel&{type:'line_items';};interface StockTransfer extends Resource{sku_code?:string;status?:string;quantity?:number;completed_at?:string;cancelled_at?:string;sku?:Sku;origin_stock_location?:StockLocation;destination_stock_location?:StockLocation;shipment?:Shipment;line_item?:LineItem;}interface StockTransferCreate extends ResourceCreate{sku_code?:string;quantity:number;sku:SkuRel;origin_stock_location:StockLocationRel;destination_stock_location:StockLocationRel;shipment?:ShipmentRel;line_item?:LineItemRel;}interface StockTransferUpdate extends ResourceUpdate{sku_code?:string;_upcoming?:boolean;_picking?:boolean;_in_transit?:boolean;_complete?:boolean;_cancel?:boolean;sku?:SkuRel;origin_stock_location?:StockLocationRel;destination_stock_location?:StockLocationRel;}declare class StockTransfers extends ApiResource{static readonly TYPE:'stock_transfers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;create(resource:StockTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;update(resource:StockTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;origin_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;destination_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipment(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;isStockTransfer(resource:any):resource is StockTransfer;relationship(id:string|ResourceId|null):StockTransferRel;type():string;}export default StockTransfers;export{StockTransfer,StockTransferCreate,StockTransferUpdate};
|
@@ -1,38 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PaymentMethod } from './payment_methods';
|
4
|
-
import type { StripePayment } from './stripe_payments';
|
5
|
-
declare type StripeGatewayRel = ResourceRel & {
|
6
|
-
type: typeof StripeGateways.TYPE;
|
7
|
-
};
|
8
|
-
interface StripeGateway extends Resource {
|
9
|
-
name?: string;
|
10
|
-
webhook_endpoint_id?: string;
|
11
|
-
webhook_endpoint_secret?: string;
|
12
|
-
webhook_endpoint_url?: string;
|
13
|
-
payment_methods?: PaymentMethod[];
|
14
|
-
stripe_payments?: StripePayment[];
|
15
|
-
}
|
16
|
-
interface StripeGatewayCreate extends ResourceCreate {
|
17
|
-
name: string;
|
18
|
-
login: string;
|
19
|
-
publishable_key?: string;
|
20
|
-
}
|
21
|
-
interface StripeGatewayUpdate extends ResourceUpdate {
|
22
|
-
name?: string;
|
23
|
-
}
|
24
|
-
declare class StripeGateways extends ApiResource {
|
25
|
-
static readonly TYPE: 'stripe_gateways';
|
26
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StripeGateway>>;
|
27
|
-
create(resource: StripeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripeGateway>;
|
28
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripeGateway>;
|
29
|
-
update(resource: StripeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripeGateway>;
|
30
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
31
|
-
payment_methods(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
32
|
-
stripe_payments(stripeGatewayId: string | StripeGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StripePayment>>;
|
33
|
-
isStripeGateway(resource: any): resource is StripeGateway;
|
34
|
-
relationship(id: string | ResourceId | null): StripeGatewayRel;
|
35
|
-
type(): string;
|
36
|
-
}
|
37
|
-
export default StripeGateways;
|
38
|
-
export { StripeGateway, StripeGatewayCreate, StripeGatewayUpdate };
|
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{StripePayment}from'./stripe_payments';declare type StripeGatewayRel=ResourceRel&{type:typeof StripeGateways.TYPE;};interface StripeGateway extends Resource{name?:string;webhook_endpoint_id?:string;webhook_endpoint_secret?:string;webhook_endpoint_url?:string;payment_methods?:PaymentMethod[];stripe_payments?:StripePayment[];}interface StripeGatewayCreate extends ResourceCreate{name:string;login:string;publishable_key?:string;}interface StripeGatewayUpdate extends ResourceUpdate{name?:string;}declare class StripeGateways extends ApiResource{static readonly TYPE:'stripe_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripeGateway>>;create(resource:StripeGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;update(resource:StripeGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripeGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(stripeGatewayId:string|StripeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;stripe_payments(stripeGatewayId:string|StripeGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripePayment>>;isStripeGateway(resource:any):resource is StripeGateway;relationship(id:string|ResourceId|null):StripeGatewayRel;type():string;}export default StripeGateways;export{StripeGateway,StripeGatewayCreate,StripeGatewayUpdate};
|
@@ -1,42 +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 StripePaymentRel = ResourceRel & {
|
6
|
-
type: typeof StripePayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface StripePayment extends Resource {
|
12
|
-
client_secret?: string;
|
13
|
-
publishable_key?: string;
|
14
|
-
options?: object;
|
15
|
-
payment_method?: object;
|
16
|
-
order?: Order;
|
17
|
-
payment_gateway?: PaymentGateway;
|
18
|
-
}
|
19
|
-
interface StripePaymentCreate extends ResourceCreate {
|
20
|
-
options?: object;
|
21
|
-
order: OrderRel;
|
22
|
-
}
|
23
|
-
interface StripePaymentUpdate extends ResourceUpdate {
|
24
|
-
options?: object;
|
25
|
-
_refresh?: boolean;
|
26
|
-
order?: OrderRel;
|
27
|
-
}
|
28
|
-
declare class StripePayments extends ApiResource {
|
29
|
-
static readonly TYPE: 'stripe_payments';
|
30
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StripePayment>>;
|
31
|
-
create(resource: StripePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
32
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
33
|
-
update(resource: StripePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StripePayment>;
|
34
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
35
|
-
order(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
36
|
-
payment_gateway(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
37
|
-
isStripePayment(resource: any): resource is StripePayment;
|
38
|
-
relationship(id: string | ResourceId | null): StripePaymentRel;
|
39
|
-
type(): string;
|
40
|
-
}
|
41
|
-
export default StripePayments;
|
42
|
-
export { StripePayment, StripePaymentCreate, StripePaymentUpdate };
|
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 StripePaymentRel=ResourceRel&{type:typeof StripePayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface StripePayment extends Resource{client_secret?:string;publishable_key?:string;options?:object;payment_method?:object;mismatched_amounts?:boolean;intent_amount_cents?:number;intent_amount_float?:number;formatted_intent_amount?:string;order?:Order;payment_gateway?:PaymentGateway;}interface StripePaymentCreate extends ResourceCreate{options?:object;order:OrderRel;}interface StripePaymentUpdate extends ResourceUpdate{options?:object;_refresh?:boolean;order?:OrderRel;}declare class StripePayments extends ApiResource{static readonly TYPE:'stripe_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StripePayment>>;create(resource:StripePaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;update(resource:StripePaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StripePayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(stripePaymentId:string|StripePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(stripePaymentId:string|StripePayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isStripePayment(resource:any):resource is StripePayment;relationship(id:string|ResourceId|null):StripePaymentRel;type():string;}export default StripePayments;export{StripePayment,StripePaymentCreate,StripePaymentUpdate};
|
@@ -1,27 +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 TaxCalculatorRel = ResourceRel & {
|
7
|
-
type: typeof TaxCalculators.TYPE;
|
8
|
-
};
|
9
|
-
interface TaxCalculator extends Resource {
|
10
|
-
name?: string;
|
11
|
-
tax_categories?: TaxCategory[];
|
12
|
-
markets?: Market[];
|
13
|
-
attachments?: Attachment[];
|
14
|
-
}
|
15
|
-
declare class TaxCalculators extends ApiResource {
|
16
|
-
static readonly TYPE: 'tax_calculators';
|
17
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCalculator>>;
|
18
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCalculator>;
|
19
|
-
tax_categories(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
20
|
-
markets(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
21
|
-
attachments(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
22
|
-
isTaxCalculator(resource: any): resource is TaxCalculator;
|
23
|
-
relationship(id: string | ResourceId | null): TaxCalculatorRel;
|
24
|
-
type(): string;
|
25
|
-
}
|
26
|
-
export default TaxCalculators;
|
27
|
-
export { TaxCalculator };
|
1
|
+
import{ApiResource,Resource,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 TaxCalculatorRel=ResourceRel&{type:typeof TaxCalculators.TYPE;};interface TaxCalculator extends Resource{name?:string;tax_categories?:TaxCategory[];markets?:Market[];attachments?:Attachment[];}declare class TaxCalculators extends ApiResource{static readonly TYPE:'tax_calculators';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCalculator>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;tax_categories(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;markets(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(taxCalculatorId:string|TaxCalculator,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isTaxCalculator(resource:any):resource is TaxCalculator;relationship(id:string|ResourceId|null):TaxCalculatorRel;type():string;}export default TaxCalculators;export{TaxCalculator};
|
@@ -1,59 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Sku } from './skus';
|
4
|
-
import type { AvalaraAccount } from './avalara_accounts';
|
5
|
-
import type { TaxjarAccount } from './taxjar_accounts';
|
6
|
-
import type { ManualTaxCalculator } from './manual_tax_calculators';
|
7
|
-
import type { ExternalTaxCalculator } from './external_tax_calculators';
|
8
|
-
import type { Attachment } from './attachments';
|
9
|
-
declare type TaxCategoryRel = ResourceRel & {
|
10
|
-
type: typeof TaxCategories.TYPE;
|
11
|
-
};
|
12
|
-
declare type SkuRel = ResourceRel & {
|
13
|
-
type: 'skus';
|
14
|
-
};
|
15
|
-
declare type AvalaraAccountRel = ResourceRel & {
|
16
|
-
type: 'avalara_accounts';
|
17
|
-
};
|
18
|
-
declare type TaxjarAccountRel = ResourceRel & {
|
19
|
-
type: 'taxjar_accounts';
|
20
|
-
};
|
21
|
-
declare type ManualTaxCalculatorRel = ResourceRel & {
|
22
|
-
type: 'manual_tax_calculators';
|
23
|
-
};
|
24
|
-
declare type ExternalTaxCalculatorRel = ResourceRel & {
|
25
|
-
type: 'external_tax_calculators';
|
26
|
-
};
|
27
|
-
interface TaxCategory extends Resource {
|
28
|
-
code?: string;
|
29
|
-
sku_code?: string;
|
30
|
-
sku?: Sku;
|
31
|
-
tax_calculator?: AvalaraAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator;
|
32
|
-
attachments?: Attachment[];
|
33
|
-
}
|
34
|
-
interface TaxCategoryCreate extends ResourceCreate {
|
35
|
-
code: string;
|
36
|
-
sku_code?: string;
|
37
|
-
sku: SkuRel;
|
38
|
-
tax_calculator: AvalaraAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel;
|
39
|
-
}
|
40
|
-
interface TaxCategoryUpdate extends ResourceUpdate {
|
41
|
-
code?: string;
|
42
|
-
sku_code?: string;
|
43
|
-
sku?: SkuRel;
|
44
|
-
}
|
45
|
-
declare class TaxCategories extends ApiResource {
|
46
|
-
static readonly TYPE: 'tax_categories';
|
47
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>>;
|
48
|
-
create(resource: TaxCategoryCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCategory>;
|
49
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCategory>;
|
50
|
-
update(resource: TaxCategoryUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxCategory>;
|
51
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
52
|
-
sku(taxCategoryId: string | TaxCategory, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
53
|
-
attachments(taxCategoryId: string | TaxCategory, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
54
|
-
isTaxCategory(resource: any): resource is TaxCategory;
|
55
|
-
relationship(id: string | ResourceId | null): TaxCategoryRel;
|
56
|
-
type(): string;
|
57
|
-
}
|
58
|
-
export default TaxCategories;
|
59
|
-
export { TaxCategory, TaxCategoryCreate, TaxCategoryUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{AvalaraAccount}from'./avalara_accounts';import type{TaxjarAccount}from'./taxjar_accounts';import type{ManualTaxCalculator}from'./manual_tax_calculators';import type{ExternalTaxCalculator}from'./external_tax_calculators';import type{Attachment}from'./attachments';declare type TaxCategoryRel=ResourceRel&{type:typeof TaxCategories.TYPE;};declare type SkuRel=ResourceRel&{type:'skus';};declare type AvalaraAccountRel=ResourceRel&{type:'avalara_accounts';};declare type TaxjarAccountRel=ResourceRel&{type:'taxjar_accounts';};declare type ManualTaxCalculatorRel=ResourceRel&{type:'manual_tax_calculators';};declare type ExternalTaxCalculatorRel=ResourceRel&{type:'external_tax_calculators';};interface TaxCategory extends Resource{code?:string;sku_code?:string;sku?:Sku;tax_calculator?:AvalaraAccount|TaxjarAccount|ManualTaxCalculator|ExternalTaxCalculator;attachments?:Attachment[];}interface TaxCategoryCreate extends ResourceCreate{code:string;sku_code?:string;sku:SkuRel;tax_calculator:AvalaraAccountRel|TaxjarAccountRel|ManualTaxCalculatorRel|ExternalTaxCalculatorRel;}interface TaxCategoryUpdate extends ResourceUpdate{code?:string;sku_code?:string;sku?:SkuRel;}declare class TaxCategories extends ApiResource{static readonly TYPE:'tax_categories';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxCategory>>;create(resource:TaxCategoryCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;update(resource:TaxCategoryUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCategory>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku(taxCategoryId:string|TaxCategory,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;attachments(taxCategoryId:string|TaxCategory,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isTaxCategory(resource:any):resource is TaxCategory;relationship(id:string|ResourceId|null):TaxCategoryRel;type():string;}export default TaxCategories;export{TaxCategory,TaxCategoryCreate,TaxCategoryUpdate};
|
@@ -1,69 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { ManualTaxCalculator } from './manual_tax_calculators';
|
4
|
-
declare type TaxRuleRel = ResourceRel & {
|
5
|
-
type: typeof TaxRules.TYPE;
|
6
|
-
};
|
7
|
-
declare type ManualTaxCalculatorRel = ResourceRel & {
|
8
|
-
type: 'manual_tax_calculators';
|
9
|
-
};
|
10
|
-
interface TaxRule extends Resource {
|
11
|
-
name?: string;
|
12
|
-
tax_rate?: number;
|
13
|
-
country_code_regex?: string;
|
14
|
-
not_country_code_regex?: string;
|
15
|
-
state_code_regex?: string;
|
16
|
-
not_state_code_regex?: string;
|
17
|
-
zip_code_regex?: string;
|
18
|
-
not_zip_code_regex?: string;
|
19
|
-
freight_taxable?: boolean;
|
20
|
-
payment_method_taxable?: boolean;
|
21
|
-
gift_card_taxable?: boolean;
|
22
|
-
adjustment_taxable?: boolean;
|
23
|
-
breakdown?: object;
|
24
|
-
manual_tax_calculator?: ManualTaxCalculator;
|
25
|
-
}
|
26
|
-
interface TaxRuleCreate extends ResourceCreate {
|
27
|
-
name: string;
|
28
|
-
tax_rate?: number;
|
29
|
-
country_code_regex?: string;
|
30
|
-
not_country_code_regex?: string;
|
31
|
-
state_code_regex?: string;
|
32
|
-
not_state_code_regex?: string;
|
33
|
-
zip_code_regex?: string;
|
34
|
-
not_zip_code_regex?: string;
|
35
|
-
freight_taxable?: boolean;
|
36
|
-
payment_method_taxable?: boolean;
|
37
|
-
gift_card_taxable?: boolean;
|
38
|
-
adjustment_taxable?: boolean;
|
39
|
-
manual_tax_calculator: ManualTaxCalculatorRel;
|
40
|
-
}
|
41
|
-
interface TaxRuleUpdate extends ResourceUpdate {
|
42
|
-
name?: string;
|
43
|
-
tax_rate?: number;
|
44
|
-
country_code_regex?: string;
|
45
|
-
not_country_code_regex?: string;
|
46
|
-
state_code_regex?: string;
|
47
|
-
not_state_code_regex?: string;
|
48
|
-
zip_code_regex?: string;
|
49
|
-
not_zip_code_regex?: string;
|
50
|
-
freight_taxable?: boolean;
|
51
|
-
payment_method_taxable?: boolean;
|
52
|
-
gift_card_taxable?: boolean;
|
53
|
-
adjustment_taxable?: boolean;
|
54
|
-
manual_tax_calculator?: ManualTaxCalculatorRel;
|
55
|
-
}
|
56
|
-
declare class TaxRules extends ApiResource {
|
57
|
-
static readonly TYPE: 'tax_rules';
|
58
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<TaxRule>>;
|
59
|
-
create(resource: TaxRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxRule>;
|
60
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxRule>;
|
61
|
-
update(resource: TaxRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<TaxRule>;
|
62
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
63
|
-
manual_tax_calculator(taxRuleId: string | TaxRule, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualTaxCalculator>;
|
64
|
-
isTaxRule(resource: any): resource is TaxRule;
|
65
|
-
relationship(id: string | ResourceId | null): TaxRuleRel;
|
66
|
-
type(): string;
|
67
|
-
}
|
68
|
-
export default TaxRules;
|
69
|
-
export { TaxRule, TaxRuleCreate, TaxRuleUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{ManualTaxCalculator}from'./manual_tax_calculators';declare type TaxRuleRel=ResourceRel&{type:typeof TaxRules.TYPE;};declare type ManualTaxCalculatorRel=ResourceRel&{type:'manual_tax_calculators';};interface TaxRule extends Resource{name?:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;breakdown?:object;manual_tax_calculator?:ManualTaxCalculator;}interface TaxRuleCreate extends ResourceCreate{name:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;manual_tax_calculator:ManualTaxCalculatorRel;}interface TaxRuleUpdate extends ResourceUpdate{name?:string;tax_rate?:number;country_code_regex?:string;not_country_code_regex?:string;state_code_regex?:string;not_state_code_regex?:string;zip_code_regex?:string;not_zip_code_regex?:string;freight_taxable?:boolean;payment_method_taxable?:boolean;gift_card_taxable?:boolean;adjustment_taxable?:boolean;manual_tax_calculator?:ManualTaxCalculatorRel;}declare class TaxRules extends ApiResource{static readonly TYPE:'tax_rules';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<TaxRule>>;create(resource:TaxRuleCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;update(resource:TaxRuleUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxRule>;delete(id:string,options?:ResourcesConfig):Promise<void>;manual_tax_calculator(taxRuleId:string|TaxRule,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualTaxCalculator>;isTaxRule(resource:any):resource is TaxRule;relationship(id:string|ResourceId|null):TaxRuleRel;type():string;}export default TaxRules;export{TaxRule,TaxRuleCreate,TaxRuleUpdate};
|