@poweredbysous/storefront-all-sdk 7.3.0 → 7.4.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/dist/index.d.cts +267 -13
- package/dist/index.d.ts +267 -13
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1914,6 +1914,23 @@ interface paths {
|
|
|
1914
1914
|
patch?: never;
|
|
1915
1915
|
trace?: never;
|
|
1916
1916
|
};
|
|
1917
|
+
"/api/v1/admin/support/timeline/": {
|
|
1918
|
+
parameters: {
|
|
1919
|
+
query?: never;
|
|
1920
|
+
header?: never;
|
|
1921
|
+
path?: never;
|
|
1922
|
+
cookie?: never;
|
|
1923
|
+
};
|
|
1924
|
+
/** @description Operation `admin_support_timeline`. */
|
|
1925
|
+
get: operations["admin_support_timeline"];
|
|
1926
|
+
put?: never;
|
|
1927
|
+
post?: never;
|
|
1928
|
+
delete?: never;
|
|
1929
|
+
options?: never;
|
|
1930
|
+
head?: never;
|
|
1931
|
+
patch?: never;
|
|
1932
|
+
trace?: never;
|
|
1933
|
+
};
|
|
1917
1934
|
"/api/v1/admin/surcharges/{id}/": {
|
|
1918
1935
|
parameters: {
|
|
1919
1936
|
query?: never;
|
|
@@ -2599,6 +2616,26 @@ interface paths {
|
|
|
2599
2616
|
patch?: never;
|
|
2600
2617
|
trace?: never;
|
|
2601
2618
|
};
|
|
2619
|
+
"/api/v1/cart/price-quote/": {
|
|
2620
|
+
parameters: {
|
|
2621
|
+
query?: never;
|
|
2622
|
+
header?: never;
|
|
2623
|
+
path?: never;
|
|
2624
|
+
cookie?: never;
|
|
2625
|
+
};
|
|
2626
|
+
get?: never;
|
|
2627
|
+
put?: never;
|
|
2628
|
+
/**
|
|
2629
|
+
* @description Price lines as the cart would, before any is added: the product page's
|
|
2630
|
+
* Add button with upsells picked shows this total, never a client sum.
|
|
2631
|
+
*/
|
|
2632
|
+
post: operations["cart_price_quote_create"];
|
|
2633
|
+
delete?: never;
|
|
2634
|
+
options?: never;
|
|
2635
|
+
head?: never;
|
|
2636
|
+
patch?: never;
|
|
2637
|
+
trace?: never;
|
|
2638
|
+
};
|
|
2602
2639
|
"/api/v1/categories/": {
|
|
2603
2640
|
parameters: {
|
|
2604
2641
|
query?: never;
|
|
@@ -6787,14 +6824,19 @@ interface paths {
|
|
|
6787
6824
|
cookie?: never;
|
|
6788
6825
|
};
|
|
6789
6826
|
/**
|
|
6790
|
-
* @description The dates this product can be ordered for,
|
|
6827
|
+
* @description The dates this product can be ordered for, up to the location's
|
|
6791
6828
|
* pre-order horizon, so the storefront can tell a customer when a
|
|
6792
6829
|
* product it hides for their date is available.
|
|
6793
6830
|
*
|
|
6794
|
-
*
|
|
6795
|
-
*
|
|
6796
|
-
*
|
|
6797
|
-
*
|
|
6831
|
+
* An exploreSOUS request (``X-Channel-Slug: exploresous``) is judged by every rule
|
|
6832
|
+
* the exploreSOUS guards enforce: the cut-off, the availability window, kitchen
|
|
6833
|
+
* and location special dates, delivery weekdays and the earliest delivery day. A
|
|
6834
|
+
* request on any other channel, or naming none, is judged by the product's own
|
|
6835
|
+
* dates and order-until date alone, from the store's today: the cart's
|
|
6836
|
+
* ``fulfilment-dates`` answer for a basket holding only this product, the days the
|
|
6837
|
+
* product allows, not whether the store is open or has slots on them, nor whether
|
|
6838
|
+
* it offers the queried fulfilment type. It still answers for a sold-out, snoozed
|
|
6839
|
+
* or out-of-window product.
|
|
6798
6840
|
*/
|
|
6799
6841
|
get: operations["products_orderable_dates_retrieve"];
|
|
6800
6842
|
put?: never;
|
|
@@ -8264,7 +8306,8 @@ interface components {
|
|
|
8264
8306
|
*
|
|
8265
8307
|
* Backs the discount/promotion "Fulfilment types" picker so it only offers
|
|
8266
8308
|
* the fulfilment types a store actually supports. ``fulfillment_types`` values
|
|
8267
|
-
* are storefront ``FulfillmentType`` slugs (
|
|
8309
|
+
* are storefront ``FulfillmentType`` slugs (any of pickup, room_service,
|
|
8310
|
+
* local_delivery, nationwide_delivery),
|
|
8268
8311
|
* derived from the store's onboarding toggles by the same mapping the public
|
|
8269
8312
|
* storefront config uses — the single source of truth for what a store offers.
|
|
8270
8313
|
*/
|
|
@@ -8606,6 +8649,11 @@ interface components {
|
|
|
8606
8649
|
* @enum {string}
|
|
8607
8650
|
*/
|
|
8608
8651
|
CancellationTypeEnum: "merchant_rejected" | "delivery_unavailable" | "customer_withdrawal" | "other";
|
|
8652
|
+
/** @description The days each kind of delivery is closed, earliest first. */
|
|
8653
|
+
CarrierClosedDatesByType: {
|
|
8654
|
+
local_delivery: string[];
|
|
8655
|
+
nationwide_delivery: string[];
|
|
8656
|
+
};
|
|
8609
8657
|
Cart: {
|
|
8610
8658
|
id: string;
|
|
8611
8659
|
/**
|
|
@@ -8772,7 +8820,7 @@ interface components {
|
|
|
8772
8820
|
line_total: string;
|
|
8773
8821
|
fulfillment_type: components["schemas"]["FulfillmentTypeEnum"];
|
|
8774
8822
|
/** Format: date */
|
|
8775
|
-
fulfillment_date
|
|
8823
|
+
fulfillment_date?: string | null;
|
|
8776
8824
|
fulfillment_time_slot?: string;
|
|
8777
8825
|
readonly options: components["schemas"]["CartLineItemOption"][];
|
|
8778
8826
|
readonly surcharges: components["schemas"]["CartLineItemSurcharge"][];
|
|
@@ -9100,8 +9148,19 @@ interface components {
|
|
|
9100
9148
|
discount_amount: string;
|
|
9101
9149
|
discount_code: string | null;
|
|
9102
9150
|
discount_name: string | null;
|
|
9103
|
-
/**
|
|
9151
|
+
/**
|
|
9152
|
+
* @description A code the shopper typed that saves nothing, and the error code why.
|
|
9153
|
+
*
|
|
9154
|
+
* Either the cart took it off (``reason`` says why), or it is kept while its
|
|
9155
|
+
* weekly window is shut: ``reason`` ``DISCOUNT_NOT_SCHEDULED`` with the
|
|
9156
|
+
* code's ``schedule_weekdays`` (ISO, Monday 1), ``schedule_start_time`` and
|
|
9157
|
+
* ``schedule_end_time`` (``HH:MM:SS`` in the store's time, ``null`` for all
|
|
9158
|
+
* day), the fields the apply path's ``DISCOUNT_NOT_SCHEDULED`` error sends.
|
|
9159
|
+
*/
|
|
9104
9160
|
discount_notice: {
|
|
9161
|
+
schedule_weekdays?: number[];
|
|
9162
|
+
schedule_start_time?: string | null;
|
|
9163
|
+
schedule_end_time?: string | null;
|
|
9105
9164
|
code: string;
|
|
9106
9165
|
reason: string;
|
|
9107
9166
|
} | null;
|
|
@@ -10005,9 +10064,10 @@ interface components {
|
|
|
10005
10064
|
* * `local_delivery` - Local Delivery
|
|
10006
10065
|
* * `pickup` - Pickup
|
|
10007
10066
|
* * `room_service` - Room Service
|
|
10067
|
+
* * `digital` - Digital
|
|
10008
10068
|
* @enum {string}
|
|
10009
10069
|
*/
|
|
10010
|
-
FulfillmentTypeEnum: "nationwide_delivery" | "local_delivery" | "pickup" | "room_service";
|
|
10070
|
+
FulfillmentTypeEnum: "nationwide_delivery" | "local_delivery" | "pickup" | "room_service" | "digital";
|
|
10011
10071
|
/** @description The dates every line of a cart can be fulfilled on. */
|
|
10012
10072
|
FulfilmentDates: {
|
|
10013
10073
|
dates: string[];
|
|
@@ -12373,6 +12433,20 @@ interface components {
|
|
|
12373
12433
|
[key: string]: unknown;
|
|
12374
12434
|
}[];
|
|
12375
12435
|
};
|
|
12436
|
+
PriceQuote: {
|
|
12437
|
+
currency: string;
|
|
12438
|
+
/** Format: decimal */
|
|
12439
|
+
total: string;
|
|
12440
|
+
/** Format: decimal */
|
|
12441
|
+
surcharge_total: string;
|
|
12442
|
+
/** Format: decimal */
|
|
12443
|
+
deposit_total: string;
|
|
12444
|
+
lines: components["schemas"]["QuotedLine"][];
|
|
12445
|
+
};
|
|
12446
|
+
/** @description Lines to price as the cart would, without adding them. */
|
|
12447
|
+
PriceQuoteInput: {
|
|
12448
|
+
lines: components["schemas"]["QuoteLineInput"][];
|
|
12449
|
+
};
|
|
12376
12450
|
/**
|
|
12377
12451
|
* @description * `report` - report
|
|
12378
12452
|
* * `write` - write
|
|
@@ -13148,6 +13222,18 @@ interface components {
|
|
|
13148
13222
|
/** Format: date-time */
|
|
13149
13223
|
readonly created_at: string;
|
|
13150
13224
|
};
|
|
13225
|
+
QuoteLineInput: {
|
|
13226
|
+
product_id: number;
|
|
13227
|
+
/** @default 1 */
|
|
13228
|
+
quantity: number;
|
|
13229
|
+
options?: components["schemas"]["OptionInput"][];
|
|
13230
|
+
};
|
|
13231
|
+
QuotedLine: {
|
|
13232
|
+
product_id: number;
|
|
13233
|
+
quantity: number;
|
|
13234
|
+
/** Format: decimal */
|
|
13235
|
+
line_total: string;
|
|
13236
|
+
};
|
|
13151
13237
|
RecurringGroupOrder: {
|
|
13152
13238
|
id: string;
|
|
13153
13239
|
/** Format: int64 */
|
|
@@ -13639,6 +13725,7 @@ interface components {
|
|
|
13639
13725
|
readonly delivery_configuration: {
|
|
13640
13726
|
[key: string]: unknown;
|
|
13641
13727
|
} | null;
|
|
13728
|
+
readonly fulfillment_types: string[];
|
|
13642
13729
|
readonly category_visibility: {
|
|
13643
13730
|
[key: string]: boolean;
|
|
13644
13731
|
};
|
|
@@ -13661,6 +13748,7 @@ interface components {
|
|
|
13661
13748
|
readonly offers_reusable_packaging: boolean;
|
|
13662
13749
|
readonly reusable_deposit_amount?: string | null;
|
|
13663
13750
|
readonly carrier_closed_delivery_dates: string[];
|
|
13751
|
+
readonly carrier_closed_delivery_dates_by_type: components["schemas"]["CarrierClosedDatesByType"];
|
|
13664
13752
|
};
|
|
13665
13753
|
/** @description One row of the store config list: a method's switch plus retained config. */
|
|
13666
13754
|
StoreDeliveryMethodConfig: {
|
|
@@ -23106,6 +23194,84 @@ interface operations {
|
|
|
23106
23194
|
};
|
|
23107
23195
|
};
|
|
23108
23196
|
};
|
|
23197
|
+
admin_support_timeline: {
|
|
23198
|
+
parameters: {
|
|
23199
|
+
query?: {
|
|
23200
|
+
/** @description Order number, order id, checkout id, customer email or Stripe PaymentIntent id. */
|
|
23201
|
+
q?: string;
|
|
23202
|
+
};
|
|
23203
|
+
header?: never;
|
|
23204
|
+
path?: never;
|
|
23205
|
+
cookie?: never;
|
|
23206
|
+
};
|
|
23207
|
+
requestBody?: never;
|
|
23208
|
+
responses: {
|
|
23209
|
+
200: {
|
|
23210
|
+
headers: {
|
|
23211
|
+
[name: string]: unknown;
|
|
23212
|
+
};
|
|
23213
|
+
content: {
|
|
23214
|
+
"application/json": {
|
|
23215
|
+
[key: string]: unknown;
|
|
23216
|
+
};
|
|
23217
|
+
};
|
|
23218
|
+
};
|
|
23219
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23220
|
+
400: {
|
|
23221
|
+
headers: {
|
|
23222
|
+
[name: string]: unknown;
|
|
23223
|
+
};
|
|
23224
|
+
content: {
|
|
23225
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23226
|
+
};
|
|
23227
|
+
};
|
|
23228
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23229
|
+
401: {
|
|
23230
|
+
headers: {
|
|
23231
|
+
[name: string]: unknown;
|
|
23232
|
+
};
|
|
23233
|
+
content: {
|
|
23234
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23235
|
+
};
|
|
23236
|
+
};
|
|
23237
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23238
|
+
403: {
|
|
23239
|
+
headers: {
|
|
23240
|
+
[name: string]: unknown;
|
|
23241
|
+
};
|
|
23242
|
+
content: {
|
|
23243
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23244
|
+
};
|
|
23245
|
+
};
|
|
23246
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23247
|
+
404: {
|
|
23248
|
+
headers: {
|
|
23249
|
+
[name: string]: unknown;
|
|
23250
|
+
};
|
|
23251
|
+
content: {
|
|
23252
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23253
|
+
};
|
|
23254
|
+
};
|
|
23255
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23256
|
+
429: {
|
|
23257
|
+
headers: {
|
|
23258
|
+
[name: string]: unknown;
|
|
23259
|
+
};
|
|
23260
|
+
content: {
|
|
23261
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23262
|
+
};
|
|
23263
|
+
};
|
|
23264
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23265
|
+
500: {
|
|
23266
|
+
headers: {
|
|
23267
|
+
[name: string]: unknown;
|
|
23268
|
+
};
|
|
23269
|
+
content: {
|
|
23270
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23271
|
+
};
|
|
23272
|
+
};
|
|
23273
|
+
};
|
|
23274
|
+
};
|
|
23109
23275
|
admin_surcharges_destroy: {
|
|
23110
23276
|
parameters: {
|
|
23111
23277
|
query?: never;
|
|
@@ -26053,6 +26219,94 @@ interface operations {
|
|
|
26053
26219
|
};
|
|
26054
26220
|
};
|
|
26055
26221
|
};
|
|
26222
|
+
cart_price_quote_create: {
|
|
26223
|
+
parameters: {
|
|
26224
|
+
query?: never;
|
|
26225
|
+
header?: never;
|
|
26226
|
+
path?: never;
|
|
26227
|
+
cookie?: never;
|
|
26228
|
+
};
|
|
26229
|
+
requestBody: {
|
|
26230
|
+
content: {
|
|
26231
|
+
"application/json": components["schemas"]["PriceQuoteInput"];
|
|
26232
|
+
"application/x-www-form-urlencoded": components["schemas"]["PriceQuoteInput"];
|
|
26233
|
+
"multipart/form-data": components["schemas"]["PriceQuoteInput"];
|
|
26234
|
+
};
|
|
26235
|
+
};
|
|
26236
|
+
responses: {
|
|
26237
|
+
200: {
|
|
26238
|
+
headers: {
|
|
26239
|
+
[name: string]: unknown;
|
|
26240
|
+
};
|
|
26241
|
+
content: {
|
|
26242
|
+
"application/json": components["schemas"]["PriceQuote"];
|
|
26243
|
+
};
|
|
26244
|
+
};
|
|
26245
|
+
/** @description Possible error codes: `VALIDATION_ERROR`, `REQUIRED_OPTIONS_MISSING`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CART_MAX_ITEMS_EXCEEDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_INVALID_QUANTITY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_MAX_QUANTITY_EXCEEDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_SOLD_OUT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `OPTION_INVALID_FOR_PRODUCT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `REQUIRED_OPTIONS_MISSING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `FULFILLMENT_TYPE_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_INVALID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_NOT_ALLOWED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26246
|
+
400: {
|
|
26247
|
+
headers: {
|
|
26248
|
+
[name: string]: unknown;
|
|
26249
|
+
};
|
|
26250
|
+
content: {
|
|
26251
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26252
|
+
};
|
|
26253
|
+
};
|
|
26254
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26255
|
+
401: {
|
|
26256
|
+
headers: {
|
|
26257
|
+
[name: string]: unknown;
|
|
26258
|
+
};
|
|
26259
|
+
content: {
|
|
26260
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26261
|
+
};
|
|
26262
|
+
};
|
|
26263
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHANNEL_CLAIM_UNVERIFIED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26264
|
+
403: {
|
|
26265
|
+
headers: {
|
|
26266
|
+
[name: string]: unknown;
|
|
26267
|
+
};
|
|
26268
|
+
content: {
|
|
26269
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26270
|
+
};
|
|
26271
|
+
};
|
|
26272
|
+
/** @description Possible error codes: `OPTION_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CART_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `OPTION_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26273
|
+
404: {
|
|
26274
|
+
headers: {
|
|
26275
|
+
[name: string]: unknown;
|
|
26276
|
+
};
|
|
26277
|
+
content: {
|
|
26278
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26279
|
+
};
|
|
26280
|
+
};
|
|
26281
|
+
/** @description Possible error codes include `CHANNEL_CHANGE_REFUSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NO_LONGER_ORDERABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26282
|
+
409: {
|
|
26283
|
+
headers: {
|
|
26284
|
+
[name: string]: unknown;
|
|
26285
|
+
};
|
|
26286
|
+
content: {
|
|
26287
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26288
|
+
};
|
|
26289
|
+
};
|
|
26290
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26291
|
+
429: {
|
|
26292
|
+
headers: {
|
|
26293
|
+
[name: string]: unknown;
|
|
26294
|
+
};
|
|
26295
|
+
content: {
|
|
26296
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26297
|
+
};
|
|
26298
|
+
};
|
|
26299
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26300
|
+
500: {
|
|
26301
|
+
headers: {
|
|
26302
|
+
[name: string]: unknown;
|
|
26303
|
+
};
|
|
26304
|
+
content: {
|
|
26305
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26306
|
+
};
|
|
26307
|
+
};
|
|
26308
|
+
};
|
|
26309
|
+
};
|
|
26056
26310
|
categories_list: {
|
|
26057
26311
|
parameters: {
|
|
26058
26312
|
query?: {
|
|
@@ -28673,7 +28927,7 @@ interface operations {
|
|
|
28673
28927
|
};
|
|
28674
28928
|
};
|
|
28675
28929
|
};
|
|
28676
|
-
/** @description Possible error codes: `MISSING_GATEWAY_ID`, `CHECKOUT_EMPTY`, `ZEEMIJLEN_IN_USE_ELSEWHERE`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`, `DISCOUNT_CUSTOMER_LIMIT`, `GIFT_CARD_HOLD_LAPSED`, `LOYALTY_PAID_ITEM_REQUIRED`, `LOYALTY_EMAIL_MISMATCH`, `LOYALTY_REWARD_UNAVAILABLE`, `LOYALTY_NOT_ENOUGH_POINTS`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUNDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_FAILED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_NOT_CHARGED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_HOLD_LAPSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_PAST_CUTOFF`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_FULL`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `UPSELL_ONLY_BASKET`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28930
|
+
/** @description Possible error codes: `MISSING_GATEWAY_ID`, `AMOUNT_BELOW_CARD_MINIMUM`, `CHECKOUT_EMPTY`, `ZEEMIJLEN_IN_USE_ELSEWHERE`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`, `DISCOUNT_CUSTOMER_LIMIT`, `GIFT_CARD_HOLD_LAPSED`, `LOYALTY_PAID_ITEM_REQUIRED`, `LOYALTY_EMAIL_MISMATCH`, `LOYALTY_REWARD_UNAVAILABLE`, `LOYALTY_NOT_ENOUGH_POINTS`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUNDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_FAILED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_NOT_CHARGED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_HOLD_LAPSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_PAST_CUTOFF`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_FULL`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `UPSELL_ONLY_BASKET`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28677
28931
|
400: {
|
|
28678
28932
|
headers: {
|
|
28679
28933
|
[name: string]: unknown;
|
|
@@ -28709,7 +28963,7 @@ interface operations {
|
|
|
28709
28963
|
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
28710
28964
|
};
|
|
28711
28965
|
};
|
|
28712
|
-
/** @description Possible error codes: `CHECKOUT_INVALID_STATUS`, `DELIVERY_METHOD_UNAVAILABLE`, `DISCOUNT_NO_LONGER_AVAILABLE`, `outside_availability_window`, `date_excluded`, `not_a_delivery_day`, `beyond_pre_order_horizon`, `past_order_cutoff`, `no_common_date`. Retryable: no. Possible error codes include `CHECKOUT_INVALID_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DELIVERY_METHOD_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `store_closed_for_date`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_ORDERABLE_FOR_DATE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NO_LONGER_ORDERABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28966
|
+
/** @description Possible error codes: `CHECKOUT_INVALID_STATUS`, `DELIVERY_METHOD_UNAVAILABLE`, `DISCOUNT_NO_LONGER_AVAILABLE`, `PAYMENT_ALREADY_SETTLING`, `outside_availability_window`, `date_excluded`, `not_a_delivery_day`, `beyond_pre_order_horizon`, `past_order_cutoff`, `no_common_date`. Retryable: no. Possible error codes include `CHECKOUT_INVALID_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DELIVERY_METHOD_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `store_closed_for_date`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_ORDERABLE_FOR_DATE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NO_LONGER_ORDERABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28713
28967
|
409: {
|
|
28714
28968
|
headers: {
|
|
28715
28969
|
[name: string]: unknown;
|
|
@@ -45430,9 +45684,9 @@ interface operations {
|
|
|
45430
45684
|
products_orderable_dates_retrieve: {
|
|
45431
45685
|
parameters: {
|
|
45432
45686
|
query: {
|
|
45433
|
-
/** @description For type=delivery: the customer's delivery types in order of preference, comma-separated (local_delivery, nationwide_delivery). The product's schedule follows the first of them it offers, the type its cart line would get; without one it follows the delivery types the product offers. */
|
|
45687
|
+
/** @description For type=delivery on exploreSOUS: the customer's delivery types in order of preference, comma-separated (local_delivery, nationwide_delivery). The product's schedule follows the first of them it offers, the type its cart line would get; without one it follows the delivery types the product offers. On any other channel type=delivery lists the product's own days to the store's own pickup location's horizon, and this is ignored. */
|
|
45434
45688
|
fulfillment_types?: string;
|
|
45435
|
-
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
45689
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. Must be one of the store's; for type=delivery on any channel but exploreSOUS it does not set the horizon. */
|
|
45436
45690
|
location?: number;
|
|
45437
45691
|
/** @description Fulfilment type the dates are for. */
|
|
45438
45692
|
type: "delivery" | "pickup";
|
package/dist/index.d.ts
CHANGED
|
@@ -1914,6 +1914,23 @@ interface paths {
|
|
|
1914
1914
|
patch?: never;
|
|
1915
1915
|
trace?: never;
|
|
1916
1916
|
};
|
|
1917
|
+
"/api/v1/admin/support/timeline/": {
|
|
1918
|
+
parameters: {
|
|
1919
|
+
query?: never;
|
|
1920
|
+
header?: never;
|
|
1921
|
+
path?: never;
|
|
1922
|
+
cookie?: never;
|
|
1923
|
+
};
|
|
1924
|
+
/** @description Operation `admin_support_timeline`. */
|
|
1925
|
+
get: operations["admin_support_timeline"];
|
|
1926
|
+
put?: never;
|
|
1927
|
+
post?: never;
|
|
1928
|
+
delete?: never;
|
|
1929
|
+
options?: never;
|
|
1930
|
+
head?: never;
|
|
1931
|
+
patch?: never;
|
|
1932
|
+
trace?: never;
|
|
1933
|
+
};
|
|
1917
1934
|
"/api/v1/admin/surcharges/{id}/": {
|
|
1918
1935
|
parameters: {
|
|
1919
1936
|
query?: never;
|
|
@@ -2599,6 +2616,26 @@ interface paths {
|
|
|
2599
2616
|
patch?: never;
|
|
2600
2617
|
trace?: never;
|
|
2601
2618
|
};
|
|
2619
|
+
"/api/v1/cart/price-quote/": {
|
|
2620
|
+
parameters: {
|
|
2621
|
+
query?: never;
|
|
2622
|
+
header?: never;
|
|
2623
|
+
path?: never;
|
|
2624
|
+
cookie?: never;
|
|
2625
|
+
};
|
|
2626
|
+
get?: never;
|
|
2627
|
+
put?: never;
|
|
2628
|
+
/**
|
|
2629
|
+
* @description Price lines as the cart would, before any is added: the product page's
|
|
2630
|
+
* Add button with upsells picked shows this total, never a client sum.
|
|
2631
|
+
*/
|
|
2632
|
+
post: operations["cart_price_quote_create"];
|
|
2633
|
+
delete?: never;
|
|
2634
|
+
options?: never;
|
|
2635
|
+
head?: never;
|
|
2636
|
+
patch?: never;
|
|
2637
|
+
trace?: never;
|
|
2638
|
+
};
|
|
2602
2639
|
"/api/v1/categories/": {
|
|
2603
2640
|
parameters: {
|
|
2604
2641
|
query?: never;
|
|
@@ -6787,14 +6824,19 @@ interface paths {
|
|
|
6787
6824
|
cookie?: never;
|
|
6788
6825
|
};
|
|
6789
6826
|
/**
|
|
6790
|
-
* @description The dates this product can be ordered for,
|
|
6827
|
+
* @description The dates this product can be ordered for, up to the location's
|
|
6791
6828
|
* pre-order horizon, so the storefront can tell a customer when a
|
|
6792
6829
|
* product it hides for their date is available.
|
|
6793
6830
|
*
|
|
6794
|
-
*
|
|
6795
|
-
*
|
|
6796
|
-
*
|
|
6797
|
-
*
|
|
6831
|
+
* An exploreSOUS request (``X-Channel-Slug: exploresous``) is judged by every rule
|
|
6832
|
+
* the exploreSOUS guards enforce: the cut-off, the availability window, kitchen
|
|
6833
|
+
* and location special dates, delivery weekdays and the earliest delivery day. A
|
|
6834
|
+
* request on any other channel, or naming none, is judged by the product's own
|
|
6835
|
+
* dates and order-until date alone, from the store's today: the cart's
|
|
6836
|
+
* ``fulfilment-dates`` answer for a basket holding only this product, the days the
|
|
6837
|
+
* product allows, not whether the store is open or has slots on them, nor whether
|
|
6838
|
+
* it offers the queried fulfilment type. It still answers for a sold-out, snoozed
|
|
6839
|
+
* or out-of-window product.
|
|
6798
6840
|
*/
|
|
6799
6841
|
get: operations["products_orderable_dates_retrieve"];
|
|
6800
6842
|
put?: never;
|
|
@@ -8264,7 +8306,8 @@ interface components {
|
|
|
8264
8306
|
*
|
|
8265
8307
|
* Backs the discount/promotion "Fulfilment types" picker so it only offers
|
|
8266
8308
|
* the fulfilment types a store actually supports. ``fulfillment_types`` values
|
|
8267
|
-
* are storefront ``FulfillmentType`` slugs (
|
|
8309
|
+
* are storefront ``FulfillmentType`` slugs (any of pickup, room_service,
|
|
8310
|
+
* local_delivery, nationwide_delivery),
|
|
8268
8311
|
* derived from the store's onboarding toggles by the same mapping the public
|
|
8269
8312
|
* storefront config uses — the single source of truth for what a store offers.
|
|
8270
8313
|
*/
|
|
@@ -8606,6 +8649,11 @@ interface components {
|
|
|
8606
8649
|
* @enum {string}
|
|
8607
8650
|
*/
|
|
8608
8651
|
CancellationTypeEnum: "merchant_rejected" | "delivery_unavailable" | "customer_withdrawal" | "other";
|
|
8652
|
+
/** @description The days each kind of delivery is closed, earliest first. */
|
|
8653
|
+
CarrierClosedDatesByType: {
|
|
8654
|
+
local_delivery: string[];
|
|
8655
|
+
nationwide_delivery: string[];
|
|
8656
|
+
};
|
|
8609
8657
|
Cart: {
|
|
8610
8658
|
id: string;
|
|
8611
8659
|
/**
|
|
@@ -8772,7 +8820,7 @@ interface components {
|
|
|
8772
8820
|
line_total: string;
|
|
8773
8821
|
fulfillment_type: components["schemas"]["FulfillmentTypeEnum"];
|
|
8774
8822
|
/** Format: date */
|
|
8775
|
-
fulfillment_date
|
|
8823
|
+
fulfillment_date?: string | null;
|
|
8776
8824
|
fulfillment_time_slot?: string;
|
|
8777
8825
|
readonly options: components["schemas"]["CartLineItemOption"][];
|
|
8778
8826
|
readonly surcharges: components["schemas"]["CartLineItemSurcharge"][];
|
|
@@ -9100,8 +9148,19 @@ interface components {
|
|
|
9100
9148
|
discount_amount: string;
|
|
9101
9149
|
discount_code: string | null;
|
|
9102
9150
|
discount_name: string | null;
|
|
9103
|
-
/**
|
|
9151
|
+
/**
|
|
9152
|
+
* @description A code the shopper typed that saves nothing, and the error code why.
|
|
9153
|
+
*
|
|
9154
|
+
* Either the cart took it off (``reason`` says why), or it is kept while its
|
|
9155
|
+
* weekly window is shut: ``reason`` ``DISCOUNT_NOT_SCHEDULED`` with the
|
|
9156
|
+
* code's ``schedule_weekdays`` (ISO, Monday 1), ``schedule_start_time`` and
|
|
9157
|
+
* ``schedule_end_time`` (``HH:MM:SS`` in the store's time, ``null`` for all
|
|
9158
|
+
* day), the fields the apply path's ``DISCOUNT_NOT_SCHEDULED`` error sends.
|
|
9159
|
+
*/
|
|
9104
9160
|
discount_notice: {
|
|
9161
|
+
schedule_weekdays?: number[];
|
|
9162
|
+
schedule_start_time?: string | null;
|
|
9163
|
+
schedule_end_time?: string | null;
|
|
9105
9164
|
code: string;
|
|
9106
9165
|
reason: string;
|
|
9107
9166
|
} | null;
|
|
@@ -10005,9 +10064,10 @@ interface components {
|
|
|
10005
10064
|
* * `local_delivery` - Local Delivery
|
|
10006
10065
|
* * `pickup` - Pickup
|
|
10007
10066
|
* * `room_service` - Room Service
|
|
10067
|
+
* * `digital` - Digital
|
|
10008
10068
|
* @enum {string}
|
|
10009
10069
|
*/
|
|
10010
|
-
FulfillmentTypeEnum: "nationwide_delivery" | "local_delivery" | "pickup" | "room_service";
|
|
10070
|
+
FulfillmentTypeEnum: "nationwide_delivery" | "local_delivery" | "pickup" | "room_service" | "digital";
|
|
10011
10071
|
/** @description The dates every line of a cart can be fulfilled on. */
|
|
10012
10072
|
FulfilmentDates: {
|
|
10013
10073
|
dates: string[];
|
|
@@ -12373,6 +12433,20 @@ interface components {
|
|
|
12373
12433
|
[key: string]: unknown;
|
|
12374
12434
|
}[];
|
|
12375
12435
|
};
|
|
12436
|
+
PriceQuote: {
|
|
12437
|
+
currency: string;
|
|
12438
|
+
/** Format: decimal */
|
|
12439
|
+
total: string;
|
|
12440
|
+
/** Format: decimal */
|
|
12441
|
+
surcharge_total: string;
|
|
12442
|
+
/** Format: decimal */
|
|
12443
|
+
deposit_total: string;
|
|
12444
|
+
lines: components["schemas"]["QuotedLine"][];
|
|
12445
|
+
};
|
|
12446
|
+
/** @description Lines to price as the cart would, without adding them. */
|
|
12447
|
+
PriceQuoteInput: {
|
|
12448
|
+
lines: components["schemas"]["QuoteLineInput"][];
|
|
12449
|
+
};
|
|
12376
12450
|
/**
|
|
12377
12451
|
* @description * `report` - report
|
|
12378
12452
|
* * `write` - write
|
|
@@ -13148,6 +13222,18 @@ interface components {
|
|
|
13148
13222
|
/** Format: date-time */
|
|
13149
13223
|
readonly created_at: string;
|
|
13150
13224
|
};
|
|
13225
|
+
QuoteLineInput: {
|
|
13226
|
+
product_id: number;
|
|
13227
|
+
/** @default 1 */
|
|
13228
|
+
quantity: number;
|
|
13229
|
+
options?: components["schemas"]["OptionInput"][];
|
|
13230
|
+
};
|
|
13231
|
+
QuotedLine: {
|
|
13232
|
+
product_id: number;
|
|
13233
|
+
quantity: number;
|
|
13234
|
+
/** Format: decimal */
|
|
13235
|
+
line_total: string;
|
|
13236
|
+
};
|
|
13151
13237
|
RecurringGroupOrder: {
|
|
13152
13238
|
id: string;
|
|
13153
13239
|
/** Format: int64 */
|
|
@@ -13639,6 +13725,7 @@ interface components {
|
|
|
13639
13725
|
readonly delivery_configuration: {
|
|
13640
13726
|
[key: string]: unknown;
|
|
13641
13727
|
} | null;
|
|
13728
|
+
readonly fulfillment_types: string[];
|
|
13642
13729
|
readonly category_visibility: {
|
|
13643
13730
|
[key: string]: boolean;
|
|
13644
13731
|
};
|
|
@@ -13661,6 +13748,7 @@ interface components {
|
|
|
13661
13748
|
readonly offers_reusable_packaging: boolean;
|
|
13662
13749
|
readonly reusable_deposit_amount?: string | null;
|
|
13663
13750
|
readonly carrier_closed_delivery_dates: string[];
|
|
13751
|
+
readonly carrier_closed_delivery_dates_by_type: components["schemas"]["CarrierClosedDatesByType"];
|
|
13664
13752
|
};
|
|
13665
13753
|
/** @description One row of the store config list: a method's switch plus retained config. */
|
|
13666
13754
|
StoreDeliveryMethodConfig: {
|
|
@@ -23106,6 +23194,84 @@ interface operations {
|
|
|
23106
23194
|
};
|
|
23107
23195
|
};
|
|
23108
23196
|
};
|
|
23197
|
+
admin_support_timeline: {
|
|
23198
|
+
parameters: {
|
|
23199
|
+
query?: {
|
|
23200
|
+
/** @description Order number, order id, checkout id, customer email or Stripe PaymentIntent id. */
|
|
23201
|
+
q?: string;
|
|
23202
|
+
};
|
|
23203
|
+
header?: never;
|
|
23204
|
+
path?: never;
|
|
23205
|
+
cookie?: never;
|
|
23206
|
+
};
|
|
23207
|
+
requestBody?: never;
|
|
23208
|
+
responses: {
|
|
23209
|
+
200: {
|
|
23210
|
+
headers: {
|
|
23211
|
+
[name: string]: unknown;
|
|
23212
|
+
};
|
|
23213
|
+
content: {
|
|
23214
|
+
"application/json": {
|
|
23215
|
+
[key: string]: unknown;
|
|
23216
|
+
};
|
|
23217
|
+
};
|
|
23218
|
+
};
|
|
23219
|
+
/** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23220
|
+
400: {
|
|
23221
|
+
headers: {
|
|
23222
|
+
[name: string]: unknown;
|
|
23223
|
+
};
|
|
23224
|
+
content: {
|
|
23225
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23226
|
+
};
|
|
23227
|
+
};
|
|
23228
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23229
|
+
401: {
|
|
23230
|
+
headers: {
|
|
23231
|
+
[name: string]: unknown;
|
|
23232
|
+
};
|
|
23233
|
+
content: {
|
|
23234
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23235
|
+
};
|
|
23236
|
+
};
|
|
23237
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23238
|
+
403: {
|
|
23239
|
+
headers: {
|
|
23240
|
+
[name: string]: unknown;
|
|
23241
|
+
};
|
|
23242
|
+
content: {
|
|
23243
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23244
|
+
};
|
|
23245
|
+
};
|
|
23246
|
+
/** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23247
|
+
404: {
|
|
23248
|
+
headers: {
|
|
23249
|
+
[name: string]: unknown;
|
|
23250
|
+
};
|
|
23251
|
+
content: {
|
|
23252
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23253
|
+
};
|
|
23254
|
+
};
|
|
23255
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23256
|
+
429: {
|
|
23257
|
+
headers: {
|
|
23258
|
+
[name: string]: unknown;
|
|
23259
|
+
};
|
|
23260
|
+
content: {
|
|
23261
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23262
|
+
};
|
|
23263
|
+
};
|
|
23264
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
23265
|
+
500: {
|
|
23266
|
+
headers: {
|
|
23267
|
+
[name: string]: unknown;
|
|
23268
|
+
};
|
|
23269
|
+
content: {
|
|
23270
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
23271
|
+
};
|
|
23272
|
+
};
|
|
23273
|
+
};
|
|
23274
|
+
};
|
|
23109
23275
|
admin_surcharges_destroy: {
|
|
23110
23276
|
parameters: {
|
|
23111
23277
|
query?: never;
|
|
@@ -26053,6 +26219,94 @@ interface operations {
|
|
|
26053
26219
|
};
|
|
26054
26220
|
};
|
|
26055
26221
|
};
|
|
26222
|
+
cart_price_quote_create: {
|
|
26223
|
+
parameters: {
|
|
26224
|
+
query?: never;
|
|
26225
|
+
header?: never;
|
|
26226
|
+
path?: never;
|
|
26227
|
+
cookie?: never;
|
|
26228
|
+
};
|
|
26229
|
+
requestBody: {
|
|
26230
|
+
content: {
|
|
26231
|
+
"application/json": components["schemas"]["PriceQuoteInput"];
|
|
26232
|
+
"application/x-www-form-urlencoded": components["schemas"]["PriceQuoteInput"];
|
|
26233
|
+
"multipart/form-data": components["schemas"]["PriceQuoteInput"];
|
|
26234
|
+
};
|
|
26235
|
+
};
|
|
26236
|
+
responses: {
|
|
26237
|
+
200: {
|
|
26238
|
+
headers: {
|
|
26239
|
+
[name: string]: unknown;
|
|
26240
|
+
};
|
|
26241
|
+
content: {
|
|
26242
|
+
"application/json": components["schemas"]["PriceQuote"];
|
|
26243
|
+
};
|
|
26244
|
+
};
|
|
26245
|
+
/** @description Possible error codes: `VALIDATION_ERROR`, `REQUIRED_OPTIONS_MISSING`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CART_MAX_ITEMS_EXCEEDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_INVALID_QUANTITY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_MAX_QUANTITY_EXCEEDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_SOLD_OUT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `OPTION_INVALID_FOR_PRODUCT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `REQUIRED_OPTIONS_MISSING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `FULFILLMENT_TYPE_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_REQUIRED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_INVALID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SERVICE_POINT_NOT_ALLOWED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26246
|
+
400: {
|
|
26247
|
+
headers: {
|
|
26248
|
+
[name: string]: unknown;
|
|
26249
|
+
};
|
|
26250
|
+
content: {
|
|
26251
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26252
|
+
};
|
|
26253
|
+
};
|
|
26254
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26255
|
+
401: {
|
|
26256
|
+
headers: {
|
|
26257
|
+
[name: string]: unknown;
|
|
26258
|
+
};
|
|
26259
|
+
content: {
|
|
26260
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26261
|
+
};
|
|
26262
|
+
};
|
|
26263
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHANNEL_CLAIM_UNVERIFIED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26264
|
+
403: {
|
|
26265
|
+
headers: {
|
|
26266
|
+
[name: string]: unknown;
|
|
26267
|
+
};
|
|
26268
|
+
content: {
|
|
26269
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26270
|
+
};
|
|
26271
|
+
};
|
|
26272
|
+
/** @description Possible error codes: `OPTION_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CART_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LINE_ITEM_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `OPTION_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26273
|
+
404: {
|
|
26274
|
+
headers: {
|
|
26275
|
+
[name: string]: unknown;
|
|
26276
|
+
};
|
|
26277
|
+
content: {
|
|
26278
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26279
|
+
};
|
|
26280
|
+
};
|
|
26281
|
+
/** @description Possible error codes include `CHANNEL_CHANGE_REFUSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NO_LONGER_ORDERABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26282
|
+
409: {
|
|
26283
|
+
headers: {
|
|
26284
|
+
[name: string]: unknown;
|
|
26285
|
+
};
|
|
26286
|
+
content: {
|
|
26287
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26288
|
+
};
|
|
26289
|
+
};
|
|
26290
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26291
|
+
429: {
|
|
26292
|
+
headers: {
|
|
26293
|
+
[name: string]: unknown;
|
|
26294
|
+
};
|
|
26295
|
+
content: {
|
|
26296
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26297
|
+
};
|
|
26298
|
+
};
|
|
26299
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
26300
|
+
500: {
|
|
26301
|
+
headers: {
|
|
26302
|
+
[name: string]: unknown;
|
|
26303
|
+
};
|
|
26304
|
+
content: {
|
|
26305
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
26306
|
+
};
|
|
26307
|
+
};
|
|
26308
|
+
};
|
|
26309
|
+
};
|
|
26056
26310
|
categories_list: {
|
|
26057
26311
|
parameters: {
|
|
26058
26312
|
query?: {
|
|
@@ -28673,7 +28927,7 @@ interface operations {
|
|
|
28673
28927
|
};
|
|
28674
28928
|
};
|
|
28675
28929
|
};
|
|
28676
|
-
/** @description Possible error codes: `MISSING_GATEWAY_ID`, `CHECKOUT_EMPTY`, `ZEEMIJLEN_IN_USE_ELSEWHERE`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`, `DISCOUNT_CUSTOMER_LIMIT`, `GIFT_CARD_HOLD_LAPSED`, `LOYALTY_PAID_ITEM_REQUIRED`, `LOYALTY_EMAIL_MISMATCH`, `LOYALTY_REWARD_UNAVAILABLE`, `LOYALTY_NOT_ENOUGH_POINTS`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUNDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_FAILED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_NOT_CHARGED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_HOLD_LAPSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_PAST_CUTOFF`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_FULL`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `UPSELL_ONLY_BASKET`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28930
|
+
/** @description Possible error codes: `MISSING_GATEWAY_ID`, `AMOUNT_BELOW_CARD_MINIMUM`, `CHECKOUT_EMPTY`, `ZEEMIJLEN_IN_USE_ELSEWHERE`, `GATEWAY_NOT_ENABLED`, `INVALID_GATEWAY`, `MISSING_GIFT_CARD_CODE`, `INVALID_TAX_PROVIDER`, `PRODUCT_UNAVAILABLE`, `SERVICE_POINT_REQUIRED`, `DISCOUNT_CUSTOMER_LIMIT`, `GIFT_CARD_HOLD_LAPSED`, `LOYALTY_PAID_ITEM_REQUIRED`, `LOYALTY_EMAIL_MISMATCH`, `LOYALTY_REWARD_UNAVAILABLE`, `LOYALTY_NOT_ENOUGH_POINTS`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_NOT_PAID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUNDED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_PENDING`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_REFUND_FAILED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_BACKING_LOST_NOT_CHARGED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GIFT_CARD_HOLD_LAPSED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `CHECKOUT_VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_PAST_CUTOFF`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SLOT_FULL`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `UPSELL_ONLY_BASKET`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_CART_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GATEWAY_ID`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_GATEWAY`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_SHIPPING_METHOD`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `SHIPPING_FULFILLMENT_MISMATCH`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `MISSING_GIFT_CARD_CODE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `GATEWAY_NOT_ENABLED`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `INVALID_TAX_PROVIDER`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28677
28931
|
400: {
|
|
28678
28932
|
headers: {
|
|
28679
28933
|
[name: string]: unknown;
|
|
@@ -28709,7 +28963,7 @@ interface operations {
|
|
|
28709
28963
|
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
28710
28964
|
};
|
|
28711
28965
|
};
|
|
28712
|
-
/** @description Possible error codes: `CHECKOUT_INVALID_STATUS`, `DELIVERY_METHOD_UNAVAILABLE`, `DISCOUNT_NO_LONGER_AVAILABLE`, `outside_availability_window`, `date_excluded`, `not_a_delivery_day`, `beyond_pre_order_horizon`, `past_order_cutoff`, `no_common_date`. Retryable: no. Possible error codes include `CHECKOUT_INVALID_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DELIVERY_METHOD_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `store_closed_for_date`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_ORDERABLE_FOR_DATE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NO_LONGER_ORDERABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28966
|
+
/** @description Possible error codes: `CHECKOUT_INVALID_STATUS`, `DELIVERY_METHOD_UNAVAILABLE`, `DISCOUNT_NO_LONGER_AVAILABLE`, `PAYMENT_ALREADY_SETTLING`, `outside_availability_window`, `date_excluded`, `not_a_delivery_day`, `beyond_pre_order_horizon`, `past_order_cutoff`, `no_common_date`. Retryable: no. Possible error codes include `CHECKOUT_INVALID_STATUS`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PAYMENT_IN_FLIGHT`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `DELIVERY_METHOD_UNAVAILABLE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `store_closed_for_date`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_ORDERABLE_FOR_DATE`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NO_LONGER_ORDERABLE`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
28713
28967
|
409: {
|
|
28714
28968
|
headers: {
|
|
28715
28969
|
[name: string]: unknown;
|
|
@@ -45430,9 +45684,9 @@ interface operations {
|
|
|
45430
45684
|
products_orderable_dates_retrieve: {
|
|
45431
45685
|
parameters: {
|
|
45432
45686
|
query: {
|
|
45433
|
-
/** @description For type=delivery: the customer's delivery types in order of preference, comma-separated (local_delivery, nationwide_delivery). The product's schedule follows the first of them it offers, the type its cart line would get; without one it follows the delivery types the product offers. */
|
|
45687
|
+
/** @description For type=delivery on exploreSOUS: the customer's delivery types in order of preference, comma-separated (local_delivery, nationwide_delivery). The product's schedule follows the first of them it offers, the type its cart line would get; without one it follows the delivery types the product offers. On any other channel type=delivery lists the product's own days to the store's own pickup location's horizon, and this is ignored. */
|
|
45434
45688
|
fulfillment_types?: string;
|
|
45435
|
-
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
45689
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. Must be one of the store's; for type=delivery on any channel but exploreSOUS it does not set the horizon. */
|
|
45436
45690
|
location?: number;
|
|
45437
45691
|
/** @description Fulfilment type the dates are for. */
|
|
45438
45692
|
type: "delivery" | "pickup";
|