@commercelayer/sdk
Advanced tools
Comparing version 5.31.1 to 5.32.0
@@ -5,3 +5,3 @@ import * as api from './api'; | ||
import { type ResourcesInitConfig } from './resource'; | ||
declare const OPEN_API_SCHEMA_VERSION = "4.25.0"; | ||
declare const OPEN_API_SCHEMA_VERSION = "4.26.0"; | ||
export { OPEN_API_SCHEMA_VERSION }; | ||
@@ -13,3 +13,3 @@ type SdkConfig = {}; | ||
#private; | ||
readonly openApiSchemaVersion = "4.25.0"; | ||
readonly openApiSchemaVersion = "4.26.0"; | ||
addresses: api.Addresses; | ||
@@ -16,0 +16,0 @@ adjustments: api.Adjustments; |
@@ -48,3 +48,3 @@ "use strict"; | ||
// Autogenerated schema version number, do not remove this line | ||
const OPEN_API_SCHEMA_VERSION = '4.25.0'; | ||
const OPEN_API_SCHEMA_VERSION = '4.26.0'; | ||
exports.OPEN_API_SCHEMA_VERSION = OPEN_API_SCHEMA_VERSION; | ||
@@ -51,0 +51,0 @@ class CommerceLayerClient { |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -73,4 +67,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -96,3 +90,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -102,3 +95,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list: SkuListRel; | ||
@@ -121,3 +113,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -127,3 +118,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -142,4 +132,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -146,0 +136,0 @@ events(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
async sku_list(buyXPayYPromotionId, params, options) { | ||
const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `buy_x_pay_y_promotions/${_buyXPayYPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(buyXPayYPromotionId, params, options) { | ||
@@ -39,6 +43,2 @@ const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; | ||
} | ||
async sku_list(buyXPayYPromotionId, params, options) { | ||
const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `buy_x_pay_y_promotions/${_buyXPayYPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(buyXPayYPromotionId, params, options) { | ||
@@ -45,0 +45,0 @@ const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -72,4 +66,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -93,3 +87,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -99,3 +92,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -116,3 +108,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -122,3 +113,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -137,4 +127,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -141,0 +131,0 @@ events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
async sku_list(externalPromotionId, params, options) { | ||
const _externalPromotionId = externalPromotionId.id || externalPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(externalPromotionId, params, options) { | ||
@@ -39,6 +43,2 @@ const _externalPromotionId = externalPromotionId.id || externalPromotionId; | ||
} | ||
async sku_list(externalPromotionId, params, options) { | ||
const _externalPromotionId = externalPromotionId.id || externalPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(externalPromotionId, params, options) { | ||
@@ -45,0 +45,0 @@ const _externalPromotionId = externalPromotionId.id || externalPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -73,4 +67,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -94,3 +88,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -100,3 +93,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -117,3 +109,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -123,3 +114,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -138,4 +128,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -142,0 +132,0 @@ events(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
async sku_list(fixedAmountPromotionId, params, options) { | ||
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(fixedAmountPromotionId, params, options) { | ||
@@ -39,6 +43,2 @@ const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; | ||
} | ||
async sku_list(fixedAmountPromotionId, params, options) { | ||
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(fixedAmountPromotionId, params, options) { | ||
@@ -45,0 +45,0 @@ const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -73,4 +67,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -94,3 +88,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -100,3 +93,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list: SkuListRel; | ||
@@ -117,3 +109,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -123,3 +114,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -138,4 +128,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -142,0 +132,0 @@ events(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
async sku_list(fixedPricePromotionId, params, options) { | ||
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(fixedPricePromotionId, params, options) { | ||
@@ -39,6 +43,2 @@ const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; | ||
} | ||
async sku_list(fixedPricePromotionId, params, options) { | ||
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(fixedPricePromotionId, params, options) { | ||
@@ -45,0 +45,0 @@ const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -71,4 +65,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -92,3 +86,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -98,3 +91,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list: SkuListRel; | ||
@@ -115,3 +107,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -121,3 +112,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -136,4 +126,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -140,0 +130,0 @@ events(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
async sku_list(freeGiftPromotionId, params, options) { | ||
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(freeGiftPromotionId, params, options) { | ||
@@ -39,6 +43,2 @@ const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; | ||
} | ||
async sku_list(freeGiftPromotionId, params, options) { | ||
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(freeGiftPromotionId, params, options) { | ||
@@ -45,0 +45,0 @@ const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList } from './sku_lists'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -25,5 +25,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -41,4 +38,4 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
type SkuListRel = ResourceRel & { | ||
type: SkuListType; | ||
}; | ||
@@ -66,4 +63,4 @@ type TagRel = ResourceRel & { | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -85,3 +82,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -91,3 +87,3 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
tags?: TagRel[] | null; | ||
@@ -106,3 +102,2 @@ } | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -112,3 +107,3 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
tags?: TagRel[] | null; | ||
@@ -126,4 +121,4 @@ } | ||
custom_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -130,0 +125,0 @@ events(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
async sku_list(freeShippingPromotionId, params, options) { | ||
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(freeShippingPromotionId, params, options) { | ||
@@ -39,6 +43,2 @@ const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; | ||
} | ||
async sku_list(freeShippingPromotionId, params, options) { | ||
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(freeShippingPromotionId, params, options) { | ||
@@ -45,0 +45,0 @@ const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; |
@@ -25,2 +25,3 @@ import { ApiResource } from '../resource'; | ||
require_capture?: boolean | null; | ||
auto_place?: boolean | null; | ||
auto_capture?: boolean | null; | ||
@@ -44,2 +45,3 @@ disabled_at?: string | null; | ||
require_capture?: boolean | null; | ||
auto_place?: boolean | null; | ||
auto_capture?: boolean | null; | ||
@@ -58,2 +60,3 @@ _disable?: boolean | null; | ||
require_capture?: boolean | null; | ||
auto_place?: boolean | null; | ||
auto_capture?: boolean | null; | ||
@@ -60,0 +63,0 @@ _disable?: boolean | null; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -71,4 +65,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -92,3 +86,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -98,3 +91,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -115,3 +107,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -121,3 +112,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -136,4 +126,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -140,0 +130,0 @@ events(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -34,2 +34,6 @@ "use strict"; | ||
} | ||
async sku_list(percentageDiscountPromotionId, params, options) { | ||
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(percentageDiscountPromotionId, params, options) { | ||
@@ -39,6 +43,2 @@ const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; | ||
} | ||
async sku_list(percentageDiscountPromotionId, params, options) { | ||
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(percentageDiscountPromotionId, params, options) { | ||
@@ -45,0 +45,0 @@ const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; |
@@ -10,4 +10,4 @@ import { ApiResource } from '../resource'; | ||
import type { CustomPromotionRule } from './custom_promotion_rules'; | ||
import type { SkuList } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { SkuList } from './sku_lists'; | ||
import type { Attachment } from './attachments'; | ||
@@ -39,4 +39,4 @@ import type { Event } from './events'; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -54,4 +54,4 @@ events?: Event[] | null; | ||
custom_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -58,0 +58,0 @@ events(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -25,2 +25,6 @@ "use strict"; | ||
} | ||
async sku_list(promotionId, params, options) { | ||
const _promotionId = promotionId.id || promotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `promotions/${_promotionId}/sku_list`, params, options); | ||
} | ||
async coupons(promotionId, params, options) { | ||
@@ -30,6 +34,2 @@ const _promotionId = promotionId.id || promotionId; | ||
} | ||
async sku_list(promotionId, params, options) { | ||
const _promotionId = promotionId.id || promotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `promotions/${_promotionId}/sku_list`, params, options); | ||
} | ||
async attachments(promotionId, params, options) { | ||
@@ -36,0 +36,0 @@ const _promotionId = promotionId.id || promotionId; |
@@ -28,3 +28,3 @@ import { ApiResource } from '../resource'; | ||
readonly type: StockTransferType; | ||
number?: number | null; | ||
number?: string | null; | ||
sku_code?: string | null; | ||
@@ -31,0 +31,0 @@ status: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled'; |
@@ -16,3 +16,4 @@ import { ApiResource } from '../resource'; | ||
readonly type: StripePaymentType; | ||
client_secret: string; | ||
stripe_id?: string | null; | ||
client_secret?: string | null; | ||
publishable_key?: string | null; | ||
@@ -33,2 +34,4 @@ options?: Record<string, any> | null; | ||
interface StripePaymentCreate extends ResourceCreate { | ||
stripe_id?: string | null; | ||
client_secret?: string | null; | ||
options?: Record<string, any> | null; | ||
@@ -35,0 +38,0 @@ return_url?: string | null; |
@@ -5,3 +5,3 @@ import * as api from './api'; | ||
import { type ResourcesInitConfig } from './resource'; | ||
declare const OPEN_API_SCHEMA_VERSION = "4.25.0"; | ||
declare const OPEN_API_SCHEMA_VERSION = "4.26.0"; | ||
export { OPEN_API_SCHEMA_VERSION }; | ||
@@ -13,3 +13,3 @@ type SdkConfig = {}; | ||
#private; | ||
readonly openApiSchemaVersion = "4.25.0"; | ||
readonly openApiSchemaVersion = "4.26.0"; | ||
addresses: api.Addresses; | ||
@@ -16,0 +16,0 @@ adjustments: api.Adjustments; |
@@ -19,3 +19,3 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { | ||
// Autogenerated schema version number, do not remove this line | ||
const OPEN_API_SCHEMA_VERSION = '4.25.0'; | ||
const OPEN_API_SCHEMA_VERSION = '4.26.0'; | ||
export { OPEN_API_SCHEMA_VERSION }; | ||
@@ -22,0 +22,0 @@ class CommerceLayerClient { |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -73,4 +67,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -96,3 +90,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -102,3 +95,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list: SkuListRel; | ||
@@ -121,3 +113,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -127,3 +118,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -142,4 +132,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -146,0 +136,0 @@ events(buyXPayYPromotionId: string | BuyXPayYPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -32,2 +32,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(buyXPayYPromotionId, params, options) { | ||
const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `buy_x_pay_y_promotions/${_buyXPayYPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(buyXPayYPromotionId, params, options) { | ||
@@ -37,6 +41,2 @@ const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; | ||
} | ||
async sku_list(buyXPayYPromotionId, params, options) { | ||
const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `buy_x_pay_y_promotions/${_buyXPayYPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(buyXPayYPromotionId, params, options) { | ||
@@ -43,0 +43,0 @@ const _buyXPayYPromotionId = buyXPayYPromotionId.id || buyXPayYPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -72,4 +66,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -93,3 +87,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -99,3 +92,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -116,3 +108,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -122,3 +113,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -137,4 +127,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -141,0 +131,0 @@ events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -32,2 +32,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(externalPromotionId, params, options) { | ||
const _externalPromotionId = externalPromotionId.id || externalPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(externalPromotionId, params, options) { | ||
@@ -37,6 +41,2 @@ const _externalPromotionId = externalPromotionId.id || externalPromotionId; | ||
} | ||
async sku_list(externalPromotionId, params, options) { | ||
const _externalPromotionId = externalPromotionId.id || externalPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(externalPromotionId, params, options) { | ||
@@ -43,0 +43,0 @@ const _externalPromotionId = externalPromotionId.id || externalPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -73,4 +67,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -94,3 +88,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -100,3 +93,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -117,3 +109,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -123,3 +114,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -138,4 +128,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -142,0 +132,0 @@ events(fixedAmountPromotionId: string | FixedAmountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -32,2 +32,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(fixedAmountPromotionId, params, options) { | ||
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(fixedAmountPromotionId, params, options) { | ||
@@ -37,6 +41,2 @@ const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; | ||
} | ||
async sku_list(fixedAmountPromotionId, params, options) { | ||
const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_amount_promotions/${_fixedAmountPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(fixedAmountPromotionId, params, options) { | ||
@@ -43,0 +43,0 @@ const _fixedAmountPromotionId = fixedAmountPromotionId.id || fixedAmountPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -73,4 +67,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -94,3 +88,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -100,3 +93,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list: SkuListRel; | ||
@@ -117,3 +109,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -123,3 +114,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -138,4 +128,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -142,0 +132,0 @@ events(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -32,2 +32,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(fixedPricePromotionId, params, options) { | ||
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(fixedPricePromotionId, params, options) { | ||
@@ -37,6 +41,2 @@ const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; | ||
} | ||
async sku_list(fixedPricePromotionId, params, options) { | ||
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(fixedPricePromotionId, params, options) { | ||
@@ -43,0 +43,0 @@ const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -71,4 +65,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -92,3 +86,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -98,3 +91,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list: SkuListRel; | ||
@@ -115,3 +107,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -121,3 +112,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -136,4 +126,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -140,0 +130,0 @@ events(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -32,2 +32,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(freeGiftPromotionId, params, options) { | ||
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(freeGiftPromotionId, params, options) { | ||
@@ -37,6 +41,2 @@ const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; | ||
} | ||
async sku_list(freeGiftPromotionId, params, options) { | ||
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(freeGiftPromotionId, params, options) { | ||
@@ -43,0 +43,0 @@ const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList } from './sku_lists'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -25,5 +25,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -41,4 +38,4 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
type SkuListRel = ResourceRel & { | ||
type: SkuListType; | ||
}; | ||
@@ -66,4 +63,4 @@ type TagRel = ResourceRel & { | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -85,3 +82,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -91,3 +87,3 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
tags?: TagRel[] | null; | ||
@@ -106,3 +102,2 @@ } | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -112,3 +107,3 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
tags?: TagRel[] | null; | ||
@@ -126,4 +121,4 @@ } | ||
custom_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -130,0 +125,0 @@ events(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -32,2 +32,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(freeShippingPromotionId, params, options) { | ||
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(freeShippingPromotionId, params, options) { | ||
@@ -37,6 +41,2 @@ const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; | ||
} | ||
async sku_list(freeShippingPromotionId, params, options) { | ||
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(freeShippingPromotionId, params, options) { | ||
@@ -43,0 +43,0 @@ const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId; |
@@ -25,2 +25,3 @@ import { ApiResource } from '../resource'; | ||
require_capture?: boolean | null; | ||
auto_place?: boolean | null; | ||
auto_capture?: boolean | null; | ||
@@ -44,2 +45,3 @@ disabled_at?: string | null; | ||
require_capture?: boolean | null; | ||
auto_place?: boolean | null; | ||
auto_capture?: boolean | null; | ||
@@ -58,2 +60,3 @@ _disable?: boolean | null; | ||
require_capture?: boolean | null; | ||
auto_place?: boolean | null; | ||
auto_capture?: boolean | null; | ||
@@ -60,0 +63,0 @@ _disable?: boolean | null; |
@@ -5,3 +5,3 @@ import { ApiResource } from '../resource'; | ||
import type { Market, MarketType } from './markets'; | ||
import type { PromotionRule, PromotionRuleType } from './promotion_rules'; | ||
import type { PromotionRule } from './promotion_rules'; | ||
import type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'; | ||
@@ -11,4 +11,4 @@ import type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'; | ||
import type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'; | ||
import type { Coupon, CouponType } from './coupons'; | ||
import type { SkuList, SkuListType } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { Attachment } from './attachments'; | ||
@@ -26,5 +26,2 @@ import type { Event } from './events'; | ||
}; | ||
type PromotionRuleRel = ResourceRel & { | ||
type: PromotionRuleType; | ||
}; | ||
type OrderAmountPromotionRuleRel = ResourceRel & { | ||
@@ -42,5 +39,2 @@ type: OrderAmountPromotionRuleType; | ||
}; | ||
type CouponRel = ResourceRel & { | ||
type: CouponType; | ||
}; | ||
type SkuListRel = ResourceRel & { | ||
@@ -71,4 +65,4 @@ type: SkuListType; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -92,3 +86,2 @@ events?: Event[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -98,3 +91,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -115,3 +107,2 @@ tags?: TagRel[] | null; | ||
market?: MarketRel | null; | ||
promotion_rules?: PromotionRuleRel[] | null; | ||
order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null; | ||
@@ -121,3 +112,2 @@ sku_list_promotion_rule?: SkuListPromotionRuleRel | null; | ||
custom_promotion_rule?: CustomPromotionRuleRel | null; | ||
coupons?: CouponRel[] | null; | ||
sku_list?: SkuListRel | null; | ||
@@ -136,4 +126,4 @@ tags?: TagRel[] | null; | ||
custom_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -140,0 +130,0 @@ events(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -32,2 +32,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(percentageDiscountPromotionId, params, options) { | ||
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options); | ||
} | ||
async coupons(percentageDiscountPromotionId, params, options) { | ||
@@ -37,6 +41,2 @@ const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; | ||
} | ||
async sku_list(percentageDiscountPromotionId, params, options) { | ||
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options); | ||
} | ||
async attachments(percentageDiscountPromotionId, params, options) { | ||
@@ -43,0 +43,0 @@ const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId; |
@@ -10,4 +10,4 @@ import { ApiResource } from '../resource'; | ||
import type { CustomPromotionRule } from './custom_promotion_rules'; | ||
import type { SkuList } from './sku_lists'; | ||
import type { Coupon } from './coupons'; | ||
import type { SkuList } from './sku_lists'; | ||
import type { Attachment } from './attachments'; | ||
@@ -39,4 +39,4 @@ import type { Event } from './events'; | ||
custom_promotion_rule?: CustomPromotionRule | null; | ||
sku_list?: SkuList | null; | ||
coupons?: Coupon[] | null; | ||
sku_list?: SkuList | null; | ||
attachments?: Attachment[] | null; | ||
@@ -54,4 +54,4 @@ events?: Event[] | null; | ||
custom_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<CustomPromotionRule>; | ||
sku_list(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
coupons(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Coupon>>; | ||
sku_list(promotionId: string | Promotion, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<SkuList>; | ||
attachments(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Attachment>>; | ||
@@ -58,0 +58,0 @@ events(promotionId: string | Promotion, params?: QueryParamsList, options?: ResourcesConfig): Promise<ListResponse<Event>>; |
@@ -23,2 +23,6 @@ import { ApiResource } from '../resource'; | ||
} | ||
async sku_list(promotionId, params, options) { | ||
const _promotionId = promotionId.id || promotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `promotions/${_promotionId}/sku_list`, params, options); | ||
} | ||
async coupons(promotionId, params, options) { | ||
@@ -28,6 +32,2 @@ const _promotionId = promotionId.id || promotionId; | ||
} | ||
async sku_list(promotionId, params, options) { | ||
const _promotionId = promotionId.id || promotionId; | ||
return this.resources.fetch({ type: 'sku_lists' }, `promotions/${_promotionId}/sku_list`, params, options); | ||
} | ||
async attachments(promotionId, params, options) { | ||
@@ -34,0 +34,0 @@ const _promotionId = promotionId.id || promotionId; |
@@ -28,3 +28,3 @@ import { ApiResource } from '../resource'; | ||
readonly type: StockTransferType; | ||
number?: number | null; | ||
number?: string | null; | ||
sku_code?: string | null; | ||
@@ -31,0 +31,0 @@ status: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled'; |
@@ -16,3 +16,4 @@ import { ApiResource } from '../resource'; | ||
readonly type: StripePaymentType; | ||
client_secret: string; | ||
stripe_id?: string | null; | ||
client_secret?: string | null; | ||
publishable_key?: string | null; | ||
@@ -33,2 +34,4 @@ options?: Record<string, any> | null; | ||
interface StripePaymentCreate extends ResourceCreate { | ||
stripe_id?: string | null; | ||
client_secret?: string | null; | ||
options?: Record<string, any> | null; | ||
@@ -35,0 +38,0 @@ return_url?: string | null; |
{ | ||
"name": "@commercelayer/sdk", | ||
"version": "5.31.1", | ||
"version": "5.32.0", | ||
"main": "lib/cjs/index.js", | ||
@@ -36,3 +36,3 @@ "types": "lib/cjs/index.d.ts", | ||
"dependencies": { | ||
"axios": "1.6.5" | ||
"axios": "1.6.7" | ||
}, | ||
@@ -43,10 +43,10 @@ "devDependencies": { | ||
"@commercelayer/eslint-config-ts": "1.3.0", | ||
"@commercelayer/js-auth": "^4.2.0", | ||
"@commercelayer/js-auth": "^4.2.1", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/git": "^10.0.1", | ||
"@types/debug": "^4.1.12", | ||
"@types/jest": "^29.5.11", | ||
"@types/jest": "^29.5.12", | ||
"@types/lodash": "^4.14.202", | ||
"@types/node": "^20.11.15", | ||
"dotenv": "^16.4.1", | ||
"@types/node": "^20.11.17", | ||
"dotenv": "^16.4.4", | ||
"eslint": "^8.56.0", | ||
@@ -59,3 +59,3 @@ "inflector-js": "^1.0.1", | ||
"minimize-js": "^1.4.0", | ||
"semantic-release": "^22.0.12", | ||
"semantic-release": "^23.0.2", | ||
"ts-node": "^10.9.2", | ||
@@ -62,0 +62,0 @@ "typescript": "^5.3.3" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1737921
29760
+ Addedaxios@1.6.7(transitive)
- Removedaxios@1.6.5(transitive)
Updatedaxios@1.6.7