@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,82 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { GiftCardRecipient } from './gift_card_recipients';
|
5
|
-
import type { Attachment } from './attachments';
|
6
|
-
declare type GiftCardRel = ResourceRel & {
|
7
|
-
type: typeof GiftCards.TYPE;
|
8
|
-
};
|
9
|
-
declare type MarketRel = ResourceRel & {
|
10
|
-
type: 'markets';
|
11
|
-
};
|
12
|
-
declare type GiftCardRecipientRel = ResourceRel & {
|
13
|
-
type: 'gift_card_recipients';
|
14
|
-
};
|
15
|
-
interface GiftCard extends Resource {
|
16
|
-
status?: string;
|
17
|
-
code?: string;
|
18
|
-
currency_code?: string;
|
19
|
-
initial_balance_cents?: number;
|
20
|
-
initial_balance_float?: number;
|
21
|
-
formatted_initial_balance?: string;
|
22
|
-
balance_cents?: number;
|
23
|
-
balance_float?: number;
|
24
|
-
formatted_balance?: string;
|
25
|
-
balance_max_cents?: string;
|
26
|
-
balance_max_float?: number;
|
27
|
-
formatted_balance_max?: string;
|
28
|
-
balance_log?: object[];
|
29
|
-
single_use?: boolean;
|
30
|
-
rechargeable?: boolean;
|
31
|
-
image_url?: string;
|
32
|
-
expires_at?: string;
|
33
|
-
recipient_email?: string;
|
34
|
-
market?: Market;
|
35
|
-
gift_card_recipient?: GiftCardRecipient;
|
36
|
-
attachments?: Attachment[];
|
37
|
-
}
|
38
|
-
interface GiftCardCreate extends ResourceCreate {
|
39
|
-
code?: string;
|
40
|
-
currency_code?: string;
|
41
|
-
balance_cents: number;
|
42
|
-
balance_max_cents?: string;
|
43
|
-
single_use?: boolean;
|
44
|
-
rechargeable?: boolean;
|
45
|
-
image_url?: string;
|
46
|
-
expires_at?: string;
|
47
|
-
recipient_email?: string;
|
48
|
-
market?: MarketRel;
|
49
|
-
gift_card_recipient?: GiftCardRecipientRel;
|
50
|
-
}
|
51
|
-
interface GiftCardUpdate extends ResourceUpdate {
|
52
|
-
currency_code?: string;
|
53
|
-
balance_cents?: number;
|
54
|
-
balance_max_cents?: string;
|
55
|
-
single_use?: boolean;
|
56
|
-
rechargeable?: boolean;
|
57
|
-
image_url?: string;
|
58
|
-
expires_at?: string;
|
59
|
-
recipient_email?: string;
|
60
|
-
_purchase?: boolean;
|
61
|
-
_activate?: boolean;
|
62
|
-
_deactivate?: boolean;
|
63
|
-
_balance_change_cents?: number;
|
64
|
-
market?: MarketRel;
|
65
|
-
gift_card_recipient?: GiftCardRecipientRel;
|
66
|
-
}
|
67
|
-
declare class GiftCards extends ApiResource {
|
68
|
-
static readonly TYPE: 'gift_cards';
|
69
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCard>>;
|
70
|
-
create(resource: GiftCardCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
71
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
72
|
-
update(resource: GiftCardUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
73
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
74
|
-
market(giftCardId: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
75
|
-
gift_card_recipient(giftCardId: string | GiftCard, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
76
|
-
attachments(giftCardId: string | GiftCard, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
77
|
-
isGiftCard(resource: any): resource is GiftCard;
|
78
|
-
relationship(id: string | ResourceId | null): GiftCardRel;
|
79
|
-
type(): string;
|
80
|
-
}
|
81
|
-
export default GiftCards;
|
82
|
-
export { GiftCard, GiftCardCreate, GiftCardUpdate };
|
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{GiftCardRecipient}from'./gift_card_recipients';import type{Attachment}from'./attachments';declare type GiftCardRel=ResourceRel&{type:typeof GiftCards.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type GiftCardRecipientRel=ResourceRel&{type:'gift_card_recipients';};interface GiftCard extends Resource{status?:string;code?:string;currency_code?:string;initial_balance_cents?:number;initial_balance_float?:number;formatted_initial_balance?:string;balance_cents?:number;balance_float?:number;formatted_balance?:string;balance_max_cents?:string;balance_max_float?:number;formatted_balance_max?:string;balance_log?:object[];single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:Market;gift_card_recipient?:GiftCardRecipient;attachments?:Attachment[];}interface GiftCardCreate extends ResourceCreate{code?:string;currency_code?:string;balance_cents:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}interface GiftCardUpdate extends ResourceUpdate{currency_code?:string;balance_cents?:number;balance_max_cents?:string;single_use?:boolean;rechargeable?:boolean;image_url?:string;expires_at?:string;recipient_email?:string;_purchase?:boolean;_activate?:boolean;_deactivate?:boolean;_balance_change_cents?:number;market?:MarketRel;gift_card_recipient?:GiftCardRecipientRel;}declare class GiftCards extends ApiResource{static readonly TYPE:'gift_cards';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<GiftCard>>;create(resource:GiftCardCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;update(resource:GiftCardUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCard>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;gift_card_recipient(giftCardId:string|GiftCard,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GiftCardRecipient>;attachments(giftCardId:string|GiftCard,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isGiftCard(resource:any):resource is GiftCard;relationship(id:string|ResourceId|null):GiftCardRel;type():string;}export default GiftCards;export{GiftCard,GiftCardCreate,GiftCardUpdate};
|
@@ -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 GoogleGeocoderRel = ResourceRel & {
|
6
|
-
type: typeof GoogleGeocoders.TYPE;
|
7
|
-
};
|
8
|
-
interface GoogleGeocoder extends Resource {
|
9
|
-
name?: string;
|
10
|
-
addresses?: Address[];
|
11
|
-
attachments?: Attachment[];
|
12
|
-
}
|
13
|
-
interface GoogleGeocoderCreate extends ResourceCreate {
|
14
|
-
name: string;
|
15
|
-
api_key: string;
|
16
|
-
}
|
17
|
-
interface GoogleGeocoderUpdate extends ResourceUpdate {
|
18
|
-
name?: string;
|
19
|
-
api_key?: string;
|
20
|
-
}
|
21
|
-
declare class GoogleGeocoders extends ApiResource {
|
22
|
-
static readonly TYPE: 'google_geocoders';
|
23
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GoogleGeocoder>>;
|
24
|
-
create(resource: GoogleGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
25
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
26
|
-
update(resource: GoogleGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
27
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
28
|
-
addresses(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
|
29
|
-
attachments(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
30
|
-
isGoogleGeocoder(resource: any): resource is GoogleGeocoder;
|
31
|
-
relationship(id: string | ResourceId | null): GoogleGeocoderRel;
|
32
|
-
type(): string;
|
33
|
-
}
|
34
|
-
export default GoogleGeocoders;
|
35
|
-
export { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoderUpdate };
|
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 GoogleGeocoderRel=ResourceRel&{type:typeof GoogleGeocoders.TYPE;};interface GoogleGeocoder extends Resource{name?:string;addresses?:Address[];attachments?:Attachment[];}interface GoogleGeocoderCreate extends ResourceCreate{name:string;api_key:string;}interface GoogleGeocoderUpdate extends ResourceUpdate{name?:string;api_key?:string;}declare class GoogleGeocoders extends ApiResource{static readonly TYPE:'google_geocoders';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<GoogleGeocoder>>;create(resource:GoogleGeocoderCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GoogleGeocoder>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GoogleGeocoder>;update(resource:GoogleGeocoderUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<GoogleGeocoder>;delete(id:string,options?:ResourcesConfig):Promise<void>;addresses(googleGeocoderId:string|GoogleGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Address>>;attachments(googleGeocoderId:string|GoogleGeocoder,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isGoogleGeocoder(resource:any):resource is GoogleGeocoder;relationship(id:string|ResourceId|null):GoogleGeocoderRel;type():string;}export default GoogleGeocoders;export{GoogleGeocoder,GoogleGeocoderCreate,GoogleGeocoderUpdate};
|
@@ -1,40 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
declare type ImportRel = ResourceRel & {
|
4
|
-
type: typeof Imports.TYPE;
|
5
|
-
};
|
6
|
-
interface Import extends Resource {
|
7
|
-
resource_type?: string;
|
8
|
-
parent_resource_id?: string;
|
9
|
-
status?: string;
|
10
|
-
started_at?: string;
|
11
|
-
completed_at?: string;
|
12
|
-
interrupted_at?: string;
|
13
|
-
inputs?: object[];
|
14
|
-
inputs_size?: number;
|
15
|
-
errors_count?: number;
|
16
|
-
warnings_count?: number;
|
17
|
-
destroyed_count?: number;
|
18
|
-
processed_count?: number;
|
19
|
-
errors_log?: object;
|
20
|
-
warnings_log?: object;
|
21
|
-
cleanup_records?: boolean;
|
22
|
-
}
|
23
|
-
interface ImportCreate extends ResourceCreate {
|
24
|
-
resource_type: string;
|
25
|
-
parent_resource_id?: string;
|
26
|
-
inputs: object[];
|
27
|
-
cleanup_records?: boolean;
|
28
|
-
}
|
29
|
-
declare class Imports extends ApiResource {
|
30
|
-
static readonly TYPE: 'imports';
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Import>>;
|
32
|
-
create(resource: ImportCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Import>;
|
33
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Import>;
|
34
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
35
|
-
isImport(resource: any): resource is Import;
|
36
|
-
relationship(id: string | ResourceId | null): ImportRel;
|
37
|
-
type(): string;
|
38
|
-
}
|
39
|
-
export default Imports;
|
40
|
-
export { Import, ImportCreate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';declare type ImportRel=ResourceRel&{type:typeof Imports.TYPE;};interface Import extends Resource{resource_type?:string;parent_resource_id?:string;status?:string;started_at?:string;completed_at?:string;interrupted_at?:string;inputs?:object[];inputs_size?:number;errors_count?:number;warnings_count?:number;destroyed_count?:number;processed_count?:number;errors_log?:object;warnings_log?:object;cleanup_records?:boolean;}interface ImportCreate extends ResourceCreate{resource_type:string;parent_resource_id?:string;inputs:object[];cleanup_records?:boolean;}declare class Imports extends ApiResource{static readonly TYPE:'imports';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Import>>;create(resource:ImportCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Import>;delete(id:string,options?:ResourcesConfig):Promise<void>;isImport(resource:any):resource is Import;relationship(id:string|ResourceId|null):ImportRel;type():string;}export default Imports;export{Import,ImportCreate};
|
@@ -1,59 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Market } from './markets';
|
4
|
-
import type { Customer } from './customers';
|
5
|
-
import type { Sku } from './skus';
|
6
|
-
declare type InStockSubscriptionRel = ResourceRel & {
|
7
|
-
type: typeof InStockSubscriptions.TYPE;
|
8
|
-
};
|
9
|
-
declare type MarketRel = ResourceRel & {
|
10
|
-
type: 'markets';
|
11
|
-
};
|
12
|
-
declare type CustomerRel = ResourceRel & {
|
13
|
-
type: 'customers';
|
14
|
-
};
|
15
|
-
declare type SkuRel = ResourceRel & {
|
16
|
-
type: 'skus';
|
17
|
-
};
|
18
|
-
interface InStockSubscription extends Resource {
|
19
|
-
status?: string;
|
20
|
-
customer_email?: string;
|
21
|
-
sku_code?: string;
|
22
|
-
stock_threshold?: number;
|
23
|
-
market?: Market;
|
24
|
-
customer?: Customer;
|
25
|
-
sku?: Sku;
|
26
|
-
}
|
27
|
-
interface InStockSubscriptionCreate extends ResourceCreate {
|
28
|
-
customer_email?: string;
|
29
|
-
sku_code?: string;
|
30
|
-
stock_threshold?: number;
|
31
|
-
market: MarketRel;
|
32
|
-
customer: CustomerRel;
|
33
|
-
sku: SkuRel;
|
34
|
-
}
|
35
|
-
interface InStockSubscriptionUpdate extends ResourceUpdate {
|
36
|
-
sku_code?: string;
|
37
|
-
stock_threshold?: number;
|
38
|
-
_activate?: boolean;
|
39
|
-
_deactivate?: boolean;
|
40
|
-
market?: MarketRel;
|
41
|
-
customer?: CustomerRel;
|
42
|
-
sku?: SkuRel;
|
43
|
-
}
|
44
|
-
declare class InStockSubscriptions extends ApiResource {
|
45
|
-
static readonly TYPE: 'in_stock_subscriptions';
|
46
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InStockSubscription>>;
|
47
|
-
create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
48
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
49
|
-
update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
50
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
51
|
-
market(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Market>;
|
52
|
-
customer(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
53
|
-
sku(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
54
|
-
isInStockSubscription(resource: any): resource is InStockSubscription;
|
55
|
-
relationship(id: string | ResourceId | null): InStockSubscriptionRel;
|
56
|
-
type(): string;
|
57
|
-
}
|
58
|
-
export default InStockSubscriptions;
|
59
|
-
export { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate };
|
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{Customer}from'./customers';import type{Sku}from'./skus';declare type InStockSubscriptionRel=ResourceRel&{type:typeof InStockSubscriptions.TYPE;};declare type MarketRel=ResourceRel&{type:'markets';};declare type CustomerRel=ResourceRel&{type:'customers';};declare type SkuRel=ResourceRel&{type:'skus';};interface InStockSubscription extends Resource{status?:string;customer_email?:string;sku_code?:string;stock_threshold?:number;market?:Market;customer?:Customer;sku?:Sku;}interface InStockSubscriptionCreate extends ResourceCreate{customer_email?:string;sku_code?:string;stock_threshold?:number;market:MarketRel;customer:CustomerRel;sku:SkuRel;}interface InStockSubscriptionUpdate extends ResourceUpdate{sku_code?:string;stock_threshold?:number;_activate?:boolean;_deactivate?:boolean;market?:MarketRel;customer?:CustomerRel;sku?:SkuRel;}declare class InStockSubscriptions extends ApiResource{static readonly TYPE:'in_stock_subscriptions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InStockSubscription>>;create(resource:InStockSubscriptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;update(resource:InStockSubscriptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InStockSubscription>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;customer(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Customer>;sku(inStockSubscriptionId:string|InStockSubscription,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;isInStockSubscription(resource:any):resource is InStockSubscription;relationship(id:string|ResourceId|null):InStockSubscriptionRel;type():string;}export default InStockSubscriptions;export{InStockSubscription,InStockSubscriptionCreate,InStockSubscriptionUpdate};
|
@@ -1,42 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { InventoryStockLocation } from './inventory_stock_locations';
|
4
|
-
import type { InventoryReturnLocation } from './inventory_return_locations';
|
5
|
-
import type { Attachment } from './attachments';
|
6
|
-
declare type InventoryModelRel = ResourceRel & {
|
7
|
-
type: typeof InventoryModels.TYPE;
|
8
|
-
};
|
9
|
-
interface InventoryModel extends Resource {
|
10
|
-
name?: string;
|
11
|
-
strategy?: string;
|
12
|
-
stock_locations_cutoff?: number;
|
13
|
-
inventory_stock_locations?: InventoryStockLocation[];
|
14
|
-
inventory_return_locations?: InventoryReturnLocation[];
|
15
|
-
attachments?: Attachment[];
|
16
|
-
}
|
17
|
-
interface InventoryModelCreate extends ResourceCreate {
|
18
|
-
name: string;
|
19
|
-
strategy: string;
|
20
|
-
stock_locations_cutoff?: number;
|
21
|
-
}
|
22
|
-
interface InventoryModelUpdate extends ResourceUpdate {
|
23
|
-
name?: string;
|
24
|
-
strategy?: string;
|
25
|
-
stock_locations_cutoff?: number;
|
26
|
-
}
|
27
|
-
declare class InventoryModels extends ApiResource {
|
28
|
-
static readonly TYPE: 'inventory_models';
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryModel>>;
|
30
|
-
create(resource: InventoryModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
31
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
32
|
-
update(resource: InventoryModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
33
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
34
|
-
inventory_stock_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
|
35
|
-
inventory_return_locations(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
|
36
|
-
attachments(inventoryModelId: string | InventoryModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
37
|
-
isInventoryModel(resource: any): resource is InventoryModel;
|
38
|
-
relationship(id: string | ResourceId | null): InventoryModelRel;
|
39
|
-
type(): string;
|
40
|
-
}
|
41
|
-
export default InventoryModels;
|
42
|
-
export { InventoryModel, InventoryModelCreate, InventoryModelUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{InventoryStockLocation}from'./inventory_stock_locations';import type{InventoryReturnLocation}from'./inventory_return_locations';import type{Attachment}from'./attachments';declare type InventoryModelRel=ResourceRel&{type:typeof InventoryModels.TYPE;};interface InventoryModel extends Resource{name?:string;strategy?:string;stock_locations_cutoff?:number;inventory_stock_locations?:InventoryStockLocation[];inventory_return_locations?:InventoryReturnLocation[];attachments?:Attachment[];}interface InventoryModelCreate extends ResourceCreate{name:string;strategy:string;stock_locations_cutoff?:number;}interface InventoryModelUpdate extends ResourceUpdate{name?:string;strategy?:string;stock_locations_cutoff?:number;}declare class InventoryModels extends ApiResource{static readonly TYPE:'inventory_models';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryModel>>;create(resource:InventoryModelCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;update(resource:InventoryModelUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;delete(id:string,options?:ResourcesConfig):Promise<void>;inventory_stock_locations(inventoryModelId:string|InventoryModel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryStockLocation>>;inventory_return_locations(inventoryModelId:string|InventoryModel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryReturnLocation>>;attachments(inventoryModelId:string|InventoryModel,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;isInventoryModel(resource:any):resource is InventoryModel;relationship(id:string|ResourceId|null):InventoryModelRel;type():string;}export default InventoryModels;export{InventoryModel,InventoryModelCreate,InventoryModelUpdate};
|
@@ -1,43 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { StockLocation } from './stock_locations';
|
4
|
-
import type { InventoryModel } from './inventory_models';
|
5
|
-
declare type InventoryReturnLocationRel = ResourceRel & {
|
6
|
-
type: typeof InventoryReturnLocations.TYPE;
|
7
|
-
};
|
8
|
-
declare type StockLocationRel = ResourceRel & {
|
9
|
-
type: 'stock_locations';
|
10
|
-
};
|
11
|
-
declare type InventoryModelRel = ResourceRel & {
|
12
|
-
type: 'inventory_models';
|
13
|
-
};
|
14
|
-
interface InventoryReturnLocation extends Resource {
|
15
|
-
priority?: number;
|
16
|
-
stock_location?: StockLocation;
|
17
|
-
inventory_model?: InventoryModel;
|
18
|
-
}
|
19
|
-
interface InventoryReturnLocationCreate extends ResourceCreate {
|
20
|
-
priority: number;
|
21
|
-
stock_location: StockLocationRel;
|
22
|
-
inventory_model: InventoryModelRel;
|
23
|
-
}
|
24
|
-
interface InventoryReturnLocationUpdate extends ResourceUpdate {
|
25
|
-
priority?: number;
|
26
|
-
stock_location?: StockLocationRel;
|
27
|
-
inventory_model?: InventoryModelRel;
|
28
|
-
}
|
29
|
-
declare class InventoryReturnLocations extends ApiResource {
|
30
|
-
static readonly TYPE: 'inventory_return_locations';
|
31
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
|
32
|
-
create(resource: InventoryReturnLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
33
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
34
|
-
update(resource: InventoryReturnLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
35
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
|
-
stock_location(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
37
|
-
inventory_model(inventoryReturnLocationId: string | InventoryReturnLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
38
|
-
isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
|
39
|
-
relationship(id: string | ResourceId | null): InventoryReturnLocationRel;
|
40
|
-
type(): string;
|
41
|
-
}
|
42
|
-
export default InventoryReturnLocations;
|
43
|
-
export { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate };
|
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{InventoryModel}from'./inventory_models';declare type InventoryReturnLocationRel=ResourceRel&{type:typeof InventoryReturnLocations.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type InventoryModelRel=ResourceRel&{type:'inventory_models';};interface InventoryReturnLocation extends Resource{priority?:number;stock_location?:StockLocation;inventory_model?:InventoryModel;}interface InventoryReturnLocationCreate extends ResourceCreate{priority:number;stock_location:StockLocationRel;inventory_model:InventoryModelRel;}interface InventoryReturnLocationUpdate extends ResourceUpdate{priority?:number;stock_location?:StockLocationRel;inventory_model?:InventoryModelRel;}declare class InventoryReturnLocations extends ApiResource{static readonly TYPE:'inventory_return_locations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryReturnLocation>>;create(resource:InventoryReturnLocationCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryReturnLocation>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryReturnLocation>;update(resource:InventoryReturnLocationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryReturnLocation>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(inventoryReturnLocationId:string|InventoryReturnLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;inventory_model(inventoryReturnLocationId:string|InventoryReturnLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;isInventoryReturnLocation(resource:any):resource is InventoryReturnLocation;relationship(id:string|ResourceId|null):InventoryReturnLocationRel;type():string;}export default InventoryReturnLocations;export{InventoryReturnLocation,InventoryReturnLocationCreate,InventoryReturnLocationUpdate};
|
@@ -1,46 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { StockLocation } from './stock_locations';
|
4
|
-
import type { InventoryModel } from './inventory_models';
|
5
|
-
declare type InventoryStockLocationRel = ResourceRel & {
|
6
|
-
type: typeof InventoryStockLocations.TYPE;
|
7
|
-
};
|
8
|
-
declare type StockLocationRel = ResourceRel & {
|
9
|
-
type: 'stock_locations';
|
10
|
-
};
|
11
|
-
declare type InventoryModelRel = ResourceRel & {
|
12
|
-
type: 'inventory_models';
|
13
|
-
};
|
14
|
-
interface InventoryStockLocation extends Resource {
|
15
|
-
priority?: number;
|
16
|
-
on_hold?: boolean;
|
17
|
-
stock_location?: StockLocation;
|
18
|
-
inventory_model?: InventoryModel;
|
19
|
-
}
|
20
|
-
interface InventoryStockLocationCreate extends ResourceCreate {
|
21
|
-
priority: number;
|
22
|
-
on_hold?: boolean;
|
23
|
-
stock_location: StockLocationRel;
|
24
|
-
inventory_model: InventoryModelRel;
|
25
|
-
}
|
26
|
-
interface InventoryStockLocationUpdate extends ResourceUpdate {
|
27
|
-
priority?: number;
|
28
|
-
on_hold?: boolean;
|
29
|
-
stock_location?: StockLocationRel;
|
30
|
-
inventory_model?: InventoryModelRel;
|
31
|
-
}
|
32
|
-
declare class InventoryStockLocations extends ApiResource {
|
33
|
-
static readonly TYPE: 'inventory_stock_locations';
|
34
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
|
35
|
-
create(resource: InventoryStockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
36
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
37
|
-
update(resource: InventoryStockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
38
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
|
-
stock_location(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<StockLocation>;
|
40
|
-
inventory_model(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
41
|
-
isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
|
42
|
-
relationship(id: string | ResourceId | null): InventoryStockLocationRel;
|
43
|
-
type(): string;
|
44
|
-
}
|
45
|
-
export default InventoryStockLocations;
|
46
|
-
export { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate };
|
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{InventoryModel}from'./inventory_models';declare type InventoryStockLocationRel=ResourceRel&{type:typeof InventoryStockLocations.TYPE;};declare type StockLocationRel=ResourceRel&{type:'stock_locations';};declare type InventoryModelRel=ResourceRel&{type:'inventory_models';};interface InventoryStockLocation extends Resource{priority?:number;on_hold?:boolean;stock_location?:StockLocation;inventory_model?:InventoryModel;}interface InventoryStockLocationCreate extends ResourceCreate{priority:number;on_hold?:boolean;stock_location:StockLocationRel;inventory_model:InventoryModelRel;}interface InventoryStockLocationUpdate extends ResourceUpdate{priority?:number;on_hold?:boolean;stock_location?:StockLocationRel;inventory_model?:InventoryModelRel;}declare class InventoryStockLocations extends ApiResource{static readonly TYPE:'inventory_stock_locations';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<InventoryStockLocation>>;create(resource:InventoryStockLocationCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;update(resource:InventoryStockLocationUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryStockLocation>;delete(id:string,options?:ResourcesConfig):Promise<void>;stock_location(inventoryStockLocationId:string|InventoryStockLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;inventory_model(inventoryStockLocationId:string|InventoryStockLocation,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;isInventoryStockLocation(resource:any):resource is InventoryStockLocation;relationship(id:string|ResourceId|null):InventoryStockLocationRel;type():string;}export default InventoryStockLocations;export{InventoryStockLocation,InventoryStockLocationCreate,InventoryStockLocationUpdate};
|
@@ -1,44 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PaymentMethod } from './payment_methods';
|
4
|
-
import type { KlarnaPayment } from './klarna_payments';
|
5
|
-
declare type KlarnaGatewayRel = ResourceRel & {
|
6
|
-
type: typeof KlarnaGateways.TYPE;
|
7
|
-
};
|
8
|
-
declare type KlarnaPaymentRel = ResourceRel & {
|
9
|
-
type: 'klarna_payments';
|
10
|
-
};
|
11
|
-
interface KlarnaGateway extends Resource {
|
12
|
-
name?: string;
|
13
|
-
payment_methods?: PaymentMethod[];
|
14
|
-
klarna_payments?: KlarnaPayment[];
|
15
|
-
}
|
16
|
-
interface KlarnaGatewayCreate extends ResourceCreate {
|
17
|
-
name: string;
|
18
|
-
country_code: string;
|
19
|
-
api_key: string;
|
20
|
-
api_secret: string;
|
21
|
-
klarna_payments?: KlarnaPaymentRel[];
|
22
|
-
}
|
23
|
-
interface KlarnaGatewayUpdate extends ResourceUpdate {
|
24
|
-
name?: string;
|
25
|
-
country_code?: string;
|
26
|
-
api_key?: string;
|
27
|
-
api_secret?: string;
|
28
|
-
klarna_payments?: KlarnaPaymentRel[];
|
29
|
-
}
|
30
|
-
declare class KlarnaGateways extends ApiResource {
|
31
|
-
static readonly TYPE: 'klarna_gateways';
|
32
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaGateway>>;
|
33
|
-
create(resource: KlarnaGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
|
34
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
|
35
|
-
update(resource: KlarnaGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaGateway>;
|
36
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
|
-
payment_methods(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
38
|
-
klarna_payments(klarnaGatewayId: string | KlarnaGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
|
39
|
-
isKlarnaGateway(resource: any): resource is KlarnaGateway;
|
40
|
-
relationship(id: string | ResourceId | null): KlarnaGatewayRel;
|
41
|
-
type(): string;
|
42
|
-
}
|
43
|
-
export default KlarnaGateways;
|
44
|
-
export { KlarnaGateway, KlarnaGatewayCreate, KlarnaGatewayUpdate };
|
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{KlarnaPayment}from'./klarna_payments';declare type KlarnaGatewayRel=ResourceRel&{type:typeof KlarnaGateways.TYPE;};declare type KlarnaPaymentRel=ResourceRel&{type:'klarna_payments';};interface KlarnaGateway extends Resource{name?:string;payment_methods?:PaymentMethod[];klarna_payments?:KlarnaPayment[];}interface KlarnaGatewayCreate extends ResourceCreate{name:string;country_code:string;api_key:string;api_secret:string;klarna_payments?:KlarnaPaymentRel[];}interface KlarnaGatewayUpdate extends ResourceUpdate{name?:string;country_code?:string;api_key?:string;api_secret?:string;klarna_payments?:KlarnaPaymentRel[];}declare class KlarnaGateways extends ApiResource{static readonly TYPE:'klarna_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<KlarnaGateway>>;create(resource:KlarnaGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaGateway>;update(resource:KlarnaGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(klarnaGatewayId:string|KlarnaGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;klarna_payments(klarnaGatewayId:string|KlarnaGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<KlarnaPayment>>;isKlarnaGateway(resource:any):resource is KlarnaGateway;relationship(id:string|ResourceId|null):KlarnaGatewayRel;type():string;}export default KlarnaGateways;export{KlarnaGateway,KlarnaGatewayCreate,KlarnaGatewayUpdate};
|
@@ -1,41 +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 KlarnaPaymentRel = ResourceRel & {
|
6
|
-
type: typeof KlarnaPayments.TYPE;
|
7
|
-
};
|
8
|
-
declare type OrderRel = ResourceRel & {
|
9
|
-
type: 'orders';
|
10
|
-
};
|
11
|
-
interface KlarnaPayment extends Resource {
|
12
|
-
session_id?: string;
|
13
|
-
client_token?: string;
|
14
|
-
payment_methods?: object[];
|
15
|
-
auth_token?: string;
|
16
|
-
order?: Order;
|
17
|
-
payment_gateway?: PaymentGateway;
|
18
|
-
}
|
19
|
-
interface KlarnaPaymentCreate extends ResourceCreate {
|
20
|
-
order: OrderRel;
|
21
|
-
}
|
22
|
-
interface KlarnaPaymentUpdate extends ResourceUpdate {
|
23
|
-
auth_token?: string;
|
24
|
-
_update?: boolean;
|
25
|
-
order?: OrderRel;
|
26
|
-
}
|
27
|
-
declare class KlarnaPayments extends ApiResource {
|
28
|
-
static readonly TYPE: 'klarna_payments';
|
29
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<KlarnaPayment>>;
|
30
|
-
create(resource: KlarnaPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
31
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
32
|
-
update(resource: KlarnaPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<KlarnaPayment>;
|
33
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
34
|
-
order(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
35
|
-
payment_gateway(klarnaPaymentId: string | KlarnaPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
36
|
-
isKlarnaPayment(resource: any): resource is KlarnaPayment;
|
37
|
-
relationship(id: string | ResourceId | null): KlarnaPaymentRel;
|
38
|
-
type(): string;
|
39
|
-
}
|
40
|
-
export default KlarnaPayments;
|
41
|
-
export { KlarnaPayment, KlarnaPaymentCreate, KlarnaPaymentUpdate };
|
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 KlarnaPaymentRel=ResourceRel&{type:typeof KlarnaPayments.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};interface KlarnaPayment extends Resource{session_id?:string;client_token?:string;payment_methods?:object[];auth_token?:string;order?:Order;payment_gateway?:PaymentGateway;}interface KlarnaPaymentCreate extends ResourceCreate{order:OrderRel;}interface KlarnaPaymentUpdate extends ResourceUpdate{auth_token?:string;_update?:boolean;order?:OrderRel;}declare class KlarnaPayments extends ApiResource{static readonly TYPE:'klarna_payments';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<KlarnaPayment>>;create(resource:KlarnaPaymentCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaPayment>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaPayment>;update(resource:KlarnaPaymentUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<KlarnaPayment>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(klarnaPaymentId:string|KlarnaPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;payment_gateway(klarnaPaymentId:string|KlarnaPayment,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PaymentGateway>;isKlarnaPayment(resource:any):resource is KlarnaPayment;relationship(id:string|ResourceId|null):KlarnaPaymentRel;type():string;}export default KlarnaPayments;export{KlarnaPayment,KlarnaPaymentCreate,KlarnaPaymentUpdate};
|
@@ -1,57 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { LineItem } from './line_items';
|
4
|
-
import type { SkuOption } from './sku_options';
|
5
|
-
declare type LineItemOptionRel = ResourceRel & {
|
6
|
-
type: typeof LineItemOptions.TYPE;
|
7
|
-
};
|
8
|
-
declare type LineItemRel = ResourceRel & {
|
9
|
-
type: 'line_items';
|
10
|
-
};
|
11
|
-
declare type SkuOptionRel = ResourceRel & {
|
12
|
-
type: 'sku_options';
|
13
|
-
};
|
14
|
-
interface LineItemOption extends Resource {
|
15
|
-
name?: string;
|
16
|
-
quantity?: number;
|
17
|
-
currency_code?: string;
|
18
|
-
unit_amount_cents?: number;
|
19
|
-
unit_amount_float?: number;
|
20
|
-
formatted_unit_amount?: string;
|
21
|
-
total_amount_cents?: number;
|
22
|
-
total_amount_float?: number;
|
23
|
-
formatted_total_amount?: string;
|
24
|
-
delay_hours?: number;
|
25
|
-
delay_days?: number;
|
26
|
-
options?: object;
|
27
|
-
line_item?: LineItem;
|
28
|
-
sku_option?: SkuOption;
|
29
|
-
}
|
30
|
-
interface LineItemOptionCreate extends ResourceCreate {
|
31
|
-
name?: string;
|
32
|
-
quantity: number;
|
33
|
-
options: object;
|
34
|
-
line_item: LineItemRel;
|
35
|
-
sku_option: SkuOptionRel;
|
36
|
-
}
|
37
|
-
interface LineItemOptionUpdate extends ResourceUpdate {
|
38
|
-
name?: string;
|
39
|
-
quantity?: number;
|
40
|
-
options?: object;
|
41
|
-
sku_option?: SkuOptionRel;
|
42
|
-
}
|
43
|
-
declare class LineItemOptions extends ApiResource {
|
44
|
-
static readonly TYPE: 'line_item_options';
|
45
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
|
46
|
-
create(resource: LineItemOptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
|
47
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
|
48
|
-
update(resource: LineItemOptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItemOption>;
|
49
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
50
|
-
line_item(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
51
|
-
sku_option(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuOption>;
|
52
|
-
isLineItemOption(resource: any): resource is LineItemOption;
|
53
|
-
relationship(id: string | ResourceId | null): LineItemOptionRel;
|
54
|
-
type(): string;
|
55
|
-
}
|
56
|
-
export default LineItemOptions;
|
57
|
-
export { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{LineItem}from'./line_items';import type{SkuOption}from'./sku_options';declare type LineItemOptionRel=ResourceRel&{type:typeof LineItemOptions.TYPE;};declare type LineItemRel=ResourceRel&{type:'line_items';};declare type SkuOptionRel=ResourceRel&{type:'sku_options';};interface LineItemOption extends Resource{name?:string;quantity?:number;currency_code?:string;unit_amount_cents?:number;unit_amount_float?:number;formatted_unit_amount?:string;total_amount_cents?:number;total_amount_float?:number;formatted_total_amount?:string;delay_hours?:number;delay_days?:number;options?:object;line_item?:LineItem;sku_option?:SkuOption;}interface LineItemOptionCreate extends ResourceCreate{name?:string;quantity:number;options:object;line_item:LineItemRel;sku_option:SkuOptionRel;}interface LineItemOptionUpdate extends ResourceUpdate{name?:string;quantity?:number;options?:object;sku_option?:SkuOptionRel;}declare class LineItemOptions extends ApiResource{static readonly TYPE:'line_item_options';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;create(resource:LineItemOptionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItemOption>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItemOption>;update(resource:LineItemOptionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItemOption>;delete(id:string,options?:ResourcesConfig):Promise<void>;line_item(lineItemOptionId:string|LineItemOption,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;sku_option(lineItemOptionId:string|LineItemOption,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuOption>;isLineItemOption(resource:any):resource is LineItemOption;relationship(id:string|ResourceId|null):LineItemOptionRel;type():string;}export default LineItemOptions;export{LineItemOption,LineItemOptionCreate,LineItemOptionUpdate};
|