@commercelayer/sdk
Advanced tools
Comparing version 2.1.3 to 2.2.0
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -23,2 +23,3 @@ export { default as Addresses } from './resources/addresses'; | ||
export { default as CouponCodesPromotionRules } from './resources/coupon_codes_promotion_rules'; | ||
export { default as CouponRecipients } from './resources/coupon_recipients'; | ||
export { default as Coupons } from './resources/coupons'; | ||
@@ -38,2 +39,4 @@ export { default as CustomerAddresses } from './resources/customer_addresses'; | ||
export { default as FixedAmountPromotions } from './resources/fixed_amount_promotions'; | ||
export { default as FixedPricePromotions } from './resources/fixed_price_promotions'; | ||
export { default as FreeGiftPromotions } from './resources/free_gift_promotions'; | ||
export { default as FreeShippingPromotions } from './resources/free_shipping_promotions'; | ||
@@ -99,3 +102,3 @@ export { default as Geocoders } from './resources/geocoders'; | ||
export { default as WireTransfers } from './resources/wire_transfers'; | ||
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'; | ||
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"]; | ||
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'; | ||
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"]; |
@@ -28,2 +28,3 @@ import * as api from './api'; | ||
coupon_codes_promotion_rules: api.CouponCodesPromotionRules; | ||
coupon_recipients: api.CouponRecipients; | ||
coupons: api.Coupons; | ||
@@ -43,2 +44,4 @@ customer_addresses: api.CustomerAddresses; | ||
fixed_amount_promotions: api.FixedAmountPromotions; | ||
fixed_price_promotions: api.FixedPricePromotions; | ||
free_gift_promotions: api.FreeGiftPromotions; | ||
free_shipping_promotions: api.FreeShippingPromotions; | ||
@@ -45,0 +48,0 @@ geocoders: api.Geocoders; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -23,2 +23,3 @@ export type { Address, AddressCreate, AddressUpdate } from './resources/addresses'; | ||
export type { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRuleUpdate } from './resources/coupon_codes_promotion_rules'; | ||
export type { CouponRecipient, CouponRecipientCreate, CouponRecipientUpdate } from './resources/coupon_recipients'; | ||
export type { Coupon, CouponCreate, CouponUpdate } from './resources/coupons'; | ||
@@ -38,2 +39,4 @@ export type { CustomerAddress, CustomerAddressCreate, CustomerAddressUpdate } from './resources/customer_addresses'; | ||
export type { FixedAmountPromotion, FixedAmountPromotionCreate, FixedAmountPromotionUpdate } from './resources/fixed_amount_promotions'; | ||
export type { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotionUpdate } from './resources/fixed_price_promotions'; | ||
export type { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotionUpdate } from './resources/free_gift_promotions'; | ||
export type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotionUpdate } from './resources/free_shipping_promotions'; | ||
@@ -40,0 +43,0 @@ export type { Geocoder } from './resources/geocoders'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -10,2 +10,4 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; | ||
import { FixedAmountPromotion } from './fixed_amount_promotions'; | ||
import { FreeGiftPromotion } from './free_gift_promotions'; | ||
import { FixedPricePromotion } from './fixed_price_promotions'; | ||
import { ExternalPromotion } from './external_promotions'; | ||
@@ -25,2 +27,8 @@ import { Coupon } from './coupons'; | ||
}; | ||
declare type FreeGiftPromotionRel = ResourceId & { | ||
type: 'free_gift_promotions'; | ||
}; | ||
declare type FixedPricePromotionRel = ResourceId & { | ||
type: 'fixed_price_promotions'; | ||
}; | ||
declare type ExternalPromotionRel = ResourceId & { | ||
@@ -33,11 +41,11 @@ type: 'external_promotions'; | ||
interface CouponCodesPromotionRule extends Resource { | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion; | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion; | ||
coupons?: Coupon[]; | ||
} | ||
interface CouponCodesPromotionRuleCreate extends ResourceCreate { | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel; | ||
coupons?: CouponRel[]; | ||
} | ||
interface CouponCodesPromotionRuleUpdate extends ResourceUpdate { | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel; | ||
coupons?: CouponRel[]; | ||
@@ -44,0 +52,0 @@ } |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -18,2 +18,3 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; | ||
usage_count?: number; | ||
recipient_email?: string; | ||
promotion_rule?: CouponCodesPromotionRule; | ||
@@ -24,2 +25,3 @@ } | ||
usage_limit: number; | ||
recipient_email?: string; | ||
promotion_rule?: CouponCodesPromotionRuleRel; | ||
@@ -30,2 +32,3 @@ } | ||
usage_limit?: number; | ||
recipient_email?: string; | ||
promotion_rule?: CouponCodesPromotionRuleRel; | ||
@@ -32,0 +35,0 @@ } |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; | ||
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList } from '../query'; | ||
import { /* QueryBuilderRetrieve, QueryBuilderList, */ QueryParamsList, QueryParamsRetrieve } from '../query'; | ||
import { Webhook } from './webhooks'; | ||
@@ -21,2 +21,3 @@ declare type EventCallbackRel = ResourceId & { | ||
list(params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<EventCallback>>; | ||
retrieve(id: string, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<EventCallback>; | ||
isEventCallback(resource: any): resource is EventCallback; | ||
@@ -23,0 +24,0 @@ relationship(id: string | ResourceId): EventCallbackRel; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -10,2 +10,4 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; | ||
import { FixedAmountPromotion } from './fixed_amount_promotions'; | ||
import { FreeGiftPromotion } from './free_gift_promotions'; | ||
import { FixedPricePromotion } from './fixed_price_promotions'; | ||
import { ExternalPromotion } from './external_promotions'; | ||
@@ -24,2 +26,8 @@ declare type OrderAmountPromotionRuleRel = ResourceId & { | ||
}; | ||
declare type FreeGiftPromotionRel = ResourceId & { | ||
type: 'free_gift_promotions'; | ||
}; | ||
declare type FixedPricePromotionRel = ResourceId & { | ||
type: 'fixed_price_promotions'; | ||
}; | ||
declare type ExternalPromotionRel = ResourceId & { | ||
@@ -32,11 +40,11 @@ type: 'external_promotions'; | ||
formatted_order_amount?: string; | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion; | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion; | ||
} | ||
interface OrderAmountPromotionRuleCreate extends ResourceCreate { | ||
order_amount_cents?: number; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel; | ||
} | ||
interface OrderAmountPromotionRuleUpdate extends ResourceUpdate { | ||
order_amount_cents?: number; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel; | ||
} | ||
@@ -43,0 +51,0 @@ declare class OrderAmountPromotionRules extends ApiResource { |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -10,2 +10,4 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; | ||
import { FixedAmountPromotion } from './fixed_amount_promotions'; | ||
import { FreeGiftPromotion } from './free_gift_promotions'; | ||
import { FixedPricePromotion } from './fixed_price_promotions'; | ||
import { ExternalPromotion } from './external_promotions'; | ||
@@ -16,3 +18,3 @@ declare type PromotionRuleRel = ResourceId & { | ||
interface PromotionRule extends Resource { | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion; | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion; | ||
} | ||
@@ -19,0 +21,0 @@ declare class PromotionRules extends ApiResource { |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -10,2 +10,4 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; | ||
import { FixedAmountPromotion } from './fixed_amount_promotions'; | ||
import { FreeGiftPromotion } from './free_gift_promotions'; | ||
import { FixedPricePromotion } from './fixed_price_promotions'; | ||
import { ExternalPromotion } from './external_promotions'; | ||
@@ -26,2 +28,8 @@ import { SkuList } from './sku_lists'; | ||
}; | ||
declare type FreeGiftPromotionRel = ResourceId & { | ||
type: 'free_gift_promotions'; | ||
}; | ||
declare type FixedPricePromotionRel = ResourceId & { | ||
type: 'fixed_price_promotions'; | ||
}; | ||
declare type ExternalPromotionRel = ResourceId & { | ||
@@ -35,3 +43,4 @@ type: 'external_promotions'; | ||
all_skus?: boolean; | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | ExternalPromotion; | ||
min_quantity?: number; | ||
promotion?: PercentageDiscountPromotion | FreeShippingPromotion | FixedAmountPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion; | ||
sku_list?: SkuList; | ||
@@ -42,3 +51,4 @@ skus?: Sku[]; | ||
all_skus?: boolean; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel; | ||
min_quantity?: number; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel; | ||
sku_list?: SkuListRel; | ||
@@ -48,3 +58,4 @@ } | ||
all_skus?: boolean; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | ExternalPromotionRel; | ||
min_quantity?: number; | ||
promotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | FixedAmountPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel; | ||
sku_list?: SkuListRel; | ||
@@ -51,0 +62,0 @@ } |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -21,3 +21,3 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; | ||
interface WebhookCreate extends ResourceCreate { | ||
name: string; | ||
name?: string; | ||
topic: string; | ||
@@ -24,0 +24,0 @@ callback_url: string; |
/** | ||
* ©2021 Commerce Layer Inc. | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0 | ||
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.3 | ||
**/ | ||
@@ -5,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource'; |
{ | ||
"name": "@commercelayer/sdk", | ||
"version": "2.1.3", | ||
"version": "2.2.0", | ||
"main": "lib/index.js", | ||
@@ -35,4 +35,3 @@ "types": "lib/index.d.ts", | ||
"dependencies": { | ||
"axios": "^0.21.4", | ||
"axios-curlirize": "^1.4.0" | ||
"axios": "^0.21.4" | ||
}, | ||
@@ -39,0 +38,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3096270
1
119
35153
- Removedaxios-curlirize@^1.4.0
- Removedaxios-curlirize@1.4.0(transitive)