@commercelayer/sdk 2.2.6-beta.2 → 2.3.2
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/error.d.ts +4 -1
- package/lib/index.d.ts +0 -1
- package/lib/interceptor.d.ts +0 -3
- package/lib/resource.d.ts +2 -2
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/billing_info_validation_rules.d.ts +2 -2
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/sdk.cjs.development.js +662 -668
- package/lib/sdk.cjs.development.js.map +1 -1
- package/lib/sdk.cjs.production.min.js +1 -1
- package/lib/sdk.cjs.production.min.js.map +1 -1
- package/lib/sdk.esm.js +663 -668
- package/lib/sdk.esm.js.map +1 -1
- package/lib/static.d.ts +0 -1
- package/package.json +1 -1
package/lib/error.d.ts
CHANGED
@@ -2,7 +2,8 @@ declare enum ErrorType {
|
|
2
2
|
CLIENT = "client",
|
3
3
|
REQUEST = "request",
|
4
4
|
RESPONSE = "response",
|
5
|
-
GENERIC = "generic"
|
5
|
+
GENERIC = "generic",
|
6
|
+
CANCEL = "cancel"
|
6
7
|
}
|
7
8
|
declare class ApiError extends Error {
|
8
9
|
static isApiError(error: any): error is ApiError;
|
@@ -10,6 +11,8 @@ declare class ApiError extends Error {
|
|
10
11
|
errors: any[];
|
11
12
|
status?: number;
|
12
13
|
code?: string;
|
14
|
+
source?: Error;
|
15
|
+
request?: any;
|
13
16
|
constructor(error: {
|
14
17
|
message: string;
|
15
18
|
type?: ErrorType;
|
package/lib/index.d.ts
CHANGED
@@ -4,4 +4,3 @@ export { CommerceLayerStatic } from './static';
|
|
4
4
|
export type { QueryParamsRetrieve, QueryParamsList, QueryParams } from './query';
|
5
5
|
export * from './model';
|
6
6
|
export type { RequestObj, ResponseObj, ErrorObj } from './interceptor';
|
7
|
-
export { stopInterceptedRequest } from './interceptor';
|
package/lib/interceptor.d.ts
CHANGED
@@ -17,6 +17,3 @@ declare type RawResponseReader = {
|
|
17
17
|
rawResponse: ResponseObj | undefined;
|
18
18
|
};
|
19
19
|
export type { RawResponseReader };
|
20
|
-
declare const stopInterceptedRequest: () => void;
|
21
|
-
declare const isRequestInterrupted: (error: any) => boolean;
|
22
|
-
export { stopInterceptedRequest, isRequestInterrupted };
|
package/lib/resource.d.ts
CHANGED
@@ -55,8 +55,8 @@ declare class ResourceAdapter {
|
|
55
55
|
singleton<R extends Resource>(resource: ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
|
56
56
|
retrieve<R extends Resource>(resource: ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
|
57
57
|
list<R extends Resource>(resource: ResourceType, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<R>>;
|
58
|
-
create<C extends ResourceCreate, R extends Resource>(resource: C & ResourceType, options?: ResourcesConfig): Promise<R>;
|
59
|
-
update<U extends ResourceUpdate, R extends Resource>(resource: U & ResourceId, options?: ResourcesConfig): Promise<R>;
|
58
|
+
create<C extends ResourceCreate, R extends Resource>(resource: C & ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
|
59
|
+
update<U extends ResourceUpdate, R extends Resource>(resource: U & ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
|
60
60
|
delete(resource: ResourceId, options?: ResourcesConfig): Promise<void>;
|
61
61
|
}
|
62
62
|
declare abstract class ApiResource {
|
@@ -79,9 +79,9 @@ interface AddressUpdate extends ResourceUpdate {
|
|
79
79
|
declare class Addresses extends ApiResource {
|
80
80
|
static readonly TYPE: 'addresses';
|
81
81
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Address>>;
|
82
|
-
create(resource: AddressCreate, options?: ResourcesConfig): Promise<Address>;
|
82
|
+
create(resource: AddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
|
83
83
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
|
84
|
-
update(resource: AddressUpdate, options?: ResourcesConfig): Promise<Address>;
|
84
|
+
update(resource: AddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Address>;
|
85
85
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
86
86
|
isAddress(resource: any): resource is Address;
|
87
87
|
relationship(id: string | ResourceId): AddressRel;
|
@@ -27,9 +27,9 @@ interface AdjustmentUpdate extends ResourceUpdate {
|
|
27
27
|
declare class Adjustments extends ApiResource {
|
28
28
|
static readonly TYPE: 'adjustments';
|
29
29
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Adjustment>>;
|
30
|
-
create(resource: AdjustmentCreate, options?: ResourcesConfig): Promise<Adjustment>;
|
30
|
+
create(resource: AdjustmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
|
31
31
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
|
32
|
-
update(resource: AdjustmentUpdate, options?: ResourcesConfig): Promise<Adjustment>;
|
32
|
+
update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Adjustment>;
|
33
33
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
34
34
|
isAdjustment(resource: any): resource is Adjustment;
|
35
35
|
relationship(id: string | ResourceId): AdjustmentRel;
|
@@ -37,9 +37,9 @@ interface AdyenGatewayUpdate extends ResourceUpdate {
|
|
37
37
|
declare class AdyenGateways extends ApiResource {
|
38
38
|
static readonly TYPE: 'adyen_gateways';
|
39
39
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenGateway>>;
|
40
|
-
create(resource: AdyenGatewayCreate, options?: ResourcesConfig): Promise<AdyenGateway>;
|
40
|
+
create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
|
41
41
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
|
42
|
-
update(resource: AdyenGatewayUpdate, options?: ResourcesConfig): Promise<AdyenGateway>;
|
42
|
+
update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenGateway>;
|
43
43
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
44
|
isAdyenGateway(resource: any): resource is AdyenGateway;
|
45
45
|
relationship(id: string | ResourceId): AdyenGatewayRel;
|
@@ -35,9 +35,9 @@ interface AdyenPaymentUpdate extends ResourceUpdate {
|
|
35
35
|
declare class AdyenPayments extends ApiResource {
|
36
36
|
static readonly TYPE: 'adyen_payments';
|
37
37
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>>;
|
38
|
-
create(resource: AdyenPaymentCreate, options?: ResourcesConfig): Promise<AdyenPayment>;
|
38
|
+
create(resource: AdyenPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
39
39
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
40
|
-
update(resource: AdyenPaymentUpdate, options?: ResourcesConfig): Promise<AdyenPayment>;
|
40
|
+
update(resource: AdyenPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AdyenPayment>;
|
41
41
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
42
|
isAdyenPayment(resource: any): resource is AdyenPayment;
|
43
43
|
relationship(id: string | ResourceId): AdyenPaymentRel;
|
@@ -148,9 +148,9 @@ interface AttachmentUpdate extends ResourceUpdate {
|
|
148
148
|
declare class Attachments extends ApiResource {
|
149
149
|
static readonly TYPE: 'attachments';
|
150
150
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
151
|
-
create(resource: AttachmentCreate, options?: ResourcesConfig): Promise<Attachment>;
|
151
|
+
create(resource: AttachmentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
152
152
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
153
|
-
update(resource: AttachmentUpdate, options?: ResourcesConfig): Promise<Attachment>;
|
153
|
+
update(resource: AttachmentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Attachment>;
|
154
154
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
155
155
|
isAttachment(resource: any): resource is Attachment;
|
156
156
|
relationship(id: string | ResourceId): AttachmentRel;
|
@@ -49,7 +49,7 @@ declare class Authorizations extends ApiResource {
|
|
49
49
|
static readonly TYPE: 'authorizations';
|
50
50
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Authorization>>;
|
51
51
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
52
|
-
update(resource: AuthorizationUpdate, options?: ResourcesConfig): Promise<Authorization>;
|
52
|
+
update(resource: AuthorizationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Authorization>;
|
53
53
|
isAuthorization(resource: any): resource is Authorization;
|
54
54
|
relationship(id: string | ResourceId): AuthorizationRel;
|
55
55
|
type(): string;
|
@@ -41,9 +41,9 @@ interface AvalaraAccountUpdate extends ResourceUpdate {
|
|
41
41
|
declare class AvalaraAccounts extends ApiResource {
|
42
42
|
static readonly TYPE: 'avalara_accounts';
|
43
43
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AvalaraAccount>>;
|
44
|
-
create(resource: AvalaraAccountCreate, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
44
|
+
create(resource: AvalaraAccountCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
45
45
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
46
|
-
update(resource: AvalaraAccountUpdate, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
46
|
+
update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AvalaraAccount>;
|
47
47
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
48
48
|
isAvalaraAccount(resource: any): resource is AvalaraAccount;
|
49
49
|
relationship(id: string | ResourceId): AvalaraAccountRel;
|
@@ -23,9 +23,9 @@ interface BillingInfoValidationRuleUpdate extends ResourceUpdate {
|
|
23
23
|
declare class BillingInfoValidationRules extends ApiResource {
|
24
24
|
static readonly TYPE: 'billing_info_validation_rules';
|
25
25
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BillingInfoValidationRule>>;
|
26
|
-
create(resource: BillingInfoValidationRuleCreate, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
26
|
+
create(resource: BillingInfoValidationRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
27
27
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
28
|
-
update(resource: BillingInfoValidationRuleUpdate, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
28
|
+
update(resource: BillingInfoValidationRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BillingInfoValidationRule>;
|
29
29
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
30
30
|
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
31
31
|
relationship(id: string | ResourceId): BillingInfoValidationRuleRel;
|
@@ -25,9 +25,9 @@ interface BingGeocoderUpdate extends ResourceUpdate {
|
|
25
25
|
declare class BingGeocoders extends ApiResource {
|
26
26
|
static readonly TYPE: 'bing_geocoders';
|
27
27
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BingGeocoder>>;
|
28
|
-
create(resource: BingGeocoderCreate, options?: ResourcesConfig): Promise<BingGeocoder>;
|
28
|
+
create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
29
29
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
30
|
-
update(resource: BingGeocoderUpdate, options?: ResourcesConfig): Promise<BingGeocoder>;
|
30
|
+
update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BingGeocoder>;
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isBingGeocoder(resource: any): resource is BingGeocoder;
|
33
33
|
relationship(id: string | ResourceId): BingGeocoderRel;
|
@@ -46,9 +46,9 @@ interface BraintreeGatewayUpdate extends ResourceUpdate {
|
|
46
46
|
declare class BraintreeGateways extends ApiResource {
|
47
47
|
static readonly TYPE: 'braintree_gateways';
|
48
48
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreeGateway>>;
|
49
|
-
create(resource: BraintreeGatewayCreate, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
49
|
+
create(resource: BraintreeGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
50
50
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
51
|
-
update(resource: BraintreeGatewayUpdate, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
51
|
+
update(resource: BraintreeGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreeGateway>;
|
52
52
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
53
53
|
isBraintreeGateway(resource: any): resource is BraintreeGateway;
|
54
54
|
relationship(id: string | ResourceId): BraintreeGatewayRel;
|
@@ -37,9 +37,9 @@ interface BraintreePaymentUpdate extends ResourceUpdate {
|
|
37
37
|
declare class BraintreePayments extends ApiResource {
|
38
38
|
static readonly TYPE: 'braintree_payments';
|
39
39
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<BraintreePayment>>;
|
40
|
-
create(resource: BraintreePaymentCreate, options?: ResourcesConfig): Promise<BraintreePayment>;
|
40
|
+
create(resource: BraintreePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
41
41
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
42
|
-
update(resource: BraintreePaymentUpdate, options?: ResourcesConfig): Promise<BraintreePayment>;
|
42
|
+
update(resource: BraintreePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<BraintreePayment>;
|
43
43
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
44
|
isBraintreePayment(resource: any): resource is BraintreePayment;
|
45
45
|
relationship(id: string | ResourceId): BraintreePaymentRel;
|
@@ -57,9 +57,9 @@ interface BundleUpdate extends ResourceUpdate {
|
|
57
57
|
declare class Bundles extends ApiResource {
|
58
58
|
static readonly TYPE: 'bundles';
|
59
59
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
60
|
-
create(resource: BundleCreate, options?: ResourcesConfig): Promise<Bundle>;
|
60
|
+
create(resource: BundleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
61
61
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
62
|
-
update(resource: BundleUpdate, options?: ResourcesConfig): Promise<Bundle>;
|
62
|
+
update(resource: BundleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Bundle>;
|
63
63
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
64
64
|
isBundle(resource: any): resource is Bundle;
|
65
65
|
relationship(id: string | ResourceId): BundleRel;
|
@@ -40,7 +40,7 @@ declare class Captures extends ApiResource {
|
|
40
40
|
static readonly TYPE: 'captures';
|
41
41
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Capture>>;
|
42
42
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
43
|
-
update(resource: CaptureUpdate, options?: ResourcesConfig): Promise<Capture>;
|
43
|
+
update(resource: CaptureUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Capture>;
|
44
44
|
isCapture(resource: any): resource is Capture;
|
45
45
|
relationship(id: string | ResourceId): CaptureRel;
|
46
46
|
type(): string;
|
@@ -35,9 +35,9 @@ interface CheckoutComGatewayUpdate extends ResourceUpdate {
|
|
35
35
|
declare class CheckoutComGateways extends ApiResource {
|
36
36
|
static readonly TYPE: 'checkout_com_gateways';
|
37
37
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComGateway>>;
|
38
|
-
create(resource: CheckoutComGatewayCreate, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
38
|
+
create(resource: CheckoutComGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
39
39
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
40
|
-
update(resource: CheckoutComGatewayUpdate, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
40
|
+
update(resource: CheckoutComGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComGateway>;
|
41
41
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
42
|
isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
|
43
43
|
relationship(id: string | ResourceId): CheckoutComGatewayRel;
|
@@ -41,9 +41,9 @@ interface CheckoutComPaymentUpdate extends ResourceUpdate {
|
|
41
41
|
declare class CheckoutComPayments extends ApiResource {
|
42
42
|
static readonly TYPE: 'checkout_com_payments';
|
43
43
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CheckoutComPayment>>;
|
44
|
-
create(resource: CheckoutComPaymentCreate, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
44
|
+
create(resource: CheckoutComPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
45
45
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
46
|
-
update(resource: CheckoutComPaymentUpdate, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
46
|
+
update(resource: CheckoutComPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CheckoutComPayment>;
|
47
47
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
48
48
|
isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
|
49
49
|
relationship(id: string | ResourceId): CheckoutComPaymentRel;
|
@@ -50,9 +50,9 @@ interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
|
|
50
50
|
declare class CouponCodesPromotionRules extends ApiResource {
|
51
51
|
static readonly TYPE: 'coupon_codes_promotion_rules';
|
52
52
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponCodesPromotionRule>>;
|
53
|
-
create(resource: CouponCodesPromotionRuleCreate, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
53
|
+
create(resource: CouponCodesPromotionRuleCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
54
54
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
55
|
-
update(resource: CouponCodesPromotionRuleUpdate, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
55
|
+
update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
56
56
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
57
57
|
isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
|
58
58
|
relationship(id: string | ResourceId): CouponCodesPromotionRuleRel;
|
@@ -34,9 +34,9 @@ interface CouponRecipientUpdate extends ResourceUpdate {
|
|
34
34
|
declare class CouponRecipients extends ApiResource {
|
35
35
|
static readonly TYPE: 'coupon_recipients';
|
36
36
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponRecipient>>;
|
37
|
-
create(resource: CouponRecipientCreate, options?: ResourcesConfig): Promise<CouponRecipient>;
|
37
|
+
create(resource: CouponRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
38
38
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
39
|
-
update(resource: CouponRecipientUpdate, options?: ResourcesConfig): Promise<CouponRecipient>;
|
39
|
+
update(resource: CouponRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
40
40
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
41
41
|
isCouponRecipient(resource: any): resource is CouponRecipient;
|
42
42
|
relationship(id: string | ResourceId): CouponRecipientRel;
|
@@ -33,9 +33,9 @@ interface CouponUpdate extends ResourceUpdate {
|
|
33
33
|
declare class Coupons extends ApiResource {
|
34
34
|
static readonly TYPE: 'coupons';
|
35
35
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>;
|
36
|
-
create(resource: CouponCreate, options?: ResourcesConfig): Promise<Coupon>;
|
36
|
+
create(resource: CouponCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
37
37
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
38
|
-
update(resource: CouponUpdate, options?: ResourcesConfig): Promise<Coupon>;
|
38
|
+
update(resource: CouponUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Coupon>;
|
39
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
40
|
isCoupon(resource: any): resource is Coupon;
|
41
41
|
relationship(id: string | ResourceId): CouponRel;
|
@@ -31,9 +31,9 @@ interface CustomerAddressUpdate extends ResourceUpdate {
|
|
31
31
|
declare class CustomerAddresses extends ApiResource {
|
32
32
|
static readonly TYPE: 'customer_addresses';
|
33
33
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>>;
|
34
|
-
create(resource: CustomerAddressCreate, options?: ResourcesConfig): Promise<CustomerAddress>;
|
34
|
+
create(resource: CustomerAddressCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
35
35
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
36
|
-
update(resource: CustomerAddressUpdate, options?: ResourcesConfig): Promise<CustomerAddress>;
|
36
|
+
update(resource: CustomerAddressUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerAddress>;
|
37
37
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
38
|
isCustomerAddress(resource: any): resource is CustomerAddress;
|
39
39
|
relationship(id: string | ResourceId): CustomerAddressRel;
|
@@ -25,9 +25,9 @@ interface CustomerGroupUpdate extends ResourceUpdate {
|
|
25
25
|
declare class CustomerGroups extends ApiResource {
|
26
26
|
static readonly TYPE: 'customer_groups';
|
27
27
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerGroup>>;
|
28
|
-
create(resource: CustomerGroupCreate, options?: ResourcesConfig): Promise<CustomerGroup>;
|
28
|
+
create(resource: CustomerGroupCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
29
29
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
30
|
-
update(resource: CustomerGroupUpdate, options?: ResourcesConfig): Promise<CustomerGroup>;
|
30
|
+
update(resource: CustomerGroupUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerGroup>;
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isCustomerGroup(resource: any): resource is CustomerGroup;
|
33
33
|
relationship(id: string | ResourceId): CustomerGroupRel;
|
@@ -24,9 +24,9 @@ interface CustomerPasswordResetUpdate extends ResourceUpdate {
|
|
24
24
|
declare class CustomerPasswordResets extends ApiResource {
|
25
25
|
static readonly TYPE: 'customer_password_resets';
|
26
26
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPasswordReset>>;
|
27
|
-
create(resource: CustomerPasswordResetCreate, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
27
|
+
create(resource: CustomerPasswordResetCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
28
28
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
29
|
-
update(resource: CustomerPasswordResetUpdate, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
29
|
+
update(resource: CustomerPasswordResetUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPasswordReset>;
|
30
30
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
31
31
|
isCustomerPasswordReset(resource: any): resource is CustomerPasswordReset;
|
32
32
|
relationship(id: string | ResourceId): CustomerPasswordResetRel;
|
@@ -57,9 +57,9 @@ interface CustomerPaymentSourceUpdate extends ResourceUpdate {
|
|
57
57
|
declare class CustomerPaymentSources extends ApiResource {
|
58
58
|
static readonly TYPE: 'customer_payment_sources';
|
59
59
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>>;
|
60
|
-
create(resource: CustomerPaymentSourceCreate, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
60
|
+
create(resource: CustomerPaymentSourceCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
61
61
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
62
|
-
update(resource: CustomerPaymentSourceUpdate, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
62
|
+
update(resource: CustomerPaymentSourceUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerPaymentSource>;
|
63
63
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
64
64
|
isCustomerPaymentSource(resource: any): resource is CustomerPaymentSource;
|
65
65
|
relationship(id: string | ResourceId): CustomerPaymentSourceRel;
|
@@ -19,9 +19,9 @@ declare type CustomerSubscriptionUpdate = ResourceUpdate;
|
|
19
19
|
declare class CustomerSubscriptions extends ApiResource {
|
20
20
|
static readonly TYPE: 'customer_subscriptions';
|
21
21
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>>;
|
22
|
-
create(resource: CustomerSubscriptionCreate, options?: ResourcesConfig): Promise<CustomerSubscription>;
|
22
|
+
create(resource: CustomerSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
|
23
23
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
|
24
|
-
update(resource: CustomerSubscriptionUpdate, options?: ResourcesConfig): Promise<CustomerSubscription>;
|
24
|
+
update(resource: CustomerSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomerSubscription>;
|
25
25
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
26
26
|
isCustomerSubscription(resource: any): resource is CustomerSubscription;
|
27
27
|
relationship(id: string | ResourceId): CustomerSubscriptionRel;
|
@@ -44,9 +44,9 @@ interface CustomerUpdate extends ResourceUpdate {
|
|
44
44
|
declare class Customers extends ApiResource {
|
45
45
|
static readonly TYPE: 'customers';
|
46
46
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Customer>>;
|
47
|
-
create(resource: CustomerCreate, options?: ResourcesConfig): Promise<Customer>;
|
47
|
+
create(resource: CustomerCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
48
48
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
49
|
-
update(resource: CustomerUpdate, options?: ResourcesConfig): Promise<Customer>;
|
49
|
+
update(resource: CustomerUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Customer>;
|
50
50
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
51
51
|
isCustomer(resource: any): resource is Customer;
|
52
52
|
relationship(id: string | ResourceId): CustomerRel;
|
@@ -40,9 +40,9 @@ interface DeliveryLeadTimeUpdate extends ResourceUpdate {
|
|
40
40
|
declare class DeliveryLeadTimes extends ApiResource {
|
41
41
|
static readonly TYPE: 'delivery_lead_times';
|
42
42
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<DeliveryLeadTime>>;
|
43
|
-
create(resource: DeliveryLeadTimeCreate, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
43
|
+
create(resource: DeliveryLeadTimeCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
44
44
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
45
|
-
update(resource: DeliveryLeadTimeUpdate, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
45
|
+
update(resource: DeliveryLeadTimeUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<DeliveryLeadTime>;
|
46
46
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
47
47
|
isDeliveryLeadTime(resource: any): resource is DeliveryLeadTime;
|
48
48
|
relationship(id: string | ResourceId): DeliveryLeadTimeRel;
|
@@ -36,9 +36,9 @@ interface ExternalGatewayUpdate extends ResourceUpdate {
|
|
36
36
|
declare class ExternalGateways extends ApiResource {
|
37
37
|
static readonly TYPE: 'external_gateways';
|
38
38
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalGateway>>;
|
39
|
-
create(resource: ExternalGatewayCreate, options?: ResourcesConfig): Promise<ExternalGateway>;
|
39
|
+
create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
40
40
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
41
|
-
update(resource: ExternalGatewayUpdate, options?: ResourcesConfig): Promise<ExternalGateway>;
|
41
|
+
update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalGateway>;
|
42
42
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
43
|
isExternalGateway(resource: any): resource is ExternalGateway;
|
44
44
|
relationship(id: string | ResourceId): ExternalGatewayRel;
|
@@ -30,9 +30,9 @@ interface ExternalPaymentUpdate extends ResourceUpdate {
|
|
30
30
|
declare class ExternalPayments extends ApiResource {
|
31
31
|
static readonly TYPE: 'external_payments';
|
32
32
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>>;
|
33
|
-
create(resource: ExternalPaymentCreate, options?: ResourcesConfig): Promise<ExternalPayment>;
|
33
|
+
create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
34
34
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
35
|
-
update(resource: ExternalPaymentUpdate, options?: ResourcesConfig): Promise<ExternalPayment>;
|
35
|
+
update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPayment>;
|
36
36
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
37
|
isExternalPayment(resource: any): resource is ExternalPayment;
|
38
38
|
relationship(id: string | ResourceId): ExternalPaymentRel;
|
@@ -70,9 +70,9 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
|
|
70
70
|
declare class ExternalPromotions extends ApiResource {
|
71
71
|
static readonly TYPE: 'external_promotions';
|
72
72
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalPromotion>>;
|
73
|
-
create(resource: ExternalPromotionCreate, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
73
|
+
create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
74
74
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
75
|
-
update(resource: ExternalPromotionUpdate, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
75
|
+
update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalPromotion>;
|
76
76
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
77
77
|
isExternalPromotion(resource: any): resource is ExternalPromotion;
|
78
78
|
relationship(id: string | ResourceId): ExternalPromotionRel;
|
@@ -33,9 +33,9 @@ interface ExternalTaxCalculatorUpdate extends ResourceUpdate {
|
|
33
33
|
declare class ExternalTaxCalculators extends ApiResource {
|
34
34
|
static readonly TYPE: 'external_tax_calculators';
|
35
35
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ExternalTaxCalculator>>;
|
36
|
-
create(resource: ExternalTaxCalculatorCreate, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
36
|
+
create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
37
37
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
38
|
-
update(resource: ExternalTaxCalculatorUpdate, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
38
|
+
update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ExternalTaxCalculator>;
|
39
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
40
|
isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator;
|
41
41
|
relationship(id: string | ResourceId): ExternalTaxCalculatorRel;
|
@@ -72,9 +72,9 @@ interface FixedAmountPromotionUpdate extends ResourceUpdate {
|
|
72
72
|
declare class FixedAmountPromotions extends ApiResource {
|
73
73
|
static readonly TYPE: 'fixed_amount_promotions';
|
74
74
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedAmountPromotion>>;
|
75
|
-
create(resource: FixedAmountPromotionCreate, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
75
|
+
create(resource: FixedAmountPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
76
76
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
77
|
-
update(resource: FixedAmountPromotionUpdate, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
77
|
+
update(resource: FixedAmountPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedAmountPromotion>;
|
78
78
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
79
79
|
isFixedAmountPromotion(resource: any): resource is FixedAmountPromotion;
|
80
80
|
relationship(id: string | ResourceId): FixedAmountPromotionRel;
|
@@ -81,9 +81,9 @@ interface FixedPricePromotionUpdate extends ResourceUpdate {
|
|
81
81
|
declare class FixedPricePromotions extends ApiResource {
|
82
82
|
static readonly TYPE: 'fixed_price_promotions';
|
83
83
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FixedPricePromotion>>;
|
84
|
-
create(resource: FixedPricePromotionCreate, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
84
|
+
create(resource: FixedPricePromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
85
85
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
86
|
-
update(resource: FixedPricePromotionUpdate, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
86
|
+
update(resource: FixedPricePromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FixedPricePromotion>;
|
87
87
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
88
88
|
isFixedPricePromotion(resource: any): resource is FixedPricePromotion;
|
89
89
|
relationship(id: string | ResourceId): FixedPricePromotionRel;
|
@@ -79,9 +79,9 @@ interface FreeGiftPromotionUpdate extends ResourceUpdate {
|
|
79
79
|
declare class FreeGiftPromotions extends ApiResource {
|
80
80
|
static readonly TYPE: 'free_gift_promotions';
|
81
81
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeGiftPromotion>>;
|
82
|
-
create(resource: FreeGiftPromotionCreate, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
82
|
+
create(resource: FreeGiftPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
83
83
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
84
|
-
update(resource: FreeGiftPromotionUpdate, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
84
|
+
update(resource: FreeGiftPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeGiftPromotion>;
|
85
85
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
86
86
|
isFreeGiftPromotion(resource: any): resource is FreeGiftPromotion;
|
87
87
|
relationship(id: string | ResourceId): FreeGiftPromotionRel;
|
@@ -67,9 +67,9 @@ interface FreeShippingPromotionUpdate extends ResourceUpdate {
|
|
67
67
|
declare class FreeShippingPromotions extends ApiResource {
|
68
68
|
static readonly TYPE: 'free_shipping_promotions';
|
69
69
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<FreeShippingPromotion>>;
|
70
|
-
create(resource: FreeShippingPromotionCreate, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
70
|
+
create(resource: FreeShippingPromotionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
71
71
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
72
|
-
update(resource: FreeShippingPromotionUpdate, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
72
|
+
update(resource: FreeShippingPromotionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<FreeShippingPromotion>;
|
73
73
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
74
74
|
isFreeShippingPromotion(resource: any): resource is FreeShippingPromotion;
|
75
75
|
relationship(id: string | ResourceId): FreeShippingPromotionRel;
|
@@ -34,9 +34,9 @@ interface GiftCardRecipientUpdate extends ResourceUpdate {
|
|
34
34
|
declare class GiftCardRecipients extends ApiResource {
|
35
35
|
static readonly TYPE: 'gift_card_recipients';
|
36
36
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCardRecipient>>;
|
37
|
-
create(resource: GiftCardRecipientCreate, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
37
|
+
create(resource: GiftCardRecipientCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
38
38
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
39
|
-
update(resource: GiftCardRecipientUpdate, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
39
|
+
update(resource: GiftCardRecipientUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCardRecipient>;
|
40
40
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
41
41
|
isGiftCardRecipient(resource: any): resource is GiftCardRecipient;
|
42
42
|
relationship(id: string | ResourceId): GiftCardRecipientRel;
|
@@ -72,9 +72,9 @@ interface GiftCardUpdate extends ResourceUpdate {
|
|
72
72
|
declare class GiftCards extends ApiResource {
|
73
73
|
static readonly TYPE: 'gift_cards';
|
74
74
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GiftCard>>;
|
75
|
-
create(resource: GiftCardCreate, options?: ResourcesConfig): Promise<GiftCard>;
|
75
|
+
create(resource: GiftCardCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
76
76
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
77
|
-
update(resource: GiftCardUpdate, options?: ResourcesConfig): Promise<GiftCard>;
|
77
|
+
update(resource: GiftCardUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GiftCard>;
|
78
78
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
79
79
|
isGiftCard(resource: any): resource is GiftCard;
|
80
80
|
relationship(id: string | ResourceId): GiftCardRel;
|
@@ -25,9 +25,9 @@ interface GoogleGeocoderUpdate extends ResourceUpdate {
|
|
25
25
|
declare class GoogleGeocoders extends ApiResource {
|
26
26
|
static readonly TYPE: 'google_geocoders';
|
27
27
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<GoogleGeocoder>>;
|
28
|
-
create(resource: GoogleGeocoderCreate, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
28
|
+
create(resource: GoogleGeocoderCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
29
29
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
30
|
-
update(resource: GoogleGeocoderUpdate, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
30
|
+
update(resource: GoogleGeocoderUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<GoogleGeocoder>;
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isGoogleGeocoder(resource: any): resource is GoogleGeocoder;
|
33
33
|
relationship(id: string | ResourceId): GoogleGeocoderRel;
|
@@ -33,7 +33,7 @@ interface ImportCreate extends ResourceCreate {
|
|
33
33
|
declare class Imports extends ApiResource {
|
34
34
|
static readonly TYPE: 'imports';
|
35
35
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Import>>;
|
36
|
-
create(resource: ImportCreate, options?: ResourcesConfig): Promise<Import>;
|
36
|
+
create(resource: ImportCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Import>;
|
37
37
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Import>;
|
38
38
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
39
39
|
isImport(resource: any): resource is Import;
|
@@ -48,9 +48,9 @@ interface InStockSubscriptionUpdate extends ResourceUpdate {
|
|
48
48
|
declare class InStockSubscriptions extends ApiResource {
|
49
49
|
static readonly TYPE: 'in_stock_subscriptions';
|
50
50
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InStockSubscription>>;
|
51
|
-
create(resource: InStockSubscriptionCreate, options?: ResourcesConfig): Promise<InStockSubscription>;
|
51
|
+
create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
52
52
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
53
|
-
update(resource: InStockSubscriptionUpdate, options?: ResourcesConfig): Promise<InStockSubscription>;
|
53
|
+
update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InStockSubscription>;
|
54
54
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
55
55
|
isInStockSubscription(resource: any): resource is InStockSubscription;
|
56
56
|
relationship(id: string | ResourceId): InStockSubscriptionRel;
|
@@ -31,9 +31,9 @@ interface InventoryModelUpdate extends ResourceUpdate {
|
|
31
31
|
declare class InventoryModels extends ApiResource {
|
32
32
|
static readonly TYPE: 'inventory_models';
|
33
33
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryModel>>;
|
34
|
-
create(resource: InventoryModelCreate, options?: ResourcesConfig): Promise<InventoryModel>;
|
34
|
+
create(resource: InventoryModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
35
35
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
36
|
-
update(resource: InventoryModelUpdate, options?: ResourcesConfig): Promise<InventoryModel>;
|
36
|
+
update(resource: InventoryModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryModel>;
|
37
37
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
38
|
isInventoryModel(resource: any): resource is InventoryModel;
|
39
39
|
relationship(id: string | ResourceId): InventoryModelRel;
|
@@ -33,9 +33,9 @@ interface InventoryReturnLocationUpdate extends ResourceUpdate {
|
|
33
33
|
declare class InventoryReturnLocations extends ApiResource {
|
34
34
|
static readonly TYPE: 'inventory_return_locations';
|
35
35
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryReturnLocation>>;
|
36
|
-
create(resource: InventoryReturnLocationCreate, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
36
|
+
create(resource: InventoryReturnLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
37
37
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
38
|
-
update(resource: InventoryReturnLocationUpdate, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
38
|
+
update(resource: InventoryReturnLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryReturnLocation>;
|
39
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
40
|
isInventoryReturnLocation(resource: any): resource is InventoryReturnLocation;
|
41
41
|
relationship(id: string | ResourceId): InventoryReturnLocationRel;
|
@@ -36,9 +36,9 @@ interface InventoryStockLocationUpdate extends ResourceUpdate {
|
|
36
36
|
declare class InventoryStockLocations extends ApiResource {
|
37
37
|
static readonly TYPE: 'inventory_stock_locations';
|
38
38
|
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<InventoryStockLocation>>;
|
39
|
-
create(resource: InventoryStockLocationCreate, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
39
|
+
create(resource: InventoryStockLocationCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
40
40
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
41
|
-
update(resource: InventoryStockLocationUpdate, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
41
|
+
update(resource: InventoryStockLocationUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<InventoryStockLocation>;
|
42
42
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
43
|
isInventoryStockLocation(resource: any): resource is InventoryStockLocation;
|
44
44
|
relationship(id: string | ResourceId): InventoryStockLocationRel;
|