@commercelayer/sdk 4.44.1 → 4.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/api.d.ts +3 -2
- package/lib/cjs/api.js +5 -2
- package/lib/cjs/commercelayer.d.ts +3 -2
- package/lib/cjs/commercelayer.js +2 -1
- package/lib/cjs/model.d.ts +1 -0
- package/lib/cjs/resources/adjustments.d.ts +3 -0
- package/lib/cjs/resources/external_gateways.d.ts +4 -1
- package/lib/cjs/resources/external_promotions.d.ts +3 -0
- package/lib/cjs/resources/external_tax_calculators.d.ts +3 -0
- package/lib/cjs/resources/gift_cards.d.ts +3 -0
- package/lib/cjs/resources/line_items.d.ts +11 -4
- package/lib/cjs/resources/markets.d.ts +1 -1
- package/lib/cjs/resources/order_subscriptions.d.ts +0 -4
- package/lib/cjs/resources/orders.d.ts +11 -0
- package/lib/cjs/resources/orders.js +4 -0
- package/lib/cjs/resources/parcel_line_items.d.ts +0 -8
- package/lib/cjs/resources/payment_methods.d.ts +5 -5
- package/lib/cjs/resources/resource_errors.d.ts +22 -0
- package/lib/cjs/resources/resource_errors.js +24 -0
- package/lib/cjs/resources/shipments.d.ts +0 -4
- package/lib/cjs/resources/shipping_methods.d.ts +8 -5
- package/lib/cjs/resources/webhooks.d.ts +2 -2
- package/lib/esm/api.d.ts +3 -2
- package/lib/esm/api.js +2 -0
- package/lib/esm/commercelayer.d.ts +3 -2
- package/lib/esm/commercelayer.js +2 -1
- package/lib/esm/model.d.ts +1 -0
- package/lib/esm/resources/adjustments.d.ts +3 -0
- package/lib/esm/resources/external_gateways.d.ts +4 -1
- package/lib/esm/resources/external_promotions.d.ts +3 -0
- package/lib/esm/resources/external_tax_calculators.d.ts +3 -0
- package/lib/esm/resources/gift_cards.d.ts +3 -0
- package/lib/esm/resources/line_items.d.ts +11 -4
- package/lib/esm/resources/markets.d.ts +1 -1
- package/lib/esm/resources/order_subscriptions.d.ts +0 -4
- package/lib/esm/resources/orders.d.ts +11 -0
- package/lib/esm/resources/orders.js +4 -0
- package/lib/esm/resources/parcel_line_items.d.ts +0 -8
- package/lib/esm/resources/payment_methods.d.ts +5 -5
- package/lib/esm/resources/resource_errors.d.ts +22 -0
- package/lib/esm/resources/resource_errors.js +22 -0
- package/lib/esm/resources/shipments.d.ts +0 -4
- package/lib/esm/resources/shipping_methods.d.ts +8 -5
- package/lib/esm/resources/webhooks.d.ts +2 -2
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
package/lib/cjs/api.d.ts
CHANGED
@@ -88,6 +88,7 @@ export { default as Promotions } from './resources/promotions';
|
|
88
88
|
export { default as RecurringOrderCopies } from './resources/recurring_order_copies';
|
89
89
|
export { default as Refunds } from './resources/refunds';
|
90
90
|
export { default as ReservedStocks } from './resources/reserved_stocks';
|
91
|
+
export { default as ResourceErrors } from './resources/resource_errors';
|
91
92
|
export { default as ReturnLineItems } from './resources/return_line_items';
|
92
93
|
export { default as Returns } from './resources/returns';
|
93
94
|
export { default as SatispayGateways } from './resources/satispay_gateways';
|
@@ -121,5 +122,5 @@ export { default as Versions } from './resources/versions';
|
|
121
122
|
export { default as Voids } from './resources/voids';
|
122
123
|
export { default as Webhooks } from './resources/webhooks';
|
123
124
|
export { default as WireTransfers } from './resources/wire_transfers';
|
124
|
-
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
|
125
|
-
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
|
125
|
+
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'resource_errors' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
|
126
|
+
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "resource_errors", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
|
package/lib/cjs/api.js
CHANGED
@@ -4,8 +4,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.InventoryModels = exports.InStockSubscriptions = exports.Imports = exports.GoogleGeocoders = exports.GiftCards = exports.GiftCardRecipients = exports.Geocoders = exports.FreeShippingPromotions = exports.FreeGiftPromotions = exports.FixedPricePromotions = exports.FixedAmountPromotions = exports.ExternalTaxCalculators = exports.ExternalPromotions = exports.ExternalPayments = exports.ExternalGateways = exports.Exports = exports.Events = exports.EventCallbacks = exports.DeliveryLeadTimes = exports.Customers = exports.CustomerSubscriptions = exports.CustomerPaymentSources = exports.CustomerPasswordResets = exports.CustomerGroups = exports.CustomerAddresses = exports.CustomPromotionRules = exports.Coupons = exports.CouponRecipients = exports.CouponCodesPromotionRules = exports.Cleanups = exports.CheckoutComPayments = exports.CheckoutComGateways = exports.CarrierAccounts = exports.Captures = exports.BuyXPayYPromotions = exports.Bundles = exports.BraintreePayments = exports.BraintreeGateways = exports.BingGeocoders = exports.BillingInfoValidationRules = exports.AxervePayments = exports.AxerveGateways = exports.AvalaraAccounts = exports.Authorizations = exports.Attachments = exports.Applications = exports.AdyenPayments = exports.AdyenGateways = exports.Adjustments = exports.Addresses = void 0;
|
7
|
-
exports.
|
8
|
-
exports.resourceList = exports.WireTransfers = exports.Webhooks = exports.Voids = exports.Versions = exports.Transactions = exports.TaxjarAccounts = exports.TaxRules = exports.TaxCategories = exports.TaxCalculators = exports.Tags = exports.SubscriptionModels = exports.StripePayments = exports.StripeGateways = exports.StockTransfers = exports.StockReservations = exports.StockLocations = exports.StockLineItems = exports.StockItems = exports.Skus = exports.SkuOptions = void 0;
|
7
|
+
exports.SkuListPromotionRules = exports.SkuListItems = exports.ShippingZones = exports.ShippingWeightTiers = exports.ShippingMethods = exports.ShippingMethodTiers = exports.ShippingCategories = exports.Shipments = exports.SatispayPayments = exports.SatispayGateways = exports.Returns = exports.ReturnLineItems = exports.ResourceErrors = exports.ReservedStocks = exports.Refunds = exports.RecurringOrderCopies = exports.Promotions = exports.PromotionRules = exports.Prices = exports.PriceVolumeTiers = exports.PriceTiers = exports.PriceLists = exports.PriceFrequencyTiers = exports.PercentageDiscountPromotions = exports.PaypalPayments = exports.PaypalGateways = exports.PaymentOptions = exports.PaymentMethods = exports.PaymentGateways = exports.Parcels = exports.ParcelLineItems = exports.Packages = exports.Organizations = exports.Orders = exports.OrderValidationRules = exports.OrderSubscriptions = exports.OrderSubscriptionItems = exports.OrderFactories = exports.OrderCopies = exports.OrderAmountPromotionRules = exports.Merchants = exports.Markets = exports.ManualTaxCalculators = exports.ManualGateways = exports.LineItems = exports.LineItemOptions = exports.KlarnaPayments = exports.KlarnaGateways = exports.InventoryStockLocations = exports.InventoryReturnLocations = void 0;
|
8
|
+
exports.resourceList = exports.WireTransfers = exports.Webhooks = exports.Voids = exports.Versions = exports.Transactions = exports.TaxjarAccounts = exports.TaxRules = exports.TaxCategories = exports.TaxCalculators = exports.Tags = exports.SubscriptionModels = exports.StripePayments = exports.StripeGateways = exports.StockTransfers = exports.StockReservations = exports.StockLocations = exports.StockLineItems = exports.StockItems = exports.Skus = exports.SkuOptions = exports.SkuLists = void 0;
|
9
9
|
// ##__API_RESOURCES_START__##
|
10
10
|
// ##__API_RESOURCES_TEMPLATE:: export { default as ##__RESOURCE_CLASS__## } from './resources/##__RESOURCE_TYPE__##'
|
11
11
|
/**
|
@@ -185,6 +185,8 @@ var refunds_1 = require("./resources/refunds");
|
|
185
185
|
Object.defineProperty(exports, "Refunds", { enumerable: true, get: function () { return __importDefault(refunds_1).default; } });
|
186
186
|
var reserved_stocks_1 = require("./resources/reserved_stocks");
|
187
187
|
Object.defineProperty(exports, "ReservedStocks", { enumerable: true, get: function () { return __importDefault(reserved_stocks_1).default; } });
|
188
|
+
var resource_errors_1 = require("./resources/resource_errors");
|
189
|
+
Object.defineProperty(exports, "ResourceErrors", { enumerable: true, get: function () { return __importDefault(resource_errors_1).default; } });
|
188
190
|
var return_line_items_1 = require("./resources/return_line_items");
|
189
191
|
Object.defineProperty(exports, "ReturnLineItems", { enumerable: true, get: function () { return __importDefault(return_line_items_1).default; } });
|
190
192
|
var returns_1 = require("./resources/returns");
|
@@ -341,6 +343,7 @@ exports.resourceList = [
|
|
341
343
|
'recurring_order_copies',
|
342
344
|
'refunds',
|
343
345
|
'reserved_stocks',
|
346
|
+
'resource_errors',
|
344
347
|
'return_line_items',
|
345
348
|
'returns',
|
346
349
|
'satispay_gateways',
|
@@ -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 = "
|
5
|
+
declare const OPEN_API_SCHEMA_VERSION = "5.0.0";
|
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 = "
|
13
|
+
readonly openApiSchemaVersion = "5.0.0";
|
14
14
|
addresses: api.Addresses;
|
15
15
|
adjustments: api.Adjustments;
|
16
16
|
adyen_gateways: api.AdyenGateways;
|
@@ -98,6 +98,7 @@ declare class CommerceLayerClient {
|
|
98
98
|
recurring_order_copies: api.RecurringOrderCopies;
|
99
99
|
refunds: api.Refunds;
|
100
100
|
reserved_stocks: api.ReservedStocks;
|
101
|
+
resource_errors: api.ResourceErrors;
|
101
102
|
return_line_items: api.ReturnLineItems;
|
102
103
|
returns: api.Returns;
|
103
104
|
satispay_gateways: api.SatispayGateways;
|
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 = '
|
48
|
+
const OPEN_API_SCHEMA_VERSION = '5.0.0';
|
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; }
|
@@ -146,6 +146,7 @@ class CommerceLayerClient {
|
|
146
146
|
this.recurring_order_copies = new api.RecurringOrderCopies(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
147
147
|
this.refunds = new api.Refunds(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
148
148
|
this.reserved_stocks = new api.ReservedStocks(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
149
|
+
this.resource_errors = new api.ResourceErrors(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
149
150
|
this.return_line_items = new api.ReturnLineItems(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
150
151
|
this.returns = new api.Returns(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
151
152
|
this.satispay_gateways = new api.SatispayGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
package/lib/cjs/model.d.ts
CHANGED
@@ -88,6 +88,7 @@ export type { Promotion } from './resources/promotions';
|
|
88
88
|
export type { RecurringOrderCopy, RecurringOrderCopyCreate, RecurringOrderCopyUpdate } from './resources/recurring_order_copies';
|
89
89
|
export type { Refund } from './resources/refunds';
|
90
90
|
export type { ReservedStock } from './resources/reserved_stocks';
|
91
|
+
export type { ResourceError } from './resources/resource_errors';
|
91
92
|
export type { ReturnLineItem, ReturnLineItemCreate, ReturnLineItemUpdate } from './resources/return_line_items';
|
92
93
|
export type { Return, ReturnCreate, ReturnUpdate } from './resources/returns';
|
93
94
|
export type { SatispayGateway, SatispayGatewayCreate, SatispayGatewayUpdate } from './resources/satispay_gateways';
|
@@ -10,17 +10,20 @@ interface Adjustment extends Resource {
|
|
10
10
|
amount_cents?: number;
|
11
11
|
amount_float?: number;
|
12
12
|
formatted_amount?: string;
|
13
|
+
distribute_discount?: boolean;
|
13
14
|
versions?: Version[];
|
14
15
|
}
|
15
16
|
interface AdjustmentCreate extends ResourceCreate {
|
16
17
|
name: string;
|
17
18
|
currency_code: string;
|
18
19
|
amount_cents: number;
|
20
|
+
distribute_discount?: boolean;
|
19
21
|
}
|
20
22
|
interface AdjustmentUpdate extends ResourceUpdate {
|
21
23
|
name?: string;
|
22
24
|
currency_code?: string;
|
23
25
|
amount_cents?: number;
|
26
|
+
distribute_discount?: boolean;
|
24
27
|
}
|
25
28
|
declare class Adjustments extends ApiResource {
|
26
29
|
static readonly TYPE: 'adjustments';
|
@@ -8,12 +8,14 @@ type ExternalGatewayRel = ResourceRel & {
|
|
8
8
|
};
|
9
9
|
interface ExternalGateway extends Resource {
|
10
10
|
name?: string;
|
11
|
-
shared_secret?: string;
|
12
11
|
authorize_url?: string;
|
13
12
|
capture_url?: string;
|
14
13
|
void_url?: string;
|
15
14
|
refund_url?: string;
|
16
15
|
token_url?: string;
|
16
|
+
circuit_state?: string;
|
17
|
+
circuit_failure_count?: number;
|
18
|
+
shared_secret?: string;
|
17
19
|
payment_methods?: PaymentMethod[];
|
18
20
|
versions?: Version[];
|
19
21
|
external_payments?: ExternalPayment[];
|
@@ -33,6 +35,7 @@ interface ExternalGatewayUpdate extends ResourceUpdate {
|
|
33
35
|
void_url?: string;
|
34
36
|
refund_url?: string;
|
35
37
|
token_url?: string;
|
38
|
+
_reset_circuit?: boolean;
|
36
39
|
}
|
37
40
|
declare class ExternalGateways extends ApiResource {
|
38
41
|
static readonly TYPE: 'external_gateways';
|
@@ -49,6 +49,8 @@ interface ExternalPromotion extends Resource {
|
|
49
49
|
active?: boolean;
|
50
50
|
disabled_at?: string;
|
51
51
|
promotion_url?: string;
|
52
|
+
circuit_state?: string;
|
53
|
+
circuit_failure_count?: number;
|
52
54
|
shared_secret?: string;
|
53
55
|
market?: Market;
|
54
56
|
promotion_rules?: PromotionRule[];
|
@@ -94,6 +96,7 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
|
|
94
96
|
_disable?: boolean;
|
95
97
|
_enable?: boolean;
|
96
98
|
promotion_url?: string;
|
99
|
+
_reset_circuit?: boolean;
|
97
100
|
market?: MarketRel;
|
98
101
|
order_amount_promotion_rule?: OrderAmountPromotionRuleRel;
|
99
102
|
sku_list_promotion_rule?: SkuListPromotionRuleRel;
|
@@ -9,6 +9,8 @@ type ExternalTaxCalculatorRel = ResourceRel & {
|
|
9
9
|
interface ExternalTaxCalculator extends Resource {
|
10
10
|
name?: string;
|
11
11
|
tax_calculator_url?: string;
|
12
|
+
circuit_state?: string;
|
13
|
+
circuit_failure_count?: number;
|
12
14
|
shared_secret?: string;
|
13
15
|
markets?: Market[];
|
14
16
|
attachments?: Attachment[];
|
@@ -21,6 +23,7 @@ interface ExternalTaxCalculatorCreate extends ResourceCreate {
|
|
21
23
|
interface ExternalTaxCalculatorUpdate extends ResourceUpdate {
|
22
24
|
name?: string;
|
23
25
|
tax_calculator_url?: string;
|
26
|
+
_reset_circuit?: boolean;
|
24
27
|
}
|
25
28
|
declare class ExternalTaxCalculators extends ApiResource {
|
26
29
|
static readonly TYPE: 'external_tax_calculators';
|
@@ -34,6 +34,7 @@ interface GiftCard extends Resource {
|
|
34
34
|
balance_log?: object[];
|
35
35
|
single_use?: boolean;
|
36
36
|
rechargeable?: boolean;
|
37
|
+
distribute_discount?: boolean;
|
37
38
|
image_url?: string;
|
38
39
|
expires_at?: string;
|
39
40
|
recipient_email?: string;
|
@@ -51,6 +52,7 @@ interface GiftCardCreate extends ResourceCreate {
|
|
51
52
|
balance_max_cents?: string;
|
52
53
|
single_use?: boolean;
|
53
54
|
rechargeable?: boolean;
|
55
|
+
distribute_discount?: boolean;
|
54
56
|
image_url?: string;
|
55
57
|
expires_at?: string;
|
56
58
|
recipient_email?: string;
|
@@ -64,6 +66,7 @@ interface GiftCardUpdate extends ResourceUpdate {
|
|
64
66
|
balance_max_cents?: string;
|
65
67
|
single_use?: boolean;
|
66
68
|
rechargeable?: boolean;
|
69
|
+
distribute_discount?: boolean;
|
67
70
|
image_url?: string;
|
68
71
|
expires_at?: string;
|
69
72
|
recipient_email?: string;
|
@@ -89,16 +89,18 @@ interface LineItem extends Resource {
|
|
89
89
|
item_type?: string;
|
90
90
|
frequency?: string;
|
91
91
|
coupon_code?: string;
|
92
|
+
circuit_state?: string;
|
93
|
+
circuit_failure_count?: number;
|
92
94
|
order?: Order;
|
93
95
|
item?: Adjustment | Bundle | ExternalPromotion | FixedAmountPromotion | FreeShippingPromotion | GiftCard | PaymentMethod | PercentageDiscountPromotion | Shipment | Sku;
|
94
96
|
sku?: Sku;
|
95
97
|
bundle?: Bundle;
|
98
|
+
adjustment?: Adjustment;
|
99
|
+
gift_card?: GiftCard;
|
100
|
+
shipment?: Shipment;
|
101
|
+
payment_method?: PaymentMethod;
|
96
102
|
line_item_options?: LineItemOption[];
|
97
103
|
return_line_items?: ReturnLineItem[];
|
98
|
-
/**
|
99
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
100
|
-
*/
|
101
|
-
shipment_line_items?: object[];
|
102
104
|
stock_reservations?: StockReservation[];
|
103
105
|
stock_line_items?: StockLineItem[];
|
104
106
|
stock_transfers?: StockTransfer[];
|
@@ -122,6 +124,10 @@ interface LineItemCreate extends ResourceCreate {
|
|
122
124
|
item?: AdjustmentRel | BundleRel | ExternalPromotionRel | FixedAmountPromotionRel | FreeShippingPromotionRel | GiftCardRel | PaymentMethodRel | PercentageDiscountPromotionRel | ShipmentRel | SkuRel;
|
123
125
|
sku?: SkuRel;
|
124
126
|
bundle?: BundleRel;
|
127
|
+
adjustment?: AdjustmentRel;
|
128
|
+
gift_card?: GiftCardRel;
|
129
|
+
shipment?: ShipmentRel;
|
130
|
+
payment_method?: PaymentMethodRel;
|
125
131
|
tags?: TagRel[];
|
126
132
|
}
|
127
133
|
interface LineItemUpdate extends ResourceUpdate {
|
@@ -134,6 +140,7 @@ interface LineItemUpdate extends ResourceUpdate {
|
|
134
140
|
name?: string;
|
135
141
|
image_url?: string;
|
136
142
|
frequency?: string;
|
143
|
+
_reset_circuit?: boolean;
|
137
144
|
tags?: TagRel[];
|
138
145
|
}
|
139
146
|
declare class LineItems extends ApiResource {
|
@@ -37,9 +37,9 @@ interface Market extends Resource {
|
|
37
37
|
checkout_url?: string;
|
38
38
|
external_prices_url?: string;
|
39
39
|
external_order_validation_url?: string;
|
40
|
-
shared_secret?: string;
|
41
40
|
private?: boolean;
|
42
41
|
disabled_at?: string;
|
42
|
+
shared_secret?: string;
|
43
43
|
merchant?: Merchant;
|
44
44
|
price_list?: PriceList;
|
45
45
|
inventory_model?: InventoryModel;
|
@@ -43,10 +43,6 @@ interface OrderSubscription extends Resource {
|
|
43
43
|
customer_payment_source?: CustomerPaymentSource;
|
44
44
|
order_subscription_items?: OrderSubscriptionItem[];
|
45
45
|
order_factories?: OrderFactory[];
|
46
|
-
/**
|
47
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
48
|
-
*/
|
49
|
-
order_copies?: object[];
|
50
46
|
recurring_order_copies?: RecurringOrderCopy[];
|
51
47
|
orders?: Order[];
|
52
48
|
events?: Event[];
|
@@ -34,6 +34,7 @@ import type { OrderFactory } from './order_factories';
|
|
34
34
|
import type { OrderCopy } from './order_copies';
|
35
35
|
import type { RecurringOrderCopy } from './recurring_order_copies';
|
36
36
|
import type { Attachment } from './attachments';
|
37
|
+
import type { ResourceError } from './resource_errors';
|
37
38
|
import type { Event } from './events';
|
38
39
|
import type { Tag } from './tags';
|
39
40
|
import type { Version } from './versions';
|
@@ -88,6 +89,7 @@ type TagRel = ResourceRel & {
|
|
88
89
|
interface Order extends Resource {
|
89
90
|
number?: string;
|
90
91
|
autorefresh?: boolean;
|
92
|
+
place_async?: boolean;
|
91
93
|
status?: string;
|
92
94
|
payment_status?: string;
|
93
95
|
fulfillment_status?: string;
|
@@ -175,6 +177,7 @@ interface Order extends Resource {
|
|
175
177
|
shipments_count?: number;
|
176
178
|
tax_calculations_count?: number;
|
177
179
|
validations_count?: number;
|
180
|
+
errors_count?: number;
|
178
181
|
payment_source_details?: object;
|
179
182
|
token?: string;
|
180
183
|
cart_url?: string;
|
@@ -191,6 +194,8 @@ interface Order extends Resource {
|
|
191
194
|
archived_at?: string;
|
192
195
|
expires_at?: string;
|
193
196
|
subscription_created_at?: string;
|
197
|
+
circuit_state?: string;
|
198
|
+
circuit_failure_count?: number;
|
194
199
|
market?: Market;
|
195
200
|
customer?: Customer;
|
196
201
|
shipping_address?: Address;
|
@@ -220,6 +225,7 @@ interface Order extends Resource {
|
|
220
225
|
order_copies?: OrderCopy[];
|
221
226
|
recurring_order_copies?: RecurringOrderCopy[];
|
222
227
|
attachments?: Attachment[];
|
228
|
+
resource_errors?: ResourceError[];
|
223
229
|
events?: Event[];
|
224
230
|
tags?: Tag[];
|
225
231
|
versions?: Version[];
|
@@ -227,6 +233,7 @@ interface Order extends Resource {
|
|
227
233
|
interface OrderCreate extends ResourceCreate {
|
228
234
|
number?: string;
|
229
235
|
autorefresh?: boolean;
|
236
|
+
place_async?: boolean;
|
230
237
|
guest?: boolean;
|
231
238
|
customer_email?: string;
|
232
239
|
customer_password?: string;
|
@@ -253,6 +260,7 @@ interface OrderCreate extends ResourceCreate {
|
|
253
260
|
interface OrderUpdate extends ResourceUpdate {
|
254
261
|
number?: string;
|
255
262
|
autorefresh?: boolean;
|
263
|
+
place_async?: boolean;
|
256
264
|
guest?: boolean;
|
257
265
|
customer_email?: string;
|
258
266
|
customer_password?: string;
|
@@ -270,6 +278,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
270
278
|
privacy_url?: string;
|
271
279
|
_archive?: boolean;
|
272
280
|
_unarchive?: boolean;
|
281
|
+
_pending?: boolean;
|
273
282
|
_place?: boolean;
|
274
283
|
_cancel?: boolean;
|
275
284
|
_approve?: boolean;
|
@@ -295,6 +304,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
295
304
|
_create_subscriptions?: boolean;
|
296
305
|
_start_editing?: boolean;
|
297
306
|
_stop_editing?: boolean;
|
307
|
+
_reset_circuit?: boolean;
|
298
308
|
market?: MarketRel;
|
299
309
|
customer?: CustomerRel;
|
300
310
|
shipping_address?: AddressRel;
|
@@ -337,6 +347,7 @@ declare class Orders extends ApiResource {
|
|
337
347
|
order_copies(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderCopy>>;
|
338
348
|
recurring_order_copies(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
|
339
349
|
attachments(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
350
|
+
resource_errors(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ResourceError>>;
|
340
351
|
events(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
341
352
|
tags(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Tag>>;
|
342
353
|
versions(orderId: string | Order, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
@@ -126,6 +126,10 @@ class Orders extends resource_1.ApiResource {
|
|
126
126
|
const _orderId = orderId.id || orderId;
|
127
127
|
return this.resources.fetch({ type: 'attachments' }, `orders/${_orderId}/attachments`, params, options);
|
128
128
|
}
|
129
|
+
async resource_errors(orderId, params, options) {
|
130
|
+
const _orderId = orderId.id || orderId;
|
131
|
+
return this.resources.fetch({ type: 'resource_errors' }, `orders/${_orderId}/resource_errors`, params, options);
|
132
|
+
}
|
129
133
|
async events(orderId, params, options) {
|
130
134
|
const _orderId = orderId.id || orderId;
|
131
135
|
return this.resources.fetch({ type: 'events' }, `orders/${_orderId}/events`, params, options);
|
@@ -20,20 +20,12 @@ interface ParcelLineItem extends Resource {
|
|
20
20
|
image_url?: string;
|
21
21
|
parcel?: Parcel;
|
22
22
|
stock_line_item?: StockLineItem;
|
23
|
-
/**
|
24
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
25
|
-
*/
|
26
|
-
shipment_line_item?: object;
|
27
23
|
versions?: Version[];
|
28
24
|
}
|
29
25
|
interface ParcelLineItemCreate extends ResourceCreate {
|
30
26
|
quantity: number;
|
31
27
|
parcel: ParcelRel;
|
32
28
|
stock_line_item: StockLineItemRel;
|
33
|
-
/**
|
34
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
35
|
-
*/
|
36
|
-
shipment_line_item?: object;
|
37
29
|
}
|
38
30
|
type ParcelLineItemUpdate = ResourceUpdate;
|
39
31
|
declare class ParcelLineItems extends ApiResource {
|
@@ -21,13 +21,13 @@ interface PaymentMethod extends Resource {
|
|
21
21
|
require_capture?: boolean;
|
22
22
|
auto_place?: boolean;
|
23
23
|
auto_capture?: boolean;
|
24
|
-
disabled_at?: string;
|
25
24
|
price_amount_cents?: number;
|
26
25
|
price_amount_float?: number;
|
27
26
|
formatted_price_amount?: string;
|
28
27
|
auto_capture_max_amount_cents?: number;
|
29
28
|
auto_capture_max_amount_float?: number;
|
30
29
|
formatted_auto_capture_max_amount?: string;
|
30
|
+
disabled_at?: string;
|
31
31
|
market?: Market;
|
32
32
|
payment_gateway?: PaymentGateway;
|
33
33
|
attachments?: Attachment[];
|
@@ -40,10 +40,10 @@ interface PaymentMethodCreate extends ResourceCreate {
|
|
40
40
|
require_capture?: boolean;
|
41
41
|
auto_place?: boolean;
|
42
42
|
auto_capture?: boolean;
|
43
|
-
_disable?: boolean;
|
44
|
-
_enable?: boolean;
|
45
43
|
price_amount_cents: number;
|
46
44
|
auto_capture_max_amount_cents?: number;
|
45
|
+
_disable?: boolean;
|
46
|
+
_enable?: boolean;
|
47
47
|
market?: MarketRel;
|
48
48
|
payment_gateway: PaymentGatewayRel;
|
49
49
|
}
|
@@ -54,10 +54,10 @@ interface PaymentMethodUpdate extends ResourceUpdate {
|
|
54
54
|
require_capture?: boolean;
|
55
55
|
auto_place?: boolean;
|
56
56
|
auto_capture?: boolean;
|
57
|
-
_disable?: boolean;
|
58
|
-
_enable?: boolean;
|
59
57
|
price_amount_cents?: number;
|
60
58
|
auto_capture_max_amount_cents?: number;
|
59
|
+
_disable?: boolean;
|
60
|
+
_enable?: boolean;
|
61
61
|
market?: MarketRel;
|
62
62
|
payment_gateway?: PaymentGatewayRel;
|
63
63
|
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { ApiResource, Resource, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import type { Order } from './orders';
|
4
|
+
type ResourceErrorRel = ResourceRel & {
|
5
|
+
type: typeof ResourceErrors.TYPE;
|
6
|
+
};
|
7
|
+
interface ResourceError extends Resource {
|
8
|
+
name?: string;
|
9
|
+
code?: string;
|
10
|
+
message?: string;
|
11
|
+
resource?: Order;
|
12
|
+
}
|
13
|
+
declare class ResourceErrors extends ApiResource {
|
14
|
+
static readonly TYPE: 'resource_errors';
|
15
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<ResourceError>>;
|
16
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<ResourceError>;
|
17
|
+
isResourceError(resource: any): resource is ResourceError;
|
18
|
+
relationship(id: string | ResourceId | null): ResourceErrorRel;
|
19
|
+
type(): string;
|
20
|
+
}
|
21
|
+
export default ResourceErrors;
|
22
|
+
export { ResourceError };
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class ResourceErrors extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'resource_errors'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: ResourceErrors.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async retrieve(id, params, options) {
|
10
|
+
return this.resources.retrieve({ type: ResourceErrors.TYPE, id }, params, options);
|
11
|
+
}
|
12
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
13
|
+
isResourceError(resource) {
|
14
|
+
return resource.type && (resource.type === ResourceErrors.TYPE);
|
15
|
+
}
|
16
|
+
relationship(id) {
|
17
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: ResourceErrors.TYPE } : { id: id.id, type: ResourceErrors.TYPE };
|
18
|
+
}
|
19
|
+
type() {
|
20
|
+
return ResourceErrors.TYPE;
|
21
|
+
}
|
22
|
+
}
|
23
|
+
ResourceErrors.TYPE = 'resource_errors';
|
24
|
+
exports.default = ResourceErrors;
|
@@ -67,10 +67,6 @@ interface Shipment extends Resource {
|
|
67
67
|
shipping_address?: Address;
|
68
68
|
shipping_method?: ShippingMethod;
|
69
69
|
delivery_lead_time?: DeliveryLeadTime;
|
70
|
-
/**
|
71
|
-
* @deprecated This field should not be used as it may be removed in the future without notice
|
72
|
-
*/
|
73
|
-
shipment_line_items?: object[];
|
74
70
|
stock_line_items?: StockLineItem[];
|
75
71
|
stock_transfers?: StockTransfer[];
|
76
72
|
available_shipping_methods?: ShippingMethod[];
|
@@ -32,7 +32,6 @@ interface ShippingMethod extends Resource {
|
|
32
32
|
scheme?: string;
|
33
33
|
currency_code?: string;
|
34
34
|
external_prices_url?: string;
|
35
|
-
disabled_at?: string;
|
36
35
|
price_amount_cents?: number;
|
37
36
|
price_amount_float?: number;
|
38
37
|
formatted_price_amount?: string;
|
@@ -46,6 +45,9 @@ interface ShippingMethod extends Resource {
|
|
46
45
|
min_weight?: number;
|
47
46
|
max_weight?: number;
|
48
47
|
unit_of_weight?: string;
|
48
|
+
disabled_at?: string;
|
49
|
+
circuit_state?: string;
|
50
|
+
circuit_failure_count?: number;
|
49
51
|
market?: Market;
|
50
52
|
shipping_zone?: ShippingZone;
|
51
53
|
shipping_category?: ShippingCategory;
|
@@ -61,14 +63,14 @@ interface ShippingMethodCreate extends ResourceCreate {
|
|
61
63
|
scheme?: string;
|
62
64
|
currency_code?: string;
|
63
65
|
external_prices_url?: string;
|
64
|
-
_disable?: boolean;
|
65
|
-
_enable?: boolean;
|
66
66
|
price_amount_cents: number;
|
67
67
|
free_over_amount_cents?: number;
|
68
68
|
use_subtotal?: boolean;
|
69
69
|
min_weight?: number;
|
70
70
|
max_weight?: number;
|
71
71
|
unit_of_weight?: string;
|
72
|
+
_disable?: boolean;
|
73
|
+
_enable?: boolean;
|
72
74
|
market?: MarketRel;
|
73
75
|
shipping_zone?: ShippingZoneRel;
|
74
76
|
shipping_category?: ShippingCategoryRel;
|
@@ -80,14 +82,15 @@ interface ShippingMethodUpdate extends ResourceUpdate {
|
|
80
82
|
scheme?: string;
|
81
83
|
currency_code?: string;
|
82
84
|
external_prices_url?: string;
|
83
|
-
_disable?: boolean;
|
84
|
-
_enable?: boolean;
|
85
85
|
price_amount_cents?: number;
|
86
86
|
free_over_amount_cents?: number;
|
87
87
|
use_subtotal?: boolean;
|
88
88
|
min_weight?: number;
|
89
89
|
max_weight?: number;
|
90
90
|
unit_of_weight?: string;
|
91
|
+
_disable?: boolean;
|
92
|
+
_enable?: boolean;
|
93
|
+
_reset_circuit?: boolean;
|
91
94
|
market?: MarketRel;
|
92
95
|
shipping_zone?: ShippingZoneRel;
|
93
96
|
shipping_category?: ShippingCategoryRel;
|
@@ -10,10 +10,10 @@ interface Webhook extends Resource {
|
|
10
10
|
topic?: string;
|
11
11
|
callback_url?: string;
|
12
12
|
include_resources?: string[];
|
13
|
+
disabled_at?: string;
|
13
14
|
circuit_state?: string;
|
14
15
|
circuit_failure_count?: number;
|
15
16
|
shared_secret?: string;
|
16
|
-
disabled_at?: string;
|
17
17
|
last_event_callbacks?: EventCallback[];
|
18
18
|
versions?: Version[];
|
19
19
|
}
|
@@ -30,9 +30,9 @@ interface WebhookUpdate extends ResourceUpdate {
|
|
30
30
|
topic?: string;
|
31
31
|
callback_url?: string;
|
32
32
|
include_resources?: string[];
|
33
|
-
_reset_circuit?: boolean;
|
34
33
|
_disable?: boolean;
|
35
34
|
_enable?: boolean;
|
35
|
+
_reset_circuit?: boolean;
|
36
36
|
}
|
37
37
|
declare class Webhooks extends ApiResource {
|
38
38
|
static readonly TYPE: 'webhooks';
|
package/lib/esm/api.d.ts
CHANGED
@@ -88,6 +88,7 @@ export { default as Promotions } from './resources/promotions';
|
|
88
88
|
export { default as RecurringOrderCopies } from './resources/recurring_order_copies';
|
89
89
|
export { default as Refunds } from './resources/refunds';
|
90
90
|
export { default as ReservedStocks } from './resources/reserved_stocks';
|
91
|
+
export { default as ResourceErrors } from './resources/resource_errors';
|
91
92
|
export { default as ReturnLineItems } from './resources/return_line_items';
|
92
93
|
export { default as Returns } from './resources/returns';
|
93
94
|
export { default as SatispayGateways } from './resources/satispay_gateways';
|
@@ -121,5 +122,5 @@ export { default as Versions } from './resources/versions';
|
|
121
122
|
export { default as Voids } from './resources/voids';
|
122
123
|
export { default as Webhooks } from './resources/webhooks';
|
123
124
|
export { default as WireTransfers } from './resources/wire_transfers';
|
124
|
-
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
|
125
|
-
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
|
125
|
+
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'axerve_gateways' | 'axerve_payments' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'buy_x_pay_y_promotions' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | 'custom_promotion_rules' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'events' | 'exports' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'fixed_price_promotions' | 'free_gift_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'klarna_gateways' | 'klarna_payments' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'payment_options' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_frequency_tiers' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'recurring_order_copies' | 'refunds' | 'reserved_stocks' | 'resource_errors' | 'return_line_items' | 'returns' | 'satispay_gateways' | 'satispay_payments' | 'shipments' | 'shipping_categories' | 'shipping_method_tiers' | 'shipping_methods' | 'shipping_weight_tiers' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_reservations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tags' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'versions' | 'voids' | 'webhooks' | 'wire_transfers';
|
126
|
+
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "axerve_gateways", "axerve_payments", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "buy_x_pay_y_promotions", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "custom_promotion_rules", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "events", "exports", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "fixed_price_promotions", "free_gift_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "klarna_gateways", "klarna_payments", "line_item_options", "line_items", "manual_gateways", "manual_tax_calculators", "markets", "merchants", "order_amount_promotion_rules", "order_copies", "order_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "payment_options", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_frequency_tiers", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "recurring_order_copies", "refunds", "reserved_stocks", "resource_errors", "return_line_items", "returns", "satispay_gateways", "satispay_payments", "shipments", "shipping_categories", "shipping_method_tiers", "shipping_methods", "shipping_weight_tiers", "shipping_zones", "sku_list_items", "sku_list_promotion_rules", "sku_lists", "sku_options", "skus", "stock_items", "stock_line_items", "stock_locations", "stock_reservations", "stock_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tags", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "versions", "voids", "webhooks", "wire_transfers"];
|