@commercelayer/sdk 4.24.1 → 4.25.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 +4 -2
- package/lib/cjs/api.js +9 -3
- package/lib/cjs/commercelayer.d.ts +4 -2
- package/lib/cjs/commercelayer.js +3 -1
- package/lib/cjs/model.d.ts +2 -0
- package/lib/cjs/resources/axerve_gateways.d.ts +43 -0
- package/lib/cjs/resources/axerve_gateways.js +41 -0
- package/lib/cjs/resources/axerve_payments.d.ts +45 -0
- package/lib/cjs/resources/axerve_payments.js +41 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +7 -3
- package/lib/cjs/resources/manual_gateways.d.ts +0 -3
- package/lib/cjs/resources/orders.d.ts +7 -3
- package/lib/cjs/resources/payment_methods.d.ts +11 -0
- package/lib/esm/api.d.ts +4 -2
- package/lib/esm/api.js +4 -0
- package/lib/esm/commercelayer.d.ts +4 -2
- package/lib/esm/commercelayer.js +3 -1
- package/lib/esm/model.d.ts +2 -0
- package/lib/esm/resources/axerve_gateways.d.ts +43 -0
- package/lib/esm/resources/axerve_gateways.js +39 -0
- package/lib/esm/resources/axerve_payments.d.ts +45 -0
- package/lib/esm/resources/axerve_payments.js +39 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +7 -3
- package/lib/esm/resources/manual_gateways.d.ts +0 -3
- package/lib/esm/resources/orders.d.ts +7 -3
- package/lib/esm/resources/payment_methods.d.ts +11 -0
- 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
@@ -9,6 +9,8 @@ export { default as Applications } from './resources/application';
|
|
9
9
|
export { default as Attachments } from './resources/attachments';
|
10
10
|
export { default as Authorizations } from './resources/authorizations';
|
11
11
|
export { default as AvalaraAccounts } from './resources/avalara_accounts';
|
12
|
+
export { default as AxerveGateways } from './resources/axerve_gateways';
|
13
|
+
export { default as AxervePayments } from './resources/axerve_payments';
|
12
14
|
export { default as BillingInfoValidationRules } from './resources/billing_info_validation_rules';
|
13
15
|
export { default as BingGeocoders } from './resources/bing_geocoders';
|
14
16
|
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
@@ -105,5 +107,5 @@ export { default as Transactions } from './resources/transactions';
|
|
105
107
|
export { default as Voids } from './resources/voids';
|
106
108
|
export { default as Webhooks } from './resources/webhooks';
|
107
109
|
export { default as WireTransfers } from './resources/wire_transfers';
|
108
|
-
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | '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_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | '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_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
109
|
-
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "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_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "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_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
110
|
+
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' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | '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_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | '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_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
111
|
+
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", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "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_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "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_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
package/lib/cjs/api.js
CHANGED
@@ -3,9 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.
|
7
|
-
exports.
|
8
|
-
exports.resourceList = exports.WireTransfers = exports.Webhooks = exports.Voids = exports.Transactions = void 0;
|
6
|
+
exports.InventoryStockLocations = exports.InventoryReturnLocations = 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.Coupons = exports.CouponRecipients = exports.CouponCodesPromotionRules = exports.Cleanups = exports.CheckoutComPayments = exports.CheckoutComGateways = exports.CarrierAccounts = exports.Captures = 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.TaxCategories = exports.TaxCalculators = exports.StripePayments = exports.StripeGateways = exports.StockTransfers = exports.StockLocations = exports.StockLineItems = exports.StockItems = exports.Skus = exports.SkuOptions = exports.SkuLists = exports.SkuListPromotionRules = exports.SkuListItems = exports.ShippingZones = exports.ShippingWeightTiers = exports.ShippingMethods = exports.ShippingMethodTiers = exports.ShippingCategories = exports.Shipments = exports.Returns = exports.ReturnLineItems = exports.Refunds = exports.Promotions = exports.PromotionRules = exports.Prices = exports.PriceVolumeTiers = exports.PriceTiers = exports.PriceLists = exports.PercentageDiscountPromotions = exports.PaypalPayments = exports.PaypalGateways = exports.PaymentMethods = exports.PaymentGateways = exports.Parcels = exports.ParcelLineItems = exports.Packages = exports.Organizations = exports.Orders = exports.OrderValidationRules = exports.OrderSubscriptions = exports.OrderCopies = exports.OrderAmountPromotionRules = exports.Merchants = exports.Markets = exports.ManualTaxCalculators = exports.ManualGateways = exports.LineItems = exports.LineItemOptions = exports.KlarnaPayments = exports.KlarnaGateways = void 0;
|
8
|
+
exports.resourceList = exports.WireTransfers = exports.Webhooks = exports.Voids = exports.Transactions = exports.TaxjarAccounts = exports.TaxRules = void 0;
|
9
9
|
// ##__API_RESOURCES_START__##
|
10
10
|
// ##__API_RESOURCES_TEMPLATE:: export { default as ##__RESOURCE_CLASS__## } from './resources/##__RESOURCE_TYPE__##'
|
11
11
|
/**
|
@@ -27,6 +27,10 @@ var authorizations_1 = require("./resources/authorizations");
|
|
27
27
|
Object.defineProperty(exports, "Authorizations", { enumerable: true, get: function () { return __importDefault(authorizations_1).default; } });
|
28
28
|
var avalara_accounts_1 = require("./resources/avalara_accounts");
|
29
29
|
Object.defineProperty(exports, "AvalaraAccounts", { enumerable: true, get: function () { return __importDefault(avalara_accounts_1).default; } });
|
30
|
+
var axerve_gateways_1 = require("./resources/axerve_gateways");
|
31
|
+
Object.defineProperty(exports, "AxerveGateways", { enumerable: true, get: function () { return __importDefault(axerve_gateways_1).default; } });
|
32
|
+
var axerve_payments_1 = require("./resources/axerve_payments");
|
33
|
+
Object.defineProperty(exports, "AxervePayments", { enumerable: true, get: function () { return __importDefault(axerve_payments_1).default; } });
|
30
34
|
var billing_info_validation_rules_1 = require("./resources/billing_info_validation_rules");
|
31
35
|
Object.defineProperty(exports, "BillingInfoValidationRules", { enumerable: true, get: function () { return __importDefault(billing_info_validation_rules_1).default; } });
|
32
36
|
var bing_geocoders_1 = require("./resources/bing_geocoders");
|
@@ -230,6 +234,8 @@ exports.resourceList = [
|
|
230
234
|
'attachments',
|
231
235
|
'authorizations',
|
232
236
|
'avalara_accounts',
|
237
|
+
'axerve_gateways',
|
238
|
+
'axerve_payments',
|
233
239
|
'billing_info_validation_rules',
|
234
240
|
'bing_geocoders',
|
235
241
|
'braintree_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 = "3.
|
5
|
+
declare const OPEN_API_SCHEMA_VERSION = "3.6.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 = "3.
|
13
|
+
readonly openApiSchemaVersion = "3.6.0";
|
14
14
|
addresses: api.Addresses;
|
15
15
|
adjustments: api.Adjustments;
|
16
16
|
adyen_gateways: api.AdyenGateways;
|
@@ -19,6 +19,8 @@ declare class CommerceLayerClient {
|
|
19
19
|
attachments: api.Attachments;
|
20
20
|
authorizations: api.Authorizations;
|
21
21
|
avalara_accounts: api.AvalaraAccounts;
|
22
|
+
axerve_gateways: api.AxerveGateways;
|
23
|
+
axerve_payments: api.AxervePayments;
|
22
24
|
billing_info_validation_rules: api.BillingInfoValidationRules;
|
23
25
|
bing_geocoders: api.BingGeocoders;
|
24
26
|
braintree_gateways: api.BraintreeGateways;
|
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 = '3.
|
48
|
+
const OPEN_API_SCHEMA_VERSION = '3.6.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; }
|
@@ -67,6 +67,8 @@ class CommerceLayerClient {
|
|
67
67
|
this.attachments = new api.Attachments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
68
68
|
this.authorizations = new api.Authorizations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
69
69
|
this.avalara_accounts = new api.AvalaraAccounts(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
70
|
+
this.axerve_gateways = new api.AxerveGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
71
|
+
this.axerve_payments = new api.AxervePayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
70
72
|
this.billing_info_validation_rules = new api.BillingInfoValidationRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
71
73
|
this.bing_geocoders = new api.BingGeocoders(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
72
74
|
this.braintree_gateways = new api.BraintreeGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
package/lib/cjs/model.d.ts
CHANGED
@@ -9,6 +9,8 @@ export type { Application } from './resources/application';
|
|
9
9
|
export type { Attachment, AttachmentCreate, AttachmentUpdate } from './resources/attachments';
|
10
10
|
export type { Authorization, AuthorizationUpdate } from './resources/authorizations';
|
11
11
|
export type { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate } from './resources/avalara_accounts';
|
12
|
+
export type { AxerveGateway, AxerveGatewayCreate, AxerveGatewayUpdate } from './resources/axerve_gateways';
|
13
|
+
export type { AxervePayment, AxervePaymentCreate, AxervePaymentUpdate } from './resources/axerve_payments';
|
12
14
|
export type { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate } from './resources/billing_info_validation_rules';
|
13
15
|
export type { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate } from './resources/bing_geocoders';
|
14
16
|
export type { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate } from './resources/braintree_gateways';
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import type { PaymentMethod } from './payment_methods';
|
4
|
+
import type { AxervePayment } from './axerve_payments';
|
5
|
+
type AxerveGatewayRel = ResourceRel & {
|
6
|
+
type: typeof AxerveGateways.TYPE;
|
7
|
+
};
|
8
|
+
type AxervePaymentRel = ResourceRel & {
|
9
|
+
type: 'axerve_payments';
|
10
|
+
};
|
11
|
+
interface AxerveGateway extends Resource {
|
12
|
+
name?: string;
|
13
|
+
login?: string;
|
14
|
+
payment_methods?: PaymentMethod[];
|
15
|
+
axerve_payments?: AxervePayment[];
|
16
|
+
}
|
17
|
+
interface AxerveGatewayCreate extends ResourceCreate {
|
18
|
+
name: string;
|
19
|
+
login: string;
|
20
|
+
api_key: string;
|
21
|
+
axerve_payments?: AxervePaymentRel[];
|
22
|
+
}
|
23
|
+
interface AxerveGatewayUpdate extends ResourceUpdate {
|
24
|
+
name?: string;
|
25
|
+
login?: string;
|
26
|
+
api_key?: string;
|
27
|
+
axerve_payments?: AxervePaymentRel[];
|
28
|
+
}
|
29
|
+
declare class AxerveGateways extends ApiResource {
|
30
|
+
static readonly TYPE: 'axerve_gateways';
|
31
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxerveGateway>>;
|
32
|
+
create(resource: AxerveGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
|
33
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
|
34
|
+
update(resource: AxerveGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
|
35
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
|
+
payment_methods(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
37
|
+
axerve_payments(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxervePayment>>;
|
38
|
+
isAxerveGateway(resource: any): resource is AxerveGateway;
|
39
|
+
relationship(id: string | ResourceId | null): AxerveGatewayRel;
|
40
|
+
type(): string;
|
41
|
+
}
|
42
|
+
export default AxerveGateways;
|
43
|
+
export { AxerveGateway, AxerveGatewayCreate, AxerveGatewayUpdate };
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class AxerveGateways extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'axerve_gateways'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: AxerveGateways.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async create(resource, params, options) {
|
10
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: AxerveGateways.TYPE }), params, options);
|
11
|
+
}
|
12
|
+
async retrieve(id, params, options) {
|
13
|
+
return this.resources.retrieve({ type: AxerveGateways.TYPE, id }, params, options);
|
14
|
+
}
|
15
|
+
async update(resource, params, options) {
|
16
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: AxerveGateways.TYPE }), params, options);
|
17
|
+
}
|
18
|
+
async delete(id, options) {
|
19
|
+
await this.resources.delete({ type: AxerveGateways.TYPE, id }, options);
|
20
|
+
}
|
21
|
+
async payment_methods(axerveGatewayId, params, options) {
|
22
|
+
const _axerveGatewayId = axerveGatewayId.id || axerveGatewayId;
|
23
|
+
return this.resources.fetch({ type: 'payment_methods' }, `axerve_gateways/${_axerveGatewayId}/payment_methods`, params, options);
|
24
|
+
}
|
25
|
+
async axerve_payments(axerveGatewayId, params, options) {
|
26
|
+
const _axerveGatewayId = axerveGatewayId.id || axerveGatewayId;
|
27
|
+
return this.resources.fetch({ type: 'axerve_payments' }, `axerve_gateways/${_axerveGatewayId}/axerve_payments`, params, options);
|
28
|
+
}
|
29
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
|
+
isAxerveGateway(resource) {
|
31
|
+
return resource.type && (resource.type === AxerveGateways.TYPE);
|
32
|
+
}
|
33
|
+
relationship(id) {
|
34
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: AxerveGateways.TYPE } : { id: id.id, type: AxerveGateways.TYPE };
|
35
|
+
}
|
36
|
+
type() {
|
37
|
+
return AxerveGateways.TYPE;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
AxerveGateways.TYPE = 'axerve_gateways';
|
41
|
+
exports.default = AxerveGateways;
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import type { Order } from './orders';
|
4
|
+
import type { PaymentGateway } from './payment_gateways';
|
5
|
+
type AxervePaymentRel = ResourceRel & {
|
6
|
+
type: typeof AxervePayments.TYPE;
|
7
|
+
};
|
8
|
+
type OrderRel = ResourceRel & {
|
9
|
+
type: 'orders';
|
10
|
+
};
|
11
|
+
interface AxervePayment extends Resource {
|
12
|
+
return_url?: string;
|
13
|
+
payment_request_data?: object;
|
14
|
+
mismatched_amounts?: boolean;
|
15
|
+
intent_amount_cents?: number;
|
16
|
+
intent_amount_float?: number;
|
17
|
+
formatted_intent_amount?: string;
|
18
|
+
payment_instrument?: object;
|
19
|
+
order?: Order;
|
20
|
+
payment_gateway?: PaymentGateway;
|
21
|
+
}
|
22
|
+
interface AxervePaymentCreate extends ResourceCreate {
|
23
|
+
return_url: string;
|
24
|
+
order: OrderRel;
|
25
|
+
}
|
26
|
+
interface AxervePaymentUpdate extends ResourceUpdate {
|
27
|
+
payment_request_data?: object;
|
28
|
+
_update?: boolean;
|
29
|
+
order?: OrderRel;
|
30
|
+
}
|
31
|
+
declare class AxervePayments extends ApiResource {
|
32
|
+
static readonly TYPE: 'axerve_payments';
|
33
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxervePayment>>;
|
34
|
+
create(resource: AxervePaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxervePayment>;
|
35
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxervePayment>;
|
36
|
+
update(resource: AxervePaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxervePayment>;
|
37
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
|
+
order(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
39
|
+
payment_gateway(axervePaymentId: string | AxervePayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
40
|
+
isAxervePayment(resource: any): resource is AxervePayment;
|
41
|
+
relationship(id: string | ResourceId | null): AxervePaymentRel;
|
42
|
+
type(): string;
|
43
|
+
}
|
44
|
+
export default AxervePayments;
|
45
|
+
export { AxervePayment, AxervePaymentCreate, AxervePaymentUpdate };
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class AxervePayments extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'axerve_payments'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: AxervePayments.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async create(resource, params, options) {
|
10
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: AxervePayments.TYPE }), params, options);
|
11
|
+
}
|
12
|
+
async retrieve(id, params, options) {
|
13
|
+
return this.resources.retrieve({ type: AxervePayments.TYPE, id }, params, options);
|
14
|
+
}
|
15
|
+
async update(resource, params, options) {
|
16
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: AxervePayments.TYPE }), params, options);
|
17
|
+
}
|
18
|
+
async delete(id, options) {
|
19
|
+
await this.resources.delete({ type: AxervePayments.TYPE, id }, options);
|
20
|
+
}
|
21
|
+
async order(axervePaymentId, params, options) {
|
22
|
+
const _axervePaymentId = axervePaymentId.id || axervePaymentId;
|
23
|
+
return this.resources.fetch({ type: 'orders' }, `axerve_payments/${_axervePaymentId}/order`, params, options);
|
24
|
+
}
|
25
|
+
async payment_gateway(axervePaymentId, params, options) {
|
26
|
+
const _axervePaymentId = axervePaymentId.id || axervePaymentId;
|
27
|
+
return this.resources.fetch({ type: 'payment_gateways' }, `axerve_payments/${_axervePaymentId}/payment_gateway`, params, options);
|
28
|
+
}
|
29
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
|
+
isAxervePayment(resource) {
|
31
|
+
return resource.type && (resource.type === AxervePayments.TYPE);
|
32
|
+
}
|
33
|
+
relationship(id) {
|
34
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: AxervePayments.TYPE } : { id: id.id, type: AxervePayments.TYPE };
|
35
|
+
}
|
36
|
+
type() {
|
37
|
+
return AxervePayments.TYPE;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
AxervePayments.TYPE = 'axerve_payments';
|
41
|
+
exports.default = AxervePayments;
|
@@ -2,6 +2,7 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig,
|
|
2
2
|
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
3
|
import type { Customer } from './customers';
|
4
4
|
import type { AdyenPayment } from './adyen_payments';
|
5
|
+
import type { AxervePayment } from './axerve_payments';
|
5
6
|
import type { BraintreePayment } from './braintree_payments';
|
6
7
|
import type { CheckoutComPayment } from './checkout_com_payments';
|
7
8
|
import type { ExternalPayment } from './external_payments';
|
@@ -18,6 +19,9 @@ type CustomerRel = ResourceRel & {
|
|
18
19
|
type AdyenPaymentRel = ResourceRel & {
|
19
20
|
type: 'adyen_payments';
|
20
21
|
};
|
22
|
+
type AxervePaymentRel = ResourceRel & {
|
23
|
+
type: 'axerve_payments';
|
24
|
+
};
|
21
25
|
type BraintreePaymentRel = ResourceRel & {
|
22
26
|
type: 'braintree_payments';
|
23
27
|
};
|
@@ -44,15 +48,15 @@ interface CustomerPaymentSource extends Resource {
|
|
44
48
|
customer_token?: string;
|
45
49
|
payment_source_token?: string;
|
46
50
|
customer?: Customer;
|
47
|
-
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
|
51
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
|
48
52
|
}
|
49
53
|
interface CustomerPaymentSourceCreate extends ResourceCreate {
|
50
54
|
customer: CustomerRel;
|
51
|
-
payment_source: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
55
|
+
payment_source: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
52
56
|
}
|
53
57
|
interface CustomerPaymentSourceUpdate extends ResourceUpdate {
|
54
58
|
customer?: CustomerRel;
|
55
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
59
|
+
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
56
60
|
}
|
57
61
|
declare class CustomerPaymentSources extends ApiResource {
|
58
62
|
static readonly TYPE: 'customer_payment_sources';
|
@@ -6,16 +6,13 @@ type ManualGatewayRel = ResourceRel & {
|
|
6
6
|
};
|
7
7
|
interface ManualGateway extends Resource {
|
8
8
|
name?: string;
|
9
|
-
require_capture?: boolean;
|
10
9
|
payment_methods?: PaymentMethod[];
|
11
10
|
}
|
12
11
|
interface ManualGatewayCreate extends ResourceCreate {
|
13
12
|
name: string;
|
14
|
-
require_capture?: boolean;
|
15
13
|
}
|
16
14
|
interface ManualGatewayUpdate extends ResourceUpdate {
|
17
15
|
name?: string;
|
18
|
-
require_capture?: boolean;
|
19
16
|
}
|
20
17
|
declare class ManualGateways extends ApiResource {
|
21
18
|
static readonly TYPE: 'manual_gateways';
|
@@ -8,6 +8,7 @@ import type { CustomerPaymentSource } from './customer_payment_sources';
|
|
8
8
|
import type { Sku } from './skus';
|
9
9
|
import type { Bundle } from './bundles';
|
10
10
|
import type { AdyenPayment } from './adyen_payments';
|
11
|
+
import type { AxervePayment } from './axerve_payments';
|
11
12
|
import type { BraintreePayment } from './braintree_payments';
|
12
13
|
import type { CheckoutComPayment } from './checkout_com_payments';
|
13
14
|
import type { ExternalPayment } from './external_payments';
|
@@ -44,6 +45,9 @@ type PaymentMethodRel = ResourceRel & {
|
|
44
45
|
type AdyenPaymentRel = ResourceRel & {
|
45
46
|
type: 'adyen_payments';
|
46
47
|
};
|
48
|
+
type AxervePaymentRel = ResourceRel & {
|
49
|
+
type: 'axerve_payments';
|
50
|
+
};
|
47
51
|
type BraintreePaymentRel = ResourceRel & {
|
48
52
|
type: 'braintree_payments';
|
49
53
|
};
|
@@ -173,7 +177,7 @@ interface Order extends Resource {
|
|
173
177
|
available_free_skus?: Sku[];
|
174
178
|
available_free_bundles?: Bundle[];
|
175
179
|
payment_method?: PaymentMethod;
|
176
|
-
payment_source?: AdyenPayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
|
180
|
+
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | StripePayment | WireTransfer;
|
177
181
|
line_items?: LineItem[];
|
178
182
|
shipments?: Shipment[];
|
179
183
|
transactions?: Array<Authorization | Void | Capture | Refund>;
|
@@ -206,7 +210,7 @@ interface OrderCreate extends ResourceCreate {
|
|
206
210
|
shipping_address?: AddressRel;
|
207
211
|
billing_address?: AddressRel;
|
208
212
|
payment_method?: PaymentMethodRel;
|
209
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
213
|
+
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
210
214
|
}
|
211
215
|
interface OrderUpdate extends ResourceUpdate {
|
212
216
|
autorefresh?: boolean;
|
@@ -251,7 +255,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
251
255
|
shipping_address?: AddressRel;
|
252
256
|
billing_address?: AddressRel;
|
253
257
|
payment_method?: PaymentMethodRel;
|
254
|
-
payment_source?: AdyenPaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
258
|
+
payment_source?: AdyenPaymentRel | AxervePaymentRel | BraintreePaymentRel | CheckoutComPaymentRel | ExternalPaymentRel | KlarnaPaymentRel | PaypalPaymentRel | StripePaymentRel | WireTransferRel;
|
255
259
|
}
|
256
260
|
declare class Orders extends ApiResource {
|
257
261
|
static readonly TYPE: 'orders';
|
@@ -17,10 +17,15 @@ interface PaymentMethod extends Resource {
|
|
17
17
|
name?: string;
|
18
18
|
currency_code?: string;
|
19
19
|
moto?: boolean;
|
20
|
+
require_capture?: boolean;
|
21
|
+
auto_capture?: boolean;
|
20
22
|
disabled_at?: string;
|
21
23
|
price_amount_cents?: number;
|
22
24
|
price_amount_float?: number;
|
23
25
|
formatted_price_amount?: string;
|
26
|
+
auto_capture_max_amount_cents?: number;
|
27
|
+
auto_capture_max_amount_float?: number;
|
28
|
+
formatted_auto_capture_max_amount?: string;
|
24
29
|
market?: Market;
|
25
30
|
payment_gateway?: PaymentGateway;
|
26
31
|
attachments?: Attachment[];
|
@@ -29,7 +34,10 @@ interface PaymentMethodCreate extends ResourceCreate {
|
|
29
34
|
payment_source_type: string;
|
30
35
|
currency_code?: string;
|
31
36
|
moto?: boolean;
|
37
|
+
require_capture?: boolean;
|
38
|
+
auto_capture?: boolean;
|
32
39
|
price_amount_cents: number;
|
40
|
+
auto_capture_max_amount_cents?: number;
|
33
41
|
market?: MarketRel;
|
34
42
|
payment_gateway: PaymentGatewayRel;
|
35
43
|
}
|
@@ -37,9 +45,12 @@ interface PaymentMethodUpdate extends ResourceUpdate {
|
|
37
45
|
payment_source_type?: string;
|
38
46
|
currency_code?: string;
|
39
47
|
moto?: boolean;
|
48
|
+
require_capture?: boolean;
|
49
|
+
auto_capture?: boolean;
|
40
50
|
_disable?: boolean;
|
41
51
|
_enable?: boolean;
|
42
52
|
price_amount_cents?: number;
|
53
|
+
auto_capture_max_amount_cents?: number;
|
43
54
|
market?: MarketRel;
|
44
55
|
payment_gateway?: PaymentGatewayRel;
|
45
56
|
}
|
package/lib/esm/api.d.ts
CHANGED
@@ -9,6 +9,8 @@ export { default as Applications } from './resources/application';
|
|
9
9
|
export { default as Attachments } from './resources/attachments';
|
10
10
|
export { default as Authorizations } from './resources/authorizations';
|
11
11
|
export { default as AvalaraAccounts } from './resources/avalara_accounts';
|
12
|
+
export { default as AxerveGateways } from './resources/axerve_gateways';
|
13
|
+
export { default as AxervePayments } from './resources/axerve_payments';
|
12
14
|
export { default as BillingInfoValidationRules } from './resources/billing_info_validation_rules';
|
13
15
|
export { default as BingGeocoders } from './resources/bing_geocoders';
|
14
16
|
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
@@ -105,5 +107,5 @@ export { default as Transactions } from './resources/transactions';
|
|
105
107
|
export { default as Voids } from './resources/voids';
|
106
108
|
export { default as Webhooks } from './resources/webhooks';
|
107
109
|
export { default as WireTransfers } from './resources/wire_transfers';
|
108
|
-
export type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | '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_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | '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_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
109
|
-
export declare const resourceList: readonly ["addresses", "adjustments", "adyen_gateways", "adyen_payments", "application", "attachments", "authorizations", "avalara_accounts", "billing_info_validation_rules", "bing_geocoders", "braintree_gateways", "braintree_payments", "bundles", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "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_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "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_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
110
|
+
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' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'cleanups' | 'coupon_codes_promotion_rules' | 'coupon_recipients' | 'coupons' | '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_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'price_tiers' | 'price_volume_tiers' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | '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_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
111
|
+
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", "captures", "carrier_accounts", "checkout_com_gateways", "checkout_com_payments", "cleanups", "coupon_codes_promotion_rules", "coupon_recipients", "coupons", "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_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "paypal_gateways", "paypal_payments", "percentage_discount_promotions", "price_lists", "price_tiers", "price_volume_tiers", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "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_transfers", "stripe_gateways", "stripe_payments", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
package/lib/esm/api.js
CHANGED
@@ -11,6 +11,8 @@ export { default as Applications } from './resources/application';
|
|
11
11
|
export { default as Attachments } from './resources/attachments';
|
12
12
|
export { default as Authorizations } from './resources/authorizations';
|
13
13
|
export { default as AvalaraAccounts } from './resources/avalara_accounts';
|
14
|
+
export { default as AxerveGateways } from './resources/axerve_gateways';
|
15
|
+
export { default as AxervePayments } from './resources/axerve_payments';
|
14
16
|
export { default as BillingInfoValidationRules } from './resources/billing_info_validation_rules';
|
15
17
|
export { default as BingGeocoders } from './resources/bing_geocoders';
|
16
18
|
export { default as BraintreeGateways } from './resources/braintree_gateways';
|
@@ -118,6 +120,8 @@ export const resourceList = [
|
|
118
120
|
'attachments',
|
119
121
|
'authorizations',
|
120
122
|
'avalara_accounts',
|
123
|
+
'axerve_gateways',
|
124
|
+
'axerve_payments',
|
121
125
|
'billing_info_validation_rules',
|
122
126
|
'bing_geocoders',
|
123
127
|
'braintree_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 = "3.
|
5
|
+
declare const OPEN_API_SCHEMA_VERSION = "3.6.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 = "3.
|
13
|
+
readonly openApiSchemaVersion = "3.6.0";
|
14
14
|
addresses: api.Addresses;
|
15
15
|
adjustments: api.Adjustments;
|
16
16
|
adyen_gateways: api.AdyenGateways;
|
@@ -19,6 +19,8 @@ declare class CommerceLayerClient {
|
|
19
19
|
attachments: api.Attachments;
|
20
20
|
authorizations: api.Authorizations;
|
21
21
|
avalara_accounts: api.AvalaraAccounts;
|
22
|
+
axerve_gateways: api.AxerveGateways;
|
23
|
+
axerve_payments: api.AxervePayments;
|
22
24
|
billing_info_validation_rules: api.BillingInfoValidationRules;
|
23
25
|
bing_geocoders: api.BingGeocoders;
|
24
26
|
braintree_gateways: api.BraintreeGateways;
|
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 = '3.
|
19
|
+
const OPEN_API_SCHEMA_VERSION = '3.6.0';
|
20
20
|
export { OPEN_API_SCHEMA_VERSION };
|
21
21
|
class CommerceLayerClient {
|
22
22
|
static get openApiSchemaVersion() { return OPEN_API_SCHEMA_VERSION; }
|
@@ -38,6 +38,8 @@ class CommerceLayerClient {
|
|
38
38
|
this.attachments = new api.Attachments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
39
39
|
this.authorizations = new api.Authorizations(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
40
40
|
this.avalara_accounts = new api.AvalaraAccounts(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
41
|
+
this.axerve_gateways = new api.AxerveGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
42
|
+
this.axerve_payments = new api.AxervePayments(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
41
43
|
this.billing_info_validation_rules = new api.BillingInfoValidationRules(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
42
44
|
this.bing_geocoders = new api.BingGeocoders(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
43
45
|
this.braintree_gateways = new api.BraintreeGateways(__classPrivateFieldGet(this, _CommerceLayerClient_adapter, "f"));
|
package/lib/esm/model.d.ts
CHANGED
@@ -9,6 +9,8 @@ export type { Application } from './resources/application';
|
|
9
9
|
export type { Attachment, AttachmentCreate, AttachmentUpdate } from './resources/attachments';
|
10
10
|
export type { Authorization, AuthorizationUpdate } from './resources/authorizations';
|
11
11
|
export type { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate } from './resources/avalara_accounts';
|
12
|
+
export type { AxerveGateway, AxerveGatewayCreate, AxerveGatewayUpdate } from './resources/axerve_gateways';
|
13
|
+
export type { AxervePayment, AxervePaymentCreate, AxervePaymentUpdate } from './resources/axerve_payments';
|
12
14
|
export type { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate } from './resources/billing_info_validation_rules';
|
13
15
|
export type { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate } from './resources/bing_geocoders';
|
14
16
|
export type { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate } from './resources/braintree_gateways';
|
@@ -0,0 +1,43 @@
|
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import type { PaymentMethod } from './payment_methods';
|
4
|
+
import type { AxervePayment } from './axerve_payments';
|
5
|
+
type AxerveGatewayRel = ResourceRel & {
|
6
|
+
type: typeof AxerveGateways.TYPE;
|
7
|
+
};
|
8
|
+
type AxervePaymentRel = ResourceRel & {
|
9
|
+
type: 'axerve_payments';
|
10
|
+
};
|
11
|
+
interface AxerveGateway extends Resource {
|
12
|
+
name?: string;
|
13
|
+
login?: string;
|
14
|
+
payment_methods?: PaymentMethod[];
|
15
|
+
axerve_payments?: AxervePayment[];
|
16
|
+
}
|
17
|
+
interface AxerveGatewayCreate extends ResourceCreate {
|
18
|
+
name: string;
|
19
|
+
login: string;
|
20
|
+
api_key: string;
|
21
|
+
axerve_payments?: AxervePaymentRel[];
|
22
|
+
}
|
23
|
+
interface AxerveGatewayUpdate extends ResourceUpdate {
|
24
|
+
name?: string;
|
25
|
+
login?: string;
|
26
|
+
api_key?: string;
|
27
|
+
axerve_payments?: AxervePaymentRel[];
|
28
|
+
}
|
29
|
+
declare class AxerveGateways extends ApiResource {
|
30
|
+
static readonly TYPE: 'axerve_gateways';
|
31
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxerveGateway>>;
|
32
|
+
create(resource: AxerveGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
|
33
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
|
34
|
+
update(resource: AxerveGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<AxerveGateway>;
|
35
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
|
+
payment_methods(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
37
|
+
axerve_payments(axerveGatewayId: string | AxerveGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<AxervePayment>>;
|
38
|
+
isAxerveGateway(resource: any): resource is AxerveGateway;
|
39
|
+
relationship(id: string | ResourceId | null): AxerveGatewayRel;
|
40
|
+
type(): string;
|
41
|
+
}
|
42
|
+
export default AxerveGateways;
|
43
|
+
export { AxerveGateway, AxerveGatewayCreate, AxerveGatewayUpdate };
|