@commercelayer/sdk 4.49.0 → 4.50.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/cjs/api.d.ts +1 -1
  2. package/lib/cjs/api.js +1 -1
  3. package/lib/cjs/commercelayer.d.ts +1 -1
  4. package/lib/cjs/commercelayer.js +1 -1
  5. package/lib/cjs/model.d.ts +1 -1
  6. package/lib/cjs/resources/buy_x_pay_y_promotions.d.ts +1 -1
  7. package/lib/cjs/resources/customer_groups.d.ts +1 -1
  8. package/lib/cjs/resources/external_promotions.d.ts +1 -1
  9. package/lib/cjs/resources/fixed_amount_promotions.d.ts +1 -1
  10. package/lib/cjs/resources/fixed_price_promotions.d.ts +1 -1
  11. package/lib/cjs/resources/free_gift_promotions.d.ts +1 -1
  12. package/lib/cjs/resources/free_shipping_promotions.d.ts +1 -1
  13. package/lib/cjs/resources/line_items.d.ts +1 -1
  14. package/lib/cjs/resources/markets.d.ts +1 -1
  15. package/lib/cjs/resources/markets.js +1 -1
  16. package/lib/cjs/resources/percentage_discount_promotions.d.ts +1 -1
  17. package/lib/cjs/resources/price_list_schedulers.d.ts +1 -0
  18. package/lib/cjs/resources/price_list_schedulers.js +1 -0
  19. package/lib/cjs/resources/price_lists.d.ts +1 -1
  20. package/lib/cjs/resources/price_lists.js +1 -1
  21. package/lib/cjs/resources/promotions.d.ts +1 -1
  22. package/lib/cjs/resources/stock_transfers.d.ts +1 -1
  23. package/lib/esm/api.d.ts +1 -1
  24. package/lib/esm/api.js +1 -1
  25. package/lib/esm/commercelayer.d.ts +1 -1
  26. package/lib/esm/commercelayer.js +1 -1
  27. package/lib/esm/model.d.ts +1 -1
  28. package/lib/esm/resources/buy_x_pay_y_promotions.d.ts +1 -1
  29. package/lib/esm/resources/customer_groups.d.ts +1 -1
  30. package/lib/esm/resources/external_promotions.d.ts +1 -1
  31. package/lib/esm/resources/fixed_amount_promotions.d.ts +1 -1
  32. package/lib/esm/resources/fixed_price_promotions.d.ts +1 -1
  33. package/lib/esm/resources/free_gift_promotions.d.ts +1 -1
  34. package/lib/esm/resources/free_shipping_promotions.d.ts +1 -1
  35. package/lib/esm/resources/line_items.d.ts +1 -1
  36. package/lib/esm/resources/markets.d.ts +1 -1
  37. package/lib/esm/resources/markets.js +1 -1
  38. package/lib/esm/resources/percentage_discount_promotions.d.ts +1 -1
  39. package/lib/esm/resources/price_list_schedulers.d.ts +1 -0
  40. package/lib/esm/resources/price_list_schedulers.js +1 -0
  41. package/lib/esm/resources/price_lists.d.ts +1 -1
  42. package/lib/esm/resources/price_lists.js +1 -1
  43. package/lib/esm/resources/promotions.d.ts +1 -1
  44. package/lib/esm/resources/stock_transfers.d.ts +1 -1
  45. package/lib/tsconfig.esm.tsbuildinfo +1 -1
  46. package/lib/tsconfig.tsbuildinfo +1 -1
  47. package/package.json +4 -4
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type BuyXPayYPromotionRel=ResourceRel&{type:typeof BuyXPayYPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface BuyXPayYPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;x?:number;y?:number;cheapest_free?:boolean;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface BuyXPayYPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;x:number;y:number;cheapest_free?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list:SkuListRel;tags?:TagRel[];}interface BuyXPayYPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;x?:number;y?:number;cheapest_free?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class BuyXPayYPromotions extends ApiResource{static readonly TYPE:'buy_x_pay_y_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BuyXPayYPromotion>>;create(resource:BuyXPayYPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;update(resource:BuyXPayYPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isBuyXPayYPromotion(resource:any):resource is BuyXPayYPromotion;relationship(id:string|ResourceId|null):BuyXPayYPromotionRel;type():string;}export default BuyXPayYPromotions;export{BuyXPayYPromotion,BuyXPayYPromotionCreate,BuyXPayYPromotionUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type BuyXPayYPromotionRel=ResourceRel&{type:typeof BuyXPayYPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface BuyXPayYPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;x?:number;y?:number;cheapest_free?:boolean;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface BuyXPayYPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;x:number;y:number;cheapest_free?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list:SkuListRel;tags?:TagRel[];}interface BuyXPayYPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;x?:number;y?:number;cheapest_free?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class BuyXPayYPromotions extends ApiResource{static readonly TYPE:'buy_x_pay_y_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<BuyXPayYPromotion>>;create(resource:BuyXPayYPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;update(resource:BuyXPayYPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<BuyXPayYPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(buyXPayYPromotionId:string|BuyXPayYPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isBuyXPayYPromotion(resource:any):resource is BuyXPayYPromotion;relationship(id:string|ResourceId|null):BuyXPayYPromotionRel;type():string;}export default BuyXPayYPromotions;export{BuyXPayYPromotion,BuyXPayYPromotionCreate,BuyXPayYPromotionUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Market}from'./markets';import type{Attachment}from'./attachments';import type{Version}from'./versions';type CustomerGroupRel=ResourceRel&{type:typeof CustomerGroups.TYPE;};interface CustomerGroup extends Resource{name?:string;customers?:Customer[];markets?:Market[];attachments?:Attachment[];versions?:Version[];}interface CustomerGroupCreate extends ResourceCreate{name:string;}interface CustomerGroupUpdate extends ResourceUpdate{name?:string;}declare class CustomerGroups extends ApiResource{static readonly TYPE:'customer_groups';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerGroup>>;create(resource:CustomerGroupCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;update(resource:CustomerGroupUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;delete(id:string,options?:ResourcesConfig):Promise<void>;customers(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;markets(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isCustomerGroup(resource:any):resource is CustomerGroup;relationship(id:string|ResourceId|null):CustomerGroupRel;type():string;}export default CustomerGroups;export{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Customer}from'./customers';import type{Market}from'./markets';import type{Attachment}from'./attachments';import type{Version}from'./versions';type CustomerGroupRel=ResourceRel&{type:typeof CustomerGroups.TYPE;};interface CustomerGroup extends Resource{name?:string;code?:string;customers?:Customer[];markets?:Market[];attachments?:Attachment[];versions?:Version[];}interface CustomerGroupCreate extends ResourceCreate{name:string;code?:string;}interface CustomerGroupUpdate extends ResourceUpdate{name?:string;code?:string;}declare class CustomerGroups extends ApiResource{static readonly TYPE:'customer_groups';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<CustomerGroup>>;create(resource:CustomerGroupCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;update(resource:CustomerGroupUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;delete(id:string,options?:ResourcesConfig):Promise<void>;customers(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Customer>>;markets(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;attachments(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(customerGroupId:string|CustomerGroup,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isCustomerGroup(resource:any):resource is CustomerGroup;relationship(id:string|ResourceId|null):CustomerGroupRel;type():string;}export default CustomerGroups;export{CustomerGroup,CustomerGroupCreate,CustomerGroupUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type ExternalPromotionRel=ResourceRel&{type:typeof ExternalPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface ExternalPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;promotion_url?:string;circuit_state?:string;circuit_failure_count?:number;shared_secret?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface ExternalPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;promotion_url:string;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface ExternalPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;promotion_url?:string;_reset_circuit?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class ExternalPromotions extends ApiResource{static readonly TYPE:'external_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPromotion>>;create(resource:ExternalPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;update(resource:ExternalPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isExternalPromotion(resource:any):resource is ExternalPromotion;relationship(id:string|ResourceId|null):ExternalPromotionRel;type():string;}export default ExternalPromotions;export{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type ExternalPromotionRel=ResourceRel&{type:typeof ExternalPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface ExternalPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;promotion_url?:string;circuit_state?:string;circuit_failure_count?:number;shared_secret?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface ExternalPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;promotion_url:string;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface ExternalPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;promotion_url?:string;_reset_circuit?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class ExternalPromotions extends ApiResource{static readonly TYPE:'external_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ExternalPromotion>>;create(resource:ExternalPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;update(resource:ExternalPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<ExternalPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(externalPromotionId:string|ExternalPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(externalPromotionId:string|ExternalPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isExternalPromotion(resource:any):resource is ExternalPromotion;relationship(id:string|ResourceId|null):ExternalPromotionRel;type():string;}export default ExternalPromotions;export{ExternalPromotion,ExternalPromotionCreate,ExternalPromotionUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedAmountPromotionRel=ResourceRel&{type:typeof FixedAmountPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FixedAmountPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;fixed_amount_cents?:number;fixed_amount_float?:number;formatted_fixed_amount?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface FixedAmountPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface FixedAmountPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FixedAmountPromotions extends ApiResource{static readonly TYPE:'fixed_amount_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FixedAmountPromotion>>;create(resource:FixedAmountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;update(resource:FixedAmountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFixedAmountPromotion(resource:any):resource is FixedAmountPromotion;relationship(id:string|ResourceId|null):FixedAmountPromotionRel;type():string;}export default FixedAmountPromotions;export{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedAmountPromotionRel=ResourceRel&{type:typeof FixedAmountPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FixedAmountPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;fixed_amount_cents?:number;fixed_amount_float?:number;formatted_fixed_amount?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface FixedAmountPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface FixedAmountPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FixedAmountPromotions extends ApiResource{static readonly TYPE:'fixed_amount_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FixedAmountPromotion>>;create(resource:FixedAmountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;update(resource:FixedAmountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedAmountPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedAmountPromotionId:string|FixedAmountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFixedAmountPromotion(resource:any):resource is FixedAmountPromotion;relationship(id:string|ResourceId|null):FixedAmountPromotionRel;type():string;}export default FixedAmountPromotions;export{FixedAmountPromotion,FixedAmountPromotionCreate,FixedAmountPromotionUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedPricePromotionRel=ResourceRel&{type:typeof FixedPricePromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FixedPricePromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;fixed_amount_cents?:number;fixed_amount_float?:number;formatted_fixed_amount?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface FixedPricePromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list:SkuListRel;tags?:TagRel[];}interface FixedPricePromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FixedPricePromotions extends ApiResource{static readonly TYPE:'fixed_price_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FixedPricePromotion>>;create(resource:FixedPricePromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;update(resource:FixedPricePromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFixedPricePromotion(resource:any):resource is FixedPricePromotion;relationship(id:string|ResourceId|null):FixedPricePromotionRel;type():string;}export default FixedPricePromotions;export{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FixedPricePromotionRel=ResourceRel&{type:typeof FixedPricePromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FixedPricePromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;fixed_amount_cents?:number;fixed_amount_float?:number;formatted_fixed_amount?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface FixedPricePromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list:SkuListRel;tags?:TagRel[];}interface FixedPricePromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;fixed_amount_cents?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FixedPricePromotions extends ApiResource{static readonly TYPE:'fixed_price_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FixedPricePromotion>>;create(resource:FixedPricePromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;update(resource:FixedPricePromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FixedPricePromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(fixedPricePromotionId:string|FixedPricePromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFixedPricePromotion(resource:any):resource is FixedPricePromotion;relationship(id:string|ResourceId|null):FixedPricePromotionRel;type():string;}export default FixedPricePromotions;export{FixedPricePromotion,FixedPricePromotionCreate,FixedPricePromotionUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FreeGiftPromotionRel=ResourceRel&{type:typeof FreeGiftPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FreeGiftPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;max_quantity?:number;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface FreeGiftPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;max_quantity?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list:SkuListRel;tags?:TagRel[];}interface FreeGiftPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;max_quantity?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FreeGiftPromotions extends ApiResource{static readonly TYPE:'free_gift_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FreeGiftPromotion>>;create(resource:FreeGiftPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;update(resource:FreeGiftPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFreeGiftPromotion(resource:any):resource is FreeGiftPromotion;relationship(id:string|ResourceId|null):FreeGiftPromotionRel;type():string;}export default FreeGiftPromotions;export{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type FreeGiftPromotionRel=ResourceRel&{type:typeof FreeGiftPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FreeGiftPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;max_quantity?:number;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface FreeGiftPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;max_quantity?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list:SkuListRel;tags?:TagRel[];}interface FreeGiftPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;max_quantity?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FreeGiftPromotions extends ApiResource{static readonly TYPE:'free_gift_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FreeGiftPromotion>>;create(resource:FreeGiftPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;update(resource:FreeGiftPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeGiftPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(freeGiftPromotionId:string|FreeGiftPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isFreeGiftPromotion(resource:any):resource is FreeGiftPromotion;relationship(id:string|ResourceId|null):FreeGiftPromotionRel;type():string;}export default FreeGiftPromotions;export{FreeGiftPromotion,FreeGiftPromotionCreate,FreeGiftPromotionUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';type FreeShippingPromotionRel=ResourceRel&{type:typeof FreeShippingPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FreeShippingPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];}interface FreeShippingPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface FreeShippingPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FreeShippingPromotions extends ApiResource{static readonly TYPE:'free_shipping_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FreeShippingPromotion>>;create(resource:FreeShippingPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;update(resource:FreeShippingPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isFreeShippingPromotion(resource:any):resource is FreeShippingPromotion;relationship(id:string|ResourceId|null):FreeShippingPromotionRel;type():string;}export default FreeShippingPromotions;export{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';type FreeShippingPromotionRel=ResourceRel&{type:typeof FreeShippingPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface FreeShippingPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];}interface FreeShippingPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface FreeShippingPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class FreeShippingPromotions extends ApiResource{static readonly TYPE:'free_shipping_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<FreeShippingPromotion>>;create(resource:FreeShippingPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;update(resource:FreeShippingPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<FreeShippingPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(freeShippingPromotionId:string|FreeShippingPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isFreeShippingPromotion(resource:any):resource is FreeShippingPromotion;relationship(id:string|ResourceId|null):FreeShippingPromotionRel;type():string;}export default FreeShippingPromotions;export{FreeShippingPromotion,FreeShippingPromotionCreate,FreeShippingPromotionUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Adjustment}from'./adjustments';import type{Bundle}from'./bundles';import type{ExternalPromotion}from'./external_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{GiftCard}from'./gift_cards';import type{PaymentMethod}from'./payment_methods';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{Shipment}from'./shipments';import type{Sku}from'./skus';import type{LineItemOption}from'./line_item_options';import type{ReturnLineItem}from'./return_line_items';import type{StockReservation}from'./stock_reservations';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{Event}from'./events';import type{Tag}from'./tags';type LineItemRel=ResourceRel&{type:typeof LineItems.TYPE;};type OrderRel=ResourceRel&{type:'orders';};type AdjustmentRel=ResourceRel&{type:'adjustments';};type BundleRel=ResourceRel&{type:'bundles';};type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};type GiftCardRel=ResourceRel&{type:'gift_cards';};type PaymentMethodRel=ResourceRel&{type:'payment_methods';};type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};type ShipmentRel=ResourceRel&{type:'shipments';};type SkuRel=ResourceRel&{type:'skus';};type TagRel=ResourceRel&{type:'tags';};interface LineItem extends Resource{sku_code?:string;bundle_code?:string;quantity?:number;_external_price?:boolean;currency_code?:string;unit_amount_cents?:number;unit_amount_float?:number;formatted_unit_amount?:string;compare_at_amount_cents?:number;compare_at_amount_float?:number;formatted_compare_at_amount?:string;options_amount_cents?:number;options_amount_float?:number;formatted_options_amount?:string;discount_cents?:number;discount_float?:number;formatted_discount?:string;total_amount_cents?:number;total_amount_float?:number;formatted_total_amount?:string;tax_amount_cents?:number;tax_amount_float?:number;formatted_tax_amount?:string;name?:string;image_url?:string;discount_breakdown?:object;tax_rate?:number;tax_breakdown?:object;item_type?:string;frequency?:string;coupon_code?:string;circuit_state?:string;circuit_failure_count?:number;order?:Order;item?:Adjustment|Bundle|ExternalPromotion|FixedAmountPromotion|FreeShippingPromotion|GiftCard|PaymentMethod|PercentageDiscountPromotion|Shipment|Sku;sku?:Sku;bundle?:Bundle;adjustment?:Adjustment;gift_card?:GiftCard;shipment?:Shipment;payment_method?:PaymentMethod;line_item_options?:LineItemOption[];return_line_items?:ReturnLineItem[];stock_reservations?:StockReservation[];stock_line_items?:StockLineItem[];stock_transfers?:StockTransfer[];events?:Event[];tags?:Tag[];}interface LineItemCreate extends ResourceCreate{sku_code?:string;bundle_code?:string;quantity:number;_external_price?:boolean;_update_quantity?:boolean;_reserve_stock?:boolean;unit_amount_cents?:number;compare_at_amount_cents?:number;name?:string;image_url?:string;item_type?:string;frequency?:string;order:OrderRel;item?:AdjustmentRel|BundleRel|ExternalPromotionRel|FixedAmountPromotionRel|FreeShippingPromotionRel|GiftCardRel|PaymentMethodRel|PercentageDiscountPromotionRel|ShipmentRel|SkuRel;sku?:SkuRel;bundle?:BundleRel;adjustment?:AdjustmentRel;gift_card?:GiftCardRel;shipment?:ShipmentRel;payment_method?:PaymentMethodRel;tags?:TagRel[];}interface LineItemUpdate extends ResourceUpdate{sku_code?:string;bundle_code?:string;quantity?:number;_external_price?:boolean;_reserve_stock?:boolean;compare_at_amount_cents?:number;name?:string;image_url?:string;frequency?:string;_reset_circuit?:boolean;tags?:TagRel[];}declare class LineItems extends ApiResource{static readonly TYPE:'line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;create(resource:LineItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;update(resource:LineItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(lineItemId:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;line_item_options(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;return_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ReturnLineItem>>;stock_reservations(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockReservation>>;stock_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;events(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;isLineItem(resource:any):resource is LineItem;relationship(id:string|ResourceId|null):LineItemRel;type():string;}export default LineItems;export{LineItem,LineItemCreate,LineItemUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Order}from'./orders';import type{Adjustment}from'./adjustments';import type{Bundle}from'./bundles';import type{ExternalPromotion}from'./external_promotions';import type{FixedAmountPromotion}from'./fixed_amount_promotions';import type{FreeShippingPromotion}from'./free_shipping_promotions';import type{GiftCard}from'./gift_cards';import type{PaymentMethod}from'./payment_methods';import type{PercentageDiscountPromotion}from'./percentage_discount_promotions';import type{Shipment}from'./shipments';import type{Sku}from'./skus';import type{LineItemOption}from'./line_item_options';import type{ReturnLineItem}from'./return_line_items';import type{StockReservation}from'./stock_reservations';import type{StockLineItem}from'./stock_line_items';import type{StockTransfer}from'./stock_transfers';import type{Event}from'./events';import type{Tag}from'./tags';type LineItemRel=ResourceRel&{type:typeof LineItems.TYPE;};type OrderRel=ResourceRel&{type:'orders';};type AdjustmentRel=ResourceRel&{type:'adjustments';};type BundleRel=ResourceRel&{type:'bundles';};type ExternalPromotionRel=ResourceRel&{type:'external_promotions';};type FixedAmountPromotionRel=ResourceRel&{type:'fixed_amount_promotions';};type FreeShippingPromotionRel=ResourceRel&{type:'free_shipping_promotions';};type GiftCardRel=ResourceRel&{type:'gift_cards';};type PaymentMethodRel=ResourceRel&{type:'payment_methods';};type PercentageDiscountPromotionRel=ResourceRel&{type:'percentage_discount_promotions';};type ShipmentRel=ResourceRel&{type:'shipments';};type SkuRel=ResourceRel&{type:'skus';};type TagRel=ResourceRel&{type:'tags';};interface LineItem extends Resource{sku_code?:string;bundle_code?:string;quantity?:number;_external_price?:boolean;currency_code?:string;unit_amount_cents?:number;unit_amount_float?:number;formatted_unit_amount?:string;compare_at_amount_cents?:number;compare_at_amount_float?:number;formatted_compare_at_amount?:string;options_amount_cents?:number;options_amount_float?:number;formatted_options_amount?:string;discount_cents?:number;discount_float?:number;formatted_discount?:string;total_amount_cents?:number;total_amount_float?:number;formatted_total_amount?:string;tax_amount_cents?:number;tax_amount_float?:number;formatted_tax_amount?:string;name?:string;image_url?:string;discount_breakdown?:object;tax_rate?:number;tax_breakdown?:object;item_type?:string;frequency?:string;coupon_code?:string;circuit_state?:string;circuit_failure_count?:number;order?:Order;item?:Adjustment|Bundle|ExternalPromotion|FixedAmountPromotion|FreeShippingPromotion|GiftCard|PaymentMethod|PercentageDiscountPromotion|Shipment|Sku;sku?:Sku;bundle?:Bundle;adjustment?:Adjustment;gift_card?:GiftCard;shipment?:Shipment;payment_method?:PaymentMethod;line_item_options?:LineItemOption[];return_line_items?:ReturnLineItem[];stock_reservations?:StockReservation[];stock_line_items?:StockLineItem[];stock_transfers?:StockTransfer[];events?:Event[];tags?:Tag[];}interface LineItemCreate extends ResourceCreate{sku_code?:string;bundle_code?:string;quantity:number;_external_price?:boolean;_update_quantity?:boolean;_reserve_stock?:boolean;unit_amount_cents?:number;compare_at_amount_cents?:number;name?:string;image_url?:string;item_type?:string;frequency?:string;order:OrderRel;item?:AdjustmentRel|BundleRel|ExternalPromotionRel|FixedAmountPromotionRel|FreeShippingPromotionRel|GiftCardRel|PaymentMethodRel|PercentageDiscountPromotionRel|ShipmentRel|SkuRel;tags?:TagRel[];}interface LineItemUpdate extends ResourceUpdate{sku_code?:string;bundle_code?:string;quantity?:number;_external_price?:boolean;_reserve_stock?:boolean;unit_amount_cents?:number;compare_at_amount_cents?:number;name?:string;image_url?:string;frequency?:string;_reset_circuit?:boolean;tags?:TagRel[];}declare class LineItems extends ApiResource{static readonly TYPE:'line_items';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItem>>;create(resource:LineItemCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;update(resource:LineItemUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;delete(id:string,options?:ResourcesConfig):Promise<void>;order(lineItemId:string|LineItem,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Order>;line_item_options(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<LineItemOption>>;return_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<ReturnLineItem>>;stock_reservations(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockReservation>>;stock_line_items(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockLineItem>>;stock_transfers(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;events(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(lineItemId:string|LineItem,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;isLineItem(resource:any):resource is LineItem;relationship(id:string|ResourceId|null):LineItemRel;type():string;}export default LineItems;export{LineItem,LineItemCreate,LineItemUpdate};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Merchant}from'./merchants';import type{PriceList}from'./price_lists';import type{InventoryModel}from'./inventory_models';import type{SubscriptionModel}from'./subscription_models';import type{TaxCalculator}from'./tax_calculators';import type{CustomerGroup}from'./customer_groups';import type{Attachment}from'./attachments';import type{Version}from'./versions';type MarketRel=ResourceRel&{type:typeof Markets.TYPE;};type MerchantRel=ResourceRel&{type:'merchants';};type PriceListRel=ResourceRel&{type:'price_lists';};type InventoryModelRel=ResourceRel&{type:'inventory_models';};type SubscriptionModelRel=ResourceRel&{type:'subscription_models';};type TaxCalculatorRel=ResourceRel&{type:'tax_calculators';};type CustomerGroupRel=ResourceRel&{type:'customer_groups';};interface Market extends Resource{number?:number;name?:string;code?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;external_order_validation_url?:string;private?:boolean;disabled_at?:string;shared_secret?:string;merchant?:Merchant;price_list?:PriceList;inventory_model?:InventoryModel;subscription_model?:SubscriptionModel;tax_calculator?:TaxCalculator;customer_group?:CustomerGroup;attachments?:Attachment[];versions?:Version[];}interface MarketCreate extends ResourceCreate{name:string;code?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;external_order_validation_url?:string;_disable?:boolean;_enable?:boolean;merchant:MerchantRel;price_list:PriceListRel;inventory_model:InventoryModelRel;subscription_model?:SubscriptionModelRel;tax_calculator?:TaxCalculatorRel;customer_group?:CustomerGroupRel;}interface MarketUpdate extends ResourceUpdate{name?:string;code?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;external_order_validation_url?:string;_disable?:boolean;_enable?:boolean;merchant?:MerchantRel;price_list?:PriceListRel;inventory_model?:InventoryModelRel;subscription_model?:SubscriptionModelRel;tax_calculator?:TaxCalculatorRel;customer_group?:CustomerGroupRel;}declare class Markets extends ApiResource{static readonly TYPE:'markets';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;create(resource:MarketCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;update(resource:MarketUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;delete(id:string,options?:ResourcesConfig):Promise<void>;merchant(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;price_list(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;inventory_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;subscription_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;tax_calculator(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;customer_group(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;attachments(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isMarket(resource:any):resource is Market;relationship(id:string|ResourceId|null):MarketRel;type():string;}export default Markets;export{Market,MarketCreate,MarketUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Merchant}from'./merchants';import type{PriceList}from'./price_lists';import type{InventoryModel}from'./inventory_models';import type{SubscriptionModel}from'./subscription_models';import type{TaxCalculator}from'./tax_calculators';import type{CustomerGroup}from'./customer_groups';import type{PriceListScheduler}from'./price_list_schedulers';import type{Attachment}from'./attachments';import type{Version}from'./versions';type MarketRel=ResourceRel&{type:typeof Markets.TYPE;};type MerchantRel=ResourceRel&{type:'merchants';};type PriceListRel=ResourceRel&{type:'price_lists';};type InventoryModelRel=ResourceRel&{type:'inventory_models';};type SubscriptionModelRel=ResourceRel&{type:'subscription_models';};type TaxCalculatorRel=ResourceRel&{type:'tax_calculators';};type CustomerGroupRel=ResourceRel&{type:'customer_groups';};interface Market extends Resource{number?:number;name?:string;code?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;external_order_validation_url?:string;private?:boolean;disabled_at?:string;shared_secret?:string;merchant?:Merchant;price_list?:PriceList;inventory_model?:InventoryModel;subscription_model?:SubscriptionModel;tax_calculator?:TaxCalculator;customer_group?:CustomerGroup;price_list_schedulers?:PriceListScheduler[];attachments?:Attachment[];versions?:Version[];}interface MarketCreate extends ResourceCreate{name:string;code?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;external_order_validation_url?:string;_disable?:boolean;_enable?:boolean;merchant:MerchantRel;price_list:PriceListRel;inventory_model:InventoryModelRel;subscription_model?:SubscriptionModelRel;tax_calculator?:TaxCalculatorRel;customer_group?:CustomerGroupRel;}interface MarketUpdate extends ResourceUpdate{name?:string;code?:string;facebook_pixel_id?:string;checkout_url?:string;external_prices_url?:string;external_order_validation_url?:string;_disable?:boolean;_enable?:boolean;merchant?:MerchantRel;price_list?:PriceListRel;inventory_model?:InventoryModelRel;subscription_model?:SubscriptionModelRel;tax_calculator?:TaxCalculatorRel;customer_group?:CustomerGroupRel;}declare class Markets extends ApiResource{static readonly TYPE:'markets';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Market>>;create(resource:MarketCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;update(resource:MarketUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;delete(id:string,options?:ResourcesConfig):Promise<void>;merchant(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Merchant>;price_list(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;inventory_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<InventoryModel>;subscription_model(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SubscriptionModel>;tax_calculator(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<TaxCalculator>;customer_group(marketId:string|Market,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CustomerGroup>;price_list_schedulers(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceListScheduler>>;attachments(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(marketId:string|Market,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isMarket(resource:any):resource is Market;relationship(id:string|ResourceId|null):MarketRel;type():string;}export default Markets;export{Market,MarketCreate,MarketUpdate};
@@ -1 +1 @@
1
- import{ApiResource as n}from"../resource";class c extends n{async list(e,t){return this.resources.list({type:c.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:c.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:c.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:c.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:c.TYPE,id:e},t)}async merchant(e,t,s){const r=e.id||e;return this.resources.fetch({type:"merchants"},`markets/${r}/merchant`,t,s)}async price_list(e,t,s){const r=e.id||e;return this.resources.fetch({type:"price_lists"},`markets/${r}/price_list`,t,s)}async inventory_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"inventory_models"},`markets/${r}/inventory_model`,t,s)}async subscription_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"subscription_models"},`markets/${r}/subscription_model`,t,s)}async tax_calculator(e,t,s){const r=e.id||e;return this.resources.fetch({type:"tax_calculators"},`markets/${r}/tax_calculator`,t,s)}async customer_group(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_groups"},`markets/${r}/customer_group`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`markets/${r}/attachments`,t,s)}async versions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"versions"},`markets/${r}/versions`,t,s)}isMarket(e){return e.type&&e.type===c.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:c.TYPE}:{id:e.id,type:c.TYPE}}type(){return c.TYPE}}c.TYPE="markets";export default c;
1
+ import{ApiResource as n}from"../resource";class c extends n{async list(e,t){return this.resources.list({type:c.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:c.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:c.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:c.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:c.TYPE,id:e},t)}async merchant(e,t,s){const r=e.id||e;return this.resources.fetch({type:"merchants"},`markets/${r}/merchant`,t,s)}async price_list(e,t,s){const r=e.id||e;return this.resources.fetch({type:"price_lists"},`markets/${r}/price_list`,t,s)}async inventory_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"inventory_models"},`markets/${r}/inventory_model`,t,s)}async subscription_model(e,t,s){const r=e.id||e;return this.resources.fetch({type:"subscription_models"},`markets/${r}/subscription_model`,t,s)}async tax_calculator(e,t,s){const r=e.id||e;return this.resources.fetch({type:"tax_calculators"},`markets/${r}/tax_calculator`,t,s)}async customer_group(e,t,s){const r=e.id||e;return this.resources.fetch({type:"customer_groups"},`markets/${r}/customer_group`,t,s)}async price_list_schedulers(e,t,s){const r=e.id||e;return this.resources.fetch({type:"price_list_schedulers"},`markets/${r}/price_list_schedulers`,t,s)}async attachments(e,t,s){const r=e.id||e;return this.resources.fetch({type:"attachments"},`markets/${r}/attachments`,t,s)}async versions(e,t,s){const r=e.id||e;return this.resources.fetch({type:"versions"},`markets/${r}/versions`,t,s)}isMarket(e){return e.type&&e.type===c.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:c.TYPE}:{id:e.id,type:c.TYPE}}type(){return c.TYPE}}c.TYPE="markets";export default c;
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type PercentageDiscountPromotionRel=ResourceRel&{type:typeof PercentageDiscountPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface PercentageDiscountPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;percentage?:number;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface PercentageDiscountPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;percentage:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface PercentageDiscountPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;percentage?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class PercentageDiscountPromotions extends ApiResource{static readonly TYPE:'percentage_discount_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PercentageDiscountPromotion>>;create(resource:PercentageDiscountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;update(resource:PercentageDiscountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isPercentageDiscountPromotion(resource:any):resource is PercentageDiscountPromotion;relationship(id:string|ResourceId|null):PercentageDiscountPromotionRel;type():string;}export default PercentageDiscountPromotions;export{PercentageDiscountPromotion,PercentageDiscountPromotionCreate,PercentageDiscountPromotionUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';import type{Sku}from'./skus';type PercentageDiscountPromotionRel=ResourceRel&{type:typeof PercentageDiscountPromotions.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type OrderAmountPromotionRuleRel=ResourceRel&{type:'order_amount_promotion_rules';};type SkuListPromotionRuleRel=ResourceRel&{type:'sku_list_promotion_rules';};type CouponCodesPromotionRuleRel=ResourceRel&{type:'coupon_codes_promotion_rules';};type CustomPromotionRuleRel=ResourceRel&{type:'custom_promotion_rules';};type SkuListRel=ResourceRel&{type:'sku_lists';};type TagRel=ResourceRel&{type:'tags';};interface PercentageDiscountPromotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;percentage?:number;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];skus?:Sku[];}interface PercentageDiscountPromotionCreate extends ResourceCreate{name:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at:string;expires_at:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;percentage:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}interface PercentageDiscountPromotionUpdate extends ResourceUpdate{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;_disable?:boolean;_enable?:boolean;percentage?:number;market?:MarketRel;order_amount_promotion_rule?:OrderAmountPromotionRuleRel;sku_list_promotion_rule?:SkuListPromotionRuleRel;coupon_codes_promotion_rule?:CouponCodesPromotionRuleRel;custom_promotion_rule?:CustomPromotionRuleRel;sku_list?:SkuListRel;tags?:TagRel[];}declare class PercentageDiscountPromotions extends ApiResource{static readonly TYPE:'percentage_discount_promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PercentageDiscountPromotion>>;create(resource:PercentageDiscountPromotionCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;update(resource:PercentageDiscountPromotionUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PercentageDiscountPromotion>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;skus(percentageDiscountPromotionId:string|PercentageDiscountPromotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Sku>>;isPercentageDiscountPromotion(resource:any):resource is PercentageDiscountPromotion;relationship(id:string|ResourceId|null):PercentageDiscountPromotionRel;type():string;}export default PercentageDiscountPromotions;export{PercentageDiscountPromotion,PercentageDiscountPromotionCreate,PercentageDiscountPromotionUpdate};
@@ -0,0 +1 @@
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PriceList}from'./price_lists';import type{Event}from'./events';import type{Version}from'./versions';type PriceListSchedulerRel=ResourceRel&{type:typeof PriceListSchedulers.TYPE;};type MarketRel=ResourceRel&{type:'markets';};type PriceListRel=ResourceRel&{type:'price_lists';};interface PriceListScheduler extends Resource{name?:string;starts_at?:string;expires_at?:string;active?:boolean;status?:string;disabled_at?:string;market?:Market;price_list?:PriceList;events?:Event[];versions?:Version[];}interface PriceListSchedulerCreate extends ResourceCreate{name:string;starts_at:string;expires_at:string;_disable?:boolean;_enable?:boolean;market:MarketRel;price_list:PriceListRel;}interface PriceListSchedulerUpdate extends ResourceUpdate{name?:string;starts_at?:string;expires_at?:string;_disable?:boolean;_enable?:boolean;market?:MarketRel;price_list?:PriceListRel;}declare class PriceListSchedulers extends ApiResource{static readonly TYPE:'price_list_schedulers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceListScheduler>>;create(resource:PriceListSchedulerCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceListScheduler>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceListScheduler>;update(resource:PriceListSchedulerUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceListScheduler>;delete(id:string,options?:ResourcesConfig):Promise<void>;market(priceListSchedulerId:string|PriceListScheduler,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;price_list(priceListSchedulerId:string|PriceListScheduler,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;events(priceListSchedulerId:string|PriceListScheduler,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(priceListSchedulerId:string|PriceListScheduler,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isPriceListScheduler(resource:any):resource is PriceListScheduler;relationship(id:string|ResourceId|null):PriceListSchedulerRel;type():string;}export default PriceListSchedulers;export{PriceListScheduler,PriceListSchedulerCreate,PriceListSchedulerUpdate};
@@ -0,0 +1 @@
1
+ import{ApiResource as c}from"../resource";class r extends c{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async market(e,t,s){const n=e.id||e;return this.resources.fetch({type:"markets"},`price_list_schedulers/${n}/market`,t,s)}async price_list(e,t,s){const n=e.id||e;return this.resources.fetch({type:"price_lists"},`price_list_schedulers/${n}/price_list`,t,s)}async events(e,t,s){const n=e.id||e;return this.resources.fetch({type:"events"},`price_list_schedulers/${n}/events`,t,s)}async versions(e,t,s){const n=e.id||e;return this.resources.fetch({type:"versions"},`price_list_schedulers/${n}/versions`,t,s)}isPriceListScheduler(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="price_list_schedulers";export default r;
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Price}from'./prices';import type{Attachment}from'./attachments';import type{Version}from'./versions';type PriceListRel=ResourceRel&{type:typeof PriceLists.TYPE;};interface PriceList extends Resource{name?:string;code?:string;currency_code?:string;tax_included?:boolean;prices?:Price[];attachments?:Attachment[];versions?:Version[];}interface PriceListCreate extends ResourceCreate{name:string;code?:string;currency_code:string;tax_included?:boolean;}interface PriceListUpdate extends ResourceUpdate{name?:string;code?:string;currency_code?:string;tax_included?:boolean;}declare class PriceLists extends ApiResource{static readonly TYPE:'price_lists';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceList>>;create(resource:PriceListCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;update(resource:PriceListUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;delete(id:string,options?:ResourcesConfig):Promise<void>;prices(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;attachments(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isPriceList(resource:any):resource is PriceList;relationship(id:string|ResourceId|null):PriceListRel;type():string;}export default PriceLists;export{PriceList,PriceListCreate,PriceListUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Price}from'./prices';import type{PriceListScheduler}from'./price_list_schedulers';import type{Attachment}from'./attachments';import type{Version}from'./versions';type PriceListRel=ResourceRel&{type:typeof PriceLists.TYPE;};interface PriceList extends Resource{name?:string;code?:string;currency_code?:string;tax_included?:boolean;prices?:Price[];price_list_schedulers?:PriceListScheduler[];attachments?:Attachment[];versions?:Version[];}interface PriceListCreate extends ResourceCreate{name:string;code?:string;currency_code:string;tax_included?:boolean;}interface PriceListUpdate extends ResourceUpdate{name?:string;code?:string;currency_code?:string;tax_included?:boolean;}declare class PriceLists extends ApiResource{static readonly TYPE:'price_lists';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceList>>;create(resource:PriceListCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;update(resource:PriceListUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<PriceList>;delete(id:string,options?:ResourcesConfig):Promise<void>;prices(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Price>>;price_list_schedulers(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<PriceListScheduler>>;attachments(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;versions(priceListId:string|PriceList,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isPriceList(resource:any):resource is PriceList;relationship(id:string|ResourceId|null):PriceListRel;type():string;}export default PriceLists;export{PriceList,PriceListCreate,PriceListUpdate};
@@ -1 +1 @@
1
- import{ApiResource as c}from"../resource";class s extends c{async list(e,t){return this.resources.list({type:s.TYPE},e,t)}async create(e,t,r){return this.resources.create(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async retrieve(e,t,r){return this.resources.retrieve({type:s.TYPE,id:e},t,r)}async update(e,t,r){return this.resources.update(Object.assign(Object.assign({},e),{type:s.TYPE}),t,r)}async delete(e,t){await this.resources.delete({type:s.TYPE,id:e},t)}async prices(e,t,r){const n=e.id||e;return this.resources.fetch({type:"prices"},`price_lists/${n}/prices`,t,r)}async attachments(e,t,r){const n=e.id||e;return this.resources.fetch({type:"attachments"},`price_lists/${n}/attachments`,t,r)}async versions(e,t,r){const n=e.id||e;return this.resources.fetch({type:"versions"},`price_lists/${n}/versions`,t,r)}isPriceList(e){return e.type&&e.type===s.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:s.TYPE}:{id:e.id,type:s.TYPE}}type(){return s.TYPE}}s.TYPE="price_lists";export default s;
1
+ import{ApiResource as n}from"../resource";class r extends n{async list(e,t){return this.resources.list({type:r.TYPE},e,t)}async create(e,t,s){return this.resources.create(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async retrieve(e,t,s){return this.resources.retrieve({type:r.TYPE,id:e},t,s)}async update(e,t,s){return this.resources.update(Object.assign(Object.assign({},e),{type:r.TYPE}),t,s)}async delete(e,t){await this.resources.delete({type:r.TYPE,id:e},t)}async prices(e,t,s){const c=e.id||e;return this.resources.fetch({type:"prices"},`price_lists/${c}/prices`,t,s)}async price_list_schedulers(e,t,s){const c=e.id||e;return this.resources.fetch({type:"price_list_schedulers"},`price_lists/${c}/price_list_schedulers`,t,s)}async attachments(e,t,s){const c=e.id||e;return this.resources.fetch({type:"attachments"},`price_lists/${c}/attachments`,t,s)}async versions(e,t,s){const c=e.id||e;return this.resources.fetch({type:"versions"},`price_lists/${c}/versions`,t,s)}isPriceList(e){return e.type&&e.type===r.TYPE}relationship(e){return e===null||typeof e=="string"?{id:e,type:r.TYPE}:{id:e.id,type:r.TYPE}}type(){return r.TYPE}}r.TYPE="price_lists";export default r;
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';type PromotionRel=ResourceRel&{type:typeof Promotions.TYPE;};interface Promotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;disabled_at?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];}declare class Promotions extends ApiResource{static readonly TYPE:'promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Promotion>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Promotion>;market(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isPromotion(resource:any):resource is Promotion;relationship(id:string|ResourceId|null):PromotionRel;type():string;}export default Promotions;export{Promotion};
1
+ import{ApiResource,Resource,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Market}from'./markets';import type{PromotionRule}from'./promotion_rules';import type{OrderAmountPromotionRule}from'./order_amount_promotion_rules';import type{SkuListPromotionRule}from'./sku_list_promotion_rules';import type{CouponCodesPromotionRule}from'./coupon_codes_promotion_rules';import type{CustomPromotionRule}from'./custom_promotion_rules';import type{SkuList}from'./sku_lists';import type{Coupon}from'./coupons';import type{Attachment}from'./attachments';import type{Event}from'./events';import type{Tag}from'./tags';import type{Version}from'./versions';type PromotionRel=ResourceRel&{type:typeof Promotions.TYPE;};interface Promotion extends Resource{name?:string;currency_code?:string;exclusive?:boolean;priority?:number;starts_at?:string;expires_at?:string;total_usage_limit?:number;total_usage_count?:number;active?:boolean;status?:string;disabled_at?:string;market?:Market;promotion_rules?:PromotionRule[];order_amount_promotion_rule?:OrderAmountPromotionRule;sku_list_promotion_rule?:SkuListPromotionRule;coupon_codes_promotion_rule?:CouponCodesPromotionRule;custom_promotion_rule?:CustomPromotionRule;sku_list?:SkuList;coupons?:Coupon[];attachments?:Attachment[];events?:Event[];tags?:Tag[];versions?:Version[];}declare class Promotions extends ApiResource{static readonly TYPE:'promotions';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Promotion>>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Promotion>;market(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Market>;order_amount_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<OrderAmountPromotionRule>;sku_list_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<SkuListPromotionRule>;coupon_codes_promotion_rule(promotionId:string|Promotion,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<CouponCodesPromotionRule>;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>>;attachments(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Attachment>>;events(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;tags(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Tag>>;versions(promotionId:string|Promotion,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isPromotion(resource:any):resource is Promotion;relationship(id:string|ResourceId|null):PromotionRel;type():string;}export default Promotions;export{Promotion};
@@ -1 +1 @@
1
- import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{StockLocation}from'./stock_locations';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{Event}from'./events';import type{Version}from'./versions';type StockTransferRel=ResourceRel&{type:typeof StockTransfers.TYPE;};type SkuRel=ResourceRel&{type:'skus';};type StockLocationRel=ResourceRel&{type:'stock_locations';};type ShipmentRel=ResourceRel&{type:'shipments';};type LineItemRel=ResourceRel&{type:'line_items';};interface StockTransfer extends Resource{number?:string;sku_code?:string;status?:string;quantity?:number;completed_at?:string;cancelled_at?:string;sku?:Sku;origin_stock_location?:StockLocation;destination_stock_location?:StockLocation;shipment?:Shipment;line_item?:LineItem;events?:Event[];versions?:Version[];}interface StockTransferCreate extends ResourceCreate{sku_code?:string;quantity:number;sku:SkuRel;origin_stock_location:StockLocationRel;destination_stock_location:StockLocationRel;shipment?:ShipmentRel;line_item?:LineItemRel;}interface StockTransferUpdate extends ResourceUpdate{sku_code?:string;_upcoming?:boolean;_on_hold?:boolean;_picking?:boolean;_in_transit?:boolean;_complete?:boolean;_cancel?:boolean;sku?:SkuRel;origin_stock_location?:StockLocationRel;destination_stock_location?:StockLocationRel;}declare class StockTransfers extends ApiResource{static readonly TYPE:'stock_transfers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;create(resource:StockTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;update(resource:StockTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;origin_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;destination_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipment(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;events(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isStockTransfer(resource:any):resource is StockTransfer;relationship(id:string|ResourceId|null):StockTransferRel;type():string;}export default StockTransfers;export{StockTransfer,StockTransferCreate,StockTransferUpdate};
1
+ import{ApiResource,Resource,ResourceCreate,ResourceUpdate,ResourcesConfig,ResourceId,ResourceRel,ListResponse}from'../resource';import type{QueryParamsList,QueryParamsRetrieve}from'../query';import type{Sku}from'./skus';import type{StockLocation}from'./stock_locations';import type{Shipment}from'./shipments';import type{LineItem}from'./line_items';import type{Event}from'./events';import type{Version}from'./versions';type StockTransferRel=ResourceRel&{type:typeof StockTransfers.TYPE;};type SkuRel=ResourceRel&{type:'skus';};type StockLocationRel=ResourceRel&{type:'stock_locations';};type ShipmentRel=ResourceRel&{type:'shipments';};type LineItemRel=ResourceRel&{type:'line_items';};interface StockTransfer extends Resource{number?:string;sku_code?:string;status?:string;quantity?:number;completed_at?:string;cancelled_at?:string;sku?:Sku;origin_stock_location?:StockLocation;destination_stock_location?:StockLocation;shipment?:Shipment;line_item?:LineItem;events?:Event[];versions?:Version[];}interface StockTransferCreate extends ResourceCreate{sku_code?:string;quantity:number;sku:SkuRel;origin_stock_location:StockLocationRel;destination_stock_location:StockLocationRel;shipment?:ShipmentRel;line_item?:LineItemRel;}interface StockTransferUpdate extends ResourceUpdate{sku_code?:string;_upcoming?:boolean;_on_hold?:boolean;_picking?:boolean;_in_transit?:boolean;_complete?:boolean;_cancel?:boolean;sku?:SkuRel;origin_stock_location?:StockLocationRel;destination_stock_location?:StockLocationRel;shipment?:ShipmentRel;line_item?:LineItemRel;}declare class StockTransfers extends ApiResource{static readonly TYPE:'stock_transfers';list(params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<StockTransfer>>;create(resource:StockTransferCreate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;retrieve(id:string,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;update(resource:StockTransferUpdate,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockTransfer>;delete(id:string,options?:ResourcesConfig):Promise<void>;sku(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Sku>;origin_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;destination_stock_location(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<StockLocation>;shipment(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<Shipment>;line_item(stockTransferId:string|StockTransfer,params?:QueryParamsRetrieve,options?:ResourcesConfig):Promise<LineItem>;events(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Event>>;versions(stockTransferId:string|StockTransfer,params?:QueryParamsList,options?:ResourcesConfig):Promise<ListResponse<Version>>;isStockTransfer(resource:any):resource is StockTransfer;relationship(id:string|ResourceId|null):StockTransferRel;type():string;}export default StockTransfers;export{StockTransfer,StockTransferCreate,StockTransferUpdate};