@poweredbysous/storefront-sdk 3.3.4 → 3.5.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 +170 -4
- package/dist/index.d.ts +170 -4
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2125,6 +2125,28 @@ interface paths {
|
|
|
2125
2125
|
patch?: never;
|
|
2126
2126
|
trace?: never;
|
|
2127
2127
|
};
|
|
2128
|
+
"/api/v1/products/{id}/orderable-dates/": {
|
|
2129
|
+
parameters: {
|
|
2130
|
+
query?: never;
|
|
2131
|
+
header?: never;
|
|
2132
|
+
path?: never;
|
|
2133
|
+
cookie?: never;
|
|
2134
|
+
};
|
|
2135
|
+
/**
|
|
2136
|
+
* @description The dates this product can be ordered for, within the location's
|
|
2137
|
+
* pre-order horizon, as the cart's ``fulfilment-dates`` lists them for
|
|
2138
|
+
* a basket holding only this product's line, so the storefront can tell
|
|
2139
|
+
* a customer when a product it hides for their date is available.
|
|
2140
|
+
*/
|
|
2141
|
+
get: operations["products_orderable_dates_retrieve"];
|
|
2142
|
+
put?: never;
|
|
2143
|
+
post?: never;
|
|
2144
|
+
delete?: never;
|
|
2145
|
+
options?: never;
|
|
2146
|
+
head?: never;
|
|
2147
|
+
patch?: never;
|
|
2148
|
+
trace?: never;
|
|
2149
|
+
};
|
|
2128
2150
|
"/api/v1/products/{id}/suggestions/": {
|
|
2129
2151
|
parameters: {
|
|
2130
2152
|
query?: never;
|
|
@@ -2498,6 +2520,11 @@ interface components {
|
|
|
2498
2520
|
fulfillment_type?: string;
|
|
2499
2521
|
/** Format: date */
|
|
2500
2522
|
fulfillment_date?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* Format: date
|
|
2525
|
+
* @description The customer's chosen handover date. The product is refused when its own dates (weekly days, included and excluded dates, order-until) do not accept it; the line is not dated by it.
|
|
2526
|
+
*/
|
|
2527
|
+
handover_date?: string;
|
|
2501
2528
|
/** @default */
|
|
2502
2529
|
fulfillment_time_slot: string;
|
|
2503
2530
|
options?: components["schemas"]["OptionInput"][];
|
|
@@ -2729,6 +2756,7 @@ interface components {
|
|
|
2729
2756
|
* @description Last computed full shipping estimate (before delivery fee split). NULL means no estimate has been computed — which is not the same as an estimate of zero, and must never be read as free delivery.
|
|
2730
2757
|
*/
|
|
2731
2758
|
estimated_shipping_cost?: string | null;
|
|
2759
|
+
readonly delivery_address: components["schemas"]["CartDeliveryAddress"] | null;
|
|
2732
2760
|
readonly service_fees: {
|
|
2733
2761
|
/**
|
|
2734
2762
|
* Format: decimal
|
|
@@ -2751,10 +2779,13 @@ interface components {
|
|
|
2751
2779
|
}[];
|
|
2752
2780
|
};
|
|
2753
2781
|
/**
|
|
2754
|
-
* @description
|
|
2782
|
+
* @description What checkout will charge for this basket, before gift cards and
|
|
2783
|
+
* Zeemijlen: the items, surcharges, delivery fee and service fee, less
|
|
2784
|
+
* discounts. Leaves out only a delivery fee not priced yet, which
|
|
2785
|
+
* ``service_fees.estimated`` says.
|
|
2755
2786
|
*
|
|
2756
|
-
*
|
|
2757
|
-
*
|
|
2787
|
+
* Totalled by ``order_total_before_points``, the formula checkout
|
|
2788
|
+
* totals with, so the cart total is the checkout total.
|
|
2758
2789
|
*/
|
|
2759
2790
|
readonly estimated_total: string;
|
|
2760
2791
|
/**
|
|
@@ -2774,6 +2805,24 @@ interface components {
|
|
|
2774
2805
|
/** Format: date-time */
|
|
2775
2806
|
expires_at: string;
|
|
2776
2807
|
};
|
|
2808
|
+
/**
|
|
2809
|
+
* @description Where the shopper wants delivery, as the shipping estimate reads it.
|
|
2810
|
+
*
|
|
2811
|
+
* Given with the fulfilment choice, before the first item, so every cart
|
|
2812
|
+
* response carries the delivery fee checkout will charge (price
|
|
2813
|
+
* transparency). The same fields a cart GET takes as query parameters.
|
|
2814
|
+
*/
|
|
2815
|
+
CartDeliveryAddress: {
|
|
2816
|
+
/** Format: decimal */
|
|
2817
|
+
latitude: string;
|
|
2818
|
+
/** Format: decimal */
|
|
2819
|
+
longitude: string;
|
|
2820
|
+
postal_code?: string;
|
|
2821
|
+
address_street?: string;
|
|
2822
|
+
address_city?: string;
|
|
2823
|
+
/** @description ISO 3166-1 alpha-2, case-insensitive. A nationwide carrier prices by country, so it is enough without a street and city; a live courier quote needs all three. */
|
|
2824
|
+
address_country?: string;
|
|
2825
|
+
};
|
|
2777
2826
|
/** @description Validates a single cart item for eligibility checks. */
|
|
2778
2827
|
CartItem: {
|
|
2779
2828
|
product_id: number;
|
|
@@ -2807,6 +2856,7 @@ interface components {
|
|
|
2807
2856
|
[key: string]: unknown;
|
|
2808
2857
|
} | null;
|
|
2809
2858
|
readonly note: string;
|
|
2859
|
+
readonly order_dates: components["schemas"]["CartLineOrderDates"] | null;
|
|
2810
2860
|
};
|
|
2811
2861
|
CartLineItemOption: {
|
|
2812
2862
|
option_id: number;
|
|
@@ -2862,6 +2912,20 @@ interface components {
|
|
|
2862
2912
|
/** @description 'product' or 'modifier' */
|
|
2863
2913
|
source: string;
|
|
2864
2914
|
};
|
|
2915
|
+
/**
|
|
2916
|
+
* @description The product's own dates. An excluded date closes it, an included date
|
|
2917
|
+
* opens it on a day ``weekly_days`` does not cover, and ``order_until`` closes
|
|
2918
|
+
* it once passed. Checkout refuses a handover date outside them with
|
|
2919
|
+
* ``PRODUCT_NOT_ORDERABLE_FOR_DATE``.
|
|
2920
|
+
*/
|
|
2921
|
+
CartLineOrderDates: {
|
|
2922
|
+
/** @description Lower-case weekday names, or null to follow the store's schedule. */
|
|
2923
|
+
weekly_days: string[] | null;
|
|
2924
|
+
included_dates: string[];
|
|
2925
|
+
excluded_dates: string[];
|
|
2926
|
+
/** Format: date */
|
|
2927
|
+
order_until: string | null;
|
|
2928
|
+
};
|
|
2865
2929
|
/**
|
|
2866
2930
|
* @description A codeless discount the cart holds products for but does not get yet.
|
|
2867
2931
|
*
|
|
@@ -4027,6 +4091,8 @@ interface components {
|
|
|
4027
4091
|
fulfillment_type?: components["schemas"]["FulfillmentTypeEnum"];
|
|
4028
4092
|
/** Format: date */
|
|
4029
4093
|
fulfillment_date?: string;
|
|
4094
|
+
/** @description The shopper's delivery address. Stored on the cart so every cart response prices the delivery fee; null forgets it, and leaving it out keeps the one already given. */
|
|
4095
|
+
delivery_address?: components["schemas"]["CartDeliveryAddress"] | null;
|
|
4030
4096
|
};
|
|
4031
4097
|
/** @description Validates the request body for updating a line item quantity. */
|
|
4032
4098
|
PatchedUpdateItemQuantityInput: {
|
|
@@ -4237,6 +4303,19 @@ interface components {
|
|
|
4237
4303
|
/** Format: date-time */
|
|
4238
4304
|
readonly updated_at: string;
|
|
4239
4305
|
};
|
|
4306
|
+
/**
|
|
4307
|
+
* @description The dates one product can be ordered for, within the location's
|
|
4308
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
4309
|
+
*/
|
|
4310
|
+
ProductFulfilmentDates: {
|
|
4311
|
+
dates: string[];
|
|
4312
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
4313
|
+
};
|
|
4314
|
+
/**
|
|
4315
|
+
* @description * `no_dates` - no_dates
|
|
4316
|
+
* @enum {string}
|
|
4317
|
+
*/
|
|
4318
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
4240
4319
|
ProductImage: {
|
|
4241
4320
|
readonly id: number;
|
|
4242
4321
|
/** Format: uri */
|
|
@@ -6033,7 +6112,7 @@ interface operations {
|
|
|
6033
6112
|
address_country?: string;
|
|
6034
6113
|
/** @description Delivery destination street line. Required together with address_city and address_country to trigger a live shipping quote (e.g. from Uber Direct); without all three the shipping_estimate group will report cost_known=false. */
|
|
6035
6114
|
address_street?: string;
|
|
6036
|
-
/** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. */
|
|
6115
|
+
/** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. Ignored, like every address parameter here, once the cart holds a `delivery_address` from the fulfilment PATCH. */
|
|
6037
6116
|
latitude?: number;
|
|
6038
6117
|
/** @description Delivery destination longitude. */
|
|
6039
6118
|
longitude?: number;
|
|
@@ -16037,6 +16116,8 @@ interface operations {
|
|
|
16037
16116
|
query?: {
|
|
16038
16117
|
/** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE), used with latitude and longitude. A nationwide carrier that declares per-country service areas only offers its products once the country is known. Case-insensitive; any other value is treated as no country. */
|
|
16039
16118
|
country?: string;
|
|
16119
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Lists only the products that can be ordered today for that date by their own dates: weekly days, included and excluded dates, and order-until. Whether the store is open that day is the time-slots endpoint's answer, not this filter's. An unreadable value is ignored. */
|
|
16120
|
+
handover_date?: string;
|
|
16040
16121
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
16041
16122
|
ordering?: "-popularity" | "-position" | "position";
|
|
16042
16123
|
/** @description A page number within the paginated result set. */
|
|
@@ -16273,6 +16354,91 @@ interface operations {
|
|
|
16273
16354
|
};
|
|
16274
16355
|
};
|
|
16275
16356
|
};
|
|
16357
|
+
products_orderable_dates_retrieve: {
|
|
16358
|
+
parameters: {
|
|
16359
|
+
query: {
|
|
16360
|
+
/** @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. */
|
|
16361
|
+
fulfillment_types?: string;
|
|
16362
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
16363
|
+
location?: number;
|
|
16364
|
+
/** @description Fulfilment type the dates are for. */
|
|
16365
|
+
type: "delivery" | "pickup";
|
|
16366
|
+
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
16367
|
+
lang?: string;
|
|
16368
|
+
};
|
|
16369
|
+
header?: never;
|
|
16370
|
+
path: {
|
|
16371
|
+
/** @description A unique integer value identifying this product. */
|
|
16372
|
+
id: number;
|
|
16373
|
+
};
|
|
16374
|
+
cookie?: never;
|
|
16375
|
+
};
|
|
16376
|
+
requestBody?: never;
|
|
16377
|
+
responses: {
|
|
16378
|
+
200: {
|
|
16379
|
+
headers: {
|
|
16380
|
+
[name: string]: unknown;
|
|
16381
|
+
};
|
|
16382
|
+
content: {
|
|
16383
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
16384
|
+
};
|
|
16385
|
+
};
|
|
16386
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16387
|
+
400: {
|
|
16388
|
+
headers: {
|
|
16389
|
+
[name: string]: unknown;
|
|
16390
|
+
};
|
|
16391
|
+
content: {
|
|
16392
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16393
|
+
};
|
|
16394
|
+
};
|
|
16395
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16396
|
+
401: {
|
|
16397
|
+
headers: {
|
|
16398
|
+
[name: string]: unknown;
|
|
16399
|
+
};
|
|
16400
|
+
content: {
|
|
16401
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16402
|
+
};
|
|
16403
|
+
};
|
|
16404
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16405
|
+
403: {
|
|
16406
|
+
headers: {
|
|
16407
|
+
[name: string]: unknown;
|
|
16408
|
+
};
|
|
16409
|
+
content: {
|
|
16410
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16411
|
+
};
|
|
16412
|
+
};
|
|
16413
|
+
/** @description Possible error codes: `NOT_FOUND`, `LOCATION_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOCATION_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16414
|
+
404: {
|
|
16415
|
+
headers: {
|
|
16416
|
+
[name: string]: unknown;
|
|
16417
|
+
};
|
|
16418
|
+
content: {
|
|
16419
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16420
|
+
};
|
|
16421
|
+
};
|
|
16422
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16423
|
+
429: {
|
|
16424
|
+
headers: {
|
|
16425
|
+
[name: string]: unknown;
|
|
16426
|
+
};
|
|
16427
|
+
content: {
|
|
16428
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16429
|
+
};
|
|
16430
|
+
};
|
|
16431
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16432
|
+
500: {
|
|
16433
|
+
headers: {
|
|
16434
|
+
[name: string]: unknown;
|
|
16435
|
+
};
|
|
16436
|
+
content: {
|
|
16437
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16438
|
+
};
|
|
16439
|
+
};
|
|
16440
|
+
};
|
|
16441
|
+
};
|
|
16276
16442
|
products_suggestions_list: {
|
|
16277
16443
|
parameters: {
|
|
16278
16444
|
query?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -2125,6 +2125,28 @@ interface paths {
|
|
|
2125
2125
|
patch?: never;
|
|
2126
2126
|
trace?: never;
|
|
2127
2127
|
};
|
|
2128
|
+
"/api/v1/products/{id}/orderable-dates/": {
|
|
2129
|
+
parameters: {
|
|
2130
|
+
query?: never;
|
|
2131
|
+
header?: never;
|
|
2132
|
+
path?: never;
|
|
2133
|
+
cookie?: never;
|
|
2134
|
+
};
|
|
2135
|
+
/**
|
|
2136
|
+
* @description The dates this product can be ordered for, within the location's
|
|
2137
|
+
* pre-order horizon, as the cart's ``fulfilment-dates`` lists them for
|
|
2138
|
+
* a basket holding only this product's line, so the storefront can tell
|
|
2139
|
+
* a customer when a product it hides for their date is available.
|
|
2140
|
+
*/
|
|
2141
|
+
get: operations["products_orderable_dates_retrieve"];
|
|
2142
|
+
put?: never;
|
|
2143
|
+
post?: never;
|
|
2144
|
+
delete?: never;
|
|
2145
|
+
options?: never;
|
|
2146
|
+
head?: never;
|
|
2147
|
+
patch?: never;
|
|
2148
|
+
trace?: never;
|
|
2149
|
+
};
|
|
2128
2150
|
"/api/v1/products/{id}/suggestions/": {
|
|
2129
2151
|
parameters: {
|
|
2130
2152
|
query?: never;
|
|
@@ -2498,6 +2520,11 @@ interface components {
|
|
|
2498
2520
|
fulfillment_type?: string;
|
|
2499
2521
|
/** Format: date */
|
|
2500
2522
|
fulfillment_date?: string;
|
|
2523
|
+
/**
|
|
2524
|
+
* Format: date
|
|
2525
|
+
* @description The customer's chosen handover date. The product is refused when its own dates (weekly days, included and excluded dates, order-until) do not accept it; the line is not dated by it.
|
|
2526
|
+
*/
|
|
2527
|
+
handover_date?: string;
|
|
2501
2528
|
/** @default */
|
|
2502
2529
|
fulfillment_time_slot: string;
|
|
2503
2530
|
options?: components["schemas"]["OptionInput"][];
|
|
@@ -2729,6 +2756,7 @@ interface components {
|
|
|
2729
2756
|
* @description Last computed full shipping estimate (before delivery fee split). NULL means no estimate has been computed — which is not the same as an estimate of zero, and must never be read as free delivery.
|
|
2730
2757
|
*/
|
|
2731
2758
|
estimated_shipping_cost?: string | null;
|
|
2759
|
+
readonly delivery_address: components["schemas"]["CartDeliveryAddress"] | null;
|
|
2732
2760
|
readonly service_fees: {
|
|
2733
2761
|
/**
|
|
2734
2762
|
* Format: decimal
|
|
@@ -2751,10 +2779,13 @@ interface components {
|
|
|
2751
2779
|
}[];
|
|
2752
2780
|
};
|
|
2753
2781
|
/**
|
|
2754
|
-
* @description
|
|
2782
|
+
* @description What checkout will charge for this basket, before gift cards and
|
|
2783
|
+
* Zeemijlen: the items, surcharges, delivery fee and service fee, less
|
|
2784
|
+
* discounts. Leaves out only a delivery fee not priced yet, which
|
|
2785
|
+
* ``service_fees.estimated`` says.
|
|
2755
2786
|
*
|
|
2756
|
-
*
|
|
2757
|
-
*
|
|
2787
|
+
* Totalled by ``order_total_before_points``, the formula checkout
|
|
2788
|
+
* totals with, so the cart total is the checkout total.
|
|
2758
2789
|
*/
|
|
2759
2790
|
readonly estimated_total: string;
|
|
2760
2791
|
/**
|
|
@@ -2774,6 +2805,24 @@ interface components {
|
|
|
2774
2805
|
/** Format: date-time */
|
|
2775
2806
|
expires_at: string;
|
|
2776
2807
|
};
|
|
2808
|
+
/**
|
|
2809
|
+
* @description Where the shopper wants delivery, as the shipping estimate reads it.
|
|
2810
|
+
*
|
|
2811
|
+
* Given with the fulfilment choice, before the first item, so every cart
|
|
2812
|
+
* response carries the delivery fee checkout will charge (price
|
|
2813
|
+
* transparency). The same fields a cart GET takes as query parameters.
|
|
2814
|
+
*/
|
|
2815
|
+
CartDeliveryAddress: {
|
|
2816
|
+
/** Format: decimal */
|
|
2817
|
+
latitude: string;
|
|
2818
|
+
/** Format: decimal */
|
|
2819
|
+
longitude: string;
|
|
2820
|
+
postal_code?: string;
|
|
2821
|
+
address_street?: string;
|
|
2822
|
+
address_city?: string;
|
|
2823
|
+
/** @description ISO 3166-1 alpha-2, case-insensitive. A nationwide carrier prices by country, so it is enough without a street and city; a live courier quote needs all three. */
|
|
2824
|
+
address_country?: string;
|
|
2825
|
+
};
|
|
2777
2826
|
/** @description Validates a single cart item for eligibility checks. */
|
|
2778
2827
|
CartItem: {
|
|
2779
2828
|
product_id: number;
|
|
@@ -2807,6 +2856,7 @@ interface components {
|
|
|
2807
2856
|
[key: string]: unknown;
|
|
2808
2857
|
} | null;
|
|
2809
2858
|
readonly note: string;
|
|
2859
|
+
readonly order_dates: components["schemas"]["CartLineOrderDates"] | null;
|
|
2810
2860
|
};
|
|
2811
2861
|
CartLineItemOption: {
|
|
2812
2862
|
option_id: number;
|
|
@@ -2862,6 +2912,20 @@ interface components {
|
|
|
2862
2912
|
/** @description 'product' or 'modifier' */
|
|
2863
2913
|
source: string;
|
|
2864
2914
|
};
|
|
2915
|
+
/**
|
|
2916
|
+
* @description The product's own dates. An excluded date closes it, an included date
|
|
2917
|
+
* opens it on a day ``weekly_days`` does not cover, and ``order_until`` closes
|
|
2918
|
+
* it once passed. Checkout refuses a handover date outside them with
|
|
2919
|
+
* ``PRODUCT_NOT_ORDERABLE_FOR_DATE``.
|
|
2920
|
+
*/
|
|
2921
|
+
CartLineOrderDates: {
|
|
2922
|
+
/** @description Lower-case weekday names, or null to follow the store's schedule. */
|
|
2923
|
+
weekly_days: string[] | null;
|
|
2924
|
+
included_dates: string[];
|
|
2925
|
+
excluded_dates: string[];
|
|
2926
|
+
/** Format: date */
|
|
2927
|
+
order_until: string | null;
|
|
2928
|
+
};
|
|
2865
2929
|
/**
|
|
2866
2930
|
* @description A codeless discount the cart holds products for but does not get yet.
|
|
2867
2931
|
*
|
|
@@ -4027,6 +4091,8 @@ interface components {
|
|
|
4027
4091
|
fulfillment_type?: components["schemas"]["FulfillmentTypeEnum"];
|
|
4028
4092
|
/** Format: date */
|
|
4029
4093
|
fulfillment_date?: string;
|
|
4094
|
+
/** @description The shopper's delivery address. Stored on the cart so every cart response prices the delivery fee; null forgets it, and leaving it out keeps the one already given. */
|
|
4095
|
+
delivery_address?: components["schemas"]["CartDeliveryAddress"] | null;
|
|
4030
4096
|
};
|
|
4031
4097
|
/** @description Validates the request body for updating a line item quantity. */
|
|
4032
4098
|
PatchedUpdateItemQuantityInput: {
|
|
@@ -4237,6 +4303,19 @@ interface components {
|
|
|
4237
4303
|
/** Format: date-time */
|
|
4238
4304
|
readonly updated_at: string;
|
|
4239
4305
|
};
|
|
4306
|
+
/**
|
|
4307
|
+
* @description The dates one product can be ordered for, within the location's
|
|
4308
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
4309
|
+
*/
|
|
4310
|
+
ProductFulfilmentDates: {
|
|
4311
|
+
dates: string[];
|
|
4312
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
4313
|
+
};
|
|
4314
|
+
/**
|
|
4315
|
+
* @description * `no_dates` - no_dates
|
|
4316
|
+
* @enum {string}
|
|
4317
|
+
*/
|
|
4318
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
4240
4319
|
ProductImage: {
|
|
4241
4320
|
readonly id: number;
|
|
4242
4321
|
/** Format: uri */
|
|
@@ -6033,7 +6112,7 @@ interface operations {
|
|
|
6033
6112
|
address_country?: string;
|
|
6034
6113
|
/** @description Delivery destination street line. Required together with address_city and address_country to trigger a live shipping quote (e.g. from Uber Direct); without all three the shipping_estimate group will report cost_known=false. */
|
|
6035
6114
|
address_street?: string;
|
|
6036
|
-
/** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. */
|
|
6115
|
+
/** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. Ignored, like every address parameter here, once the cart holds a `delivery_address` from the fulfilment PATCH. */
|
|
6037
6116
|
latitude?: number;
|
|
6038
6117
|
/** @description Delivery destination longitude. */
|
|
6039
6118
|
longitude?: number;
|
|
@@ -16037,6 +16116,8 @@ interface operations {
|
|
|
16037
16116
|
query?: {
|
|
16038
16117
|
/** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE), used with latitude and longitude. A nationwide carrier that declares per-country service areas only offers its products once the country is known. Case-insensitive; any other value is treated as no country. */
|
|
16039
16118
|
country?: string;
|
|
16119
|
+
/** @description The pickup or delivery date the customer has chosen (YYYY-MM-DD). Lists only the products that can be ordered today for that date by their own dates: weekly days, included and excluded dates, and order-until. Whether the store is open that day is the time-slots endpoint's answer, not this filter's. An unreadable value is ignored. */
|
|
16120
|
+
handover_date?: string;
|
|
16040
16121
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
16041
16122
|
ordering?: "-popularity" | "-position" | "position";
|
|
16042
16123
|
/** @description A page number within the paginated result set. */
|
|
@@ -16273,6 +16354,91 @@ interface operations {
|
|
|
16273
16354
|
};
|
|
16274
16355
|
};
|
|
16275
16356
|
};
|
|
16357
|
+
products_orderable_dates_retrieve: {
|
|
16358
|
+
parameters: {
|
|
16359
|
+
query: {
|
|
16360
|
+
/** @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. */
|
|
16361
|
+
fulfillment_types?: string;
|
|
16362
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
16363
|
+
location?: number;
|
|
16364
|
+
/** @description Fulfilment type the dates are for. */
|
|
16365
|
+
type: "delivery" | "pickup";
|
|
16366
|
+
/** @description Language override for translated content. The primary mechanism is the `Accept-Language` header; this query parameter is an override for widget embedding where merchants cannot control browser headers. Defaults to `en`. */
|
|
16367
|
+
lang?: string;
|
|
16368
|
+
};
|
|
16369
|
+
header?: never;
|
|
16370
|
+
path: {
|
|
16371
|
+
/** @description A unique integer value identifying this product. */
|
|
16372
|
+
id: number;
|
|
16373
|
+
};
|
|
16374
|
+
cookie?: never;
|
|
16375
|
+
};
|
|
16376
|
+
requestBody?: never;
|
|
16377
|
+
responses: {
|
|
16378
|
+
200: {
|
|
16379
|
+
headers: {
|
|
16380
|
+
[name: string]: unknown;
|
|
16381
|
+
};
|
|
16382
|
+
content: {
|
|
16383
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
16384
|
+
};
|
|
16385
|
+
};
|
|
16386
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16387
|
+
400: {
|
|
16388
|
+
headers: {
|
|
16389
|
+
[name: string]: unknown;
|
|
16390
|
+
};
|
|
16391
|
+
content: {
|
|
16392
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16393
|
+
};
|
|
16394
|
+
};
|
|
16395
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16396
|
+
401: {
|
|
16397
|
+
headers: {
|
|
16398
|
+
[name: string]: unknown;
|
|
16399
|
+
};
|
|
16400
|
+
content: {
|
|
16401
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16402
|
+
};
|
|
16403
|
+
};
|
|
16404
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16405
|
+
403: {
|
|
16406
|
+
headers: {
|
|
16407
|
+
[name: string]: unknown;
|
|
16408
|
+
};
|
|
16409
|
+
content: {
|
|
16410
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16411
|
+
};
|
|
16412
|
+
};
|
|
16413
|
+
/** @description Possible error codes: `NOT_FOUND`, `LOCATION_NOT_FOUND`. Retryable: no. Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `PRODUCT_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. Possible error codes include `LOCATION_NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16414
|
+
404: {
|
|
16415
|
+
headers: {
|
|
16416
|
+
[name: string]: unknown;
|
|
16417
|
+
};
|
|
16418
|
+
content: {
|
|
16419
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16420
|
+
};
|
|
16421
|
+
};
|
|
16422
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16423
|
+
429: {
|
|
16424
|
+
headers: {
|
|
16425
|
+
[name: string]: unknown;
|
|
16426
|
+
};
|
|
16427
|
+
content: {
|
|
16428
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16429
|
+
};
|
|
16430
|
+
};
|
|
16431
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
16432
|
+
500: {
|
|
16433
|
+
headers: {
|
|
16434
|
+
[name: string]: unknown;
|
|
16435
|
+
};
|
|
16436
|
+
content: {
|
|
16437
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
16438
|
+
};
|
|
16439
|
+
};
|
|
16440
|
+
};
|
|
16441
|
+
};
|
|
16276
16442
|
products_suggestions_list: {
|
|
16277
16443
|
parameters: {
|
|
16278
16444
|
query?: {
|