@commercelayer/sdk 4.25.0 → 4.27.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 +9 -2
- package/lib/cjs/api.js +23 -2
- package/lib/cjs/commercelayer.d.ts +9 -2
- package/lib/cjs/commercelayer.js +8 -1
- package/lib/cjs/model.d.ts +8 -1
- package/lib/cjs/resources/axerve_payments.d.ts +1 -0
- package/lib/cjs/resources/customer_payment_sources.d.ts +7 -3
- package/lib/cjs/resources/fixed_price_promotions.d.ts +3 -3
- package/lib/cjs/resources/fixed_price_promotions.js +4 -4
- package/lib/cjs/resources/free_gift_promotions.d.ts +3 -3
- package/lib/cjs/resources/free_gift_promotions.js +4 -4
- package/lib/cjs/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/cjs/resources/free_shipping_promotions.js +4 -0
- package/lib/cjs/resources/line_items.d.ts +3 -0
- package/lib/cjs/resources/markets.d.ts +8 -0
- package/lib/cjs/resources/markets.js +4 -0
- package/lib/cjs/resources/order_copies.d.ts +11 -9
- package/lib/cjs/resources/order_copies.js +7 -4
- package/lib/cjs/resources/order_factories.d.ts +33 -0
- package/lib/cjs/resources/order_factories.js +36 -0
- package/lib/cjs/resources/order_subscription_items.d.ts +60 -0
- package/lib/cjs/resources/order_subscription_items.js +37 -0
- package/lib/cjs/resources/order_subscriptions.d.ts +25 -3
- package/lib/cjs/resources/order_subscriptions.js +18 -2
- package/lib/cjs/resources/orders.d.ts +15 -3
- package/lib/cjs/resources/orders.js +8 -0
- package/lib/cjs/resources/percentage_discount_promotions.d.ts +3 -3
- package/lib/cjs/resources/percentage_discount_promotions.js +4 -4
- package/lib/cjs/resources/price_frequency_tiers.d.ts +49 -0
- package/lib/cjs/resources/price_frequency_tiers.js +45 -0
- package/lib/cjs/resources/price_volume_tiers.d.ts +3 -0
- package/lib/cjs/resources/price_volume_tiers.js +4 -0
- package/lib/cjs/resources/prices.d.ts +3 -0
- package/lib/cjs/resources/prices.js +4 -0
- package/lib/cjs/resources/promotions.d.ts +3 -0
- package/lib/cjs/resources/promotions.js +4 -0
- package/lib/cjs/resources/recurring_order_copies.d.ts +52 -0
- package/lib/cjs/resources/recurring_order_copies.js +49 -0
- package/lib/cjs/resources/satispay_gateways.d.ts +39 -0
- package/lib/cjs/resources/satispay_gateways.js +41 -0
- package/lib/cjs/resources/satispay_payments.d.ts +43 -0
- package/lib/cjs/resources/satispay_payments.js +41 -0
- package/lib/cjs/resources/subscription_models.d.ts +48 -0
- package/lib/cjs/resources/subscription_models.js +45 -0
- package/lib/esm/api.d.ts +9 -2
- package/lib/esm/api.js +14 -0
- package/lib/esm/commercelayer.d.ts +9 -2
- package/lib/esm/commercelayer.js +8 -1
- package/lib/esm/model.d.ts +8 -1
- package/lib/esm/resources/axerve_payments.d.ts +1 -0
- package/lib/esm/resources/customer_payment_sources.d.ts +7 -3
- package/lib/esm/resources/fixed_price_promotions.d.ts +3 -3
- package/lib/esm/resources/fixed_price_promotions.js +4 -4
- package/lib/esm/resources/free_gift_promotions.d.ts +3 -3
- package/lib/esm/resources/free_gift_promotions.js +4 -4
- package/lib/esm/resources/free_shipping_promotions.d.ts +3 -0
- package/lib/esm/resources/free_shipping_promotions.js +4 -0
- package/lib/esm/resources/line_items.d.ts +3 -0
- package/lib/esm/resources/markets.d.ts +8 -0
- package/lib/esm/resources/markets.js +4 -0
- package/lib/esm/resources/order_copies.d.ts +11 -9
- package/lib/esm/resources/order_copies.js +7 -4
- package/lib/esm/resources/order_factories.d.ts +33 -0
- package/lib/esm/resources/order_factories.js +34 -0
- package/lib/esm/resources/order_subscription_items.d.ts +60 -0
- package/lib/esm/resources/order_subscription_items.js +35 -0
- package/lib/esm/resources/order_subscriptions.d.ts +25 -3
- package/lib/esm/resources/order_subscriptions.js +18 -2
- package/lib/esm/resources/orders.d.ts +15 -3
- package/lib/esm/resources/orders.js +8 -0
- package/lib/esm/resources/percentage_discount_promotions.d.ts +3 -3
- package/lib/esm/resources/percentage_discount_promotions.js +4 -4
- package/lib/esm/resources/price_frequency_tiers.d.ts +49 -0
- package/lib/esm/resources/price_frequency_tiers.js +43 -0
- package/lib/esm/resources/price_volume_tiers.d.ts +3 -0
- package/lib/esm/resources/price_volume_tiers.js +4 -0
- package/lib/esm/resources/prices.d.ts +3 -0
- package/lib/esm/resources/prices.js +4 -0
- package/lib/esm/resources/promotions.d.ts +3 -0
- package/lib/esm/resources/promotions.js +4 -0
- package/lib/esm/resources/recurring_order_copies.d.ts +52 -0
- package/lib/esm/resources/recurring_order_copies.js +47 -0
- package/lib/esm/resources/satispay_gateways.d.ts +39 -0
- package/lib/esm/resources/satispay_gateways.js +39 -0
- package/lib/esm/resources/satispay_payments.d.ts +43 -0
- package/lib/esm/resources/satispay_payments.js +39 -0
- package/lib/esm/resources/subscription_models.d.ts +48 -0
- package/lib/esm/resources/subscription_models.js +43 -0
- package/lib/tsconfig.esm.tsbuildinfo +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
@@ -26,6 +26,10 @@ class PriceVolumeTiers extends resource_1.ApiResource {
|
|
26
26
|
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
27
27
|
return this.resources.fetch({ type: 'attachments' }, `price_volume_tiers/${_priceVolumeTierId}/attachments`, params, options);
|
28
28
|
}
|
29
|
+
async events(priceVolumeTierId, params, options) {
|
30
|
+
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
31
|
+
return this.resources.fetch({ type: 'events' }, `price_volume_tiers/${_priceVolumeTierId}/events`, params, options);
|
32
|
+
}
|
29
33
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
34
|
isPriceVolumeTier(resource) {
|
31
35
|
return resource.type && (resource.type === PriceVolumeTiers.TYPE);
|
@@ -4,6 +4,7 @@ import type { PriceList } from './price_lists';
|
|
4
4
|
import type { Sku } from './skus';
|
5
5
|
import type { PriceTier } from './price_tiers';
|
6
6
|
import type { PriceVolumeTier } from './price_volume_tiers';
|
7
|
+
import type { PriceFrequencyTier } from './price_frequency_tiers';
|
7
8
|
import type { Attachment } from './attachments';
|
8
9
|
type PriceRel = ResourceRel & {
|
9
10
|
type: typeof Prices.TYPE;
|
@@ -30,6 +31,7 @@ interface Price extends Resource {
|
|
30
31
|
sku?: Sku;
|
31
32
|
price_tiers?: PriceTier[];
|
32
33
|
price_volume_tiers?: PriceVolumeTier[];
|
34
|
+
price_frequency_tiers?: PriceFrequencyTier[];
|
33
35
|
attachments?: Attachment[];
|
34
36
|
}
|
35
37
|
interface PriceCreate extends ResourceCreate {
|
@@ -59,6 +61,7 @@ declare class Prices extends ApiResource {
|
|
59
61
|
sku(priceId: string | Price, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Sku>;
|
60
62
|
price_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceTier>>;
|
61
63
|
price_volume_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceVolumeTier>>;
|
64
|
+
price_frequency_tiers(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PriceFrequencyTier>>;
|
62
65
|
attachments(priceId: string | Price, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
63
66
|
isPrice(resource: any): resource is Price;
|
64
67
|
relationship(id: string | ResourceId | null): PriceRel;
|
@@ -34,6 +34,10 @@ class Prices extends resource_1.ApiResource {
|
|
34
34
|
const _priceId = priceId.id || priceId;
|
35
35
|
return this.resources.fetch({ type: 'price_volume_tiers' }, `prices/${_priceId}/price_volume_tiers`, params, options);
|
36
36
|
}
|
37
|
+
async price_frequency_tiers(priceId, params, options) {
|
38
|
+
const _priceId = priceId.id || priceId;
|
39
|
+
return this.resources.fetch({ type: 'price_frequency_tiers' }, `prices/${_priceId}/price_frequency_tiers`, params, options);
|
40
|
+
}
|
37
41
|
async attachments(priceId, params, options) {
|
38
42
|
const _priceId = priceId.id || priceId;
|
39
43
|
return this.resources.fetch({ type: 'attachments' }, `prices/${_priceId}/attachments`, params, options);
|
@@ -6,6 +6,7 @@ import type { OrderAmountPromotionRule } from './order_amount_promotion_rules';
|
|
6
6
|
import type { SkuListPromotionRule } from './sku_list_promotion_rules';
|
7
7
|
import type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules';
|
8
8
|
import type { Attachment } from './attachments';
|
9
|
+
import type { Event } from './events';
|
9
10
|
type PromotionRel = ResourceRel & {
|
10
11
|
type: typeof Promotions.TYPE;
|
11
12
|
};
|
@@ -23,6 +24,7 @@ interface Promotion extends Resource {
|
|
23
24
|
sku_list_promotion_rule?: SkuListPromotionRule;
|
24
25
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule;
|
25
26
|
attachments?: Attachment[];
|
27
|
+
events?: Event[];
|
26
28
|
}
|
27
29
|
declare class Promotions extends ApiResource {
|
28
30
|
static readonly TYPE: 'promotions';
|
@@ -33,6 +35,7 @@ declare class Promotions extends ApiResource {
|
|
33
35
|
sku_list_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuListPromotionRule>;
|
34
36
|
coupon_codes_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponCodesPromotionRule>;
|
35
37
|
attachments(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
38
|
+
events(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
36
39
|
isPromotion(resource: any): resource is Promotion;
|
37
40
|
relationship(id: string | ResourceId | null): PromotionRel;
|
38
41
|
type(): string;
|
@@ -29,6 +29,10 @@ class Promotions extends resource_1.ApiResource {
|
|
29
29
|
const _promotionId = promotionId.id || promotionId;
|
30
30
|
return this.resources.fetch({ type: 'attachments' }, `promotions/${_promotionId}/attachments`, params, options);
|
31
31
|
}
|
32
|
+
async events(promotionId, params, options) {
|
33
|
+
const _promotionId = promotionId.id || promotionId;
|
34
|
+
return this.resources.fetch({ type: 'events' }, `promotions/${_promotionId}/events`, params, options);
|
35
|
+
}
|
32
36
|
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
33
37
|
isPromotion(resource) {
|
34
38
|
return resource.type && (resource.type === Promotions.TYPE);
|
@@ -0,0 +1,52 @@
|
|
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 { Event } from './events';
|
5
|
+
import type { OrderSubscription } from './order_subscriptions';
|
6
|
+
type RecurringOrderCopyRel = ResourceRel & {
|
7
|
+
type: typeof RecurringOrderCopies.TYPE;
|
8
|
+
};
|
9
|
+
type OrderRel = ResourceRel & {
|
10
|
+
type: 'orders';
|
11
|
+
};
|
12
|
+
type OrderSubscriptionRel = ResourceRel & {
|
13
|
+
type: 'order_subscriptions';
|
14
|
+
};
|
15
|
+
interface RecurringOrderCopy extends Resource {
|
16
|
+
status?: string;
|
17
|
+
started_at?: string;
|
18
|
+
completed_at?: string;
|
19
|
+
failed_at?: string;
|
20
|
+
errors_log?: object;
|
21
|
+
errors_count?: number;
|
22
|
+
place_target_order?: boolean;
|
23
|
+
reuse_wallet?: boolean;
|
24
|
+
source_order?: Order;
|
25
|
+
target_order?: Order;
|
26
|
+
events?: Event[];
|
27
|
+
order_subscription?: OrderSubscription;
|
28
|
+
}
|
29
|
+
interface RecurringOrderCopyCreate extends ResourceCreate {
|
30
|
+
place_target_order?: boolean;
|
31
|
+
reuse_wallet?: boolean;
|
32
|
+
source_order: OrderRel;
|
33
|
+
order_subscription: OrderSubscriptionRel;
|
34
|
+
}
|
35
|
+
type RecurringOrderCopyUpdate = ResourceUpdate;
|
36
|
+
declare class RecurringOrderCopies extends ApiResource {
|
37
|
+
static readonly TYPE: 'recurring_order_copies';
|
38
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<RecurringOrderCopy>>;
|
39
|
+
create(resource: RecurringOrderCopyCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<RecurringOrderCopy>;
|
40
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<RecurringOrderCopy>;
|
41
|
+
update(resource: RecurringOrderCopyUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<RecurringOrderCopy>;
|
42
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
43
|
+
source_order(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
44
|
+
target_order(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
45
|
+
events(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>;
|
46
|
+
order_subscription(recurringOrderCopyId: string | RecurringOrderCopy, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<OrderSubscription>;
|
47
|
+
isRecurringOrderCopy(resource: any): resource is RecurringOrderCopy;
|
48
|
+
relationship(id: string | ResourceId | null): RecurringOrderCopyRel;
|
49
|
+
type(): string;
|
50
|
+
}
|
51
|
+
export default RecurringOrderCopies;
|
52
|
+
export { RecurringOrderCopy, RecurringOrderCopyCreate, RecurringOrderCopyUpdate };
|
@@ -0,0 +1,49 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class RecurringOrderCopies extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'recurring_order_copies'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: RecurringOrderCopies.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async create(resource, params, options) {
|
10
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: RecurringOrderCopies.TYPE }), params, options);
|
11
|
+
}
|
12
|
+
async retrieve(id, params, options) {
|
13
|
+
return this.resources.retrieve({ type: RecurringOrderCopies.TYPE, id }, params, options);
|
14
|
+
}
|
15
|
+
async update(resource, params, options) {
|
16
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: RecurringOrderCopies.TYPE }), params, options);
|
17
|
+
}
|
18
|
+
async delete(id, options) {
|
19
|
+
await this.resources.delete({ type: RecurringOrderCopies.TYPE, id }, options);
|
20
|
+
}
|
21
|
+
async source_order(recurringOrderCopyId, params, options) {
|
22
|
+
const _recurringOrderCopyId = recurringOrderCopyId.id || recurringOrderCopyId;
|
23
|
+
return this.resources.fetch({ type: 'orders' }, `recurring_order_copies/${_recurringOrderCopyId}/source_order`, params, options);
|
24
|
+
}
|
25
|
+
async target_order(recurringOrderCopyId, params, options) {
|
26
|
+
const _recurringOrderCopyId = recurringOrderCopyId.id || recurringOrderCopyId;
|
27
|
+
return this.resources.fetch({ type: 'orders' }, `recurring_order_copies/${_recurringOrderCopyId}/target_order`, params, options);
|
28
|
+
}
|
29
|
+
async events(recurringOrderCopyId, params, options) {
|
30
|
+
const _recurringOrderCopyId = recurringOrderCopyId.id || recurringOrderCopyId;
|
31
|
+
return this.resources.fetch({ type: 'events' }, `recurring_order_copies/${_recurringOrderCopyId}/events`, params, options);
|
32
|
+
}
|
33
|
+
async order_subscription(recurringOrderCopyId, params, options) {
|
34
|
+
const _recurringOrderCopyId = recurringOrderCopyId.id || recurringOrderCopyId;
|
35
|
+
return this.resources.fetch({ type: 'order_subscriptions' }, `recurring_order_copies/${_recurringOrderCopyId}/order_subscription`, params, options);
|
36
|
+
}
|
37
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
38
|
+
isRecurringOrderCopy(resource) {
|
39
|
+
return resource.type && (resource.type === RecurringOrderCopies.TYPE);
|
40
|
+
}
|
41
|
+
relationship(id) {
|
42
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: RecurringOrderCopies.TYPE } : { id: id.id, type: RecurringOrderCopies.TYPE };
|
43
|
+
}
|
44
|
+
type() {
|
45
|
+
return RecurringOrderCopies.TYPE;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
RecurringOrderCopies.TYPE = 'recurring_order_copies';
|
49
|
+
exports.default = RecurringOrderCopies;
|
@@ -0,0 +1,39 @@
|
|
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 { SatispayPayment } from './satispay_payments';
|
5
|
+
type SatispayGatewayRel = ResourceRel & {
|
6
|
+
type: typeof SatispayGateways.TYPE;
|
7
|
+
};
|
8
|
+
type SatispayPaymentRel = ResourceRel & {
|
9
|
+
type: 'satispay_payments';
|
10
|
+
};
|
11
|
+
interface SatispayGateway extends Resource {
|
12
|
+
name?: string;
|
13
|
+
webhook_endpoint_url?: string;
|
14
|
+
payment_methods?: PaymentMethod[];
|
15
|
+
satispay_payments?: SatispayPayment[];
|
16
|
+
}
|
17
|
+
interface SatispayGatewayCreate extends ResourceCreate {
|
18
|
+
name: string;
|
19
|
+
satispay_payments?: SatispayPaymentRel[];
|
20
|
+
}
|
21
|
+
interface SatispayGatewayUpdate extends ResourceUpdate {
|
22
|
+
name?: string;
|
23
|
+
satispay_payments?: SatispayPaymentRel[];
|
24
|
+
}
|
25
|
+
declare class SatispayGateways extends ApiResource {
|
26
|
+
static readonly TYPE: 'satispay_gateways';
|
27
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayGateway>>;
|
28
|
+
create(resource: SatispayGatewayCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayGateway>;
|
29
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayGateway>;
|
30
|
+
update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayGateway>;
|
31
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
|
+
payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>>;
|
33
|
+
satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>>;
|
34
|
+
isSatispayGateway(resource: any): resource is SatispayGateway;
|
35
|
+
relationship(id: string | ResourceId | null): SatispayGatewayRel;
|
36
|
+
type(): string;
|
37
|
+
}
|
38
|
+
export default SatispayGateways;
|
39
|
+
export { SatispayGateway, SatispayGatewayCreate, SatispayGatewayUpdate };
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class SatispayGateways extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'satispay_gateways'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: SatispayGateways.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async create(resource, params, options) {
|
10
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: SatispayGateways.TYPE }), params, options);
|
11
|
+
}
|
12
|
+
async retrieve(id, params, options) {
|
13
|
+
return this.resources.retrieve({ type: SatispayGateways.TYPE, id }, params, options);
|
14
|
+
}
|
15
|
+
async update(resource, params, options) {
|
16
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: SatispayGateways.TYPE }), params, options);
|
17
|
+
}
|
18
|
+
async delete(id, options) {
|
19
|
+
await this.resources.delete({ type: SatispayGateways.TYPE, id }, options);
|
20
|
+
}
|
21
|
+
async payment_methods(satispayGatewayId, params, options) {
|
22
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
23
|
+
return this.resources.fetch({ type: 'payment_methods' }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options);
|
24
|
+
}
|
25
|
+
async satispay_payments(satispayGatewayId, params, options) {
|
26
|
+
const _satispayGatewayId = satispayGatewayId.id || satispayGatewayId;
|
27
|
+
return this.resources.fetch({ type: 'satispay_payments' }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options);
|
28
|
+
}
|
29
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
|
+
isSatispayGateway(resource) {
|
31
|
+
return resource.type && (resource.type === SatispayGateways.TYPE);
|
32
|
+
}
|
33
|
+
relationship(id) {
|
34
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: SatispayGateways.TYPE } : { id: id.id, type: SatispayGateways.TYPE };
|
35
|
+
}
|
36
|
+
type() {
|
37
|
+
return SatispayGateways.TYPE;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
SatispayGateways.TYPE = 'satispay_gateways';
|
41
|
+
exports.default = SatispayGateways;
|
@@ -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 { Order } from './orders';
|
4
|
+
import type { PaymentGateway } from './payment_gateways';
|
5
|
+
type SatispayPaymentRel = ResourceRel & {
|
6
|
+
type: typeof SatispayPayments.TYPE;
|
7
|
+
};
|
8
|
+
type OrderRel = ResourceRel & {
|
9
|
+
type: 'orders';
|
10
|
+
};
|
11
|
+
interface SatispayPayment extends Resource {
|
12
|
+
token?: string;
|
13
|
+
key_id?: string;
|
14
|
+
payment_id?: string;
|
15
|
+
redirect_url?: string;
|
16
|
+
order?: Order;
|
17
|
+
payment_gateway?: PaymentGateway;
|
18
|
+
}
|
19
|
+
interface SatispayPaymentCreate extends ResourceCreate {
|
20
|
+
token?: string;
|
21
|
+
redirect_url?: string;
|
22
|
+
order: OrderRel;
|
23
|
+
}
|
24
|
+
interface SatispayPaymentUpdate extends ResourceUpdate {
|
25
|
+
redirect_url?: string;
|
26
|
+
_refresh?: boolean;
|
27
|
+
order?: OrderRel;
|
28
|
+
}
|
29
|
+
declare class SatispayPayments extends ApiResource {
|
30
|
+
static readonly TYPE: 'satispay_payments';
|
31
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>>;
|
32
|
+
create(resource: SatispayPaymentCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
33
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
34
|
+
update(resource: SatispayPaymentUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SatispayPayment>;
|
35
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
36
|
+
order(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Order>;
|
37
|
+
payment_gateway(satispayPaymentId: string | SatispayPayment, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<PaymentGateway>;
|
38
|
+
isSatispayPayment(resource: any): resource is SatispayPayment;
|
39
|
+
relationship(id: string | ResourceId | null): SatispayPaymentRel;
|
40
|
+
type(): string;
|
41
|
+
}
|
42
|
+
export default SatispayPayments;
|
43
|
+
export { SatispayPayment, SatispayPaymentCreate, SatispayPaymentUpdate };
|
@@ -0,0 +1,41 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class SatispayPayments extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'satispay_payments'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: SatispayPayments.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async create(resource, params, options) {
|
10
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: SatispayPayments.TYPE }), params, options);
|
11
|
+
}
|
12
|
+
async retrieve(id, params, options) {
|
13
|
+
return this.resources.retrieve({ type: SatispayPayments.TYPE, id }, params, options);
|
14
|
+
}
|
15
|
+
async update(resource, params, options) {
|
16
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: SatispayPayments.TYPE }), params, options);
|
17
|
+
}
|
18
|
+
async delete(id, options) {
|
19
|
+
await this.resources.delete({ type: SatispayPayments.TYPE, id }, options);
|
20
|
+
}
|
21
|
+
async order(satispayPaymentId, params, options) {
|
22
|
+
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
23
|
+
return this.resources.fetch({ type: 'orders' }, `satispay_payments/${_satispayPaymentId}/order`, params, options);
|
24
|
+
}
|
25
|
+
async payment_gateway(satispayPaymentId, params, options) {
|
26
|
+
const _satispayPaymentId = satispayPaymentId.id || satispayPaymentId;
|
27
|
+
return this.resources.fetch({ type: 'payment_gateways' }, `satispay_payments/${_satispayPaymentId}/payment_gateway`, params, options);
|
28
|
+
}
|
29
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
30
|
+
isSatispayPayment(resource) {
|
31
|
+
return resource.type && (resource.type === SatispayPayments.TYPE);
|
32
|
+
}
|
33
|
+
relationship(id) {
|
34
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: SatispayPayments.TYPE } : { id: id.id, type: SatispayPayments.TYPE };
|
35
|
+
}
|
36
|
+
type() {
|
37
|
+
return SatispayPayments.TYPE;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
SatispayPayments.TYPE = 'satispay_payments';
|
41
|
+
exports.default = SatispayPayments;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ResourceRel, ListResponse } from '../resource';
|
2
|
+
import type { QueryParamsList, QueryParamsRetrieve } from '../query';
|
3
|
+
import type { Market } from './markets';
|
4
|
+
import type { OrderSubscription } from './order_subscriptions';
|
5
|
+
import type { Attachment } from './attachments';
|
6
|
+
type SubscriptionModelRel = ResourceRel & {
|
7
|
+
type: typeof SubscriptionModels.TYPE;
|
8
|
+
};
|
9
|
+
interface SubscriptionModel extends Resource {
|
10
|
+
name?: string;
|
11
|
+
strategy?: string;
|
12
|
+
frequencies?: string[];
|
13
|
+
auto_activate?: boolean;
|
14
|
+
auto_cancel?: boolean;
|
15
|
+
markets?: Market[];
|
16
|
+
order_subscriptions?: OrderSubscription[];
|
17
|
+
attachments?: Attachment[];
|
18
|
+
}
|
19
|
+
interface SubscriptionModelCreate extends ResourceCreate {
|
20
|
+
name: string;
|
21
|
+
strategy?: string;
|
22
|
+
frequencies: string[];
|
23
|
+
auto_activate?: boolean;
|
24
|
+
auto_cancel?: boolean;
|
25
|
+
}
|
26
|
+
interface SubscriptionModelUpdate extends ResourceUpdate {
|
27
|
+
name?: string;
|
28
|
+
strategy?: string;
|
29
|
+
frequencies?: string[];
|
30
|
+
auto_activate?: boolean;
|
31
|
+
auto_cancel?: boolean;
|
32
|
+
}
|
33
|
+
declare class SubscriptionModels extends ApiResource {
|
34
|
+
static readonly TYPE: 'subscription_models';
|
35
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<SubscriptionModel>>;
|
36
|
+
create(resource: SubscriptionModelCreate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
37
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
38
|
+
update(resource: SubscriptionModelUpdate, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
39
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
40
|
+
markets(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Market>>;
|
41
|
+
order_subscriptions(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>>;
|
42
|
+
attachments(subscriptionModelId: string | SubscriptionModel, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
43
|
+
isSubscriptionModel(resource: any): resource is SubscriptionModel;
|
44
|
+
relationship(id: string | ResourceId | null): SubscriptionModelRel;
|
45
|
+
type(): string;
|
46
|
+
}
|
47
|
+
export default SubscriptionModels;
|
48
|
+
export { SubscriptionModel, SubscriptionModelCreate, SubscriptionModelUpdate };
|
@@ -0,0 +1,45 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const resource_1 = require("../resource");
|
4
|
+
class SubscriptionModels extends resource_1.ApiResource {
|
5
|
+
// static readonly PATH = 'subscription_models'
|
6
|
+
async list(params, options) {
|
7
|
+
return this.resources.list({ type: SubscriptionModels.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async create(resource, params, options) {
|
10
|
+
return this.resources.create(Object.assign(Object.assign({}, resource), { type: SubscriptionModels.TYPE }), params, options);
|
11
|
+
}
|
12
|
+
async retrieve(id, params, options) {
|
13
|
+
return this.resources.retrieve({ type: SubscriptionModels.TYPE, id }, params, options);
|
14
|
+
}
|
15
|
+
async update(resource, params, options) {
|
16
|
+
return this.resources.update(Object.assign(Object.assign({}, resource), { type: SubscriptionModels.TYPE }), params, options);
|
17
|
+
}
|
18
|
+
async delete(id, options) {
|
19
|
+
await this.resources.delete({ type: SubscriptionModels.TYPE, id }, options);
|
20
|
+
}
|
21
|
+
async markets(subscriptionModelId, params, options) {
|
22
|
+
const _subscriptionModelId = subscriptionModelId.id || subscriptionModelId;
|
23
|
+
return this.resources.fetch({ type: 'markets' }, `subscription_models/${_subscriptionModelId}/markets`, params, options);
|
24
|
+
}
|
25
|
+
async order_subscriptions(subscriptionModelId, params, options) {
|
26
|
+
const _subscriptionModelId = subscriptionModelId.id || subscriptionModelId;
|
27
|
+
return this.resources.fetch({ type: 'order_subscriptions' }, `subscription_models/${_subscriptionModelId}/order_subscriptions`, params, options);
|
28
|
+
}
|
29
|
+
async attachments(subscriptionModelId, params, options) {
|
30
|
+
const _subscriptionModelId = subscriptionModelId.id || subscriptionModelId;
|
31
|
+
return this.resources.fetch({ type: 'attachments' }, `subscription_models/${_subscriptionModelId}/attachments`, params, options);
|
32
|
+
}
|
33
|
+
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
|
34
|
+
isSubscriptionModel(resource) {
|
35
|
+
return resource.type && (resource.type === SubscriptionModels.TYPE);
|
36
|
+
}
|
37
|
+
relationship(id) {
|
38
|
+
return ((id === null) || (typeof id === 'string')) ? { id, type: SubscriptionModels.TYPE } : { id: id.id, type: SubscriptionModels.TYPE };
|
39
|
+
}
|
40
|
+
type() {
|
41
|
+
return SubscriptionModels.TYPE;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
SubscriptionModels.TYPE = 'subscription_models';
|
45
|
+
exports.default = SubscriptionModels;
|
package/lib/esm/api.d.ts
CHANGED
@@ -61,6 +61,8 @@ export { default as Markets } from './resources/markets';
|
|
61
61
|
export { default as Merchants } from './resources/merchants';
|
62
62
|
export { default as OrderAmountPromotionRules } from './resources/order_amount_promotion_rules';
|
63
63
|
export { default as OrderCopies } from './resources/order_copies';
|
64
|
+
export { default as OrderFactories } from './resources/order_factories';
|
65
|
+
export { default as OrderSubscriptionItems } from './resources/order_subscription_items';
|
64
66
|
export { default as OrderSubscriptions } from './resources/order_subscriptions';
|
65
67
|
export { default as OrderValidationRules } from './resources/order_validation_rules';
|
66
68
|
export { default as Orders } from './resources/orders';
|
@@ -73,15 +75,19 @@ export { default as PaymentMethods } from './resources/payment_methods';
|
|
73
75
|
export { default as PaypalGateways } from './resources/paypal_gateways';
|
74
76
|
export { default as PaypalPayments } from './resources/paypal_payments';
|
75
77
|
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
78
|
+
export { default as PriceFrequencyTiers } from './resources/price_frequency_tiers';
|
76
79
|
export { default as PriceLists } from './resources/price_lists';
|
77
80
|
export { default as PriceTiers } from './resources/price_tiers';
|
78
81
|
export { default as PriceVolumeTiers } from './resources/price_volume_tiers';
|
79
82
|
export { default as Prices } from './resources/prices';
|
80
83
|
export { default as PromotionRules } from './resources/promotion_rules';
|
81
84
|
export { default as Promotions } from './resources/promotions';
|
85
|
+
export { default as RecurringOrderCopies } from './resources/recurring_order_copies';
|
82
86
|
export { default as Refunds } from './resources/refunds';
|
83
87
|
export { default as ReturnLineItems } from './resources/return_line_items';
|
84
88
|
export { default as Returns } from './resources/returns';
|
89
|
+
export { default as SatispayGateways } from './resources/satispay_gateways';
|
90
|
+
export { default as SatispayPayments } from './resources/satispay_payments';
|
85
91
|
export { default as Shipments } from './resources/shipments';
|
86
92
|
export { default as ShippingCategories } from './resources/shipping_categories';
|
87
93
|
export { default as ShippingMethodTiers } from './resources/shipping_method_tiers';
|
@@ -99,6 +105,7 @@ export { default as StockLocations } from './resources/stock_locations';
|
|
99
105
|
export { default as StockTransfers } from './resources/stock_transfers';
|
100
106
|
export { default as StripeGateways } from './resources/stripe_gateways';
|
101
107
|
export { default as StripePayments } from './resources/stripe_payments';
|
108
|
+
export { default as SubscriptionModels } from './resources/subscription_models';
|
102
109
|
export { default as TaxCalculators } from './resources/tax_calculators';
|
103
110
|
export { default as TaxCategories } from './resources/tax_categories';
|
104
111
|
export { default as TaxRules } from './resources/tax_rules';
|
@@ -107,5 +114,5 @@ export { default as Transactions } from './resources/transactions';
|
|
107
114
|
export { default as Voids } from './resources/voids';
|
108
115
|
export { default as Webhooks } from './resources/webhooks';
|
109
116
|
export { default as WireTransfers } from './resources/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"];
|
117
|
+
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_factories' | 'order_subscription_items' | 'order_subscriptions' | 'order_validation_rules' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | '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' | '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_transfers' | 'stripe_gateways' | 'stripe_payments' | 'subscription_models' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
|
118
|
+
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_factories", "order_subscription_items", "order_subscriptions", "order_validation_rules", "orders", "organization", "packages", "parcel_line_items", "parcels", "payment_gateways", "payment_methods", "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", "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_transfers", "stripe_gateways", "stripe_payments", "subscription_models", "tax_calculators", "tax_categories", "tax_rules", "taxjar_accounts", "transactions", "voids", "webhooks", "wire_transfers"];
|
package/lib/esm/api.js
CHANGED
@@ -63,6 +63,8 @@ export { default as Markets } from './resources/markets';
|
|
63
63
|
export { default as Merchants } from './resources/merchants';
|
64
64
|
export { default as OrderAmountPromotionRules } from './resources/order_amount_promotion_rules';
|
65
65
|
export { default as OrderCopies } from './resources/order_copies';
|
66
|
+
export { default as OrderFactories } from './resources/order_factories';
|
67
|
+
export { default as OrderSubscriptionItems } from './resources/order_subscription_items';
|
66
68
|
export { default as OrderSubscriptions } from './resources/order_subscriptions';
|
67
69
|
export { default as OrderValidationRules } from './resources/order_validation_rules';
|
68
70
|
export { default as Orders } from './resources/orders';
|
@@ -75,15 +77,19 @@ export { default as PaymentMethods } from './resources/payment_methods';
|
|
75
77
|
export { default as PaypalGateways } from './resources/paypal_gateways';
|
76
78
|
export { default as PaypalPayments } from './resources/paypal_payments';
|
77
79
|
export { default as PercentageDiscountPromotions } from './resources/percentage_discount_promotions';
|
80
|
+
export { default as PriceFrequencyTiers } from './resources/price_frequency_tiers';
|
78
81
|
export { default as PriceLists } from './resources/price_lists';
|
79
82
|
export { default as PriceTiers } from './resources/price_tiers';
|
80
83
|
export { default as PriceVolumeTiers } from './resources/price_volume_tiers';
|
81
84
|
export { default as Prices } from './resources/prices';
|
82
85
|
export { default as PromotionRules } from './resources/promotion_rules';
|
83
86
|
export { default as Promotions } from './resources/promotions';
|
87
|
+
export { default as RecurringOrderCopies } from './resources/recurring_order_copies';
|
84
88
|
export { default as Refunds } from './resources/refunds';
|
85
89
|
export { default as ReturnLineItems } from './resources/return_line_items';
|
86
90
|
export { default as Returns } from './resources/returns';
|
91
|
+
export { default as SatispayGateways } from './resources/satispay_gateways';
|
92
|
+
export { default as SatispayPayments } from './resources/satispay_payments';
|
87
93
|
export { default as Shipments } from './resources/shipments';
|
88
94
|
export { default as ShippingCategories } from './resources/shipping_categories';
|
89
95
|
export { default as ShippingMethodTiers } from './resources/shipping_method_tiers';
|
@@ -101,6 +107,7 @@ export { default as StockLocations } from './resources/stock_locations';
|
|
101
107
|
export { default as StockTransfers } from './resources/stock_transfers';
|
102
108
|
export { default as StripeGateways } from './resources/stripe_gateways';
|
103
109
|
export { default as StripePayments } from './resources/stripe_payments';
|
110
|
+
export { default as SubscriptionModels } from './resources/subscription_models';
|
104
111
|
export { default as TaxCalculators } from './resources/tax_calculators';
|
105
112
|
export { default as TaxCategories } from './resources/tax_categories';
|
106
113
|
export { default as TaxRules } from './resources/tax_rules';
|
@@ -172,6 +179,8 @@ export const resourceList = [
|
|
172
179
|
'merchants',
|
173
180
|
'order_amount_promotion_rules',
|
174
181
|
'order_copies',
|
182
|
+
'order_factories',
|
183
|
+
'order_subscription_items',
|
175
184
|
'order_subscriptions',
|
176
185
|
'order_validation_rules',
|
177
186
|
'orders',
|
@@ -184,15 +193,19 @@ export const resourceList = [
|
|
184
193
|
'paypal_gateways',
|
185
194
|
'paypal_payments',
|
186
195
|
'percentage_discount_promotions',
|
196
|
+
'price_frequency_tiers',
|
187
197
|
'price_lists',
|
188
198
|
'price_tiers',
|
189
199
|
'price_volume_tiers',
|
190
200
|
'prices',
|
191
201
|
'promotion_rules',
|
192
202
|
'promotions',
|
203
|
+
'recurring_order_copies',
|
193
204
|
'refunds',
|
194
205
|
'return_line_items',
|
195
206
|
'returns',
|
207
|
+
'satispay_gateways',
|
208
|
+
'satispay_payments',
|
196
209
|
'shipments',
|
197
210
|
'shipping_categories',
|
198
211
|
'shipping_method_tiers',
|
@@ -210,6 +223,7 @@ export const resourceList = [
|
|
210
223
|
'stock_transfers',
|
211
224
|
'stripe_gateways',
|
212
225
|
'stripe_payments',
|
226
|
+
'subscription_models',
|
213
227
|
'tax_calculators',
|
214
228
|
'tax_categories',
|
215
229
|
'tax_rules',
|