@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
@@ -79,8 +79,8 @@ interface Order extends Resource {
|
|
79
79
|
number?: number;
|
80
80
|
autorefresh?: boolean;
|
81
81
|
status?: 'draft' | 'pending' | 'placed' | 'approved' | 'cancelled';
|
82
|
-
payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded';
|
83
|
-
fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled';
|
82
|
+
payment_status?: 'unpaid' | 'authorized' | 'paid' | 'voided' | 'refunded' | 'free';
|
83
|
+
fulfillment_status?: 'unfulfilled' | 'in_progress' | 'fulfilled' | 'not_required';
|
84
84
|
guest?: boolean;
|
85
85
|
editable?: boolean;
|
86
86
|
customer_email?: string;
|
@@ -2,7 +2,6 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
const resource_1 = require("../resource");
|
4
4
|
class Orders extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'orders'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Orders.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 Organizations extends resource_1.ApiSingleton {
|
5
|
-
// static readonly PATH = 'organization'
|
6
5
|
isOrganization(resource) {
|
7
6
|
return resource.type && (resource.type === Organizations.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 Packages extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'packages'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Packages.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 ParcelLineItems extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'parcel_line_items'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ParcelLineItems.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 Parcels extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'parcels'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Parcels.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 PaymentGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'payment_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PaymentGateways.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 PaymentMethods extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'payment_methods'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PaymentMethods.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 PaypalGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'paypal_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PaypalGateways.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 PaypalPayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'paypal_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PaypalPayments.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 PercentageDiscountPromotions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'percentage_discount_promotions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PercentageDiscountPromotions.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 PriceLists extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'price_lists'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PriceLists.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 PriceTiers extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'price_tiers'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PriceTiers.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 PriceVolumeTiers extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'price_volume_tiers'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PriceVolumeTiers.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 Prices extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'prices'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Prices.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 PromotionRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'promotion_rules'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: PromotionRules.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 Promotions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'promotions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Promotions.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 Refunds extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'refunds'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Refunds.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 ReturnLineItems extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'return_line_items'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ReturnLineItems.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 Returns extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'returns'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Returns.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 SatispayGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'satispay_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: SatispayGateways.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 SatispayPayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'satispay_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: SatispayPayments.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 Shipments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'shipments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Shipments.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 ShippingCategories extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'shipping_categories'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ShippingCategories.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 ShippingMethodTiers extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'shipping_method_tiers'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ShippingMethodTiers.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 ShippingMethods extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'shipping_methods'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ShippingMethods.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 ShippingWeightTiers extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'shipping_weight_tiers'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ShippingWeightTiers.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 ShippingZones extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'shipping_zones'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: ShippingZones.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 SkuListItems extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'sku_list_items'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: SkuListItems.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 SkuListPromotionRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'sku_list_promotion_rules'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: SkuListPromotionRules.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 SkuLists extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'sku_lists'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: SkuLists.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 SkuOptions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'sku_options'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: SkuOptions.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 Skus extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'skus'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Skus.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 StockItems extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'stock_items'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: StockItems.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 StockLineItems extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'stock_line_items'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: StockLineItems.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 StockLocations extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'stock_locations'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: StockLocations.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 StockTransfers extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'stock_transfers'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: StockTransfers.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 StripeGateways extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'stripe_gateways'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: StripeGateways.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 StripePayments extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'stripe_payments'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: StripePayments.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 TaxCalculators extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'tax_calculators'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: TaxCalculators.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 TaxCategories extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'tax_categories'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: TaxCategories.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 TaxRules extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'tax_rules'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: TaxRules.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 TaxjarAccounts extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'taxjar_accounts'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: TaxjarAccounts.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 Transactions extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'transactions'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Transactions.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 Voids extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'voids'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Voids.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 Webhooks extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'webhooks'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: Webhooks.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 WireTransfers extends resource_1.ApiResource {
|
5
|
-
// static readonly PATH = 'wire_transfers'
|
6
5
|
async list(params, options) {
|
7
6
|
return this.resources.list({ type: WireTransfers.TYPE }, params, options);
|
8
7
|
}
|
@@ -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/esm/commercelayer.js
CHANGED
@@ -16,7 +16,7 @@ import ResourceAdapter from './resource';
|
|
16
16
|
import Debug from './debug';
|
17
17
|
const debug = Debug('commercelayer');
|
18
18
|
// Autogenerated schema version number, do not remove this line
|
19
|
-
const OPEN_API_SCHEMA_VERSION = '4.0.
|
19
|
+
const OPEN_API_SCHEMA_VERSION = '4.0.1';
|
20
20
|
export { OPEN_API_SCHEMA_VERSION };
|
21
21
|
class CommerceLayerClient {
|
22
22
|
static get openApiSchemaVersion() { return OPEN_API_SCHEMA_VERSION; }
|
@@ -1,6 +1,5 @@
|
|
1
1
|
import { ApiResource } from '../resource';
|
2
2
|
class BillingInfoValidationRules extends ApiResource {
|
3
|
-
// static readonly PATH = 'billing_info_validation_rules'
|
4
3
|
async list(params, options) {
|
5
4
|
return this.resources.list({ type: BillingInfoValidationRules.TYPE }, params, options);
|
6
5
|
}
|