@commercelayer/sdk 5.0.0-beta.5 → 5.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/commercelayer.d.ts +2 -2
- package/lib/cjs/commercelayer.js +1 -1
- package/lib/cjs/resources/addresses.js +0 -1
- package/lib/cjs/resources/adjustments.js +0 -1
- package/lib/cjs/resources/adyen_gateways.js +0 -1
- package/lib/cjs/resources/adyen_payments.js +0 -1
- package/lib/cjs/resources/application.js +0 -1
- package/lib/cjs/resources/attachments.js +0 -1
- package/lib/cjs/resources/authorizations.js +0 -1
- package/lib/cjs/resources/avalara_accounts.js +0 -1
- package/lib/cjs/resources/axerve_gateways.js +0 -1
- package/lib/cjs/resources/axerve_payments.js +0 -1
- package/lib/cjs/resources/billing_info_validation_rules.js +0 -1
- package/lib/cjs/resources/bing_geocoders.js +0 -1
- package/lib/cjs/resources/braintree_gateways.js +0 -1
- package/lib/cjs/resources/braintree_payments.js +0 -1
- package/lib/cjs/resources/bundles.js +0 -1
- package/lib/cjs/resources/captures.js +0 -1
- package/lib/cjs/resources/carrier_accounts.js +0 -1
- package/lib/cjs/resources/checkout_com_gateways.js +0 -1
- package/lib/cjs/resources/checkout_com_payments.js +0 -1
- package/lib/cjs/resources/cleanups.js +0 -1
- package/lib/cjs/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/cjs/resources/coupon_recipients.js +0 -1
- package/lib/cjs/resources/coupons.js +0 -1
- package/lib/cjs/resources/customer_addresses.js +0 -1
- package/lib/cjs/resources/customer_groups.js +0 -1
- package/lib/cjs/resources/customer_password_resets.js +0 -1
- package/lib/cjs/resources/customer_payment_sources.js +0 -1
- package/lib/cjs/resources/customer_subscriptions.js +0 -1
- package/lib/cjs/resources/customers.js +0 -1
- package/lib/cjs/resources/delivery_lead_times.js +0 -1
- package/lib/cjs/resources/event_callbacks.js +0 -1
- package/lib/cjs/resources/events.js +0 -1
- package/lib/cjs/resources/exports.js +0 -1
- package/lib/cjs/resources/external_gateways.js +0 -1
- package/lib/cjs/resources/external_payments.js +0 -1
- package/lib/cjs/resources/external_promotions.js +0 -1
- package/lib/cjs/resources/external_tax_calculators.js +0 -1
- package/lib/cjs/resources/fixed_amount_promotions.js +0 -1
- package/lib/cjs/resources/fixed_price_promotions.js +0 -1
- package/lib/cjs/resources/free_gift_promotions.js +0 -1
- package/lib/cjs/resources/free_shipping_promotions.js +0 -1
- package/lib/cjs/resources/geocoders.js +0 -1
- package/lib/cjs/resources/gift_card_recipients.js +0 -1
- package/lib/cjs/resources/gift_cards.js +0 -1
- package/lib/cjs/resources/google_geocoders.js +0 -1
- package/lib/cjs/resources/imports.js +0 -1
- package/lib/cjs/resources/in_stock_subscriptions.js +0 -1
- package/lib/cjs/resources/inventory_models.js +0 -1
- package/lib/cjs/resources/inventory_return_locations.js +0 -1
- package/lib/cjs/resources/inventory_stock_locations.js +0 -1
- package/lib/cjs/resources/klarna_gateways.js +0 -1
- package/lib/cjs/resources/klarna_payments.js +0 -1
- package/lib/cjs/resources/line_item_options.js +0 -1
- package/lib/cjs/resources/line_items.d.ts +2 -2
- package/lib/cjs/resources/line_items.js +0 -1
- package/lib/cjs/resources/manual_gateways.js +0 -1
- package/lib/cjs/resources/manual_tax_calculators.js +0 -1
- package/lib/cjs/resources/markets.js +0 -1
- package/lib/cjs/resources/merchants.js +0 -1
- package/lib/cjs/resources/order_amount_promotion_rules.js +0 -1
- package/lib/cjs/resources/order_copies.js +0 -1
- package/lib/cjs/resources/order_subscriptions.js +0 -1
- package/lib/cjs/resources/order_validation_rules.js +0 -1
- package/lib/cjs/resources/orders.d.ts +2 -2
- package/lib/cjs/resources/orders.js +0 -1
- package/lib/cjs/resources/organization.js +0 -1
- package/lib/cjs/resources/packages.js +0 -1
- package/lib/cjs/resources/parcel_line_items.js +0 -1
- package/lib/cjs/resources/parcels.js +0 -1
- package/lib/cjs/resources/payment_gateways.js +0 -1
- package/lib/cjs/resources/payment_methods.js +0 -1
- package/lib/cjs/resources/paypal_gateways.js +0 -1
- package/lib/cjs/resources/paypal_payments.js +0 -1
- package/lib/cjs/resources/percentage_discount_promotions.js +0 -1
- package/lib/cjs/resources/price_lists.js +0 -1
- package/lib/cjs/resources/price_tiers.js +0 -1
- package/lib/cjs/resources/price_volume_tiers.js +0 -1
- package/lib/cjs/resources/prices.js +0 -1
- package/lib/cjs/resources/promotion_rules.js +0 -1
- package/lib/cjs/resources/promotions.js +0 -1
- package/lib/cjs/resources/refunds.js +0 -1
- package/lib/cjs/resources/return_line_items.js +0 -1
- package/lib/cjs/resources/returns.js +0 -1
- package/lib/cjs/resources/satispay_gateways.js +0 -1
- package/lib/cjs/resources/satispay_payments.js +0 -1
- package/lib/cjs/resources/shipments.js +0 -1
- package/lib/cjs/resources/shipping_categories.js +0 -1
- package/lib/cjs/resources/shipping_method_tiers.js +0 -1
- package/lib/cjs/resources/shipping_methods.js +0 -1
- package/lib/cjs/resources/shipping_weight_tiers.js +0 -1
- package/lib/cjs/resources/shipping_zones.js +0 -1
- package/lib/cjs/resources/sku_list_items.js +0 -1
- package/lib/cjs/resources/sku_list_promotion_rules.js +0 -1
- package/lib/cjs/resources/sku_lists.js +0 -1
- package/lib/cjs/resources/sku_options.js +0 -1
- package/lib/cjs/resources/skus.js +0 -1
- package/lib/cjs/resources/stock_items.js +0 -1
- package/lib/cjs/resources/stock_line_items.js +0 -1
- package/lib/cjs/resources/stock_locations.js +0 -1
- package/lib/cjs/resources/stock_transfers.js +0 -1
- package/lib/cjs/resources/stripe_gateways.js +0 -1
- package/lib/cjs/resources/stripe_payments.js +0 -1
- package/lib/cjs/resources/tax_calculators.js +0 -1
- package/lib/cjs/resources/tax_categories.js +0 -1
- package/lib/cjs/resources/tax_rules.js +0 -1
- package/lib/cjs/resources/taxjar_accounts.js +0 -1
- package/lib/cjs/resources/transactions.js +0 -1
- package/lib/cjs/resources/voids.js +0 -1
- package/lib/cjs/resources/webhooks.js +0 -1
- package/lib/cjs/resources/wire_transfers.js +0 -1
- package/lib/esm/commercelayer.d.ts +2 -2
- package/lib/esm/commercelayer.js +1 -1
- package/lib/esm/resources/addresses.js +0 -1
- package/lib/esm/resources/adjustments.js +0 -1
- package/lib/esm/resources/adyen_gateways.js +0 -1
- package/lib/esm/resources/adyen_payments.js +0 -1
- package/lib/esm/resources/application.js +0 -1
- package/lib/esm/resources/attachments.js +0 -1
- package/lib/esm/resources/authorizations.js +0 -1
- package/lib/esm/resources/avalara_accounts.js +0 -1
- package/lib/esm/resources/axerve_gateways.js +0 -1
- package/lib/esm/resources/axerve_payments.js +0 -1
- package/lib/esm/resources/billing_info_validation_rules.js +0 -1
- package/lib/esm/resources/bing_geocoders.js +0 -1
- package/lib/esm/resources/braintree_gateways.js +0 -1
- package/lib/esm/resources/braintree_payments.js +0 -1
- package/lib/esm/resources/bundles.js +0 -1
- package/lib/esm/resources/captures.js +0 -1
- package/lib/esm/resources/carrier_accounts.js +0 -1
- package/lib/esm/resources/checkout_com_gateways.js +0 -1
- package/lib/esm/resources/checkout_com_payments.js +0 -1
- package/lib/esm/resources/cleanups.js +0 -1
- package/lib/esm/resources/coupon_codes_promotion_rules.js +0 -1
- package/lib/esm/resources/coupon_recipients.js +0 -1
- package/lib/esm/resources/coupons.js +0 -1
- package/lib/esm/resources/customer_addresses.js +0 -1
- package/lib/esm/resources/customer_groups.js +0 -1
- package/lib/esm/resources/customer_password_resets.js +0 -1
- package/lib/esm/resources/customer_payment_sources.js +0 -1
- package/lib/esm/resources/customer_subscriptions.js +0 -1
- package/lib/esm/resources/customers.js +0 -1
- package/lib/esm/resources/delivery_lead_times.js +0 -1
- package/lib/esm/resources/event_callbacks.js +0 -1
- package/lib/esm/resources/events.js +0 -1
- package/lib/esm/resources/exports.js +0 -1
- package/lib/esm/resources/external_gateways.js +0 -1
- package/lib/esm/resources/external_payments.js +0 -1
- package/lib/esm/resources/external_promotions.js +0 -1
- package/lib/esm/resources/external_tax_calculators.js +0 -1
- package/lib/esm/resources/fixed_amount_promotions.js +0 -1
- package/lib/esm/resources/fixed_price_promotions.js +0 -1
- package/lib/esm/resources/free_gift_promotions.js +0 -1
- package/lib/esm/resources/free_shipping_promotions.js +0 -1
- package/lib/esm/resources/geocoders.js +0 -1
- package/lib/esm/resources/gift_card_recipients.js +0 -1
- package/lib/esm/resources/gift_cards.js +0 -1
- package/lib/esm/resources/google_geocoders.js +0 -1
- package/lib/esm/resources/imports.js +0 -1
- package/lib/esm/resources/in_stock_subscriptions.js +0 -1
- package/lib/esm/resources/inventory_models.js +0 -1
- package/lib/esm/resources/inventory_return_locations.js +0 -1
- package/lib/esm/resources/inventory_stock_locations.js +0 -1
- package/lib/esm/resources/klarna_gateways.js +0 -1
- package/lib/esm/resources/klarna_payments.js +0 -1
- package/lib/esm/resources/line_item_options.js +0 -1
- package/lib/esm/resources/line_items.d.ts +2 -2
- package/lib/esm/resources/line_items.js +0 -1
- package/lib/esm/resources/manual_gateways.js +0 -1
- package/lib/esm/resources/manual_tax_calculators.js +0 -1
- package/lib/esm/resources/markets.js +0 -1
- package/lib/esm/resources/merchants.js +0 -1
- package/lib/esm/resources/order_amount_promotion_rules.js +0 -1
- package/lib/esm/resources/order_copies.js +0 -1
- package/lib/esm/resources/order_subscriptions.js +0 -1
- package/lib/esm/resources/order_validation_rules.js +0 -1
- package/lib/esm/resources/orders.d.ts +2 -2
- package/lib/esm/resources/orders.js +0 -1
- package/lib/esm/resources/organization.js +0 -1
- package/lib/esm/resources/packages.js +0 -1
- package/lib/esm/resources/parcel_line_items.js +0 -1
- package/lib/esm/resources/parcels.js +0 -1
- package/lib/esm/resources/payment_gateways.js +0 -1
- package/lib/esm/resources/payment_methods.js +0 -1
- package/lib/esm/resources/paypal_gateways.js +0 -1
- package/lib/esm/resources/paypal_payments.js +0 -1
- package/lib/esm/resources/percentage_discount_promotions.js +0 -1
- package/lib/esm/resources/price_lists.js +0 -1
- package/lib/esm/resources/price_tiers.js +0 -1
- package/lib/esm/resources/price_volume_tiers.js +0 -1
- package/lib/esm/resources/prices.js +0 -1
- package/lib/esm/resources/promotion_rules.js +0 -1
- package/lib/esm/resources/promotions.js +0 -1
- package/lib/esm/resources/refunds.js +0 -1
- package/lib/esm/resources/return_line_items.js +0 -1
- package/lib/esm/resources/returns.js +0 -1
- package/lib/esm/resources/satispay_gateways.js +0 -1
- package/lib/esm/resources/satispay_payments.js +0 -1
- package/lib/esm/resources/shipments.js +0 -1
- package/lib/esm/resources/shipping_categories.js +0 -1
- package/lib/esm/resources/shipping_method_tiers.js +0 -1
- package/lib/esm/resources/shipping_methods.js +0 -1
- package/lib/esm/resources/shipping_weight_tiers.js +0 -1
- package/lib/esm/resources/shipping_zones.js +0 -1
- package/lib/esm/resources/sku_list_items.js +0 -1
- package/lib/esm/resources/sku_list_promotion_rules.js +0 -1
- package/lib/esm/resources/sku_lists.js +0 -1
- package/lib/esm/resources/sku_options.js +0 -1
- package/lib/esm/resources/skus.js +0 -1
- package/lib/esm/resources/stock_items.js +0 -1
- package/lib/esm/resources/stock_line_items.js +0 -1
- package/lib/esm/resources/stock_locations.js +0 -1
- package/lib/esm/resources/stock_transfers.js +0 -1
- package/lib/esm/resources/stripe_gateways.js +0 -1
- package/lib/esm/resources/stripe_payments.js +0 -1
- package/lib/esm/resources/tax_calculators.js +0 -1
- package/lib/esm/resources/tax_categories.js +0 -1
- package/lib/esm/resources/tax_rules.js +0 -1
- package/lib/esm/resources/taxjar_accounts.js +0 -1
- package/lib/esm/resources/transactions.js +0 -1
- package/lib/esm/resources/voids.js +0 -1
- package/lib/esm/resources/webhooks.js +0 -1
- package/lib/esm/resources/wire_transfers.js +0 -1
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import * as api from './api';
|
|
2
2
|
import { ApiError } from './error';
|
3
3
|
import type { ErrorInterceptor, InterceptorType, RawResponseReader, RequestInterceptor, ResponseInterceptor } from './interceptor';
|
4
4
|
import { ResourcesInitConfig } from './resource';
|
5
|
-
declare const OPEN_API_SCHEMA_VERSION = "4.0.
|
5
|
+
declare const OPEN_API_SCHEMA_VERSION = "4.0.1";
|
6
6
|
export { OPEN_API_SCHEMA_VERSION };
|
7
7
|
type SdkConfig = {};
|
8
8
|
type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
@@ -10,7 +10,7 @@ type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
|
10
10
|
declare class CommerceLayerClient {
|
11
11
|
#private;
|
12
12
|
static get openApiSchemaVersion(): string;
|
13
|
-
readonly openApiSchemaVersion = "4.0.
|
13
|
+
readonly openApiSchemaVersion = "4.0.1";
|
14
14
|
addresses: api.Addresses;
|
15
15
|
adjustments: api.Adjustments;
|
16
16
|
adyen_gateways: api.AdyenGateways;
|
package/lib/cjs/commercelayer.js
CHANGED
@@ -45,7 +45,7 @@ const resource_1 = __importDefault(require("./resource"));
|
|
45
45
|
const debug_1 = __importDefault(require("./debug"));
|
46
46
|
const debug = (0, debug_1.default)('commercelayer');
|
47
47
|
// Autogenerated schema version number, do not remove this line
|
48
|
-
const OPEN_API_SCHEMA_VERSION = '4.0.
|
48
|
+
const OPEN_API_SCHEMA_VERSION = '4.0.1';
|
49
49
|
exports.OPEN_API_SCHEMA_VERSION = OPEN_API_SCHEMA_VERSION;
|
50
50
|
class CommerceLayerClient {
|
51
51
|
static get openApiSchemaVersion() { return OPEN_API_SCHEMA_VERSION; }
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Addresses extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'addresses'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Addresses.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Adjustments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'adjustments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Adjustments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class AdyenGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'adyen_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: AdyenGateways.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class AdyenPayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'adyen_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: AdyenPayments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Applications extends resource_1.ApiSingleton {
|
5
|
-
// static readonly PATH = 'application'
|
6
5
|
isApplication(resource) {
|
7
6
|
return resource.type && (resource.type === Applications.TYPE);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Attachments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'attachments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Attachments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Authorizations extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'authorizations'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Authorizations.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class AvalaraAccounts extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'avalara_accounts'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: AvalaraAccounts.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class AxerveGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'axerve_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: AxerveGateways.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class AxervePayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'axerve_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: AxervePayments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class BillingInfoValidationRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'billing_info_validation_rules'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: BillingInfoValidationRules.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class BingGeocoders extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'bing_geocoders'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: BingGeocoders.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class BraintreeGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'braintree_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: BraintreeGateways.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class BraintreePayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'braintree_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: BraintreePayments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Bundles extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'bundles'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Bundles.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Captures extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'captures'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Captures.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CarrierAccounts extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'carrier_accounts'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CarrierAccounts.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CheckoutComGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'checkout_com_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CheckoutComGateways.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CheckoutComPayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'checkout_com_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CheckoutComPayments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Cleanups extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'cleanups'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Cleanups.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CouponCodesPromotionRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'coupon_codes_promotion_rules'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CouponCodesPromotionRules.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CouponRecipients extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'coupon_recipients'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CouponRecipients.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Coupons extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'coupons'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Coupons.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerAddresses extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'customer_addresses'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CustomerAddresses.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerGroups extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'customer_groups'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CustomerGroups.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerPasswordResets extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'customer_password_resets'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CustomerPasswordResets.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerPaymentSources extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'customer_payment_sources'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CustomerPaymentSources.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class CustomerSubscriptions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'customer_subscriptions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: CustomerSubscriptions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Customers extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'customers'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Customers.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class DeliveryLeadTimes extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'delivery_lead_times'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: DeliveryLeadTimes.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class EventCallbacks extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'event_callbacks'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: EventCallbacks.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Events extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'events'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Events.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Exports extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'exports'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Exports.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'external_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ExternalGateways.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalPayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'external_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ExternalPayments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalPromotions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'external_promotions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ExternalPromotions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ExternalTaxCalculators extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'external_tax_calculators'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ExternalTaxCalculators.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FixedAmountPromotions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'fixed_amount_promotions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: FixedAmountPromotions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FixedPricePromotions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'fixed_price_promotions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: FixedPricePromotions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FreeGiftPromotions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'free_gift_promotions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: FreeGiftPromotions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class FreeShippingPromotions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'free_shipping_promotions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: FreeShippingPromotions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Geocoders extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'geocoders'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Geocoders.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class GiftCardRecipients extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'gift_card_recipients'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: GiftCardRecipients.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class GiftCards extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'gift_cards'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: GiftCards.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class GoogleGeocoders extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'google_geocoders'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: GoogleGeocoders.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Imports extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'imports'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Imports.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class InStockSubscriptions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'in_stock_subscriptions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: InStockSubscriptions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class InventoryModels extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'inventory_models'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: InventoryModels.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class InventoryReturnLocations extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'inventory_return_locations'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: InventoryReturnLocations.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class InventoryStockLocations extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'inventory_stock_locations'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: InventoryStockLocations.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class KlarnaGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'klarna_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: KlarnaGateways.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class KlarnaPayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'klarna_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: KlarnaPayments.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class LineItemOptions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'line_item_options'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: LineItemOptions.TYPE }, params, options);
|
8
7
|
}
|
@@ -77,7 +77,7 @@ interface LineItem extends Resource {
|
|
77
77
|
discount_breakdown?: object;
|
78
78
|
tax_rate?: number;
|
79
79
|
tax_breakdown?: object;
|
80
|
-
item_type?:
|
80
|
+
item_type?: 'sku' | 'bundle' | 'shipment' | 'payment_method' | 'adjustment' | 'gift_card' | 'percentage_discount_promotion' | 'free_shipping_promotion' | 'free_gift_promotion' | 'fixed_price_promotion' | 'external_promotion' | 'fixed_amount_promotion';
|
81
81
|
order?: Order;
|
82
82
|
item?: Adjustment | Bundle | ExternalPromotion | FixedAmountPromotion | FreeShippingPromotion | GiftCard | PaymentMethod | PercentageDiscountPromotion | Shipment | Sku;
|
83
83
|
line_item_options?: LineItemOption[];
|
@@ -97,7 +97,7 @@ interface LineItemCreate extends ResourceCreate {
|
|
97
97
|
unit_amount_cents?: number;
|
98
98
|
name?: string;
|
99
99
|
image_url?: string;
|
100
|
-
item_type?:
|
100
|
+
item_type?: 'sku' | 'bundle' | 'shipment' | 'payment_method' | 'adjustment' | 'gift_card' | 'percentage_discount_promotion' | 'free_shipping_promotion' | 'free_gift_promotion' | 'fixed_price_promotion' | 'external_promotion' | 'fixed_amount_promotion';
|
101
101
|
order: OrderRel;
|
102
102
|
item?: AdjustmentRel | BundleRel | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel | PaymentMethodRel | PercentageDiscountPromotionRel | ShipmentRel | SkuRel;
|
103
103
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class LineItems extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'line_items'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: LineItems.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ManualGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'manual_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ManualGateways.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class ManualTaxCalculators extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'manual_tax_calculators'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ManualTaxCalculators.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Markets extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'markets'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Markets.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Merchants extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'merchants'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Merchants.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderAmountPromotionRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_amount_promotion_rules'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: OrderAmountPromotionRules.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderCopies extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_copies'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: OrderCopies.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderSubscriptions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_subscriptions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: OrderSubscriptions.TYPE }, params, options);
|
8
7
|
}
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class OrderValidationRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'order_validation_rules'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: OrderValidationRules.TYPE }, params, options);
|
8
7
|
}
|