@commercelayer/sdk 6.37.0 → 6.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.mts +26 -8
- package/lib/index.d.ts +26 -8
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +3 -3
package/lib/index.d.mts
CHANGED
@@ -2030,6 +2030,11 @@ interface StripePayment extends Resource {
|
|
2030
2030
|
* @example ```"pi_1234XXX_secret_5678YYY"```
|
2031
2031
|
*/
|
2032
2032
|
client_secret?: string | null;
|
2033
|
+
/**
|
2034
|
+
* The account (if any) for which the funds of the PaymentIntent are intended.
|
2035
|
+
* @example ```"acct_xxxx-yyyy-zzzz"```
|
2036
|
+
*/
|
2037
|
+
connected_account?: string | null;
|
2033
2038
|
/**
|
2034
2039
|
* The Stripe charge ID. Identifies money movement upon the payment intent confirmation.
|
2035
2040
|
* @example ```"ch_1234XXX"```
|
@@ -5649,7 +5654,7 @@ declare class Adjustments extends ApiResource<Adjustment> {
|
|
5649
5654
|
}
|
5650
5655
|
|
5651
5656
|
type DiscountEngineType = 'discount_engines';
|
5652
|
-
type DiscountEngineRel$
|
5657
|
+
type DiscountEngineRel$2 = ResourceRel & {
|
5653
5658
|
type: DiscountEngineType;
|
5654
5659
|
};
|
5655
5660
|
type DiscountEngineSort = Pick<DiscountEngine, 'id' | 'name'> & ResourceSort;
|
@@ -5676,8 +5681,8 @@ declare class DiscountEngines extends ApiResource<DiscountEngine> {
|
|
5676
5681
|
attachments(discountEngineId: string | DiscountEngine, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
5677
5682
|
versions(discountEngineId: string | DiscountEngine, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
5678
5683
|
isDiscountEngine(resource: any): resource is DiscountEngine;
|
5679
|
-
relationship(id: string | ResourceId | null): DiscountEngineRel$
|
5680
|
-
relationshipToMany(...ids: string[]): DiscountEngineRel$
|
5684
|
+
relationship(id: string | ResourceId | null): DiscountEngineRel$2;
|
5685
|
+
relationshipToMany(...ids: string[]): DiscountEngineRel$2[];
|
5681
5686
|
type(): DiscountEngineType;
|
5682
5687
|
}
|
5683
5688
|
|
@@ -10118,7 +10123,7 @@ interface Order extends Resource {
|
|
10118
10123
|
*/
|
10119
10124
|
fulfillment_updated_at?: string | null;
|
10120
10125
|
/**
|
10121
|
-
* Last time at which
|
10126
|
+
* Last time at which the order was refreshed.
|
10122
10127
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
10123
10128
|
*/
|
10124
10129
|
refreshed_at?: string | null;
|
@@ -10155,6 +10160,7 @@ interface Order extends Resource {
|
|
10155
10160
|
available_free_bundles?: Bundle[] | null;
|
10156
10161
|
payment_method?: PaymentMethod | null;
|
10157
10162
|
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
10163
|
+
discount_engine_item?: DiscountEngineItem | null;
|
10158
10164
|
line_items?: LineItem[] | null;
|
10159
10165
|
line_item_options?: LineItemOption[] | null;
|
10160
10166
|
stock_reservations?: StockReservation[] | null;
|
@@ -10568,6 +10574,7 @@ declare class Orders extends ApiResource<Order> {
|
|
10568
10574
|
available_free_skus(orderId: string | Order, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
10569
10575
|
available_free_bundles(orderId: string | Order, params?: QueryParamsList<Bundle>, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
10570
10576
|
payment_method(orderId: string | Order, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
|
10577
|
+
discount_engine_item(orderId: string | Order, params?: QueryParamsRetrieve<DiscountEngineItem>, options?: ResourcesConfig): Promise<DiscountEngineItem>;
|
10571
10578
|
line_items(orderId: string | Order, params?: QueryParamsList<LineItem>, options?: ResourcesConfig): Promise<ListResponse<LineItem>>;
|
10572
10579
|
line_item_options(orderId: string | Order, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
|
10573
10580
|
stock_reservations(orderId: string | Order, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
|
@@ -13958,7 +13965,7 @@ type DeliveryLeadTimeRel = ResourceRel & {
|
|
13958
13965
|
type ShippingMethodRel$1 = ResourceRel & {
|
13959
13966
|
type: ShippingMethodType;
|
13960
13967
|
};
|
13961
|
-
type DiscountEngineRel = ResourceRel & {
|
13968
|
+
type DiscountEngineRel$1 = ResourceRel & {
|
13962
13969
|
type: DiscountEngineType;
|
13963
13970
|
};
|
13964
13971
|
type ShipmentRel$1 = ResourceRel & {
|
@@ -14042,7 +14049,7 @@ interface AttachmentCreate extends ResourceCreate {
|
|
14042
14049
|
* @example ```"https://s3.yourdomain.com/attachment.pdf"```
|
14043
14050
|
*/
|
14044
14051
|
url?: string | null;
|
14045
|
-
attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
|
14052
|
+
attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel$1 | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
|
14046
14053
|
}
|
14047
14054
|
interface AttachmentUpdate extends ResourceUpdate {
|
14048
14055
|
/**
|
@@ -14060,7 +14067,7 @@ interface AttachmentUpdate extends ResourceUpdate {
|
|
14060
14067
|
* @example ```"https://s3.yourdomain.com/attachment.pdf"```
|
14061
14068
|
*/
|
14062
14069
|
url?: string | null;
|
14063
|
-
attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
|
14070
|
+
attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel$1 | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
|
14064
14071
|
}
|
14065
14072
|
declare class Attachments extends ApiResource<Attachment> {
|
14066
14073
|
static readonly TYPE: AttachmentType;
|
@@ -14138,6 +14145,9 @@ type InventoryModelRel = ResourceRel & {
|
|
14138
14145
|
type SubscriptionModelRel = ResourceRel & {
|
14139
14146
|
type: SubscriptionModelType;
|
14140
14147
|
};
|
14148
|
+
type DiscountEngineRel = ResourceRel & {
|
14149
|
+
type: DiscountEngineType;
|
14150
|
+
};
|
14141
14151
|
type AvalaraAccountRel = ResourceRel & {
|
14142
14152
|
type: AvalaraAccountType;
|
14143
14153
|
};
|
@@ -14231,6 +14241,7 @@ interface Market extends Resource {
|
|
14231
14241
|
base_price_list?: PriceList | null;
|
14232
14242
|
inventory_model?: InventoryModel | null;
|
14233
14243
|
subscription_model?: SubscriptionModel | null;
|
14244
|
+
discount_engine?: DiscountEngine | null;
|
14234
14245
|
tax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null;
|
14235
14246
|
customer_group?: CustomerGroup | null;
|
14236
14247
|
geocoder?: Geocoder | null;
|
@@ -14291,6 +14302,7 @@ interface MarketCreate extends ResourceCreate {
|
|
14291
14302
|
price_list: PriceListRel;
|
14292
14303
|
inventory_model: InventoryModelRel;
|
14293
14304
|
subscription_model?: SubscriptionModelRel | null;
|
14305
|
+
discount_engine?: DiscountEngineRel | null;
|
14294
14306
|
tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
|
14295
14307
|
customer_group?: CustomerGroupRel | null;
|
14296
14308
|
geocoder?: GeocoderRel$2 | null;
|
@@ -14347,6 +14359,7 @@ interface MarketUpdate extends ResourceUpdate {
|
|
14347
14359
|
price_list?: PriceListRel | null;
|
14348
14360
|
inventory_model?: InventoryModelRel | null;
|
14349
14361
|
subscription_model?: SubscriptionModelRel | null;
|
14362
|
+
discount_engine?: DiscountEngineRel | null;
|
14350
14363
|
tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
|
14351
14364
|
customer_group?: CustomerGroupRel | null;
|
14352
14365
|
geocoder?: GeocoderRel$2 | null;
|
@@ -14363,6 +14376,7 @@ declare class Markets extends ApiResource<Market> {
|
|
14363
14376
|
base_price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList>;
|
14364
14377
|
inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel>;
|
14365
14378
|
subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
14379
|
+
discount_engine(marketId: string | Market, params?: QueryParamsRetrieve<DiscountEngine>, options?: ResourcesConfig): Promise<DiscountEngine>;
|
14366
14380
|
tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator>;
|
14367
14381
|
customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
|
14368
14382
|
geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
|
@@ -16332,6 +16346,10 @@ interface Organization extends Resource {
|
|
16332
16346
|
* @example ```true```
|
16333
16347
|
*/
|
16334
16348
|
addresses_phone_required?: boolean | null;
|
16349
|
+
/**
|
16350
|
+
* The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done, until the lapse is observed.
|
16351
|
+
*/
|
16352
|
+
orders_min_refresh_lapse?: number | null;
|
16335
16353
|
/**
|
16336
16354
|
* The maximum number line items allowed for a test order before disabling the autorefresh option.
|
16337
16355
|
* @example ```50```
|
@@ -17137,7 +17155,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17137
17155
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17138
17156
|
declare class CommerceLayerClient {
|
17139
17157
|
#private;
|
17140
|
-
readonly openApiSchemaVersion = "7.8.
|
17158
|
+
readonly openApiSchemaVersion = "7.8.4";
|
17141
17159
|
constructor(config: CommerceLayerInitConfig);
|
17142
17160
|
get addresses(): Addresses;
|
17143
17161
|
get adjustments(): Adjustments;
|
package/lib/index.d.ts
CHANGED
@@ -2030,6 +2030,11 @@ interface StripePayment extends Resource {
|
|
2030
2030
|
* @example ```"pi_1234XXX_secret_5678YYY"```
|
2031
2031
|
*/
|
2032
2032
|
client_secret?: string | null;
|
2033
|
+
/**
|
2034
|
+
* The account (if any) for which the funds of the PaymentIntent are intended.
|
2035
|
+
* @example ```"acct_xxxx-yyyy-zzzz"```
|
2036
|
+
*/
|
2037
|
+
connected_account?: string | null;
|
2033
2038
|
/**
|
2034
2039
|
* The Stripe charge ID. Identifies money movement upon the payment intent confirmation.
|
2035
2040
|
* @example ```"ch_1234XXX"```
|
@@ -5649,7 +5654,7 @@ declare class Adjustments extends ApiResource<Adjustment> {
|
|
5649
5654
|
}
|
5650
5655
|
|
5651
5656
|
type DiscountEngineType = 'discount_engines';
|
5652
|
-
type DiscountEngineRel$
|
5657
|
+
type DiscountEngineRel$2 = ResourceRel & {
|
5653
5658
|
type: DiscountEngineType;
|
5654
5659
|
};
|
5655
5660
|
type DiscountEngineSort = Pick<DiscountEngine, 'id' | 'name'> & ResourceSort;
|
@@ -5676,8 +5681,8 @@ declare class DiscountEngines extends ApiResource<DiscountEngine> {
|
|
5676
5681
|
attachments(discountEngineId: string | DiscountEngine, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>>;
|
5677
5682
|
versions(discountEngineId: string | DiscountEngine, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>>;
|
5678
5683
|
isDiscountEngine(resource: any): resource is DiscountEngine;
|
5679
|
-
relationship(id: string | ResourceId | null): DiscountEngineRel$
|
5680
|
-
relationshipToMany(...ids: string[]): DiscountEngineRel$
|
5684
|
+
relationship(id: string | ResourceId | null): DiscountEngineRel$2;
|
5685
|
+
relationshipToMany(...ids: string[]): DiscountEngineRel$2[];
|
5681
5686
|
type(): DiscountEngineType;
|
5682
5687
|
}
|
5683
5688
|
|
@@ -10118,7 +10123,7 @@ interface Order extends Resource {
|
|
10118
10123
|
*/
|
10119
10124
|
fulfillment_updated_at?: string | null;
|
10120
10125
|
/**
|
10121
|
-
* Last time at which
|
10126
|
+
* Last time at which the order was refreshed.
|
10122
10127
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
10123
10128
|
*/
|
10124
10129
|
refreshed_at?: string | null;
|
@@ -10155,6 +10160,7 @@ interface Order extends Resource {
|
|
10155
10160
|
available_free_bundles?: Bundle[] | null;
|
10156
10161
|
payment_method?: PaymentMethod | null;
|
10157
10162
|
payment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null;
|
10163
|
+
discount_engine_item?: DiscountEngineItem | null;
|
10158
10164
|
line_items?: LineItem[] | null;
|
10159
10165
|
line_item_options?: LineItemOption[] | null;
|
10160
10166
|
stock_reservations?: StockReservation[] | null;
|
@@ -10568,6 +10574,7 @@ declare class Orders extends ApiResource<Order> {
|
|
10568
10574
|
available_free_skus(orderId: string | Order, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>>;
|
10569
10575
|
available_free_bundles(orderId: string | Order, params?: QueryParamsList<Bundle>, options?: ResourcesConfig): Promise<ListResponse<Bundle>>;
|
10570
10576
|
payment_method(orderId: string | Order, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod>;
|
10577
|
+
discount_engine_item(orderId: string | Order, params?: QueryParamsRetrieve<DiscountEngineItem>, options?: ResourcesConfig): Promise<DiscountEngineItem>;
|
10571
10578
|
line_items(orderId: string | Order, params?: QueryParamsList<LineItem>, options?: ResourcesConfig): Promise<ListResponse<LineItem>>;
|
10572
10579
|
line_item_options(orderId: string | Order, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>>;
|
10573
10580
|
stock_reservations(orderId: string | Order, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>>;
|
@@ -13958,7 +13965,7 @@ type DeliveryLeadTimeRel = ResourceRel & {
|
|
13958
13965
|
type ShippingMethodRel$1 = ResourceRel & {
|
13959
13966
|
type: ShippingMethodType;
|
13960
13967
|
};
|
13961
|
-
type DiscountEngineRel = ResourceRel & {
|
13968
|
+
type DiscountEngineRel$1 = ResourceRel & {
|
13962
13969
|
type: DiscountEngineType;
|
13963
13970
|
};
|
13964
13971
|
type ShipmentRel$1 = ResourceRel & {
|
@@ -14042,7 +14049,7 @@ interface AttachmentCreate extends ResourceCreate {
|
|
14042
14049
|
* @example ```"https://s3.yourdomain.com/attachment.pdf"```
|
14043
14050
|
*/
|
14044
14051
|
url?: string | null;
|
14045
|
-
attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
|
14052
|
+
attachable: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel$1 | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel;
|
14046
14053
|
}
|
14047
14054
|
interface AttachmentUpdate extends ResourceUpdate {
|
14048
14055
|
/**
|
@@ -14060,7 +14067,7 @@ interface AttachmentUpdate extends ResourceUpdate {
|
|
14060
14067
|
* @example ```"https://s3.yourdomain.com/attachment.pdf"```
|
14061
14068
|
*/
|
14062
14069
|
url?: string | null;
|
14063
|
-
attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
|
14070
|
+
attachable?: GeocoderRel$3 | PriceListRel$1 | PaymentMethodRel$1 | MarketRel$2 | CustomerGroupRel$1 | OrderRel | TransactionRel | PromotionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel$1 | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel$1 | DeliveryLeadTimeRel | ShippingMethodRel$1 | DiscountEngineRel$1 | ShipmentRel$1 | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel$1 | StockTransferRel | SkuOptionRel | MerchantRel$2 | SubscriptionModelRel$1 | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null;
|
14064
14071
|
}
|
14065
14072
|
declare class Attachments extends ApiResource<Attachment> {
|
14066
14073
|
static readonly TYPE: AttachmentType;
|
@@ -14138,6 +14145,9 @@ type InventoryModelRel = ResourceRel & {
|
|
14138
14145
|
type SubscriptionModelRel = ResourceRel & {
|
14139
14146
|
type: SubscriptionModelType;
|
14140
14147
|
};
|
14148
|
+
type DiscountEngineRel = ResourceRel & {
|
14149
|
+
type: DiscountEngineType;
|
14150
|
+
};
|
14141
14151
|
type AvalaraAccountRel = ResourceRel & {
|
14142
14152
|
type: AvalaraAccountType;
|
14143
14153
|
};
|
@@ -14231,6 +14241,7 @@ interface Market extends Resource {
|
|
14231
14241
|
base_price_list?: PriceList | null;
|
14232
14242
|
inventory_model?: InventoryModel | null;
|
14233
14243
|
subscription_model?: SubscriptionModel | null;
|
14244
|
+
discount_engine?: DiscountEngine | null;
|
14234
14245
|
tax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null;
|
14235
14246
|
customer_group?: CustomerGroup | null;
|
14236
14247
|
geocoder?: Geocoder | null;
|
@@ -14291,6 +14302,7 @@ interface MarketCreate extends ResourceCreate {
|
|
14291
14302
|
price_list: PriceListRel;
|
14292
14303
|
inventory_model: InventoryModelRel;
|
14293
14304
|
subscription_model?: SubscriptionModelRel | null;
|
14305
|
+
discount_engine?: DiscountEngineRel | null;
|
14294
14306
|
tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
|
14295
14307
|
customer_group?: CustomerGroupRel | null;
|
14296
14308
|
geocoder?: GeocoderRel$2 | null;
|
@@ -14347,6 +14359,7 @@ interface MarketUpdate extends ResourceUpdate {
|
|
14347
14359
|
price_list?: PriceListRel | null;
|
14348
14360
|
inventory_model?: InventoryModelRel | null;
|
14349
14361
|
subscription_model?: SubscriptionModelRel | null;
|
14362
|
+
discount_engine?: DiscountEngineRel | null;
|
14350
14363
|
tax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null;
|
14351
14364
|
customer_group?: CustomerGroupRel | null;
|
14352
14365
|
geocoder?: GeocoderRel$2 | null;
|
@@ -14363,6 +14376,7 @@ declare class Markets extends ApiResource<Market> {
|
|
14363
14376
|
base_price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList>;
|
14364
14377
|
inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel>;
|
14365
14378
|
subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
14379
|
+
discount_engine(marketId: string | Market, params?: QueryParamsRetrieve<DiscountEngine>, options?: ResourcesConfig): Promise<DiscountEngine>;
|
14366
14380
|
tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator>;
|
14367
14381
|
customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup>;
|
14368
14382
|
geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder>;
|
@@ -16332,6 +16346,10 @@ interface Organization extends Resource {
|
|
16332
16346
|
* @example ```true```
|
16333
16347
|
*/
|
16334
16348
|
addresses_phone_required?: boolean | null;
|
16349
|
+
/**
|
16350
|
+
* The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done, until the lapse is observed.
|
16351
|
+
*/
|
16352
|
+
orders_min_refresh_lapse?: number | null;
|
16335
16353
|
/**
|
16336
16354
|
* The maximum number line items allowed for a test order before disabling the autorefresh option.
|
16337
16355
|
* @example ```50```
|
@@ -17137,7 +17155,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
17137
17155
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
17138
17156
|
declare class CommerceLayerClient {
|
17139
17157
|
#private;
|
17140
|
-
readonly openApiSchemaVersion = "7.8.
|
17158
|
+
readonly openApiSchemaVersion = "7.8.4";
|
17141
17159
|
constructor(config: CommerceLayerInitConfig);
|
17142
17160
|
get addresses(): Addresses;
|
17143
17161
|
get adjustments(): Adjustments;
|