@commercelayer/sdk 2.0.4 → 2.1.0-alpha.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/README.md +1 -1
- package/lib/api.d.ts +10 -3
- package/lib/client.d.ts +2 -0
- package/lib/commercelayer.d.ts +9 -1
- package/lib/index.d.ts +4 -2
- package/lib/interceptor.d.ts +10 -0
- package/lib/model.d.ts +94 -0
- package/lib/resource.d.ts +6 -3
- package/lib/resources/addresses.d.ts +1 -2
- package/lib/resources/adjustments.d.ts +1 -2
- package/lib/resources/adyen_gateways.d.ts +1 -2
- package/lib/resources/adyen_payments.d.ts +1 -2
- package/lib/resources/application.d.ts +1 -2
- package/lib/resources/attachments.d.ts +1 -2
- package/lib/resources/authorizations.d.ts +1 -2
- package/lib/resources/avalara_accounts.d.ts +1 -2
- package/lib/resources/billing_info_validation_rules.d.ts +1 -2
- package/lib/resources/bing_geocoders.d.ts +1 -2
- package/lib/resources/braintree_gateways.d.ts +1 -2
- package/lib/resources/braintree_payments.d.ts +1 -2
- package/lib/resources/bundles.d.ts +1 -2
- package/lib/resources/captures.d.ts +1 -2
- package/lib/resources/carrier_accounts.d.ts +1 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -2
- package/lib/resources/coupons.d.ts +1 -2
- package/lib/resources/customer_addresses.d.ts +1 -2
- package/lib/resources/customer_groups.d.ts +1 -2
- package/lib/resources/customer_password_resets.d.ts +1 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -2
- package/lib/resources/customers.d.ts +3 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -2
- package/lib/resources/external_gateways.d.ts +1 -2
- package/lib/resources/external_payments.d.ts +1 -2
- package/lib/resources/external_promotions.d.ts +1 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -2
- package/lib/resources/geocoders.d.ts +1 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -2
- package/lib/resources/gift_cards.d.ts +1 -2
- package/lib/resources/google_geocoders.d.ts +1 -2
- package/lib/resources/imports.d.ts +2 -3
- package/lib/resources/in_stock_subscriptions.d.ts +1 -2
- package/lib/resources/inventory_models.d.ts +1 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -2
- package/lib/resources/line_item_options.d.ts +1 -2
- package/lib/resources/line_items.d.ts +1 -2
- package/lib/resources/manual_gateways.d.ts +1 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -2
- package/lib/resources/markets.d.ts +1 -2
- package/lib/resources/merchants.d.ts +1 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -2
- package/lib/resources/order_copies.d.ts +1 -2
- package/lib/resources/order_subscriptions.d.ts +3 -2
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/organization.d.ts +1 -2
- package/lib/resources/packages.d.ts +1 -2
- package/lib/resources/parcel_line_items.d.ts +1 -2
- package/lib/resources/parcels.d.ts +1 -2
- package/lib/resources/payment_gateways.d.ts +1 -2
- package/lib/resources/payment_methods.d.ts +1 -2
- package/lib/resources/paypal_gateways.d.ts +1 -2
- package/lib/resources/paypal_payments.d.ts +1 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -2
- package/lib/resources/price_lists.d.ts +1 -2
- package/lib/resources/prices.d.ts +1 -2
- package/lib/resources/promotion_rules.d.ts +1 -2
- package/lib/resources/promotions.d.ts +1 -2
- package/lib/resources/refunds.d.ts +1 -2
- package/lib/resources/return_line_items.d.ts +1 -2
- package/lib/resources/returns.d.ts +1 -2
- package/lib/resources/shipments.d.ts +1 -2
- package/lib/resources/shipping_categories.d.ts +1 -2
- package/lib/resources/shipping_methods.d.ts +1 -2
- package/lib/resources/shipping_zones.d.ts +1 -2
- package/lib/resources/sku_list_items.d.ts +1 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -2
- package/lib/resources/sku_lists.d.ts +1 -2
- package/lib/resources/sku_options.d.ts +1 -2
- package/lib/resources/skus.d.ts +1 -2
- package/lib/resources/stock_items.d.ts +1 -2
- package/lib/resources/stock_line_items.d.ts +1 -2
- package/lib/resources/stock_locations.d.ts +1 -2
- package/lib/resources/stock_transfers.d.ts +1 -2
- package/lib/resources/stripe_gateways.d.ts +1 -2
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -2
- package/lib/resources/tax_categories.d.ts +1 -2
- package/lib/resources/tax_rules.d.ts +1 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -2
- package/lib/resources/transactions.d.ts +1 -2
- package/lib/resources/voids.d.ts +1 -2
- package/lib/resources/webhooks.d.ts +1 -2
- package/lib/resources/wire_transfers.d.ts +1 -2
- package/lib/sdk.cjs.development.js +808 -274
- 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 +808 -274
- package/lib/sdk.esm.js.map +1 -1
- package/package.json +7 -4
- package/lib/.DS_Store +0 -0
- package/lib/api.js +0 -271
- package/lib/client.js +0 -132
- package/lib/commercelayer.js +0 -163
- package/lib/error.js +0 -25
- package/lib/jsonapi.js +0 -83
- package/lib/poly.d.ts +0 -9
- package/lib/poly.js +0 -2
- package/lib/query.js +0 -172
- package/lib/resource.js +0 -94
- package/lib/resources/addresses.js +0 -45
- package/lib/resources/adjustments.js +0 -45
- package/lib/resources/adyen_gateways.js +0 -45
- package/lib/resources/adyen_payments.js +0 -45
- package/lib/resources/application.js +0 -33
- package/lib/resources/attachments.js +0 -45
- package/lib/resources/authorizations.js +0 -45
- package/lib/resources/avalara_accounts.js +0 -45
- package/lib/resources/billing_info_validation_rules.js +0 -45
- package/lib/resources/braintree_gateways.js +0 -45
- package/lib/resources/braintree_payments.js +0 -45
- package/lib/resources/captures.js +0 -39
- package/lib/resources/carrier_accounts.js +0 -36
- package/lib/resources/checkout_com_gateways.js +0 -45
- package/lib/resources/checkout_com_payments.js +0 -45
- package/lib/resources/coupon_codes_promotion_rules.js +0 -45
- package/lib/resources/coupons.js +0 -45
- package/lib/resources/customer_addresses.js +0 -45
- package/lib/resources/customer_groups.js +0 -45
- package/lib/resources/customer_password_resets.js +0 -45
- package/lib/resources/customer_payment_sources.js +0 -45
- package/lib/resources/customer_subscriptions.js +0 -45
- package/lib/resources/customers.js +0 -45
- package/lib/resources/delivery_lead_times.js +0 -45
- package/lib/resources/external_gateways.js +0 -45
- package/lib/resources/external_payments.js +0 -45
- package/lib/resources/external_promotions.js +0 -45
- package/lib/resources/external_tax_calculators.js +0 -45
- package/lib/resources/fixed_amount_promotions.js +0 -45
- package/lib/resources/free_shipping_promotions.js +0 -45
- package/lib/resources/gift_card_recipients.js +0 -45
- package/lib/resources/gift_cards.js +0 -45
- package/lib/resources/imports.js +0 -42
- package/lib/resources/in_stock_subscriptions.js +0 -45
- package/lib/resources/inventory_models.js +0 -45
- package/lib/resources/inventory_return_locations.js +0 -45
- package/lib/resources/inventory_stock_locations.js +0 -45
- package/lib/resources/line_item_options.js +0 -45
- package/lib/resources/line_items.js +0 -45
- package/lib/resources/manual_gateways.js +0 -45
- package/lib/resources/manual_tax_calculators.js +0 -45
- package/lib/resources/markets.js +0 -45
- package/lib/resources/merchants.js +0 -45
- package/lib/resources/order_amount_promotion_rules.js +0 -45
- package/lib/resources/orders.js +0 -45
- package/lib/resources/organization.js +0 -33
- package/lib/resources/packages.js +0 -45
- package/lib/resources/parcel_line_items.js +0 -45
- package/lib/resources/parcels.js +0 -45
- package/lib/resources/payment_gateways.js +0 -45
- package/lib/resources/payment_methods.js +0 -45
- package/lib/resources/paypal_gateways.js +0 -45
- package/lib/resources/paypal_payments.js +0 -45
- package/lib/resources/percentage_discount_promotions.js +0 -45
- package/lib/resources/price_lists.js +0 -45
- package/lib/resources/prices.js +0 -45
- package/lib/resources/promotion_rules.js +0 -33
- package/lib/resources/promotions.js +0 -33
- package/lib/resources/refunds.js +0 -36
- package/lib/resources/return_line_items.js +0 -45
- package/lib/resources/returns.js +0 -45
- package/lib/resources/shipments.js +0 -39
- package/lib/resources/shipping_categories.js +0 -45
- package/lib/resources/shipping_methods.js +0 -45
- package/lib/resources/shipping_zones.js +0 -45
- package/lib/resources/sku_list_items.js +0 -45
- package/lib/resources/sku_list_promotion_rules.js +0 -45
- package/lib/resources/sku_lists.js +0 -45
- package/lib/resources/sku_options.js +0 -45
- package/lib/resources/skus.js +0 -45
- package/lib/resources/stock_items.js +0 -45
- package/lib/resources/stock_line_items.js +0 -36
- package/lib/resources/stock_locations.js +0 -45
- package/lib/resources/stock_transfers.js +0 -45
- package/lib/resources/stripe_gateways.js +0 -45
- package/lib/resources/stripe_payments.js +0 -45
- package/lib/resources/tax_calculators.js +0 -33
- package/lib/resources/tax_categories.js +0 -45
- package/lib/resources/tax_rules.js +0 -45
- package/lib/resources/taxjar_accounts.js +0 -45
- package/lib/resources/transactions.js +0 -33
- package/lib/resources/voids.js +0 -36
- package/lib/resources/webhooks.js +0 -45
- package/lib/resources/wire_transfers.js +0 -45
- package/lib/util.js +0 -7
package/README.md
CHANGED
@@ -4,7 +4,7 @@ A JavaScript Library wrapper that makes it quick and easy to interact with the [
|
|
4
4
|
|
5
5
|
### What is Commerce Layer?
|
6
6
|
|
7
|
-
[Commerce Layer](https://commercelayer.io
|
7
|
+
[Commerce Layer](https://commercelayer.io) is a multi-market commerce API and order management system that lets you add global shopping capabilities to any website, mobile app, chatbot, wearable, voice, or IoT device, with ease. Compose your stack with the best-of-breed tools you already mastered and love. Make any experience shoppable, anywhere, through a blazing-fast, enterprise-grade, and secure API.
|
8
8
|
|
9
9
|
# Getting started
|
10
10
|
|
package/lib/api.d.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
export { default as Addresses } from './resources/addresses';
|
7
6
|
export { default as Adjustments } from './resources/adjustments';
|
@@ -93,5 +92,13 @@ export { default as Transactions } from './resources/transactions';
|
|
93
92
|
export { default as Voids } from './resources/voids';
|
94
93
|
export { default as Webhooks } from './resources/webhooks';
|
95
94
|
export { default as WireTransfers } from './resources/wire_transfers';
|
96
|
-
export declare type
|
95
|
+
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' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | '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';
|
97
96
|
export declare const resourceList: string[];
|
97
|
+
export declare type ResourceInfo = {
|
98
|
+
name: string;
|
99
|
+
type: string;
|
100
|
+
api: string;
|
101
|
+
};
|
102
|
+
export declare const resourcMap: {
|
103
|
+
[res: string]: ResourceInfo;
|
104
|
+
};
|
package/lib/client.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Method } from 'axios';
|
2
2
|
import { DocWithData as JSONApiDocument, ResourceObject as JSONApiResource } from 'jsonapi-typescript';
|
3
|
+
import type { InterceptorManager } from './interceptor';
|
3
4
|
declare type RequestConfig = {
|
4
5
|
timeout?: number;
|
5
6
|
params?: {
|
@@ -20,6 +21,7 @@ declare class ApiClient {
|
|
20
21
|
#private;
|
21
22
|
static create(options: ApiClientInitConfig): ApiClient;
|
22
23
|
baseUrl: string;
|
24
|
+
interceptors: InterceptorManager;
|
23
25
|
private constructor();
|
24
26
|
config(config: ApiClientConfig): void;
|
25
27
|
request(method: Method, path: string, body?: JSONApiResource, options?: ApiClientConfig): Promise<JSONApiDocument>;
|
package/lib/commercelayer.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import * as api from './api';
|
2
2
|
import ApiError from './error';
|
3
|
+
import { ErrorInterceptor, InterceptorType, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
3
4
|
import { ResourcesConfig, ResourcesInitConfig } from './resource';
|
4
5
|
declare type SdkConfig = {};
|
5
6
|
declare type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
@@ -99,9 +100,16 @@ declare class CommerceLayerClient {
|
|
99
100
|
constructor(config: CommerceLayerInitConfig);
|
100
101
|
get currentOrganization(): string;
|
101
102
|
config(config: CommerceLayerConfig): void;
|
102
|
-
resources():
|
103
|
+
resources(): api.ResourceTypeLock[];
|
103
104
|
isApiError(error: any): error is ApiError;
|
105
|
+
addRequestInterceptor(onFulfilled?: RequestInterceptor, onRejected?: ErrorInterceptor): number;
|
106
|
+
addResponseInterceptor(onFulfilled?: ResponseInterceptor, onRejected?: ErrorInterceptor): number;
|
107
|
+
removeInterceptor(type: InterceptorType, id: number): void;
|
104
108
|
}
|
105
109
|
declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;
|
106
110
|
export default CommerceLayer;
|
107
111
|
export type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig };
|
112
|
+
export declare const CommerceLayerStatic: {
|
113
|
+
resources: () => api.ResourceTypeLock[];
|
114
|
+
isApiError: (error: any) => error is ApiError;
|
115
|
+
};
|
package/lib/index.d.ts
CHANGED
@@ -1,2 +1,4 @@
|
|
1
|
-
export { default,
|
2
|
-
export type {
|
1
|
+
export { default, CommerceLayerStatic } from './commercelayer';
|
2
|
+
export type { CommerceLayerClient } from './commercelayer';
|
3
|
+
export type { QueryParamsRetrieve, QueryParamsList } from './query';
|
4
|
+
export * from './model';
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { AxiosInterceptorManager, AxiosRequestConfig } from "axios";
|
2
|
+
declare type InterceptorManager = {
|
3
|
+
request: AxiosInterceptorManager<AxiosRequestConfig>;
|
4
|
+
response: AxiosInterceptorManager<any>;
|
5
|
+
};
|
6
|
+
declare type RequestInterceptor = (config: AxiosRequestConfig) => AxiosRequestConfig | Promise<AxiosRequestConfig>;
|
7
|
+
declare type ResponseInterceptor = (response: unknown) => unknown;
|
8
|
+
declare type ErrorInterceptor = (error: unknown) => unknown;
|
9
|
+
declare type InterceptorType = 'request' | 'response';
|
10
|
+
export type { InterceptorManager, RequestInterceptor, ResponseInterceptor, ErrorInterceptor, InterceptorType };
|
package/lib/model.d.ts
ADDED
@@ -0,0 +1,94 @@
|
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
4
|
+
**/
|
5
|
+
export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
|
6
|
+
export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
|
7
|
+
export type { AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate } from './resources/adyen_gateways';
|
8
|
+
export type { AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate } from './resources/adyen_payments';
|
9
|
+
export type { Application } from './resources/application';
|
10
|
+
export type { Attachment, AttachmentCreate, AttachmentUpdate } from './resources/attachments';
|
11
|
+
export type { Authorization, AuthorizationUpdate } from './resources/authorizations';
|
12
|
+
export type { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate } from './resources/avalara_accounts';
|
13
|
+
export type { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate } from './resources/billing_info_validation_rules';
|
14
|
+
export type { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate } from './resources/bing_geocoders';
|
15
|
+
export type { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate } from './resources/braintree_gateways';
|
16
|
+
export type { BraintreePayment, BraintreePaymentCreate, BraintreePaymentUpdate } from './resources/braintree_payments';
|
17
|
+
export type { Bundle, BundleCreate, BundleUpdate } from './resources/bundles';
|
18
|
+
export type { Capture, CaptureUpdate } from './resources/captures';
|
19
|
+
export type { CarrierAccount } from './resources/carrier_accounts';
|
20
|
+
export type { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate } from './resources/checkout_com_gateways';
|
21
|
+
export type { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate } from './resources/checkout_com_payments';
|
22
|
+
export type { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate } from './resources/coupon_codes_promotion_rules';
|
23
|
+
export type { Coupon, CouponCreate, CouponUpdate } from './resources/coupons';
|
24
|
+
export type { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate } from './resources/customer_addresses';
|
25
|
+
export type { CustomerGroup, CustomerGroupCreate, CustomerGroupUpdate } from './resources/customer_groups';
|
26
|
+
export type { CustomerPasswordReset, CustomerPasswordResetCreate, CustomerPasswordResetUpdate } from './resources/customer_password_resets';
|
27
|
+
export type { CustomerPaymentSource, CustomerPaymentSourceCreate, CustomerPaymentSourceUpdate } from './resources/customer_payment_sources';
|
28
|
+
export type { CustomerSubscription, CustomerSubscriptionCreate, CustomerSubscriptionUpdate } from './resources/customer_subscriptions';
|
29
|
+
export type { Customer, CustomerCreate, CustomerUpdate } from './resources/customers';
|
30
|
+
export type { DeliveryLeadTime, DeliveryLeadTimeCreate, DeliveryLeadTimeUpdate } from './resources/delivery_lead_times';
|
31
|
+
export type { ExternalGateway, ExternalGatewayCreate, ExternalGatewayUpdate } from './resources/external_gateways';
|
32
|
+
export type { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate } from './resources/external_payments';
|
33
|
+
export type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate } from './resources/external_promotions';
|
34
|
+
export type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate } from './resources/external_tax_calculators';
|
35
|
+
export type { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate } from './resources/fixed_amount_promotions';
|
36
|
+
export type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate } from './resources/free_shipping_promotions';
|
37
|
+
export type { Geocoder } from './resources/geocoders';
|
38
|
+
export type { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate } from './resources/gift_card_recipients';
|
39
|
+
export type { GiftCard, GiftCardCreate, GiftCardUpdate } from './resources/gift_cards';
|
40
|
+
export type { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoderUpdate } from './resources/google_geocoders';
|
41
|
+
export type { Import, ImportCreate } from './resources/imports';
|
42
|
+
export type { InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate } from './resources/in_stock_subscriptions';
|
43
|
+
export type { InventoryModel, InventoryModelCreate, InventoryModelUpdate } from './resources/inventory_models';
|
44
|
+
export type { InventoryReturnLocation, InventoryReturnLocationCreate, InventoryReturnLocationUpdate } from './resources/inventory_return_locations';
|
45
|
+
export type { InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate } from './resources/inventory_stock_locations';
|
46
|
+
export type { LineItemOption, LineItemOptionCreate, LineItemOptionUpdate } from './resources/line_item_options';
|
47
|
+
export type { LineItem, LineItemCreate, LineItemUpdate } from './resources/line_items';
|
48
|
+
export type { ManualGateway, ManualGatewayCreate, ManualGatewayUpdate } from './resources/manual_gateways';
|
49
|
+
export type { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculatorUpdate } from './resources/manual_tax_calculators';
|
50
|
+
export type { Market, MarketCreate, MarketUpdate } from './resources/markets';
|
51
|
+
export type { Merchant, MerchantCreate, MerchantUpdate } from './resources/merchants';
|
52
|
+
export type { OrderAmountPromotionRule, OrderAmountPromotionRuleCreate, OrderAmountPromotionRuleUpdate } from './resources/order_amount_promotion_rules';
|
53
|
+
export type { OrderCopy, OrderCopyCreate } from './resources/order_copies';
|
54
|
+
export type { OrderSubscription, OrderSubscriptionCreate, OrderSubscriptionUpdate } from './resources/order_subscriptions';
|
55
|
+
export type { Order, OrderCreate, OrderUpdate } from './resources/orders';
|
56
|
+
export type { Organization } from './resources/organization';
|
57
|
+
export type { Package, PackageCreate, PackageUpdate } from './resources/packages';
|
58
|
+
export type { ParcelLineItem, ParcelLineItemCreate, ParcelLineItemUpdate } from './resources/parcel_line_items';
|
59
|
+
export type { Parcel, ParcelCreate, ParcelUpdate } from './resources/parcels';
|
60
|
+
export type { PaymentGateway, PaymentGatewayCreate, PaymentGatewayUpdate } from './resources/payment_gateways';
|
61
|
+
export type { PaymentMethod, PaymentMethodCreate, PaymentMethodUpdate } from './resources/payment_methods';
|
62
|
+
export type { PaypalGateway, PaypalGatewayCreate, PaypalGatewayUpdate } from './resources/paypal_gateways';
|
63
|
+
export type { PaypalPayment, PaypalPaymentCreate, PaypalPaymentUpdate } from './resources/paypal_payments';
|
64
|
+
export type { PercentageDiscountPromotion, PercentageDiscountPromotionCreate, PercentageDiscountPromotionUpdate } from './resources/percentage_discount_promotions';
|
65
|
+
export type { PriceList, PriceListCreate, PriceListUpdate } from './resources/price_lists';
|
66
|
+
export type { Price, PriceCreate, PriceUpdate } from './resources/prices';
|
67
|
+
export type { PromotionRule } from './resources/promotion_rules';
|
68
|
+
export type { Promotion } from './resources/promotions';
|
69
|
+
export type { Refund } from './resources/refunds';
|
70
|
+
export type { ReturnLineItem, ReturnLineItemCreate, ReturnLineItemUpdate } from './resources/return_line_items';
|
71
|
+
export type { Return, ReturnCreate, ReturnUpdate } from './resources/returns';
|
72
|
+
export type { Shipment, ShipmentUpdate } from './resources/shipments';
|
73
|
+
export type { ShippingCategory, ShippingCategoryCreate, ShippingCategoryUpdate } from './resources/shipping_categories';
|
74
|
+
export type { ShippingMethod, ShippingMethodCreate, ShippingMethodUpdate } from './resources/shipping_methods';
|
75
|
+
export type { ShippingZone, ShippingZoneCreate, ShippingZoneUpdate } from './resources/shipping_zones';
|
76
|
+
export type { SkuListItem, SkuListItemCreate, SkuListItemUpdate } from './resources/sku_list_items';
|
77
|
+
export type { SkuListPromotionRule, SkuListPromotionRuleCreate, SkuListPromotionRuleUpdate } from './resources/sku_list_promotion_rules';
|
78
|
+
export type { SkuList, SkuListCreate, SkuListUpdate } from './resources/sku_lists';
|
79
|
+
export type { SkuOption, SkuOptionCreate, SkuOptionUpdate } from './resources/sku_options';
|
80
|
+
export type { Sku, SkuCreate, SkuUpdate } from './resources/skus';
|
81
|
+
export type { StockItem, StockItemCreate, StockItemUpdate } from './resources/stock_items';
|
82
|
+
export type { StockLineItem } from './resources/stock_line_items';
|
83
|
+
export type { StockLocation, StockLocationCreate, StockLocationUpdate } from './resources/stock_locations';
|
84
|
+
export type { StockTransfer, StockTransferCreate, StockTransferUpdate } from './resources/stock_transfers';
|
85
|
+
export type { StripeGateway, StripeGatewayCreate, StripeGatewayUpdate } from './resources/stripe_gateways';
|
86
|
+
export type { StripePayment, StripePaymentCreate, StripePaymentUpdate } from './resources/stripe_payments';
|
87
|
+
export type { TaxCalculator } from './resources/tax_calculators';
|
88
|
+
export type { TaxCategory, TaxCategoryCreate, TaxCategoryUpdate } from './resources/tax_categories';
|
89
|
+
export type { TaxRule, TaxRuleCreate, TaxRuleUpdate } from './resources/tax_rules';
|
90
|
+
export type { TaxjarAccount, TaxjarAccountCreate, TaxjarAccountUpdate } from './resources/taxjar_accounts';
|
91
|
+
export type { Transaction } from './resources/transactions';
|
92
|
+
export type { Void } from './resources/voids';
|
93
|
+
export type { Webhook, WebhookCreate, WebhookUpdate } from './resources/webhooks';
|
94
|
+
export type { WireTransfer, WireTransferCreate, WireTransferUpdate } from './resources/wire_transfers';
|
package/lib/resource.d.ts
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import { ApiClientConfig, ApiClientInitConfig } from './client';
|
2
2
|
import { JSONValue } from './jsonapi';
|
3
3
|
import { QueryParamsRetrieve, QueryParamsList } from './query';
|
4
|
-
import {
|
4
|
+
import { ResourceTypeLock } from './api';
|
5
|
+
import { InterceptorManager } from './interceptor';
|
5
6
|
declare type Metadata = {
|
6
7
|
[key: string]: JSONValue;
|
7
8
|
};
|
8
9
|
interface ResourceType {
|
9
|
-
readonly type:
|
10
|
+
readonly type: ResourceTypeLock;
|
10
11
|
}
|
11
12
|
interface ResourceId extends ResourceType {
|
12
13
|
readonly id: string;
|
@@ -50,6 +51,7 @@ declare class ResourceAdapter {
|
|
50
51
|
#private;
|
51
52
|
constructor(config: ResourcesInitConfig);
|
52
53
|
config(config: ResourcesConfig): void;
|
54
|
+
get interceptors(): InterceptorManager;
|
53
55
|
singleton<R extends Resource>(resource: ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
|
54
56
|
retrieve<R extends Resource>(resource: ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;
|
55
57
|
list<R extends Resource>(resource: ResourceType, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<R>>;
|
@@ -58,9 +60,10 @@ declare class ResourceAdapter {
|
|
58
60
|
delete(resource: ResourceId, options?: ResourcesConfig): Promise<void>;
|
59
61
|
}
|
60
62
|
declare abstract class ApiResource {
|
61
|
-
static readonly TYPE:
|
63
|
+
static readonly TYPE: ResourceTypeLock;
|
62
64
|
protected resources: ResourceAdapter;
|
63
65
|
constructor(adapter: ResourceAdapter);
|
66
|
+
abstract relationship(id: string | ResourceId): ResourceId;
|
64
67
|
}
|
65
68
|
export default ResourceAdapter;
|
66
69
|
export { ApiResource, ResourcesConfig, ResourcesInitConfig };
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -10,6 +9,7 @@ import { CustomerAddress } from './customer_addresses';
|
|
10
9
|
import { CustomerPaymentSource } from './customer_payment_sources';
|
11
10
|
import { CustomerSubscription } from './customer_subscriptions';
|
12
11
|
import { Order } from './orders';
|
12
|
+
import { OrderSubscription } from './order_subscriptions';
|
13
13
|
import { Return } from './returns';
|
14
14
|
import { Attachment } from './attachments';
|
15
15
|
declare type CustomerRel = ResourceId & {
|
@@ -27,6 +27,7 @@ interface Customer extends Resource {
|
|
27
27
|
customer_payment_sources?: CustomerPaymentSource[];
|
28
28
|
customer_subscriptions?: CustomerSubscription[];
|
29
29
|
orders?: Order[];
|
30
|
+
order_subscriptions?: OrderSubscription[];
|
30
31
|
returns?: Return[];
|
31
32
|
attachments?: Attachment[];
|
32
33
|
}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -1,7 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
4
|
-
* Generation date: 24-08-2021
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
|
5
4
|
**/
|
6
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
7
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|