@commercelayer/sdk 2.1.0 → 2.2.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/api.d.ts +6 -3
- package/lib/commercelayer.d.ts +3 -0
- package/lib/index.d.ts +1 -1
- package/lib/interceptor.d.ts +2 -1
- package/lib/model.d.ts +4 -1
- package/lib/resources/addresses.d.ts +2 -1
- package/lib/resources/adjustments.d.ts +2 -1
- package/lib/resources/adyen_gateways.d.ts +2 -1
- package/lib/resources/adyen_payments.d.ts +2 -1
- package/lib/resources/application.d.ts +2 -1
- package/lib/resources/attachments.d.ts +2 -1
- package/lib/resources/authorizations.d.ts +2 -1
- package/lib/resources/avalara_accounts.d.ts +2 -1
- package/lib/resources/billing_info_validation_rules.d.ts +2 -1
- package/lib/resources/bing_geocoders.d.ts +2 -1
- package/lib/resources/braintree_gateways.d.ts +2 -1
- package/lib/resources/braintree_payments.d.ts +2 -1
- package/lib/resources/bundles.d.ts +2 -1
- package/lib/resources/captures.d.ts +2 -1
- package/lib/resources/carrier_accounts.d.ts +2 -1
- package/lib/resources/checkout_com_gateways.d.ts +2 -1
- package/lib/resources/checkout_com_payments.d.ts +2 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +13 -4
- package/lib/resources/coupon_recipients.d.ts +46 -0
- package/lib/resources/coupons.d.ts +5 -1
- package/lib/resources/customer_addresses.d.ts +2 -1
- package/lib/resources/customer_groups.d.ts +2 -1
- package/lib/resources/customer_password_resets.d.ts +2 -1
- package/lib/resources/customer_payment_sources.d.ts +2 -1
- package/lib/resources/customer_subscriptions.d.ts +2 -1
- package/lib/resources/customers.d.ts +2 -1
- package/lib/resources/delivery_lead_times.d.ts +2 -1
- package/lib/resources/event_callbacks.d.ts +4 -2
- package/lib/resources/external_gateways.d.ts +2 -1
- package/lib/resources/external_payments.d.ts +2 -1
- package/lib/resources/external_promotions.d.ts +2 -1
- package/lib/resources/external_tax_calculators.d.ts +2 -1
- package/lib/resources/fixed_amount_promotions.d.ts +2 -1
- package/lib/resources/fixed_price_promotions.d.ts +93 -0
- package/lib/resources/free_gift_promotions.d.ts +91 -0
- package/lib/resources/free_shipping_promotions.d.ts +2 -1
- package/lib/resources/geocoders.d.ts +2 -1
- package/lib/resources/gift_card_recipients.d.ts +2 -1
- package/lib/resources/gift_cards.d.ts +2 -1
- package/lib/resources/google_geocoders.d.ts +2 -1
- package/lib/resources/imports.d.ts +2 -1
- package/lib/resources/in_stock_subscriptions.d.ts +2 -1
- package/lib/resources/inventory_models.d.ts +2 -1
- package/lib/resources/inventory_return_locations.d.ts +2 -1
- package/lib/resources/inventory_stock_locations.d.ts +2 -1
- package/lib/resources/line_item_options.d.ts +2 -1
- package/lib/resources/line_items.d.ts +2 -1
- package/lib/resources/manual_gateways.d.ts +2 -1
- package/lib/resources/manual_tax_calculators.d.ts +2 -1
- package/lib/resources/markets.d.ts +2 -1
- package/lib/resources/merchants.d.ts +2 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +13 -4
- package/lib/resources/order_copies.d.ts +2 -1
- package/lib/resources/order_subscriptions.d.ts +2 -1
- package/lib/resources/order_validation_rules.d.ts +2 -1
- package/lib/resources/orders.d.ts +2 -1
- package/lib/resources/organization.d.ts +2 -1
- package/lib/resources/packages.d.ts +2 -1
- package/lib/resources/parcel_line_items.d.ts +2 -1
- package/lib/resources/parcels.d.ts +2 -1
- package/lib/resources/payment_gateways.d.ts +2 -1
- package/lib/resources/payment_methods.d.ts +2 -1
- package/lib/resources/paypal_gateways.d.ts +2 -1
- package/lib/resources/paypal_payments.d.ts +2 -1
- package/lib/resources/percentage_discount_promotions.d.ts +2 -1
- package/lib/resources/price_lists.d.ts +2 -1
- package/lib/resources/prices.d.ts +2 -1
- package/lib/resources/promotion_rules.d.ts +5 -2
- package/lib/resources/promotions.d.ts +2 -1
- package/lib/resources/refunds.d.ts +2 -1
- package/lib/resources/return_line_items.d.ts +2 -1
- package/lib/resources/returns.d.ts +2 -1
- package/lib/resources/shipments.d.ts +2 -1
- package/lib/resources/shipping_categories.d.ts +2 -1
- package/lib/resources/shipping_methods.d.ts +2 -1
- package/lib/resources/shipping_zones.d.ts +2 -1
- package/lib/resources/sku_list_items.d.ts +2 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +16 -4
- package/lib/resources/sku_lists.d.ts +2 -1
- package/lib/resources/sku_options.d.ts +2 -1
- package/lib/resources/skus.d.ts +2 -1
- package/lib/resources/stock_items.d.ts +2 -1
- package/lib/resources/stock_line_items.d.ts +2 -1
- package/lib/resources/stock_locations.d.ts +2 -1
- package/lib/resources/stock_transfers.d.ts +2 -1
- package/lib/resources/stripe_gateways.d.ts +2 -1
- package/lib/resources/stripe_payments.d.ts +2 -1
- package/lib/resources/tax_calculators.d.ts +2 -1
- package/lib/resources/tax_categories.d.ts +2 -1
- package/lib/resources/tax_rules.d.ts +2 -1
- package/lib/resources/taxjar_accounts.d.ts +2 -1
- package/lib/resources/transactions.d.ts +2 -1
- package/lib/resources/voids.d.ts +2 -1
- package/lib/resources/webhooks.d.ts +3 -2
- package/lib/resources/wire_transfers.d.ts +2 -1
- package/lib/sdk.cjs.development.js +1007 -82
- package/lib/sdk.cjs.development.js.map +1 -1
- package/lib/sdk.cjs.production.min.js +1 -1
- package/lib/sdk.cjs.production.min.js.map +1 -1
- package/lib/sdk.esm.js +1007 -82
- package/lib/sdk.esm.js.map +1 -1
- package/package.json +3 -2
package/lib/api.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
export { default as Addresses } from './resources/addresses';
|
6
6
|
export { default as Adjustments } from './resources/adjustments';
|
@@ -20,6 +20,7 @@ export { default as CarrierAccounts } from './resources/carrier_accounts';
|
|
20
20
|
export { default as CheckoutComGateways } from './resources/checkout_com_gateways';
|
21
21
|
export { default as CheckoutComPayments } from './resources/checkout_com_payments';
|
22
22
|
export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules';
|
23
|
+
export { default as CouponRecipients } from './resources/coupon_recipients';
|
23
24
|
export { default as Coupons } from './resources/coupons';
|
24
25
|
export { default as CustomerAddresses } from './resources/customer_addresses';
|
25
26
|
export { default as CustomerGroups } from './resources/customer_groups';
|
@@ -34,6 +35,8 @@ export { default as ExternalPayments } from './resources/external_payments';
|
|
34
35
|
export { default as ExternalPromotions } from './resources/external_promotions';
|
35
36
|
export { default as ExternalTaxCalculators } from './resources/external_tax_calculators';
|
36
37
|
export { default as FixedAmountPromotions } from './resources/fixed_amount_promotions';
|
38
|
+
export { default as FixedPricePromotions } from './resources/fixed_price_promotions';
|
39
|
+
export { default as FreeGiftPromotions } from './resources/free_gift_promotions';
|
37
40
|
export { default as FreeShippingPromotions } from './resources/free_shipping_promotions';
|
38
41
|
export { default as Geocoders } from './resources/geocoders';
|
39
42
|
export { default as GiftCardRecipients } from './resources/gift_card_recipients';
|
@@ -94,5 +97,5 @@ export { default as Transactions } from './resources/transactions';
|
|
94
97
|
export { default as Voids } from './resources/voids';
|
95
98
|
export { default as Webhooks } from './resources/webhooks';
|
96
99
|
export { default as WireTransfers } from './resources/wire_transfers';
|
97
|
-
export declare 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' | 'coupon_codes_promotion_rules' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'event_callbacks' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | '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' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | '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';
|
98
|
-
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", "coupon_codes_promotion_rules", "coupons", "customer_addresses", "customer_groups", "customer_password_resets", "customer_payment_sources", "customer_subscriptions", "customers", "delivery_lead_times", "event_callbacks", "external_gateways", "external_payments", "external_promotions", "external_tax_calculators", "fixed_amount_promotions", "free_shipping_promotions", "geocoders", "gift_card_recipients", "gift_cards", "google_geocoders", "imports", "in_stock_subscriptions", "inventory_models", "inventory_return_locations", "inventory_stock_locations", "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", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_methods", "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"];
|
100
|
+
export declare 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' | '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' | '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' | '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' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | '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';
|
101
|
+
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", "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", "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", "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", "prices", "promotion_rules", "promotions", "refunds", "return_line_items", "returns", "shipments", "shipping_categories", "shipping_methods", "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/commercelayer.d.ts
CHANGED
@@ -25,6 +25,7 @@ declare class CommerceLayerClient {
|
|
25
25
|
checkout_com_gateways: api.CheckoutComGateways;
|
26
26
|
checkout_com_payments: api.CheckoutComPayments;
|
27
27
|
coupon_codes_promotion_rules: api.CouponCodesPromotionRules;
|
28
|
+
coupon_recipients: api.CouponRecipients;
|
28
29
|
coupons: api.Coupons;
|
29
30
|
customer_addresses: api.CustomerAddresses;
|
30
31
|
customer_groups: api.CustomerGroups;
|
@@ -39,6 +40,8 @@ declare class CommerceLayerClient {
|
|
39
40
|
external_promotions: api.ExternalPromotions;
|
40
41
|
external_tax_calculators: api.ExternalTaxCalculators;
|
41
42
|
fixed_amount_promotions: api.FixedAmountPromotions;
|
43
|
+
fixed_price_promotions: api.FixedPricePromotions;
|
44
|
+
free_gift_promotions: api.FreeGiftPromotions;
|
42
45
|
free_shipping_promotions: api.FreeShippingPromotions;
|
43
46
|
geocoders: api.Geocoders;
|
44
47
|
gift_card_recipients: api.GiftCardRecipients;
|
package/lib/index.d.ts
CHANGED
@@ -3,4 +3,4 @@ export type { CommerceLayerClient } from './commercelayer';
|
|
3
3
|
export { CommerceLayerStatic } from './static';
|
4
4
|
export type { QueryParamsRetrieve, QueryParamsList } from './query';
|
5
5
|
export * from './model';
|
6
|
-
export
|
6
|
+
export * from './interceptor';
|
package/lib/interceptor.d.ts
CHANGED
@@ -11,8 +11,9 @@ declare type ErrorObj = AxiosError;
|
|
11
11
|
declare type ErrorInterceptor = (error: ErrorObj) => ErrorObj;
|
12
12
|
declare type InterceptorType = 'request' | 'response';
|
13
13
|
export type { InterceptorManager, RequestInterceptor, ResponseInterceptor, ErrorInterceptor, InterceptorType };
|
14
|
+
export type { RequestObj, ResponseObj, ErrorObj };
|
14
15
|
declare type RawResponseReader = {
|
15
16
|
id: number | undefined;
|
16
17
|
rawResponse: ResponseObj | undefined;
|
17
18
|
};
|
18
|
-
export type { RawResponseReader
|
19
|
+
export type { RawResponseReader };
|
package/lib/model.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
export type { Address, AddressCreate, AddressUpdate } from './resources/addresses';
|
6
6
|
export type { Adjustment, AdjustmentCreate, AdjustmentUpdate } from './resources/adjustments';
|
@@ -20,6 +20,7 @@ export type { CarrierAccount } from './resources/carrier_accounts';
|
|
20
20
|
export type { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate } from './resources/checkout_com_gateways';
|
21
21
|
export type { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate } from './resources/checkout_com_payments';
|
22
22
|
export type { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate } from './resources/coupon_codes_promotion_rules';
|
23
|
+
export type { CouponRecipient, CouponRecipientCreate, CouponRecipientUpdate } from './resources/coupon_recipients';
|
23
24
|
export type { Coupon, CouponCreate, CouponUpdate } from './resources/coupons';
|
24
25
|
export type { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate } from './resources/customer_addresses';
|
25
26
|
export type { CustomerGroup, CustomerGroupCreate, CustomerGroupUpdate } from './resources/customer_groups';
|
@@ -34,6 +35,8 @@ export type { ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate } fr
|
|
34
35
|
export type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotionUpdate } from './resources/external_promotions';
|
35
36
|
export type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculatorUpdate } from './resources/external_tax_calculators';
|
36
37
|
export type { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate } from './resources/fixed_amount_promotions';
|
38
|
+
export type { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotionUpdate } from './resources/fixed_price_promotions';
|
39
|
+
export type { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate } from './resources/free_gift_promotions';
|
37
40
|
export type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate } from './resources/free_shipping_promotions';
|
38
41
|
export type { Geocoder } from './resources/geocoders';
|
39
42
|
export type { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipientUpdate } from './resources/gift_card_recipients';
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -85,6 +85,7 @@ declare class Addresses extends ApiResource {
|
|
85
85
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
86
86
|
isAddress(resource: any): resource is Address;
|
87
87
|
relationship(id: string | ResourceId): AddressRel;
|
88
|
+
type(): string;
|
88
89
|
}
|
89
90
|
export default Addresses;
|
90
91
|
export { Address, AddressCreate, AddressUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -33,6 +33,7 @@ declare class Adjustments extends ApiResource {
|
|
33
33
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
34
34
|
isAdjustment(resource: any): resource is Adjustment;
|
35
35
|
relationship(id: string | ResourceId): AdjustmentRel;
|
36
|
+
type(): string;
|
36
37
|
}
|
37
38
|
export default Adjustments;
|
38
39
|
export { Adjustment, AdjustmentCreate, AdjustmentUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -43,6 +43,7 @@ declare class AdyenGateways extends ApiResource {
|
|
43
43
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
44
|
isAdyenGateway(resource: any): resource is AdyenGateway;
|
45
45
|
relationship(id: string | ResourceId): AdyenGatewayRel;
|
46
|
+
type(): string;
|
46
47
|
}
|
47
48
|
export default AdyenGateways;
|
48
49
|
export { AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -41,6 +41,7 @@ declare class AdyenPayments extends ApiResource {
|
|
41
41
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
42
|
isAdyenPayment(resource: any): resource is AdyenPayment;
|
43
43
|
relationship(id: string | ResourceId): AdyenPaymentRel;
|
44
|
+
type(): string;
|
44
45
|
}
|
45
46
|
export default AdyenPayments;
|
46
47
|
export { AdyenPayment, AdyenPaymentCreate, AdyenPaymentUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsRetrieve } from '../query';
|
@@ -19,6 +19,7 @@ declare class Applications extends ApiResource {
|
|
19
19
|
retrieve(params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<Application>;
|
20
20
|
isApplication(resource: any): resource is Application;
|
21
21
|
relationship(id: string | ResourceId): ApplicationRel;
|
22
|
+
type(): string;
|
22
23
|
}
|
23
24
|
export default Applications;
|
24
25
|
export { Application };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -154,6 +154,7 @@ declare class Attachments extends ApiResource {
|
|
154
154
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
155
155
|
isAttachment(resource: any): resource is Attachment;
|
156
156
|
relationship(id: string | ResourceId): AttachmentRel;
|
157
|
+
type(): string;
|
157
158
|
}
|
158
159
|
export default Attachments;
|
159
160
|
export { Attachment, AttachmentCreate, AttachmentUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -52,6 +52,7 @@ declare class Authorizations extends ApiResource {
|
|
52
52
|
update(resource: AuthorizationUpdate, options?: ResourcesConfig): Promise<Authorization>;
|
53
53
|
isAuthorization(resource: any): resource is Authorization;
|
54
54
|
relationship(id: string | ResourceId): AuthorizationRel;
|
55
|
+
type(): string;
|
55
56
|
}
|
56
57
|
export default Authorizations;
|
57
58
|
export { Authorization, AuthorizationUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -47,6 +47,7 @@ declare class AvalaraAccounts extends ApiResource {
|
|
47
47
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
48
48
|
isAvalaraAccount(resource: any): resource is AvalaraAccount;
|
49
49
|
relationship(id: string | ResourceId): AvalaraAccountRel;
|
50
|
+
type(): string;
|
50
51
|
}
|
51
52
|
export default AvalaraAccounts;
|
52
53
|
export { AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -29,6 +29,7 @@ declare class BillingInfoValidationRules extends ApiResource {
|
|
29
29
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
30
30
|
isBillingInfoValidationRule(resource: any): resource is BillingInfoValidationRule;
|
31
31
|
relationship(id: string | ResourceId): BillingInfoValidationRuleRel;
|
32
|
+
type(): string;
|
32
33
|
}
|
33
34
|
export default BillingInfoValidationRules;
|
34
35
|
export { BillingInfoValidationRule, BillingInfoValidationRuleCreate, BillingInfoValidationRuleUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -31,6 +31,7 @@ declare class BingGeocoders extends ApiResource {
|
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isBingGeocoder(resource: any): resource is BingGeocoder;
|
33
33
|
relationship(id: string | ResourceId): BingGeocoderRel;
|
34
|
+
type(): string;
|
34
35
|
}
|
35
36
|
export default BingGeocoders;
|
36
37
|
export { BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -52,6 +52,7 @@ declare class BraintreeGateways extends ApiResource {
|
|
52
52
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
53
53
|
isBraintreeGateway(resource: any): resource is BraintreeGateway;
|
54
54
|
relationship(id: string | ResourceId): BraintreeGatewayRel;
|
55
|
+
type(): string;
|
55
56
|
}
|
56
57
|
export default BraintreeGateways;
|
57
58
|
export { BraintreeGateway, BraintreeGatewayCreate, BraintreeGatewayUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -43,6 +43,7 @@ declare class BraintreePayments extends ApiResource {
|
|
43
43
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
44
44
|
isBraintreePayment(resource: any): resource is BraintreePayment;
|
45
45
|
relationship(id: string | ResourceId): BraintreePaymentRel;
|
46
|
+
type(): string;
|
46
47
|
}
|
47
48
|
export default BraintreePayments;
|
48
49
|
export { BraintreePayment, BraintreePaymentCreate, BraintreePaymentUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -63,6 +63,7 @@ declare class Bundles extends ApiResource {
|
|
63
63
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
64
64
|
isBundle(resource: any): resource is Bundle;
|
65
65
|
relationship(id: string | ResourceId): BundleRel;
|
66
|
+
type(): string;
|
66
67
|
}
|
67
68
|
export default Bundles;
|
68
69
|
export { Bundle, BundleCreate, BundleUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -43,6 +43,7 @@ declare class Captures extends ApiResource {
|
|
43
43
|
update(resource: CaptureUpdate, options?: ResourcesConfig): Promise<Capture>;
|
44
44
|
isCapture(resource: any): resource is Capture;
|
45
45
|
relationship(id: string | ResourceId): CaptureRel;
|
46
|
+
type(): string;
|
46
47
|
}
|
47
48
|
export default Captures;
|
48
49
|
export { Capture, CaptureUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -22,6 +22,7 @@ declare class CarrierAccounts extends ApiResource {
|
|
22
22
|
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CarrierAccount>;
|
23
23
|
isCarrierAccount(resource: any): resource is CarrierAccount;
|
24
24
|
relationship(id: string | ResourceId): CarrierAccountRel;
|
25
|
+
type(): string;
|
25
26
|
}
|
26
27
|
export default CarrierAccounts;
|
27
28
|
export { CarrierAccount };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -41,6 +41,7 @@ declare class CheckoutComGateways extends ApiResource {
|
|
41
41
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
42
42
|
isCheckoutComGateway(resource: any): resource is CheckoutComGateway;
|
43
43
|
relationship(id: string | ResourceId): CheckoutComGatewayRel;
|
44
|
+
type(): string;
|
44
45
|
}
|
45
46
|
export default CheckoutComGateways;
|
46
47
|
export { CheckoutComGateway, CheckoutComGatewayCreate, CheckoutComGatewayUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -47,6 +47,7 @@ declare class CheckoutComPayments extends ApiResource {
|
|
47
47
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
48
48
|
isCheckoutComPayment(resource: any): resource is CheckoutComPayment;
|
49
49
|
relationship(id: string | ResourceId): CheckoutComPaymentRel;
|
50
|
+
type(): string;
|
50
51
|
}
|
51
52
|
export default CheckoutComPayments;
|
52
53
|
export { CheckoutComPayment, CheckoutComPaymentCreate, CheckoutComPaymentUpdate };
|
@@ -1,12 +1,14 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
7
|
import { PercentageDiscountPromotion } from './percentage_discount_promotions';
|
8
8
|
import { FreeShippingPromotion } from './free_shipping_promotions';
|
9
9
|
import { FixedAmountPromotion } from './fixed_amount_promotions';
|
10
|
+
import { FreeGiftPromotion } from './free_gift_promotions';
|
11
|
+
import { FixedPricePromotion } from './fixed_price_promotions';
|
10
12
|
import { ExternalPromotion } from './external_promotions';
|
11
13
|
import { Coupon } from './coupons';
|
12
14
|
declare type CouponCodesPromotionRuleRel = ResourceId & {
|
@@ -21,6 +23,12 @@ declare type FreeShippingPromotionRel = ResourceId & {
|
|
21
23
|
declare type FixedAmountPromotionRel = ResourceId & {
|
22
24
|
type: 'fixed_amount_promotions';
|
23
25
|
};
|
26
|
+
declare type FreeGiftPromotionRel = ResourceId & {
|
27
|
+
type: 'free_gift_promotions';
|
28
|
+
};
|
29
|
+
declare type FixedPricePromotionRel = ResourceId & {
|
30
|
+
type: 'fixed_price_promotions';
|
31
|
+
};
|
24
32
|
declare type ExternalPromotionRel = ResourceId & {
|
25
33
|
type: 'external_promotions';
|
26
34
|
};
|
@@ -28,15 +36,15 @@ declare type CouponRel = ResourceId & {
|
|
28
36
|
type: 'coupons';
|
29
37
|
};
|
30
38
|
interface CouponCodesPromotionRule extends Resource {
|
31
|
-
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion;
|
39
|
+
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion;
|
32
40
|
coupons?: Coupon[];
|
33
41
|
}
|
34
42
|
interface CouponCodesPromotionRuleCreate extends ResourceCreate {
|
35
|
-
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel;
|
43
|
+
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
36
44
|
coupons?: CouponRel[];
|
37
45
|
}
|
38
46
|
interface CouponCodesPromotionRuleUpdate extends ResourceUpdate {
|
39
|
-
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel;
|
47
|
+
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel;
|
40
48
|
coupons?: CouponRel[];
|
41
49
|
}
|
42
50
|
declare class CouponCodesPromotionRules extends ApiResource {
|
@@ -48,6 +56,7 @@ declare class CouponCodesPromotionRules extends ApiResource {
|
|
48
56
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
49
57
|
isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule;
|
50
58
|
relationship(id: string | ResourceId): CouponCodesPromotionRuleRel;
|
59
|
+
type(): string;
|
51
60
|
}
|
52
61
|
export default CouponCodesPromotionRules;
|
53
62
|
export { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate };
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/**
|
2
|
+
* ©2021 Commerce Layer Inc.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
|
+
**/
|
5
|
+
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
|
+
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
7
|
+
import { Customer } from './customers';
|
8
|
+
import { Attachment } from './attachments';
|
9
|
+
declare type CouponRecipientRel = ResourceId & {
|
10
|
+
type: typeof CouponRecipients.TYPE;
|
11
|
+
};
|
12
|
+
declare type CustomerRel = ResourceId & {
|
13
|
+
type: 'customers';
|
14
|
+
};
|
15
|
+
interface CouponRecipient extends Resource {
|
16
|
+
email?: string;
|
17
|
+
first_name?: string;
|
18
|
+
last_name?: string;
|
19
|
+
customer?: Customer;
|
20
|
+
attachments?: Attachment[];
|
21
|
+
}
|
22
|
+
interface CouponRecipientCreate extends ResourceCreate {
|
23
|
+
email: string;
|
24
|
+
first_name?: string;
|
25
|
+
last_name?: string;
|
26
|
+
customer?: CustomerRel;
|
27
|
+
}
|
28
|
+
interface CouponRecipientUpdate extends ResourceUpdate {
|
29
|
+
email?: string;
|
30
|
+
first_name?: string;
|
31
|
+
last_name?: string;
|
32
|
+
customer?: CustomerRel;
|
33
|
+
}
|
34
|
+
declare class CouponRecipients extends ApiResource {
|
35
|
+
static readonly TYPE: 'coupon_recipients';
|
36
|
+
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<CouponRecipient>>;
|
37
|
+
create(resource: CouponRecipientCreate, options?: ResourcesConfig): Promise<CouponRecipient>;
|
38
|
+
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CouponRecipient>;
|
39
|
+
update(resource: CouponRecipientUpdate, options?: ResourcesConfig): Promise<CouponRecipient>;
|
40
|
+
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
41
|
+
isCouponRecipient(resource: any): resource is CouponRecipient;
|
42
|
+
relationship(id: string | ResourceId): CouponRecipientRel;
|
43
|
+
type(): string;
|
44
|
+
}
|
45
|
+
export default CouponRecipients;
|
46
|
+
export { CouponRecipient, CouponRecipientCreate, CouponRecipientUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -15,16 +15,19 @@ interface Coupon extends Resource {
|
|
15
15
|
code?: string;
|
16
16
|
usage_limit?: number;
|
17
17
|
usage_count?: number;
|
18
|
+
recipient_email?: string;
|
18
19
|
promotion_rule?: CouponCodesPromotionRule;
|
19
20
|
}
|
20
21
|
interface CouponCreate extends ResourceCreate {
|
21
22
|
code: string;
|
22
23
|
usage_limit: number;
|
24
|
+
recipient_email?: string;
|
23
25
|
promotion_rule?: CouponCodesPromotionRuleRel;
|
24
26
|
}
|
25
27
|
interface CouponUpdate extends ResourceUpdate {
|
26
28
|
code?: string;
|
27
29
|
usage_limit?: number;
|
30
|
+
recipient_email?: string;
|
28
31
|
promotion_rule?: CouponCodesPromotionRuleRel;
|
29
32
|
}
|
30
33
|
declare class Coupons extends ApiResource {
|
@@ -36,6 +39,7 @@ declare class Coupons extends ApiResource {
|
|
36
39
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
37
40
|
isCoupon(resource: any): resource is Coupon;
|
38
41
|
relationship(id: string | ResourceId): CouponRel;
|
42
|
+
type(): string;
|
39
43
|
}
|
40
44
|
export default Coupons;
|
41
45
|
export { Coupon, CouponCreate, CouponUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -37,6 +37,7 @@ declare class CustomerAddresses extends ApiResource {
|
|
37
37
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
38
38
|
isCustomerAddress(resource: any): resource is CustomerAddress;
|
39
39
|
relationship(id: string | ResourceId): CustomerAddressRel;
|
40
|
+
type(): string;
|
40
41
|
}
|
41
42
|
export default CustomerAddresses;
|
42
43
|
export { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -31,6 +31,7 @@ declare class CustomerGroups extends ApiResource {
|
|
31
31
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
32
32
|
isCustomerGroup(resource: any): resource is CustomerGroup;
|
33
33
|
relationship(id: string | ResourceId): CustomerGroupRel;
|
34
|
+
type(): string;
|
34
35
|
}
|
35
36
|
export default CustomerGroups;
|
36
37
|
export { CustomerGroup, CustomerGroupCreate, CustomerGroupUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -30,6 +30,7 @@ declare class CustomerPasswordResets extends ApiResource {
|
|
30
30
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
31
31
|
isCustomerPasswordReset(resource: any): resource is CustomerPasswordReset;
|
32
32
|
relationship(id: string | ResourceId): CustomerPasswordResetRel;
|
33
|
+
type(): string;
|
33
34
|
}
|
34
35
|
export default CustomerPasswordResets;
|
35
36
|
export { CustomerPasswordReset, CustomerPasswordResetCreate, CustomerPasswordResetUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -63,6 +63,7 @@ declare class CustomerPaymentSources extends ApiResource {
|
|
63
63
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
64
64
|
isCustomerPaymentSource(resource: any): resource is CustomerPaymentSource;
|
65
65
|
relationship(id: string | ResourceId): CustomerPaymentSourceRel;
|
66
|
+
type(): string;
|
66
67
|
}
|
67
68
|
export default CustomerPaymentSources;
|
68
69
|
export { CustomerPaymentSource, CustomerPaymentSourceCreate, CustomerPaymentSourceUpdate };
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* ©2021 Commerce Layer Inc.
|
3
|
-
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.
|
3
|
+
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3
|
4
4
|
**/
|
5
5
|
import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';
|
6
6
|
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query';
|
@@ -25,6 +25,7 @@ declare class CustomerSubscriptions extends ApiResource {
|
|
25
25
|
delete(id: string, options?: ResourcesConfig): Promise<void>;
|
26
26
|
isCustomerSubscription(resource: any): resource is CustomerSubscription;
|
27
27
|
relationship(id: string | ResourceId): CustomerSubscriptionRel;
|
28
|
+
type(): string;
|
28
29
|
}
|
29
30
|
export default CustomerSubscriptions;
|
30
31
|
export { CustomerSubscription, CustomerSubscriptionCreate, CustomerSubscriptionUpdate };
|