@commercelayer/sdk 6.15.0 → 6.17.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 +85 -58
- package/lib/index.d.ts +85 -58
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/package.json +3 -3
package/lib/index.d.mts
CHANGED
@@ -789,7 +789,7 @@ interface WebhookUpdate extends ResourceUpdate {
|
|
789
789
|
*/
|
790
790
|
_enable?: boolean | null;
|
791
791
|
/**
|
792
|
-
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
792
|
+
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
|
793
793
|
* @example ```"true"```
|
794
794
|
*/
|
795
795
|
_reset_circuit?: boolean | null;
|
@@ -827,7 +827,7 @@ interface Event extends Resource {
|
|
827
827
|
}
|
828
828
|
interface EventUpdate extends ResourceUpdate {
|
829
829
|
/**
|
830
|
-
* Send this attribute if you want to force webhooks execution for this event.
|
830
|
+
* Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels.
|
831
831
|
* @example ```"true"```
|
832
832
|
*/
|
833
833
|
_trigger?: boolean | null;
|
@@ -3606,17 +3606,17 @@ interface StockLineItemUpdate extends ResourceUpdate {
|
|
3606
3606
|
*/
|
3607
3607
|
quantity?: number | null;
|
3608
3608
|
/**
|
3609
|
-
* Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress.
|
3609
|
+
* Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
3610
3610
|
* @example ```"true"```
|
3611
3611
|
*/
|
3612
3612
|
_reserve_stock?: boolean | null;
|
3613
3613
|
/**
|
3614
|
-
* Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress.
|
3614
|
+
* Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
3615
3615
|
* @example ```"true"```
|
3616
3616
|
*/
|
3617
3617
|
_release_stock?: boolean | null;
|
3618
3618
|
/**
|
3619
|
-
* Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress.
|
3619
|
+
* Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
3620
3620
|
* @example ```"true"```
|
3621
3621
|
*/
|
3622
3622
|
_decrement_stock?: boolean | null;
|
@@ -5106,7 +5106,7 @@ interface ExternalPromotionUpdate extends ResourceUpdate {
|
|
5106
5106
|
*/
|
5107
5107
|
promotion_url?: string | null;
|
5108
5108
|
/**
|
5109
|
-
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
5109
|
+
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
|
5110
5110
|
* @example ```"true"```
|
5111
5111
|
*/
|
5112
5112
|
_reset_circuit?: boolean | null;
|
@@ -5459,9 +5459,9 @@ interface FlexPromotion extends Resource {
|
|
5459
5459
|
status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null;
|
5460
5460
|
/**
|
5461
5461
|
* The discount rule to be applied.
|
5462
|
-
* @example ```"
|
5462
|
+
* @example ```"[object Object]"```
|
5463
5463
|
*/
|
5464
|
-
rules:
|
5464
|
+
rules: Record<string, any>;
|
5465
5465
|
/**
|
5466
5466
|
* Time at which this resource was disabled.
|
5467
5467
|
* @example ```"2018-01-01T12:00:00.000Z"```
|
@@ -5469,9 +5469,9 @@ interface FlexPromotion extends Resource {
|
|
5469
5469
|
disabled_at?: string | null;
|
5470
5470
|
/**
|
5471
5471
|
* The rule outcomes.
|
5472
|
-
* @example ```"
|
5472
|
+
* @example ```"[object Object]"```
|
5473
5473
|
*/
|
5474
|
-
rule_outcomes?:
|
5474
|
+
rule_outcomes?: Record<string, any> | null;
|
5475
5475
|
coupon_codes_promotion_rule?: CouponCodesPromotionRule | null;
|
5476
5476
|
coupons?: Coupon[] | null;
|
5477
5477
|
attachments?: Attachment[] | null;
|
@@ -5512,9 +5512,9 @@ interface FlexPromotionCreate extends ResourceCreate {
|
|
5512
5512
|
total_usage_limit?: number | null;
|
5513
5513
|
/**
|
5514
5514
|
* The discount rule to be applied.
|
5515
|
-
* @example ```"
|
5515
|
+
* @example ```"[object Object]"```
|
5516
5516
|
*/
|
5517
|
-
rules:
|
5517
|
+
rules: Record<string, any>;
|
5518
5518
|
/**
|
5519
5519
|
* Send this attribute if you want to mark this resource as disabled.
|
5520
5520
|
* @example ```"true"```
|
@@ -5561,9 +5561,9 @@ interface FlexPromotionUpdate extends ResourceUpdate {
|
|
5561
5561
|
total_usage_limit?: number | null;
|
5562
5562
|
/**
|
5563
5563
|
* The discount rule to be applied.
|
5564
|
-
* @example ```"
|
5564
|
+
* @example ```"[object Object]"```
|
5565
5565
|
*/
|
5566
|
-
rules?:
|
5566
|
+
rules?: Record<string, any> | null;
|
5567
5567
|
/**
|
5568
5568
|
* Send this attribute if you want to mark this resource as disabled.
|
5569
5569
|
* @example ```"true"```
|
@@ -7283,7 +7283,7 @@ interface LineItem extends Resource {
|
|
7283
7283
|
*/
|
7284
7284
|
formatted_compare_at_amount?: string | null;
|
7285
7285
|
/**
|
7286
|
-
* The options amount of the line item, in cents.
|
7286
|
+
* The options amount of the line item, in cents. Cannot be passed by sales channels.
|
7287
7287
|
* @example ```"1000"```
|
7288
7288
|
*/
|
7289
7289
|
options_amount_cents?: number | null;
|
@@ -7435,7 +7435,7 @@ interface LineItemCreate extends ResourceCreate {
|
|
7435
7435
|
*/
|
7436
7436
|
_update_quantity?: boolean | null;
|
7437
7437
|
/**
|
7438
|
-
* Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed.
|
7438
|
+
* Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.
|
7439
7439
|
* @example ```"true"```
|
7440
7440
|
*/
|
7441
7441
|
_reserve_stock?: boolean | null;
|
@@ -7495,7 +7495,7 @@ interface LineItemUpdate extends ResourceUpdate {
|
|
7495
7495
|
*/
|
7496
7496
|
_external_price?: boolean | null;
|
7497
7497
|
/**
|
7498
|
-
* Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed.
|
7498
|
+
* Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.
|
7499
7499
|
* @example ```"true"```
|
7500
7500
|
*/
|
7501
7501
|
_reserve_stock?: boolean | null;
|
@@ -7509,6 +7509,11 @@ interface LineItemUpdate extends ResourceUpdate {
|
|
7509
7509
|
* @example ```"13000"```
|
7510
7510
|
*/
|
7511
7511
|
compare_at_amount_cents?: number | null;
|
7512
|
+
/**
|
7513
|
+
* The options amount of the line item, in cents. Cannot be passed by sales channels.
|
7514
|
+
* @example ```"1000"```
|
7515
|
+
*/
|
7516
|
+
options_amount_cents?: number | null;
|
7512
7517
|
/**
|
7513
7518
|
* The name of the line item. When blank, it gets populated with the name of the associated item (if present).
|
7514
7519
|
* @example ```"Men's Black T-shirt with White Logo (XL)"```
|
@@ -7525,7 +7530,7 @@ interface LineItemUpdate extends ResourceUpdate {
|
|
7525
7530
|
*/
|
7526
7531
|
frequency?: string | null;
|
7527
7532
|
/**
|
7528
|
-
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
7533
|
+
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
|
7529
7534
|
* @example ```"true"```
|
7530
7535
|
*/
|
7531
7536
|
_reset_circuit?: boolean | null;
|
@@ -8290,6 +8295,16 @@ interface OrderCopy extends Resource {
|
|
8290
8295
|
* @example ```"true"```
|
8291
8296
|
*/
|
8292
8297
|
cancel_source_order?: boolean | null;
|
8298
|
+
/**
|
8299
|
+
* Indicates if promotions got applied upon copy.
|
8300
|
+
* @example ```"true"```
|
8301
|
+
*/
|
8302
|
+
apply_promotions?: boolean | null;
|
8303
|
+
/**
|
8304
|
+
* Indicates to ignore invalid coupon code during copy.
|
8305
|
+
* @example ```"true"```
|
8306
|
+
*/
|
8307
|
+
ignore_invalid_coupon?: boolean | null;
|
8293
8308
|
source_order?: Order | null;
|
8294
8309
|
target_order?: Order | null;
|
8295
8310
|
events?: Event[] | null;
|
@@ -8311,6 +8326,16 @@ interface OrderCopyCreate extends ResourceCreate {
|
|
8311
8326
|
* @example ```"true"```
|
8312
8327
|
*/
|
8313
8328
|
cancel_source_order?: boolean | null;
|
8329
|
+
/**
|
8330
|
+
* Indicates if promotions got applied upon copy.
|
8331
|
+
* @example ```"true"```
|
8332
|
+
*/
|
8333
|
+
apply_promotions?: boolean | null;
|
8334
|
+
/**
|
8335
|
+
* Indicates to ignore invalid coupon code during copy.
|
8336
|
+
* @example ```"true"```
|
8337
|
+
*/
|
8338
|
+
ignore_invalid_coupon?: boolean | null;
|
8314
8339
|
source_order: OrderRel$3;
|
8315
8340
|
}
|
8316
8341
|
type OrderCopyUpdate = ResourceUpdate;
|
@@ -8382,7 +8407,7 @@ type OrderSort = Pick<Order, 'id' | 'number' | 'place_async' | 'status' | 'payme
|
|
8382
8407
|
interface Order extends Resource {
|
8383
8408
|
readonly type: OrderType;
|
8384
8409
|
/**
|
8385
|
-
* The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise.
|
8410
|
+
* The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels.
|
8386
8411
|
* @example ```"1234"```
|
8387
8412
|
*/
|
8388
8413
|
number?: string | null;
|
@@ -8944,7 +8969,7 @@ interface Order extends Resource {
|
|
8944
8969
|
}
|
8945
8970
|
interface OrderCreate extends ResourceCreate {
|
8946
8971
|
/**
|
8947
|
-
* The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise.
|
8972
|
+
* The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels.
|
8948
8973
|
* @example ```"1234"```
|
8949
8974
|
*/
|
8950
8975
|
number?: string | null;
|
@@ -9042,7 +9067,7 @@ interface OrderCreate extends ResourceCreate {
|
|
9042
9067
|
}
|
9043
9068
|
interface OrderUpdate extends ResourceUpdate {
|
9044
9069
|
/**
|
9045
|
-
* The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise.
|
9070
|
+
* The order identifier. Can be specified if unique within the organization (for enterprise plans only), default to numeric ID otherwise. Cannot be passed by sales channels.
|
9046
9071
|
* @example ```"1234"```
|
9047
9072
|
*/
|
9048
9073
|
number?: string | null;
|
@@ -9141,7 +9166,7 @@ interface OrderUpdate extends ResourceUpdate {
|
|
9141
9166
|
*/
|
9142
9167
|
_unarchive?: boolean | null;
|
9143
9168
|
/**
|
9144
|
-
* Send this attribute if you want to move a draft or placing order to pending.
|
9169
|
+
* Send this attribute if you want to move a draft or placing order to pending. Cannot be passed by sales channels.
|
9145
9170
|
* @example ```"true"```
|
9146
9171
|
*/
|
9147
9172
|
_pending?: boolean | null;
|
@@ -9156,12 +9181,12 @@ interface OrderUpdate extends ResourceUpdate {
|
|
9156
9181
|
*/
|
9157
9182
|
_cancel?: boolean | null;
|
9158
9183
|
/**
|
9159
|
-
* Send this attribute if you want to approve a placed order.
|
9184
|
+
* Send this attribute if you want to approve a placed order. Cannot be passed by sales channels.
|
9160
9185
|
* @example ```"true"```
|
9161
9186
|
*/
|
9162
9187
|
_approve?: boolean | null;
|
9163
9188
|
/**
|
9164
|
-
* Send this attribute if you want to approve and capture a placed order.
|
9189
|
+
* Send this attribute if you want to approve and capture a placed order. Cannot be passed by sales channels.
|
9165
9190
|
* @example ```"true"```
|
9166
9191
|
*/
|
9167
9192
|
_approve_and_capture?: boolean | null;
|
@@ -9176,17 +9201,17 @@ interface OrderUpdate extends ResourceUpdate {
|
|
9176
9201
|
*/
|
9177
9202
|
_authorization_amount_cents?: number | null;
|
9178
9203
|
/**
|
9179
|
-
* Send this attribute if you want to capture an authorized order.
|
9204
|
+
* Send this attribute if you want to capture an authorized order. Cannot be passed by sales channels.
|
9180
9205
|
* @example ```"true"```
|
9181
9206
|
*/
|
9182
9207
|
_capture?: boolean | null;
|
9183
9208
|
/**
|
9184
|
-
* Send this attribute if you want to refund a captured order.
|
9209
|
+
* Send this attribute if you want to refund a captured order. Cannot be passed by sales channels.
|
9185
9210
|
* @example ```"true"```
|
9186
9211
|
*/
|
9187
9212
|
_refund?: boolean | null;
|
9188
9213
|
/**
|
9189
|
-
* Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered).
|
9214
|
+
* Send this attribute if you want to mark as fulfilled the order (shipments must be cancelled, shipped or delivered). Cannot be passed by sales channels.
|
9190
9215
|
* @example ```"true"```
|
9191
9216
|
*/
|
9192
9217
|
_fulfill?: boolean | null;
|
@@ -9265,17 +9290,17 @@ interface OrderUpdate extends ResourceUpdate {
|
|
9265
9290
|
*/
|
9266
9291
|
_create_subscriptions?: boolean | null;
|
9267
9292
|
/**
|
9268
|
-
* Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount.
|
9293
|
+
* Send this attribute if you want to edit the order after it is placed. Remember you cannot exceed the original total amount. Cannot be passed by sales channels.
|
9269
9294
|
* @example ```"true"```
|
9270
9295
|
*/
|
9271
9296
|
_start_editing?: boolean | null;
|
9272
9297
|
/**
|
9273
|
-
* Send this attribute to stop the editing for the order and return back to placed status.
|
9298
|
+
* Send this attribute to stop the editing for the order and return back to placed status. Cannot be passed by sales channels.
|
9274
9299
|
* @example ```"true"```
|
9275
9300
|
*/
|
9276
9301
|
_stop_editing?: boolean | null;
|
9277
9302
|
/**
|
9278
|
-
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
9303
|
+
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
|
9279
9304
|
* @example ```"true"```
|
9280
9305
|
*/
|
9281
9306
|
_reset_circuit?: boolean | null;
|
@@ -9968,7 +9993,7 @@ interface ShippingMethodUpdate extends ResourceUpdate {
|
|
9968
9993
|
*/
|
9969
9994
|
_enable?: boolean | null;
|
9970
9995
|
/**
|
9971
|
-
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
9996
|
+
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
|
9972
9997
|
* @example ```"true"```
|
9973
9998
|
*/
|
9974
9999
|
_reset_circuit?: boolean | null;
|
@@ -10701,7 +10726,7 @@ type ShipmentSort = Pick<Shipment, 'id' | 'number' | 'status' | 'cost_amount_cen
|
|
10701
10726
|
interface Shipment extends Resource {
|
10702
10727
|
readonly type: ShipmentType;
|
10703
10728
|
/**
|
10704
|
-
* Unique identifier for the shipment.
|
10729
|
+
* Unique identifier for the shipment. Cannot be passed by sales channels.
|
10705
10730
|
* @example ```"#1234/S/001"```
|
10706
10731
|
*/
|
10707
10732
|
number: string;
|
@@ -10839,17 +10864,17 @@ interface ShipmentCreate extends ResourceCreate {
|
|
10839
10864
|
}
|
10840
10865
|
interface ShipmentUpdate extends ResourceUpdate {
|
10841
10866
|
/**
|
10842
|
-
* Unique identifier for the shipment.
|
10867
|
+
* Unique identifier for the shipment. Cannot be passed by sales channels.
|
10843
10868
|
* @example ```"#1234/S/001"```
|
10844
10869
|
*/
|
10845
10870
|
number?: string | null;
|
10846
10871
|
/**
|
10847
|
-
* Send this attribute if you want to mark this shipment as upcoming.
|
10872
|
+
* Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels.
|
10848
10873
|
* @example ```"true"```
|
10849
10874
|
*/
|
10850
10875
|
_upcoming?: boolean | null;
|
10851
10876
|
/**
|
10852
|
-
* Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered).
|
10877
|
+
* Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be passed by sales channels.
|
10853
10878
|
* @example ```"true"```
|
10854
10879
|
*/
|
10855
10880
|
_cancel?: boolean | null;
|
@@ -10884,17 +10909,17 @@ interface ShipmentUpdate extends ResourceUpdate {
|
|
10884
10909
|
*/
|
10885
10910
|
_deliver?: boolean | null;
|
10886
10911
|
/**
|
10887
|
-
* Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.
|
10912
|
+
* Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
10888
10913
|
* @example ```"true"```
|
10889
10914
|
*/
|
10890
10915
|
_reserve_stock?: boolean | null;
|
10891
10916
|
/**
|
10892
|
-
* Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress.
|
10917
|
+
* Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
10893
10918
|
* @example ```"true"```
|
10894
10919
|
*/
|
10895
10920
|
_release_stock?: boolean | null;
|
10896
10921
|
/**
|
10897
|
-
* Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress.
|
10922
|
+
* Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.
|
10898
10923
|
* @example ```"true"```
|
10899
10924
|
*/
|
10900
10925
|
_decrement_stock?: boolean | null;
|
@@ -11273,7 +11298,7 @@ interface StockItemUpdate extends ResourceUpdate {
|
|
11273
11298
|
*/
|
11274
11299
|
quantity?: number | null;
|
11275
11300
|
/**
|
11276
|
-
* Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller.
|
11301
|
+
* Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller. Cannot be passed by sales channels.
|
11277
11302
|
* @example ```"true"```
|
11278
11303
|
*/
|
11279
11304
|
_validate?: boolean | null;
|
@@ -11805,14 +11830,14 @@ interface Price extends Resource {
|
|
11805
11830
|
formatted_compare_at_amount?: string | null;
|
11806
11831
|
/**
|
11807
11832
|
* The rules (using Rules Engine) to be applied.
|
11808
|
-
* @example ```"
|
11833
|
+
* @example ```"[object Object]"```
|
11809
11834
|
*/
|
11810
|
-
rules?:
|
11835
|
+
rules?: Record<string, any> | null;
|
11811
11836
|
/**
|
11812
11837
|
* The rule outcomes.
|
11813
|
-
* @example ```"
|
11838
|
+
* @example ```"[object Object]"```
|
11814
11839
|
*/
|
11815
|
-
rule_outcomes?:
|
11840
|
+
rule_outcomes?: Record<string, any> | null;
|
11816
11841
|
price_list?: PriceList | null;
|
11817
11842
|
sku?: Sku | null;
|
11818
11843
|
price_tiers?: PriceTier[] | null;
|
@@ -11842,9 +11867,9 @@ interface PriceCreate extends ResourceCreate {
|
|
11842
11867
|
compare_at_amount_cents?: number | null;
|
11843
11868
|
/**
|
11844
11869
|
* The rules (using Rules Engine) to be applied.
|
11845
|
-
* @example ```"
|
11870
|
+
* @example ```"[object Object]"```
|
11846
11871
|
*/
|
11847
|
-
rules?:
|
11872
|
+
rules?: Record<string, any> | null;
|
11848
11873
|
price_list: PriceListRel$4;
|
11849
11874
|
sku: SkuRel$3;
|
11850
11875
|
price_tiers?: PriceTierRel$1[] | null;
|
@@ -11867,9 +11892,9 @@ interface PriceUpdate extends ResourceUpdate {
|
|
11867
11892
|
compare_at_amount_cents?: number | null;
|
11868
11893
|
/**
|
11869
11894
|
* The rules (using Rules Engine) to be applied.
|
11870
|
-
* @example ```"
|
11895
|
+
* @example ```"[object Object]"```
|
11871
11896
|
*/
|
11872
|
-
rules?:
|
11897
|
+
rules?: Record<string, any> | null;
|
11873
11898
|
price_list?: PriceListRel$4 | null;
|
11874
11899
|
sku?: SkuRel$3 | null;
|
11875
11900
|
price_tiers?: PriceTierRel$1[] | null;
|
@@ -12047,14 +12072,14 @@ interface PriceList extends Resource {
|
|
12047
12072
|
tax_included?: boolean | null;
|
12048
12073
|
/**
|
12049
12074
|
* The rules (using Rules Engine) to be applied.
|
12050
|
-
* @example ```"
|
12075
|
+
* @example ```"[object Object]"```
|
12051
12076
|
*/
|
12052
|
-
rules?:
|
12077
|
+
rules?: Record<string, any> | null;
|
12053
12078
|
/**
|
12054
12079
|
* The rule outcomes.
|
12055
|
-
* @example ```"
|
12080
|
+
* @example ```"[object Object]"```
|
12056
12081
|
*/
|
12057
|
-
rule_outcomes?:
|
12082
|
+
rule_outcomes?: Record<string, any> | null;
|
12058
12083
|
prices?: Price[] | null;
|
12059
12084
|
price_list_schedulers?: PriceListScheduler[] | null;
|
12060
12085
|
attachments?: Attachment[] | null;
|
@@ -12083,9 +12108,9 @@ interface PriceListCreate extends ResourceCreate {
|
|
12083
12108
|
tax_included?: boolean | null;
|
12084
12109
|
/**
|
12085
12110
|
* The rules (using Rules Engine) to be applied.
|
12086
|
-
* @example ```"
|
12111
|
+
* @example ```"[object Object]"```
|
12087
12112
|
*/
|
12088
|
-
rules?:
|
12113
|
+
rules?: Record<string, any> | null;
|
12089
12114
|
}
|
12090
12115
|
interface PriceListUpdate extends ResourceUpdate {
|
12091
12116
|
/**
|
@@ -12110,9 +12135,9 @@ interface PriceListUpdate extends ResourceUpdate {
|
|
12110
12135
|
tax_included?: boolean | null;
|
12111
12136
|
/**
|
12112
12137
|
* The rules (using Rules Engine) to be applied.
|
12113
|
-
* @example ```"
|
12138
|
+
* @example ```"[object Object]"```
|
12114
12139
|
*/
|
12115
|
-
rules?:
|
12140
|
+
rules?: Record<string, any> | null;
|
12116
12141
|
}
|
12117
12142
|
declare class PriceLists extends ApiResource<PriceList> {
|
12118
12143
|
static readonly TYPE: PriceListType;
|
@@ -12828,7 +12853,7 @@ interface ExternalTaxCalculatorUpdate extends ResourceUpdate {
|
|
12828
12853
|
*/
|
12829
12854
|
tax_calculator_url?: string | null;
|
12830
12855
|
/**
|
12831
|
-
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
12856
|
+
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
|
12832
12857
|
* @example ```"true"```
|
12833
12858
|
*/
|
12834
12859
|
_reset_circuit?: boolean | null;
|
@@ -13251,6 +13276,7 @@ interface Market extends Resource {
|
|
13251
13276
|
shared_secret: string;
|
13252
13277
|
merchant?: Merchant | null;
|
13253
13278
|
price_list?: PriceList | null;
|
13279
|
+
base_price_list?: PriceList | null;
|
13254
13280
|
inventory_model?: InventoryModel | null;
|
13255
13281
|
subscription_model?: SubscriptionModel | null;
|
13256
13282
|
tax_calculator?: AvalaraAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null;
|
@@ -13375,6 +13401,7 @@ declare class Markets extends ApiResource<Market> {
|
|
13375
13401
|
delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void>;
|
13376
13402
|
merchant(marketId: string | Market, params?: QueryParamsRetrieve<Merchant>, options?: ResourcesConfig): Promise<Merchant>;
|
13377
13403
|
price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList>;
|
13404
|
+
base_price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList>;
|
13378
13405
|
inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel>;
|
13379
13406
|
subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel>;
|
13380
13407
|
tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator>;
|
@@ -14688,7 +14715,7 @@ interface ExternalGatewayUpdate extends ResourceUpdate {
|
|
14688
14715
|
*/
|
14689
14716
|
token_url?: string | null;
|
14690
14717
|
/**
|
14691
|
-
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count.
|
14718
|
+
* Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.
|
14692
14719
|
* @example ```"true"```
|
14693
14720
|
*/
|
14694
14721
|
_reset_circuit?: boolean | null;
|
@@ -15776,7 +15803,7 @@ type CommerceLayerInitConfig = SdkConfig & ResourcesInitConfig;
|
|
15776
15803
|
type CommerceLayerConfig = Partial<CommerceLayerInitConfig>;
|
15777
15804
|
declare class CommerceLayerClient {
|
15778
15805
|
#private;
|
15779
|
-
readonly openApiSchemaVersion = "7.
|
15806
|
+
readonly openApiSchemaVersion = "7.1.0";
|
15780
15807
|
constructor(config: CommerceLayerInitConfig);
|
15781
15808
|
get addresses(): Addresses;
|
15782
15809
|
get adjustments(): Adjustments;
|