@commercelayer/sdk 4.7.5 → 4.7.6
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/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/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/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/util.d.ts +1 -2
- package/package.json +3 -3
@@ -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};
|
@@ -1,125 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { Order } from './orders';
|
4
|
-
import type { Adjustment } from './adjustments';
|
5
|
-
import type { Bundle } from './bundles';
|
6
|
-
import type { ExternalPromotion } from './external_promotions';
|
7
|
-
import type { FixedAmountPromotion } from './fixed_amount_promotions';
|
8
|
-
import type { FreeShippingPromotion } from './free_shipping_promotions';
|
9
|
-
import type { GiftCard } from './gift_cards';
|
10
|
-
import type { PaymentMethod } from './payment_methods';
|
11
|
-
import type { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
12
|
-
import type { Shipment } from './shipments';
|
13
|
-
import type { Sku } from './skus';
|
14
|
-
import type { LineItemOption } from './line_item_options';
|
15
|
-
import type { StockLineItem } from './stock_line_items';
|
16
|
-
import type { StockTransfer } from './stock_transfers';
|
17
|
-
declare type LineItemRel = ResourceRel & {
|
18
|
-
type: typeof LineItems.TYPE;
|
19
|
-
};
|
20
|
-
declare type OrderRel = ResourceRel & {
|
21
|
-
type: 'orders';
|
22
|
-
};
|
23
|
-
declare type AdjustmentRel = ResourceRel & {
|
24
|
-
type: 'adjustments';
|
25
|
-
};
|
26
|
-
declare type BundleRel = ResourceRel & {
|
27
|
-
type: 'bundles';
|
28
|
-
};
|
29
|
-
declare type ExternalPromotionRel = ResourceRel & {
|
30
|
-
type: 'external_promotions';
|
31
|
-
};
|
32
|
-
declare type FixedAmountPromotionRel = ResourceRel & {
|
33
|
-
type: 'fixed_amount_promotions';
|
34
|
-
};
|
35
|
-
declare type FreeShippingPromotionRel = ResourceRel & {
|
36
|
-
type: 'free_shipping_promotions';
|
37
|
-
};
|
38
|
-
declare type GiftCardRel = ResourceRel & {
|
39
|
-
type: 'gift_cards';
|
40
|
-
};
|
41
|
-
declare type PaymentMethodRel = ResourceRel & {
|
42
|
-
type: 'payment_methods';
|
43
|
-
};
|
44
|
-
declare type PercentageDiscountPromotionRel = ResourceRel & {
|
45
|
-
type: 'percentage_discount_promotions';
|
46
|
-
};
|
47
|
-
declare type ShipmentRel = ResourceRel & {
|
48
|
-
type: 'shipments';
|
49
|
-
};
|
50
|
-
declare type SkuRel = ResourceRel & {
|
51
|
-
type: 'skus';
|
52
|
-
};
|
53
|
-
interface LineItem extends Resource {
|
54
|
-
sku_code?: string;
|
55
|
-
bundle_code?: string;
|
56
|
-
quantity?: number;
|
57
|
-
currency_code?: string;
|
58
|
-
unit_amount_cents?: number;
|
59
|
-
unit_amount_float?: number;
|
60
|
-
formatted_unit_amount?: string;
|
61
|
-
options_amount_cents?: number;
|
62
|
-
options_amount_float?: number;
|
63
|
-
formatted_options_amount?: string;
|
64
|
-
discount_cents?: number;
|
65
|
-
discount_float?: number;
|
66
|
-
formatted_discount?: string;
|
67
|
-
total_amount_cents?: number;
|
68
|
-
total_amount_float?: number;
|
69
|
-
formatted_total_amount?: string;
|
70
|
-
tax_amount_cents?: number;
|
71
|
-
tax_amount_float?: number;
|
72
|
-
formatted_tax_amount?: string;
|
73
|
-
name?: string;
|
74
|
-
image_url?: string;
|
75
|
-
discount_breakdown?: object;
|
76
|
-
tax_rate?: number;
|
77
|
-
tax_breakdown?: object;
|
78
|
-
item_type?: string;
|
79
|
-
order?: Order;
|
80
|
-
item?: Adjustment | Bundle | ExternalPromotion | FixedAmountPromotion | FreeShippingPromotion | GiftCard | PaymentMethod | PercentageDiscountPromotion | Shipment | Sku;
|
81
|
-
line_item_options?: LineItemOption[];
|
82
|
-
/**
|
83
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
84
|
-
*/
|
85
|
-
shipment_line_items?: object[];
|
86
|
-
stock_line_items?: StockLineItem[];
|
87
|
-
stock_transfers?: StockTransfer[];
|
88
|
-
}
|
89
|
-
interface LineItemCreate extends ResourceCreate {
|
90
|
-
sku_code?: string;
|
91
|
-
bundle_code?: string;
|
92
|
-
quantity: number;
|
93
|
-
_external_price?: boolean;
|
94
|
-
_update_quantity?: boolean;
|
95
|
-
unit_amount_cents?: number;
|
96
|
-
name?: string;
|
97
|
-
image_url?: string;
|
98
|
-
item_type?: string;
|
99
|
-
order: OrderRel;
|
100
|
-
item?: AdjustmentRel | BundleRel | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel | PaymentMethodRel | PercentageDiscountPromotionRel | ShipmentRel | SkuRel;
|
101
|
-
}
|
102
|
-
interface LineItemUpdate extends ResourceUpdate {
|
103
|
-
sku_code?: string;
|
104
|
-
bundle_code?: string;
|
105
|
-
quantity?: number;
|
106
|
-
name?: string;
|
107
|
-
image_url?: string;
|
108
|
-
}
|
109
|
-
declare class LineItems extends ApiResource {
|
110
|
-
static readonly TYPE: 'line_items';
|
111
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItem>>;
|
112
|
-
create(resource: LineItemCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
113
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
114
|
-
update(resource: LineItemUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<LineItem>;
|
115
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
116
|
-
order(lineItemId: string | LineItem, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
117
|
-
line_item_options(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
|
118
|
-
stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>>;
|
119
|
-
stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>>;
|
120
|
-
isLineItem(resource: any): resource is LineItem;
|
121
|
-
relationship(id: string | ResourceId | null): LineItemRel;
|
122
|
-
type(): string;
|
123
|
-
}
|
124
|
-
export default LineItems;
|
125
|
-
export { LineItem, LineItemCreate, LineItemUpdate };
|
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{Adjustment}from'./adjustments';import type{Bundle}from'./bundles';import type{ExternalPromotion}from'./external_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{GiftCard}from'./gift_cards';import type{PaymentMethod}from'./payment_methods';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{Shipment}from'./shipments';import type{Sku}from'./skus';import type{LineItemOption}from'./line_item_options';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';declare type LineItemRel=ResourceRel&{type:typeof LineItems.TYPE;};declare type OrderRel=ResourceRel&{type:'orders';};declare type AdjustmentRel=ResourceRel&{type:'adjustments';};declare type BundleRel=ResourceRel&{type:'bundles';};declare type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};declare type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};declare type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};declare type GiftCardRel=ResourceRel&{type:'gift_cards';};declare type PaymentMethodRel=ResourceRel&{type:'payment_methods';};declare type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};declare type ShipmentRel=ResourceRel&{type:'shipments';};declare type SkuRel=ResourceRel&{type:'skus';};interface LineItem extends Resource{sku_code?:string;bundle_code?:string;quantity?:number;currency_code?:string;unit_amount_cents?:number;unit_amount_float?:number;formatted_unit_amount?:string;options_amount_cents?:number;options_amount_float?:number;formatted_options_amount?:string;discount_cents?:number;discount_float?:number;formatted_discount?:string;total_amount_cents?:number;total_amount_float?:number;formatted_total_amount?:string;tax_amount_cents?:number;tax_amount_float?:number;formatted_tax_amount?:string;name?:string;image_url?:string;discount_breakdown?:object;tax_rate?:number;tax_breakdown?:object;item_type?:string;order?:Order;item?:Adjustment|Bundle|ExternalPromotion|FixedAmountPromotion|FreeShippingPromotion|GiftCard|PaymentMethod|PercentageDiscountPromotion|Shipment|Sku;line_item_options?:LineItemOption[];shipment_line_items?:object[];stock_line_items?:StockLineItem[];stock_transfers?:StockTransfer[];}interface LineItemCreate extends ResourceCreate{sku_code?:string;bundle_code?:string;quantity:number;_external_price?:boolean;_update_quantity?:boolean;unit_amount_cents?:number;name?:string;image_url?:string;item_type?:string;order:OrderRel;item?:AdjustmentRel|BundleRel|ExternalPromotionRel|FixedAmountPromotionRel|FreeShippingPromotionRel|GiftCardRel|PaymentMethodRel|PercentageDiscountPromotionRel|ShipmentRel|SkuRel;}interface LineItemUpdate extends ResourceUpdate{sku_code?:string;bundle_code?:string;quantity?:number;name?:string;image_url?:string;}declare class LineItems extends ApiResource{static readonly TYPE:'line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;create(resource:LineItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;update(resource:LineItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(lineItemId:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;line_item_options(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;stock_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;isLineItem(resource:any):resource is LineItem;relationship(id:string|ResourceId|null):LineItemRel;type():string;}export default LineItems;export{LineItem,LineItemCreate,LineItemUpdate};
|
@@ -1,33 +1 @@
|
|
1
|
-
import
|
2
|
-
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
-
import type { PaymentMethod } from './payment_methods';
|
4
|
-
declare type ManualGatewayRel = ResourceRel & {
|
5
|
-
type: typeof ManualGateways.TYPE;
|
6
|
-
};
|
7
|
-
interface ManualGateway extends Resource {
|
8
|
-
name?: string;
|
9
|
-
require_capture?: boolean;
|
10
|
-
payment_methods?: PaymentMethod[];
|
11
|
-
}
|
12
|
-
interface ManualGatewayCreate extends ResourceCreate {
|
13
|
-
name: string;
|
14
|
-
require_capture?: boolean;
|
15
|
-
}
|
16
|
-
interface ManualGatewayUpdate extends ResourceUpdate {
|
17
|
-
name?: string;
|
18
|
-
require_capture?: boolean;
|
19
|
-
}
|
20
|
-
declare class ManualGateways extends ApiResource {
|
21
|
-
static readonly TYPE: 'manual_gateways';
|
22
|
-
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ManualGateway>>;
|
23
|
-
create(resource: ManualGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
|
24
|
-
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
|
25
|
-
update(resource: ManualGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ManualGateway>;
|
26
|
-
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
27
|
-
payment_methods(manualGatewayId: string | ManualGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
28
|
-
isManualGateway(resource: any): resource is ManualGateway;
|
29
|
-
relationship(id: string | ResourceId | null): ManualGatewayRel;
|
30
|
-
type(): string;
|
31
|
-
}
|
32
|
-
export default ManualGateways;
|
33
|
-
export { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate };
|
1
|
+
import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{PaymentMethod}from'./payment_methods';declare type ManualGatewayRel=ResourceRel&{type:typeof ManualGateways.TYPE;};interface ManualGateway extends Resource{name?:string;require_capture?:boolean;payment_methods?:PaymentMethod[];}interface ManualGatewayCreate extends ResourceCreate{name:string;require_capture?:boolean;}interface ManualGatewayUpdate extends ResourceUpdate{name?:string;require_capture?:boolean;}declare class ManualGateways extends ApiResource{static readonly TYPE:'manual_gateways';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ManualGateway>>;create(resource:ManualGatewayCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualGateway>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualGateway>;update(resource:ManualGatewayUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ManualGateway>;delete(id:string,options?:ResourcesConfig):Promise<void>;payment_methods(manualGatewayId:string|ManualGateway,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PaymentMethod>>;isManualGateway(resource:any):resource is ManualGateway;relationship(id:string|ResourceId|null):ManualGatewayRel;type():string;}export default ManualGateways;export{ManualGateway,ManualGatewayCreate,ManualGatewayUpdate};
|