@commercelayer/sdk 3.7.1 → 3.9.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 +8 -3
- package/lib/cjs/api.js +1 -1
- package/lib/cjs/commercelayer.d.ts +5 -0
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/error.js +1 -1
- package/lib/cjs/interceptor.d.ts +19 -1
- package/lib/cjs/model.d.ts +6 -1
- package/lib/cjs/resource.js +1 -1
- package/lib/cjs/resources/application.d.ts +1 -1
- package/lib/cjs/resources/avalara_accounts.d.ts +3 -0
- package/lib/cjs/resources/bundles.d.ts +6 -0
- package/lib/cjs/resources/customer_addresses.d.ts +2 -0
- package/lib/cjs/resources/customer_password_resets.d.ts +2 -0
- package/lib/cjs/resources/customer_subscriptions.d.ts +2 -0
- package/lib/cjs/resources/customers.d.ts +2 -0
- package/lib/cjs/resources/events.d.ts +22 -0
- package/lib/cjs/resources/events.js +1 -0
- package/lib/cjs/resources/gift_cards.d.ts +2 -0
- package/lib/cjs/resources/imports.d.ts +2 -0
- package/lib/cjs/resources/in_stock_subscriptions.d.ts +2 -0
- package/lib/cjs/resources/inventory_models.d.ts +1 -1
- package/lib/cjs/resources/order_copies.d.ts +2 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +2 -0
- package/lib/cjs/resources/orders.d.ts +8 -0
- package/lib/cjs/resources/parcels.d.ts +4 -2
- package/lib/cjs/resources/payment_methods.d.ts +2 -0
- package/lib/cjs/resources/price_tiers.d.ts +26 -0
- package/lib/cjs/resources/price_tiers.js +1 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +44 -0
- package/lib/cjs/resources/price_volume_tiers.js +1 -0
- package/lib/cjs/resources/prices.d.ts +9 -0
- package/lib/cjs/resources/refunds.d.ts +2 -0
- package/lib/cjs/resources/returns.d.ts +2 -0
- package/lib/cjs/resources/shipments.d.ts +3 -0
- package/lib/cjs/resources/shipping_method_tiers.d.ts +26 -0
- package/lib/cjs/resources/shipping_method_tiers.js +1 -0
- package/lib/cjs/resources/shipping_methods.d.ts +32 -2
- package/lib/cjs/resources/shipping_weight_tiers.d.ts +44 -0
- package/lib/cjs/resources/shipping_weight_tiers.js +1 -0
- package/lib/cjs/resources/stock_transfers.d.ts +2 -0
- package/lib/cjs/util.d.ts +3 -0
- package/lib/esm/api.d.ts +8 -3
- package/lib/esm/api.js +1 -1
- package/lib/esm/commercelayer.d.ts +5 -0
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/debug.js +1 -1
- package/lib/esm/error.js +1 -1
- package/lib/esm/interceptor.d.ts +19 -1
- package/lib/esm/model.d.ts +6 -1
- package/lib/esm/resource.js +1 -1
- package/lib/esm/resources/application.d.ts +1 -1
- package/lib/esm/resources/avalara_accounts.d.ts +3 -0
- package/lib/esm/resources/bundles.d.ts +6 -0
- package/lib/esm/resources/customer_addresses.d.ts +2 -0
- package/lib/esm/resources/customer_password_resets.d.ts +2 -0
- package/lib/esm/resources/customer_subscriptions.d.ts +2 -0
- package/lib/esm/resources/customers.d.ts +2 -0
- package/lib/esm/resources/events.d.ts +22 -0
- package/lib/esm/resources/events.js +1 -0
- package/lib/esm/resources/gift_cards.d.ts +2 -0
- package/lib/esm/resources/imports.d.ts +2 -0
- package/lib/esm/resources/in_stock_subscriptions.d.ts +2 -0
- package/lib/esm/resources/inventory_models.d.ts +1 -1
- package/lib/esm/resources/order_copies.d.ts +2 -0
- package/lib/esm/resources/order_subscriptions.d.ts +2 -0
- package/lib/esm/resources/orders.d.ts +8 -0
- package/lib/esm/resources/parcels.d.ts +4 -2
- package/lib/esm/resources/payment_methods.d.ts +2 -0
- package/lib/esm/resources/price_tiers.d.ts +26 -0
- package/lib/esm/resources/price_tiers.js +1 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +44 -0
- package/lib/esm/resources/price_volume_tiers.js +1 -0
- package/lib/esm/resources/prices.d.ts +9 -0
- package/lib/esm/resources/refunds.d.ts +2 -0
- package/lib/esm/resources/returns.d.ts +2 -0
- package/lib/esm/resources/shipments.d.ts +3 -0
- package/lib/esm/resources/shipping_method_tiers.d.ts +26 -0
- package/lib/esm/resources/shipping_method_tiers.js +1 -0
- package/lib/esm/resources/shipping_methods.d.ts +32 -2
- package/lib/esm/resources/shipping_weight_tiers.d.ts +44 -0
- package/lib/esm/resources/shipping_weight_tiers.js +1 -0
- package/lib/esm/resources/stock_transfers.d.ts +2 -0
- package/lib/esm/util.d.ts +3 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -4,6 +4,7 @@ import { Market } from './markets';
|
|
4
4
|
import { Order } from './orders';
|
5
5
|
import { Customer } from './customers';
|
6
6
|
import { OrderCopy } from './order_copies';
|
7
|
+
import { Event } from './events';
|
7
8
|
declare type OrderSubscriptionRel = ResourceRel & {
|
8
9
|
type: typeof OrderSubscriptions.TYPE;
|
9
10
|
};
|
@@ -31,6 +32,7 @@ interface OrderSubscription extends Resource {
|
|
31
32
|
customer?: Customer;
|
32
33
|
order_copies?: OrderCopy[];
|
33
34
|
orders?: Order[];
|
35
|
+
events?: Event[];
|
34
36
|
}
|
35
37
|
interface OrderSubscriptionCreate extends ResourceCreate {
|
36
38
|
frequency: string;
|
@@ -5,6 +5,8 @@ import { Customer } from './customers';
|
|
5
5
|
import { Address } from './addresses';
|
6
6
|
import { PaymentMethod } from './payment_methods';
|
7
7
|
import { CustomerPaymentSource } from './customer_payment_sources';
|
8
|
+
import { Sku } from './skus';
|
9
|
+
import { Bundle } from './bundles';
|
8
10
|
import { AdyenPayment } from './adyen_payments';
|
9
11
|
import { BraintreePayment } from './braintree_payments';
|
10
12
|
import { CheckoutComPayment } from './checkout_com_payments';
|
@@ -22,6 +24,7 @@ import { Refund } from './refunds';
|
|
22
24
|
import { OrderSubscription } from './order_subscriptions';
|
23
25
|
import { OrderCopy } from './order_copies';
|
24
26
|
import { Attachment } from './attachments';
|
27
|
+
import { Event } from './events';
|
25
28
|
declare type OrderRel = ResourceRel & {
|
26
29
|
type: typeof Orders.TYPE;
|
27
30
|
};
|
@@ -165,6 +168,8 @@ interface Order extends Resource {
|
|
165
168
|
billing_address?: Address;
|
166
169
|
available_payment_methods?: PaymentMethod[];
|
167
170
|
available_customer_payment_sources?: CustomerPaymentSource[];
|
171
|
+
available_free_skus?: Sku[];
|
172
|
+
available_free_bundles?: Bundle[];
|
168
173
|
payment_method?: PaymentMethod;
|
169
174
|
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
|
170
175
|
line_items?: LineItem[];
|
@@ -177,6 +182,7 @@ interface Order extends Resource {
|
|
177
182
|
order_subscriptions?: OrderSubscription[];
|
178
183
|
order_copies?: OrderCopy[];
|
179
184
|
attachments?: Attachment[];
|
185
|
+
events?: Event[];
|
180
186
|
}
|
181
187
|
interface OrderCreate extends ResourceCreate {
|
182
188
|
autorefresh?: boolean;
|
@@ -230,6 +236,8 @@ interface OrderUpdate extends ResourceUpdate {
|
|
230
236
|
_customer_payment_source_id?: string;
|
231
237
|
_shipping_address_same_as_billing?: boolean;
|
232
238
|
_billing_address_same_as_shipping?: boolean;
|
239
|
+
_commit_invoice?: boolean;
|
240
|
+
_refund_invoice?: boolean;
|
233
241
|
_save_payment_source_to_customer_wallet?: boolean;
|
234
242
|
_save_shipping_address_to_customer_address_book?: boolean;
|
235
243
|
_save_billing_address_to_customer_address_book?: boolean;
|
@@ -4,6 +4,7 @@ import { Shipment } from './shipments';
|
|
4
4
|
import { Package } from './packages';
|
5
5
|
import { ParcelLineItem } from './parcel_line_items';
|
6
6
|
import { Attachment } from './attachments';
|
7
|
+
import { Event } from './events';
|
7
8
|
declare type ParcelRel = ResourceRel & {
|
8
9
|
type: typeof Parcels.TYPE;
|
9
10
|
};
|
@@ -42,10 +43,11 @@ interface Parcel extends Resource {
|
|
42
43
|
package?: Package;
|
43
44
|
parcel_line_items?: ParcelLineItem[];
|
44
45
|
attachments?: Attachment[];
|
46
|
+
events?: Event[];
|
45
47
|
}
|
46
48
|
interface ParcelCreate extends ResourceCreate {
|
47
|
-
weight
|
48
|
-
unit_of_weight
|
49
|
+
weight: number;
|
50
|
+
unit_of_weight: string;
|
49
51
|
eel_pfc?: string;
|
50
52
|
contents_type?: string;
|
51
53
|
contents_explanation?: string;
|
@@ -37,6 +37,8 @@ interface PaymentMethodUpdate extends ResourceUpdate {
|
|
37
37
|
payment_source_type?: string;
|
38
38
|
currency_code?: string;
|
39
39
|
moto?: boolean;
|
40
|
+
_disable?: boolean;
|
41
|
+
_enable?: boolean;
|
40
42
|
price_amount_cents?: number;
|
41
43
|
market?: MarketRel;
|
42
44
|
payment_gateway?: PaymentGatewayRel;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import { Price } from './prices';
|
4
|
+
import { Attachment } from './attachments';
|
5
|
+
declare type PriceTierRel = ResourceRel & {
|
6
|
+
type: typeof PriceTiers.TYPE;
|
7
|
+
};
|
8
|
+
interface PriceTier extends Resource {
|
9
|
+
name?: string;
|
10
|
+
up_to?: number;
|
11
|
+
price_amount_cents?: number;
|
12
|
+
price_amount_float?: number;
|
13
|
+
formatted_price_amount?: string;
|
14
|
+
price?: Price;
|
15
|
+
attachments?: Attachment[];
|
16
|
+
}
|
17
|
+
declare class PriceTiers extends ApiResource {
|
18
|
+
static readonly TYPE: 'price_tiers';
|
19
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceTier>>;
|
20
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceTier>;
|
21
|
+
isPriceTier(resource: any): resource is PriceTier;
|
22
|
+
relationship(id: string | ResourceId | null): PriceTierRel;
|
23
|
+
type(): string;
|
24
|
+
}
|
25
|
+
export default PriceTiers;
|
26
|
+
export { PriceTier };
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PriceTiers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PriceTiers.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:PriceTiers.TYPE,id:e},t,r)}isPriceTier(e){return e.type&&e.type===PriceTiers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PriceTiers.TYPE}:{id:e.id,type:PriceTiers.TYPE}}type(){return PriceTiers.TYPE}}PriceTiers.TYPE="price_tiers",exports.default=PriceTiers;
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import { Price } from './prices';
|
4
|
+
import { Attachment } from './attachments';
|
5
|
+
declare type PriceVolumeTierRel = ResourceRel & {
|
6
|
+
type: typeof PriceVolumeTiers.TYPE;
|
7
|
+
};
|
8
|
+
declare type PriceRel = ResourceRel & {
|
9
|
+
type: 'prices';
|
10
|
+
};
|
11
|
+
interface PriceVolumeTier extends Resource {
|
12
|
+
name?: string;
|
13
|
+
up_to?: number;
|
14
|
+
price_amount_cents?: number;
|
15
|
+
price_amount_float?: number;
|
16
|
+
formatted_price_amount?: string;
|
17
|
+
price?: Price;
|
18
|
+
attachments?: Attachment[];
|
19
|
+
}
|
20
|
+
interface PriceVolumeTierCreate extends ResourceCreate {
|
21
|
+
name: string;
|
22
|
+
up_to?: number;
|
23
|
+
price_amount_cents: number;
|
24
|
+
price: PriceRel;
|
25
|
+
}
|
26
|
+
interface PriceVolumeTierUpdate extends ResourceUpdate {
|
27
|
+
name?: string;
|
28
|
+
up_to?: number;
|
29
|
+
price_amount_cents?: number;
|
30
|
+
price?: PriceRel;
|
31
|
+
}
|
32
|
+
declare class PriceVolumeTiers extends ApiResource {
|
33
|
+
static readonly TYPE: 'price_volume_tiers';
|
34
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceVolumeTier>>;
|
35
|
+
create(resource: PriceVolumeTierCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceVolumeTier>;
|
36
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceVolumeTier>;
|
37
|
+
update(resource: PriceVolumeTierUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PriceVolumeTier>;
|
38
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
|
+
isPriceVolumeTier(resource: any): resource is PriceVolumeTier;
|
40
|
+
relationship(id: string | ResourceId | null): PriceVolumeTierRel;
|
41
|
+
type(): string;
|
42
|
+
}
|
43
|
+
export default PriceVolumeTiers;
|
44
|
+
export { PriceVolumeTier, PriceVolumeTierCreate, PriceVolumeTierUpdate };
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class PriceVolumeTiers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:PriceVolumeTiers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:PriceVolumeTiers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:PriceVolumeTiers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:PriceVolumeTiers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:PriceVolumeTiers.TYPE,id:e},t)}isPriceVolumeTier(e){return e.type&&e.type===PriceVolumeTiers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:PriceVolumeTiers.TYPE}:{id:e.id,type:PriceVolumeTiers.TYPE}}type(){return PriceVolumeTiers.TYPE}}PriceVolumeTiers.TYPE="price_volume_tiers",exports.default=PriceVolumeTiers;
|
@@ -2,6 +2,8 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { PriceList } from './price_lists';
|
4
4
|
import { Sku } from './skus';
|
5
|
+
import { PriceTier } from './price_tiers';
|
6
|
+
import { PriceVolumeTier } from './price_volume_tiers';
|
5
7
|
import { Attachment } from './attachments';
|
6
8
|
declare type PriceRel = ResourceRel & {
|
7
9
|
type: typeof Prices.TYPE;
|
@@ -12,6 +14,9 @@ declare type PriceListRel = ResourceRel & {
|
|
12
14
|
declare type SkuRel = ResourceRel & {
|
13
15
|
type: 'skus';
|
14
16
|
};
|
17
|
+
declare type PriceTierRel = ResourceRel & {
|
18
|
+
type: 'price_tiers';
|
19
|
+
};
|
15
20
|
interface Price extends Resource {
|
16
21
|
currency_code?: string;
|
17
22
|
sku_code?: string;
|
@@ -23,6 +28,8 @@ interface Price extends Resource {
|
|
23
28
|
formatted_compare_at_amount?: string;
|
24
29
|
price_list?: PriceList;
|
25
30
|
sku?: Sku;
|
31
|
+
price_tiers?: PriceTier[];
|
32
|
+
price_volume_tiers?: PriceVolumeTier[];
|
26
33
|
attachments?: Attachment[];
|
27
34
|
}
|
28
35
|
interface PriceCreate extends ResourceCreate {
|
@@ -31,6 +38,7 @@ interface PriceCreate extends ResourceCreate {
|
|
31
38
|
compare_at_amount_cents: number;
|
32
39
|
price_list: PriceListRel;
|
33
40
|
sku?: SkuRel;
|
41
|
+
price_tiers?: PriceTierRel[];
|
34
42
|
}
|
35
43
|
interface PriceUpdate extends ResourceUpdate {
|
36
44
|
sku_code?: string;
|
@@ -38,6 +46,7 @@ interface PriceUpdate extends ResourceUpdate {
|
|
38
46
|
compare_at_amount_cents?: number;
|
39
47
|
price_list?: PriceListRel;
|
40
48
|
sku?: SkuRel;
|
49
|
+
price_tiers?: PriceTierRel[];
|
41
50
|
}
|
42
51
|
declare class Prices extends ApiResource {
|
43
52
|
static readonly TYPE: 'prices';
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListRe
|
|
2
2
|
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import { Order } from './orders';
|
4
4
|
import { Capture } from './captures';
|
5
|
+
import { Event } from './events';
|
5
6
|
declare type RefundRel = ResourceRel & {
|
6
7
|
type: typeof Refunds.TYPE;
|
7
8
|
};
|
@@ -19,6 +20,7 @@ interface Refund extends Resource {
|
|
19
20
|
gateway_transaction_id?: string;
|
20
21
|
order?: Order;
|
21
22
|
reference_capture?: Capture;
|
23
|
+
events?: Event[];
|
22
24
|
}
|
23
25
|
declare class Refunds extends ApiResource {
|
24
26
|
static readonly TYPE: 'refunds';
|
@@ -6,6 +6,7 @@ import { StockLocation } from './stock_locations';
|
|
6
6
|
import { Address } from './addresses';
|
7
7
|
import { ReturnLineItem } from './return_line_items';
|
8
8
|
import { Attachment } from './attachments';
|
9
|
+
import { Event } from './events';
|
9
10
|
declare type ReturnRel = ResourceRel & {
|
10
11
|
type: typeof Returns.TYPE;
|
11
12
|
};
|
@@ -33,6 +34,7 @@ interface Return extends Resource {
|
|
33
34
|
destination_address?: Address;
|
34
35
|
return_line_items?: ReturnLineItem[];
|
35
36
|
attachments?: Attachment[];
|
37
|
+
events?: Event[];
|
36
38
|
}
|
37
39
|
interface ReturnCreate extends ResourceCreate {
|
38
40
|
order: OrderRel;
|
@@ -11,6 +11,7 @@ import { StockTransfer } from './stock_transfers';
|
|
11
11
|
import { CarrierAccount } from './carrier_accounts';
|
12
12
|
import { Parcel } from './parcels';
|
13
13
|
import { Attachment } from './attachments';
|
14
|
+
import { Event } from './events';
|
14
15
|
declare type ShipmentRel = ResourceRel & {
|
15
16
|
type: typeof Shipments.TYPE;
|
16
17
|
};
|
@@ -29,6 +30,7 @@ interface Shipment extends Resource {
|
|
29
30
|
rates?: object[];
|
30
31
|
purchase_error_code?: string;
|
31
32
|
purchase_error_message?: string;
|
33
|
+
get_rates_errors?: object[];
|
32
34
|
get_rates_started_at?: string;
|
33
35
|
get_rates_completed_at?: string;
|
34
36
|
purchase_started_at?: string;
|
@@ -51,6 +53,7 @@ interface Shipment extends Resource {
|
|
51
53
|
carrier_accounts?: CarrierAccount[];
|
52
54
|
parcels?: Parcel[];
|
53
55
|
attachments?: Attachment[];
|
56
|
+
events?: Event[];
|
54
57
|
}
|
55
58
|
interface ShipmentUpdate extends ResourceUpdate {
|
56
59
|
_on_hold?: boolean;
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import { ShippingMethod } from './shipping_methods';
|
4
|
+
import { Attachment } from './attachments';
|
5
|
+
declare type ShippingMethodTierRel = ResourceRel & {
|
6
|
+
type: typeof ShippingMethodTiers.TYPE;
|
7
|
+
};
|
8
|
+
interface ShippingMethodTier extends Resource {
|
9
|
+
name?: string;
|
10
|
+
up_to?: number;
|
11
|
+
price_amount_cents?: number;
|
12
|
+
price_amount_float?: number;
|
13
|
+
formatted_price_amount?: string;
|
14
|
+
shipping_method?: ShippingMethod;
|
15
|
+
attachments?: Attachment[];
|
16
|
+
}
|
17
|
+
declare class ShippingMethodTiers extends ApiResource {
|
18
|
+
static readonly TYPE: 'shipping_method_tiers';
|
19
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingMethodTier>>;
|
20
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingMethodTier>;
|
21
|
+
isShippingMethodTier(resource: any): resource is ShippingMethodTier;
|
22
|
+
relationship(id: string | ResourceId | null): ShippingMethodTierRel;
|
23
|
+
type(): string;
|
24
|
+
}
|
25
|
+
export default ShippingMethodTiers;
|
26
|
+
export { ShippingMethodTier };
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingMethodTiers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingMethodTiers.TYPE},e,t)}async retrieve(e,t,r){return this.resources.retrieve({type:ShippingMethodTiers.TYPE,id:e},t,r)}isShippingMethodTier(e){return e.type&&e.type===ShippingMethodTiers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingMethodTiers.TYPE}:{id:e.id,type:ShippingMethodTiers.TYPE}}type(){return ShippingMethodTiers.TYPE}}ShippingMethodTiers.TYPE="shipping_method_tiers",exports.default=ShippingMethodTiers;
|
@@ -3,7 +3,10 @@ import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
|
3
3
|
import { Market } from './markets';
|
4
4
|
import { ShippingZone } from './shipping_zones';
|
5
5
|
import { ShippingCategory } from './shipping_categories';
|
6
|
+
import { StockLocation } from './stock_locations';
|
6
7
|
import { DeliveryLeadTime } from './delivery_lead_times';
|
8
|
+
import { ShippingMethodTier } from './shipping_method_tiers';
|
9
|
+
import { ShippingWeightTier } from './shipping_weight_tiers';
|
7
10
|
import { Attachment } from './attachments';
|
8
11
|
declare type ShippingMethodRel = ResourceRel & {
|
9
12
|
type: typeof ShippingMethods.TYPE;
|
@@ -17,8 +20,15 @@ declare type ShippingZoneRel = ResourceRel & {
|
|
17
20
|
declare type ShippingCategoryRel = ResourceRel & {
|
18
21
|
type: 'shipping_categories';
|
19
22
|
};
|
23
|
+
declare type StockLocationRel = ResourceRel & {
|
24
|
+
type: 'stock_locations';
|
25
|
+
};
|
26
|
+
declare type ShippingMethodTierRel = ResourceRel & {
|
27
|
+
type: 'shipping_method_tiers';
|
28
|
+
};
|
20
29
|
interface ShippingMethod extends Resource {
|
21
30
|
name?: string;
|
31
|
+
scheme?: string;
|
22
32
|
currency_code?: string;
|
23
33
|
disabled_at?: string;
|
24
34
|
price_amount_cents?: number;
|
@@ -30,29 +40,49 @@ interface ShippingMethod extends Resource {
|
|
30
40
|
price_amount_for_shipment_cents?: number;
|
31
41
|
price_amount_for_shipment_float?: number;
|
32
42
|
formatted_price_amount_for_shipment?: string;
|
43
|
+
min_weight?: number;
|
44
|
+
max_weight?: number;
|
45
|
+
unit_of_weight?: string;
|
33
46
|
market?: Market;
|
34
47
|
shipping_zone?: ShippingZone;
|
35
48
|
shipping_category?: ShippingCategory;
|
49
|
+
stock_location?: StockLocation;
|
36
50
|
delivery_lead_time_for_shipment?: DeliveryLeadTime;
|
51
|
+
shipping_method_tiers?: ShippingMethodTier[];
|
52
|
+
shipping_weight_tiers?: ShippingWeightTier[];
|
37
53
|
attachments?: Attachment[];
|
38
54
|
}
|
39
55
|
interface ShippingMethodCreate extends ResourceCreate {
|
40
56
|
name: string;
|
57
|
+
scheme?: string;
|
41
58
|
currency_code?: string;
|
42
59
|
price_amount_cents: number;
|
43
60
|
free_over_amount_cents?: number;
|
61
|
+
min_weight?: number;
|
62
|
+
max_weight?: number;
|
63
|
+
unit_of_weight?: string;
|
44
64
|
market?: MarketRel;
|
45
|
-
shipping_zone
|
46
|
-
shipping_category
|
65
|
+
shipping_zone?: ShippingZoneRel;
|
66
|
+
shipping_category?: ShippingCategoryRel;
|
67
|
+
stock_location?: StockLocationRel;
|
68
|
+
shipping_method_tiers?: ShippingMethodTierRel[];
|
47
69
|
}
|
48
70
|
interface ShippingMethodUpdate extends ResourceUpdate {
|
49
71
|
name?: string;
|
72
|
+
scheme?: string;
|
50
73
|
currency_code?: string;
|
74
|
+
_disable?: boolean;
|
75
|
+
_enable?: boolean;
|
51
76
|
price_amount_cents?: number;
|
52
77
|
free_over_amount_cents?: number;
|
78
|
+
min_weight?: number;
|
79
|
+
max_weight?: number;
|
80
|
+
unit_of_weight?: string;
|
53
81
|
market?: MarketRel;
|
54
82
|
shipping_zone?: ShippingZoneRel;
|
55
83
|
shipping_category?: ShippingCategoryRel;
|
84
|
+
stock_location?: StockLocationRel;
|
85
|
+
shipping_method_tiers?: ShippingMethodTierRel[];
|
56
86
|
}
|
57
87
|
declare class ShippingMethods extends ApiResource {
|
58
88
|
static readonly TYPE: 'shipping_methods';
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import { ShippingMethod } from './shipping_methods';
|
4
|
+
import { Attachment } from './attachments';
|
5
|
+
declare type ShippingWeightTierRel = ResourceRel & {
|
6
|
+
type: typeof ShippingWeightTiers.TYPE;
|
7
|
+
};
|
8
|
+
declare type ShippingMethodRel = ResourceRel & {
|
9
|
+
type: 'shipping_methods';
|
10
|
+
};
|
11
|
+
interface ShippingWeightTier extends Resource {
|
12
|
+
name?: string;
|
13
|
+
up_to?: number;
|
14
|
+
price_amount_cents?: number;
|
15
|
+
price_amount_float?: number;
|
16
|
+
formatted_price_amount?: string;
|
17
|
+
shipping_method?: ShippingMethod;
|
18
|
+
attachments?: Attachment[];
|
19
|
+
}
|
20
|
+
interface ShippingWeightTierCreate extends ResourceCreate {
|
21
|
+
name: string;
|
22
|
+
up_to?: number;
|
23
|
+
price_amount_cents: number;
|
24
|
+
shipping_method: ShippingMethodRel;
|
25
|
+
}
|
26
|
+
interface ShippingWeightTierUpdate extends ResourceUpdate {
|
27
|
+
name?: string;
|
28
|
+
up_to?: number;
|
29
|
+
price_amount_cents?: number;
|
30
|
+
shipping_method?: ShippingMethodRel;
|
31
|
+
}
|
32
|
+
declare class ShippingWeightTiers extends ApiResource {
|
33
|
+
static readonly TYPE: 'shipping_weight_tiers';
|
34
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ShippingWeightTier>>;
|
35
|
+
create(resource: ShippingWeightTierCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingWeightTier>;
|
36
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingWeightTier>;
|
37
|
+
update(resource: ShippingWeightTierUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ShippingWeightTier>;
|
38
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
|
+
isShippingWeightTier(resource: any): resource is ShippingWeightTier;
|
40
|
+
relationship(id: string | ResourceId | null): ShippingWeightTierRel;
|
41
|
+
type(): string;
|
42
|
+
}
|
43
|
+
export default ShippingWeightTiers;
|
44
|
+
export { ShippingWeightTier, ShippingWeightTierCreate, ShippingWeightTierUpdate };
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const resource_1=require("../resource");class ShippingWeightTiers extends resource_1.ApiResource{async list(e,t){return this.resources.list({type:ShippingWeightTiers.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:ShippingWeightTiers.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:ShippingWeightTiers.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:ShippingWeightTiers.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:ShippingWeightTiers.TYPE,id:e},t)}isShippingWeightTier(e){return e.type&&e.type===ShippingWeightTiers.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:ShippingWeightTiers.TYPE}:{id:e.id,type:ShippingWeightTiers.TYPE}}type(){return ShippingWeightTiers.TYPE}}ShippingWeightTiers.TYPE="shipping_weight_tiers",exports.default=ShippingWeightTiers;
|
@@ -4,6 +4,7 @@ import { Sku } from './skus';
|
|
4
4
|
import { StockLocation } from './stock_locations';
|
5
5
|
import { Shipment } from './shipments';
|
6
6
|
import { LineItem } from './line_items';
|
7
|
+
import { Event } from './events';
|
7
8
|
declare type StockTransferRel = ResourceRel & {
|
8
9
|
type: typeof StockTransfers.TYPE;
|
9
10
|
};
|
@@ -30,6 +31,7 @@ interface StockTransfer extends Resource {
|
|
30
31
|
destination_stock_location?: StockLocation;
|
31
32
|
shipment?: Shipment;
|
32
33
|
line_item?: LineItem;
|
34
|
+
events?: Event[];
|
33
35
|
}
|
34
36
|
interface StockTransferCreate extends ResourceCreate {
|
35
37
|
sku_code?: string;
|
package/lib/cjs/util.d.ts
CHANGED
package/lib/esm/api.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2022 Commerce Layer Inc.
|
3
|
-
* OpenAPI schema, version 2.9.
|
3
|
+
* OpenAPI schema, version 2.9.6
|
4
4
|
**/
|
5
5
|
export { default as Addresses } from './resources/addresses';
|
6
6
|
export { default as Adjustments } from './resources/adjustments';
|
@@ -30,6 +30,7 @@ export { default as CustomerSubscriptions } from './resources/customer_subscript
|
|
30
30
|
export { default as Customers } from './resources/customers';
|
31
31
|
export { default as DeliveryLeadTimes } from './resources/delivery_lead_times';
|
32
32
|
export { default as EventCallbacks } from './resources/event_callbacks';
|
33
|
+
export { default as Events } from './resources/events';
|
33
34
|
export { default as ExternalGateways } from './resources/external_gateways';
|
34
35
|
export { default as ExternalPayments } from './resources/external_payments';
|
35
36
|
export { default as ExternalPromotions } from './resources/external_promotions';
|
@@ -70,6 +71,8 @@ export { default as PaypalGateways } from './resources/paypal_gateways';
|
|
70
71
|
export { default as PaypalPayments } from './resources/paypal_payments';
|
71
72
|
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
72
73
|
export { default as PriceLists } from './resources/price_lists';
|
74
|
+
export { default as PriceTiers } from './resources/price_tiers';
|
75
|
+
export { default as PriceVolumeTiers } from './resources/price_volume_tiers';
|
73
76
|
export { default as Prices } from './resources/prices';
|
74
77
|
export { default as PromotionRules } from './resources/promotion_rules';
|
75
78
|
export { default as Promotions } from './resources/promotions';
|
@@ -78,7 +81,9 @@ export { default as ReturnLineItems } from './resources/return_line_items';
|
|
78
81
|
export { default as Returns } from './resources/returns';
|
79
82
|
export { default as Shipments } from './resources/shipments';
|
80
83
|
export { default as ShippingCategories } from './resources/shipping_categories';
|
84
|
+
export { default as ShippingMethodTiers } from './resources/shipping_method_tiers';
|
81
85
|
export { default as ShippingMethods } from './resources/shipping_methods';
|
86
|
+
export { default as ShippingWeightTiers } from './resources/shipping_weight_tiers';
|
82
87
|
export { default as ShippingZones } from './resources/shipping_zones';
|
83
88
|
export { default as SkuListItems } from './resources/sku_list_items';
|
84
89
|
export { default as SkuListPromotionRules } from './resources/sku_list_promotion_rules';
|
@@ -99,5 +104,5 @@ export { default as Transactions } from './resources/transactions';
|
|
99
104
|
export { default as Voids } from './resources/voids';
|
100
105
|
export { default as Webhooks } from './resources/webhooks';
|
101
106
|
export { default as WireTransfers } from './resources/wire_transfers';
|
102
|
-
export declare type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
103
|
-
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_methods", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
107
|
+
export declare type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
108
|
+
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
package/lib/esm/api.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export{default as Addresses}from"./resources/addresses";export{default as Adjustments}from"./resources/adjustments";export{default as AdyenGateways}from"./resources/adyen_gateways";export{default as AdyenPayments}from"./resources/adyen_payments";export{default as Applications}from"./resources/application";export{default as Attachments}from"./resources/attachments";export{default as Authorizations}from"./resources/authorizations";export{default as AvalaraAccounts}from"./resources/avalara_accounts";export{default as BillingInfoValidationRules}from"./resources/billing_info_validation_rules";export{default as BingGeocoders}from"./resources/bing_geocoders";export{default as BraintreeGateways}from"./resources/braintree_gateways";export{default as BraintreePayments}from"./resources/braintree_payments";export{default as Bundles}from"./resources/bundles";export{default as Captures}from"./resources/captures";export{default as CarrierAccounts}from"./resources/carrier_accounts";export{default as CheckoutComGateways}from"./resources/checkout_com_gateways";export{default as CheckoutComPayments}from"./resources/checkout_com_payments";export{default as CouponCodesPromotionRules}from"./resources/coupon_codes_promotion_rules";export{default as CouponRecipients}from"./resources/coupon_recipients";export{default as Coupons}from"./resources/coupons";export{default as CustomerAddresses}from"./resources/customer_addresses";export{default as CustomerGroups}from"./resources/customer_groups";export{default as CustomerPasswordResets}from"./resources/customer_password_resets";export{default as CustomerPaymentSources}from"./resources/customer_payment_sources";export{default as CustomerSubscriptions}from"./resources/customer_subscriptions";export{default as Customers}from"./resources/customers";export{default as DeliveryLeadTimes}from"./resources/delivery_lead_times";export{default as EventCallbacks}from"./resources/event_callbacks";export{default as ExternalGateways}from"./resources/external_gateways";export{default as ExternalPayments}from"./resources/external_payments";export{default as ExternalPromotions}from"./resources/external_promotions";export{default as ExternalTaxCalculators}from"./resources/external_tax_calculators";export{default as FixedAmountPromotions}from"./resources/fixed_amount_promotions";export{default as FixedPricePromotions}from"./resources/fixed_price_promotions";export{default as FreeGiftPromotions}from"./resources/free_gift_promotions";export{default as FreeShippingPromotions}from"./resources/free_shipping_promotions";export{default as Geocoders}from"./resources/geocoders";export{default as GiftCardRecipients}from"./resources/gift_card_recipients";export{default as GiftCards}from"./resources/gift_cards";export{default as GoogleGeocoders}from"./resources/google_geocoders";export{default as Imports}from"./resources/imports";export{default as InStockSubscriptions}from"./resources/in_stock_subscriptions";export{default as InventoryModels}from"./resources/inventory_models";export{default as InventoryReturnLocations}from"./resources/inventory_return_locations";export{default as InventoryStockLocations}from"./resources/inventory_stock_locations";export{default as KlarnaGateways}from"./resources/klarna_gateways";export{default as KlarnaPayments}from"./resources/klarna_payments";export{default as LineItemOptions}from"./resources/line_item_options";export{default as LineItems}from"./resources/line_items";export{default as ManualGateways}from"./resources/manual_gateways";export{default as ManualTaxCalculators}from"./resources/manual_tax_calculators";export{default as Markets}from"./resources/markets";export{default as Merchants}from"./resources/merchants";export{default as OrderAmountPromotionRules}from"./resources/order_amount_promotion_rules";export{default as OrderCopies}from"./resources/order_copies";export{default as OrderSubscriptions}from"./resources/order_subscriptions";export{default as OrderValidationRules}from"./resources/order_validation_rules";export{default as Orders}from"./resources/orders";export{default as Organizations}from"./resources/organization";export{default as Packages}from"./resources/packages";export{default as ParcelLineItems}from"./resources/parcel_line_items";export{default as Parcels}from"./resources/parcels";export{default as PaymentGateways}from"./resources/payment_gateways";export{default as PaymentMethods}from"./resources/payment_methods";export{default as PaypalGateways}from"./resources/paypal_gateways";export{default as PaypalPayments}from"./resources/paypal_payments";export{default as PercentageDiscountPromotions}from"./resources/percentage_discount_promotions";export{default as PriceLists}from"./resources/price_lists";export{default as Prices}from"./resources/prices";export{default as PromotionRules}from"./resources/promotion_rules";export{default as Promotions}from"./resources/promotions";export{default as Refunds}from"./resources/refunds";export{default as ReturnLineItems}from"./resources/return_line_items";export{default as Returns}from"./resources/returns";export{default as Shipments}from"./resources/shipments";export{default as ShippingCategories}from"./resources/shipping_categories";export{default as ShippingMethods}from"./resources/shipping_methods";export{default as ShippingZones}from"./resources/shipping_zones";export{default as SkuListItems}from"./resources/sku_list_items";export{default as SkuListPromotionRules}from"./resources/sku_list_promotion_rules";export{default as SkuLists}from"./resources/sku_lists";export{default as SkuOptions}from"./resources/sku_options";export{default as Skus}from"./resources/skus";export{default as StockItems}from"./resources/stock_items";export{default as StockLineItems}from"./resources/stock_line_items";export{default as StockLocations}from"./resources/stock_locations";export{default as StockTransfers}from"./resources/stock_transfers";export{default as StripeGateways}from"./resources/stripe_gateways";export{default as StripePayments}from"./resources/stripe_payments";export{default as TaxCalculators}from"./resources/tax_calculators";export{default as TaxCategories}from"./resources/tax_categories";export{default as TaxRules}from"./resources/tax_rules";export{default as TaxjarAccounts}from"./resources/taxjar_accounts";export{default as Transactions}from"./resources/transactions";export{default as Voids}from"./resources/voids";export{default as Webhooks}from"./resources/webhooks";export{default as WireTransfers}from"./resources/wire_transfers";export const resourceList=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","coupon_codes_promotion_rules","coupon_recipients","coupons","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","paypal_gateways","paypal_payments","percentage_discount_promotions","price_lists","prices","promotion_rules","promotions","refunds","return_line_items","returns","shipments","shipping_categories","shipping_methods","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_transfers","stripe_gateways","stripe_payments","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","voids","webhooks","wire_transfers"];
|
1
|
+
export{default as Addresses}from"./resources/addresses";export{default as Adjustments}from"./resources/adjustments";export{default as AdyenGateways}from"./resources/adyen_gateways";export{default as AdyenPayments}from"./resources/adyen_payments";export{default as Applications}from"./resources/application";export{default as Attachments}from"./resources/attachments";export{default as Authorizations}from"./resources/authorizations";export{default as AvalaraAccounts}from"./resources/avalara_accounts";export{default as BillingInfoValidationRules}from"./resources/billing_info_validation_rules";export{default as BingGeocoders}from"./resources/bing_geocoders";export{default as BraintreeGateways}from"./resources/braintree_gateways";export{default as BraintreePayments}from"./resources/braintree_payments";export{default as Bundles}from"./resources/bundles";export{default as Captures}from"./resources/captures";export{default as CarrierAccounts}from"./resources/carrier_accounts";export{default as CheckoutComGateways}from"./resources/checkout_com_gateways";export{default as CheckoutComPayments}from"./resources/checkout_com_payments";export{default as CouponCodesPromotionRules}from"./resources/coupon_codes_promotion_rules";export{default as CouponRecipients}from"./resources/coupon_recipients";export{default as Coupons}from"./resources/coupons";export{default as CustomerAddresses}from"./resources/customer_addresses";export{default as CustomerGroups}from"./resources/customer_groups";export{default as CustomerPasswordResets}from"./resources/customer_password_resets";export{default as CustomerPaymentSources}from"./resources/customer_payment_sources";export{default as CustomerSubscriptions}from"./resources/customer_subscriptions";export{default as Customers}from"./resources/customers";export{default as DeliveryLeadTimes}from"./resources/delivery_lead_times";export{default as EventCallbacks}from"./resources/event_callbacks";export{default as Events}from"./resources/events";export{default as ExternalGateways}from"./resources/external_gateways";export{default as ExternalPayments}from"./resources/external_payments";export{default as ExternalPromotions}from"./resources/external_promotions";export{default as ExternalTaxCalculators}from"./resources/external_tax_calculators";export{default as FixedAmountPromotions}from"./resources/fixed_amount_promotions";export{default as FixedPricePromotions}from"./resources/fixed_price_promotions";export{default as FreeGiftPromotions}from"./resources/free_gift_promotions";export{default as FreeShippingPromotions}from"./resources/free_shipping_promotions";export{default as Geocoders}from"./resources/geocoders";export{default as GiftCardRecipients}from"./resources/gift_card_recipients";export{default as GiftCards}from"./resources/gift_cards";export{default as GoogleGeocoders}from"./resources/google_geocoders";export{default as Imports}from"./resources/imports";export{default as InStockSubscriptions}from"./resources/in_stock_subscriptions";export{default as InventoryModels}from"./resources/inventory_models";export{default as InventoryReturnLocations}from"./resources/inventory_return_locations";export{default as InventoryStockLocations}from"./resources/inventory_stock_locations";export{default as KlarnaGateways}from"./resources/klarna_gateways";export{default as KlarnaPayments}from"./resources/klarna_payments";export{default as LineItemOptions}from"./resources/line_item_options";export{default as LineItems}from"./resources/line_items";export{default as ManualGateways}from"./resources/manual_gateways";export{default as ManualTaxCalculators}from"./resources/manual_tax_calculators";export{default as Markets}from"./resources/markets";export{default as Merchants}from"./resources/merchants";export{default as OrderAmountPromotionRules}from"./resources/order_amount_promotion_rules";export{default as OrderCopies}from"./resources/order_copies";export{default as OrderSubscriptions}from"./resources/order_subscriptions";export{default as OrderValidationRules}from"./resources/order_validation_rules";export{default as Orders}from"./resources/orders";export{default as Organizations}from"./resources/organization";export{default as Packages}from"./resources/packages";export{default as ParcelLineItems}from"./resources/parcel_line_items";export{default as Parcels}from"./resources/parcels";export{default as PaymentGateways}from"./resources/payment_gateways";export{default as PaymentMethods}from"./resources/payment_methods";export{default as PaypalGateways}from"./resources/paypal_gateways";export{default as PaypalPayments}from"./resources/paypal_payments";export{default as PercentageDiscountPromotions}from"./resources/percentage_discount_promotions";export{default as PriceLists}from"./resources/price_lists";export{default as PriceTiers}from"./resources/price_tiers";export{default as PriceVolumeTiers}from"./resources/price_volume_tiers";export{default as Prices}from"./resources/prices";export{default as PromotionRules}from"./resources/promotion_rules";export{default as Promotions}from"./resources/promotions";export{default as Refunds}from"./resources/refunds";export{default as ReturnLineItems}from"./resources/return_line_items";export{default as Returns}from"./resources/returns";export{default as Shipments}from"./resources/shipments";export{default as ShippingCategories}from"./resources/shipping_categories";export{default as ShippingMethodTiers}from"./resources/shipping_method_tiers";export{default as ShippingMethods}from"./resources/shipping_methods";export{default as ShippingWeightTiers}from"./resources/shipping_weight_tiers";export{default as ShippingZones}from"./resources/shipping_zones";export{default as SkuListItems}from"./resources/sku_list_items";export{default as SkuListPromotionRules}from"./resources/sku_list_promotion_rules";export{default as SkuLists}from"./resources/sku_lists";export{default as SkuOptions}from"./resources/sku_options";export{default as Skus}from"./resources/skus";export{default as StockItems}from"./resources/stock_items";export{default as StockLineItems}from"./resources/stock_line_items";export{default as StockLocations}from"./resources/stock_locations";export{default as StockTransfers}from"./resources/stock_transfers";export{default as StripeGateways}from"./resources/stripe_gateways";export{default as StripePayments}from"./resources/stripe_payments";export{default as TaxCalculators}from"./resources/tax_calculators";export{default as TaxCategories}from"./resources/tax_categories";export{default as TaxRules}from"./resources/tax_rules";export{default as TaxjarAccounts}from"./resources/taxjar_accounts";export{default as Transactions}from"./resources/transactions";export{default as Voids}from"./resources/voids";export{default as Webhooks}from"./resources/webhooks";export{default as WireTransfers}from"./resources/wire_transfers";export const resourceList=["addresses","adjustments","adyen_gateways","adyen_payments","application","attachments","authorizations","avalara_accounts","billing_info_validation_rules","bing_geocoders","braintree_gateways","braintree_payments","bundles","captures","carrier_accounts","checkout_com_gateways","checkout_com_payments","coupon_codes_promotion_rules","coupon_recipients","coupons","customer_addresses","customer_groups","customer_password_resets","customer_payment_sources","customer_subscriptions","customers","delivery_lead_times","event_callbacks","events","external_gateways","external_payments","external_promotions","external_tax_calculators","fixed_amount_promotions","fixed_price_promotions","free_gift_promotions","free_shipping_promotions","geocoders","gift_card_recipients","gift_cards","google_geocoders","imports","in_stock_subscriptions","inventory_models","inventory_return_locations","inventory_stock_locations","klarna_gateways","klarna_payments","line_item_options","line_items","manual_gateways","manual_tax_calculators","markets","merchants","order_amount_promotion_rules","order_copies","order_subscriptions","order_validation_rules","orders","organization","packages","parcel_line_items","parcels","payment_gateways","payment_methods","paypal_gateways","paypal_payments","percentage_discount_promotions","price_lists","price_tiers","price_volume_tiers","prices","promotion_rules","promotions","refunds","return_line_items","returns","shipments","shipping_categories","shipping_method_tiers","shipping_methods","shipping_weight_tiers","shipping_zones","sku_list_items","sku_list_promotion_rules","sku_lists","sku_options","skus","stock_items","stock_line_items","stock_locations","stock_transfers","stripe_gateways","stripe_payments","tax_calculators","tax_categories","tax_rules","taxjar_accounts","transactions","voids","webhooks","wire_transfers"];
|
@@ -36,6 +36,7 @@ declare class CommerceLayerClient {
|
|
36
36
|
customers: api.Customers;
|
37
37
|
delivery_lead_times: api.DeliveryLeadTimes;
|
38
38
|
event_callbacks: api.EventCallbacks;
|
39
|
+
events: api.Events;
|
39
40
|
external_gateways: api.ExternalGateways;
|
40
41
|
external_payments: api.ExternalPayments;
|
41
42
|
external_promotions: api.ExternalPromotions;
|
@@ -76,6 +77,8 @@ declare class CommerceLayerClient {
|
|
76
77
|
paypal_payments: api.PaypalPayments;
|
77
78
|
percentage_discount_promotions: api.PercentageDiscountPromotions;
|
78
79
|
price_lists: api.PriceLists;
|
80
|
+
price_tiers: api.PriceTiers;
|
81
|
+
price_volume_tiers: api.PriceVolumeTiers;
|
79
82
|
prices: api.Prices;
|
80
83
|
promotion_rules: api.PromotionRules;
|
81
84
|
promotions: api.Promotions;
|
@@ -84,7 +87,9 @@ declare class CommerceLayerClient {
|
|
84
87
|
returns: api.Returns;
|
85
88
|
shipments: api.Shipments;
|
86
89
|
shipping_categories: api.ShippingCategories;
|
90
|
+
shipping_method_tiers: api.ShippingMethodTiers;
|
87
91
|
shipping_methods: api.ShippingMethods;
|
92
|
+
shipping_weight_tiers: api.ShippingWeightTiers;
|
88
93
|
shipping_zones: api.ShippingZones;
|
89
94
|
sku_list_items: api.SkuListItems;
|
90
95
|
sku_list_promotion_rules: api.SkuListPromotionRules;
|