@poweredbysous/storefront-all-sdk 4.13.1 → 4.15.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
|
@@ -5933,6 +5933,28 @@ interface paths {
|
|
|
5933
5933
|
patch?: never;
|
|
5934
5934
|
trace?: never;
|
|
5935
5935
|
};
|
|
5936
|
+
"/api/v1/products/{id}/orderable-dates/": {
|
|
5937
|
+
parameters: {
|
|
5938
|
+
query?: never;
|
|
5939
|
+
header?: never;
|
|
5940
|
+
path?: never;
|
|
5941
|
+
cookie?: never;
|
|
5942
|
+
};
|
|
5943
|
+
/**
|
|
5944
|
+
* @description The dates this product can be ordered for, within the location's
|
|
5945
|
+
* pre-order horizon, as the cart's ``fulfilment-dates`` lists them for
|
|
5946
|
+
* a basket holding only this product's line, so the storefront can tell
|
|
5947
|
+
* a customer when a product it hides for their date is available.
|
|
5948
|
+
*/
|
|
5949
|
+
get: operations["products_orderable_dates_retrieve"];
|
|
5950
|
+
put?: never;
|
|
5951
|
+
post?: never;
|
|
5952
|
+
delete?: never;
|
|
5953
|
+
options?: never;
|
|
5954
|
+
head?: never;
|
|
5955
|
+
patch?: never;
|
|
5956
|
+
trace?: never;
|
|
5957
|
+
};
|
|
5936
5958
|
"/api/v1/products/{id}/suggestions/": {
|
|
5937
5959
|
parameters: {
|
|
5938
5960
|
query?: never;
|
|
@@ -7018,6 +7040,11 @@ interface components {
|
|
|
7018
7040
|
fulfillment_type?: string;
|
|
7019
7041
|
/** Format: date */
|
|
7020
7042
|
fulfillment_date?: string;
|
|
7043
|
+
/**
|
|
7044
|
+
* Format: date
|
|
7045
|
+
* @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.
|
|
7046
|
+
*/
|
|
7047
|
+
handover_date?: string;
|
|
7021
7048
|
/** @default */
|
|
7022
7049
|
fulfillment_time_slot: string;
|
|
7023
7050
|
options?: components["schemas"]["OptionInput"][];
|
|
@@ -7616,6 +7643,7 @@ interface components {
|
|
|
7616
7643
|
* @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.
|
|
7617
7644
|
*/
|
|
7618
7645
|
estimated_shipping_cost?: string | null;
|
|
7646
|
+
readonly delivery_address: components["schemas"]["CartDeliveryAddress"] | null;
|
|
7619
7647
|
readonly service_fees: {
|
|
7620
7648
|
/**
|
|
7621
7649
|
* Format: decimal
|
|
@@ -7638,10 +7666,13 @@ interface components {
|
|
|
7638
7666
|
}[];
|
|
7639
7667
|
};
|
|
7640
7668
|
/**
|
|
7641
|
-
* @description
|
|
7669
|
+
* @description What checkout will charge for this basket, before gift cards and
|
|
7670
|
+
* Zeemijlen: the items, surcharges, delivery fee and service fee, less
|
|
7671
|
+
* discounts. Leaves out only a delivery fee not priced yet, which
|
|
7672
|
+
* ``service_fees.estimated`` says.
|
|
7642
7673
|
*
|
|
7643
|
-
*
|
|
7644
|
-
*
|
|
7674
|
+
* Totalled by ``order_total_before_points``, the formula checkout
|
|
7675
|
+
* totals with, so the cart total is the checkout total.
|
|
7645
7676
|
*/
|
|
7646
7677
|
readonly estimated_total: string;
|
|
7647
7678
|
/**
|
|
@@ -7661,6 +7692,24 @@ interface components {
|
|
|
7661
7692
|
/** Format: date-time */
|
|
7662
7693
|
expires_at: string;
|
|
7663
7694
|
};
|
|
7695
|
+
/**
|
|
7696
|
+
* @description Where the shopper wants delivery, as the shipping estimate reads it.
|
|
7697
|
+
*
|
|
7698
|
+
* Given with the fulfilment choice, before the first item, so every cart
|
|
7699
|
+
* response carries the delivery fee checkout will charge (price
|
|
7700
|
+
* transparency). The same fields a cart GET takes as query parameters.
|
|
7701
|
+
*/
|
|
7702
|
+
CartDeliveryAddress: {
|
|
7703
|
+
/** Format: decimal */
|
|
7704
|
+
latitude: string;
|
|
7705
|
+
/** Format: decimal */
|
|
7706
|
+
longitude: string;
|
|
7707
|
+
postal_code?: string;
|
|
7708
|
+
address_street?: string;
|
|
7709
|
+
address_city?: string;
|
|
7710
|
+
/** @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. */
|
|
7711
|
+
address_country?: string;
|
|
7712
|
+
};
|
|
7664
7713
|
/** @description Validates a single cart item for eligibility checks. */
|
|
7665
7714
|
CartItem: {
|
|
7666
7715
|
product_id: number;
|
|
@@ -7694,6 +7743,7 @@ interface components {
|
|
|
7694
7743
|
[key: string]: unknown;
|
|
7695
7744
|
} | null;
|
|
7696
7745
|
readonly note: string;
|
|
7746
|
+
readonly order_dates: components["schemas"]["CartLineOrderDates"] | null;
|
|
7697
7747
|
};
|
|
7698
7748
|
CartLineItemOption: {
|
|
7699
7749
|
option_id: number;
|
|
@@ -7749,6 +7799,20 @@ interface components {
|
|
|
7749
7799
|
/** @description 'product' or 'modifier' */
|
|
7750
7800
|
source: string;
|
|
7751
7801
|
};
|
|
7802
|
+
/**
|
|
7803
|
+
* @description The product's own dates. An excluded date closes it, an included date
|
|
7804
|
+
* opens it on a day ``weekly_days`` does not cover, and ``order_until`` closes
|
|
7805
|
+
* it once passed. Checkout refuses a handover date outside them with
|
|
7806
|
+
* ``PRODUCT_NOT_ORDERABLE_FOR_DATE``.
|
|
7807
|
+
*/
|
|
7808
|
+
CartLineOrderDates: {
|
|
7809
|
+
/** @description Lower-case weekday names, or null to follow the store's schedule. */
|
|
7810
|
+
weekly_days: string[] | null;
|
|
7811
|
+
included_dates: string[];
|
|
7812
|
+
excluded_dates: string[];
|
|
7813
|
+
/** Format: date */
|
|
7814
|
+
order_until: string | null;
|
|
7815
|
+
};
|
|
7752
7816
|
/**
|
|
7753
7817
|
* @description A codeless discount the cart holds products for but does not get yet.
|
|
7754
7818
|
*
|
|
@@ -10427,6 +10491,8 @@ interface components {
|
|
|
10427
10491
|
fulfillment_type?: components["schemas"]["FulfillmentTypeEnum"];
|
|
10428
10492
|
/** Format: date */
|
|
10429
10493
|
fulfillment_date?: string;
|
|
10494
|
+
/** @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. */
|
|
10495
|
+
delivery_address?: components["schemas"]["CartDeliveryAddress"] | null;
|
|
10430
10496
|
};
|
|
10431
10497
|
PatchedSetNationwideShipping: {
|
|
10432
10498
|
is_enabled?: boolean;
|
|
@@ -10861,6 +10927,19 @@ interface components {
|
|
|
10861
10927
|
/** Format: date-time */
|
|
10862
10928
|
readonly updated_at: string;
|
|
10863
10929
|
};
|
|
10930
|
+
/**
|
|
10931
|
+
* @description The dates one product can be ordered for, within the location's
|
|
10932
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
10933
|
+
*/
|
|
10934
|
+
ProductFulfilmentDates: {
|
|
10935
|
+
dates: string[];
|
|
10936
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
10937
|
+
};
|
|
10938
|
+
/**
|
|
10939
|
+
* @description * `no_dates` - no_dates
|
|
10940
|
+
* @enum {string}
|
|
10941
|
+
*/
|
|
10942
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
10864
10943
|
ProductImage: {
|
|
10865
10944
|
readonly id: number;
|
|
10866
10945
|
/** Format: uri */
|
|
@@ -19947,7 +20026,7 @@ interface operations {
|
|
|
19947
20026
|
address_country?: string;
|
|
19948
20027
|
/** @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. */
|
|
19949
20028
|
address_street?: string;
|
|
19950
|
-
/** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. */
|
|
20029
|
+
/** @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. */
|
|
19951
20030
|
latitude?: number;
|
|
19952
20031
|
/** @description Delivery destination longitude. */
|
|
19953
20032
|
longitude?: number;
|
|
@@ -39053,6 +39132,8 @@ interface operations {
|
|
|
39053
39132
|
query?: {
|
|
39054
39133
|
/** @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. */
|
|
39055
39134
|
country?: string;
|
|
39135
|
+
/** @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. */
|
|
39136
|
+
handover_date?: string;
|
|
39056
39137
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
39057
39138
|
ordering?: "-popularity" | "-position" | "position";
|
|
39058
39139
|
/** @description A page number within the paginated result set. */
|
|
@@ -39289,6 +39370,91 @@ interface operations {
|
|
|
39289
39370
|
};
|
|
39290
39371
|
};
|
|
39291
39372
|
};
|
|
39373
|
+
products_orderable_dates_retrieve: {
|
|
39374
|
+
parameters: {
|
|
39375
|
+
query: {
|
|
39376
|
+
/** @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. */
|
|
39377
|
+
fulfillment_types?: string;
|
|
39378
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
39379
|
+
location?: number;
|
|
39380
|
+
/** @description Fulfilment type the dates are for. */
|
|
39381
|
+
type: "delivery" | "pickup";
|
|
39382
|
+
/** @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`. */
|
|
39383
|
+
lang?: string;
|
|
39384
|
+
};
|
|
39385
|
+
header?: never;
|
|
39386
|
+
path: {
|
|
39387
|
+
/** @description A unique integer value identifying this product. */
|
|
39388
|
+
id: number;
|
|
39389
|
+
};
|
|
39390
|
+
cookie?: never;
|
|
39391
|
+
};
|
|
39392
|
+
requestBody?: never;
|
|
39393
|
+
responses: {
|
|
39394
|
+
200: {
|
|
39395
|
+
headers: {
|
|
39396
|
+
[name: string]: unknown;
|
|
39397
|
+
};
|
|
39398
|
+
content: {
|
|
39399
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
39400
|
+
};
|
|
39401
|
+
};
|
|
39402
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39403
|
+
400: {
|
|
39404
|
+
headers: {
|
|
39405
|
+
[name: string]: unknown;
|
|
39406
|
+
};
|
|
39407
|
+
content: {
|
|
39408
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39409
|
+
};
|
|
39410
|
+
};
|
|
39411
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39412
|
+
401: {
|
|
39413
|
+
headers: {
|
|
39414
|
+
[name: string]: unknown;
|
|
39415
|
+
};
|
|
39416
|
+
content: {
|
|
39417
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39418
|
+
};
|
|
39419
|
+
};
|
|
39420
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39421
|
+
403: {
|
|
39422
|
+
headers: {
|
|
39423
|
+
[name: string]: unknown;
|
|
39424
|
+
};
|
|
39425
|
+
content: {
|
|
39426
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39427
|
+
};
|
|
39428
|
+
};
|
|
39429
|
+
/** @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. */
|
|
39430
|
+
404: {
|
|
39431
|
+
headers: {
|
|
39432
|
+
[name: string]: unknown;
|
|
39433
|
+
};
|
|
39434
|
+
content: {
|
|
39435
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39436
|
+
};
|
|
39437
|
+
};
|
|
39438
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39439
|
+
429: {
|
|
39440
|
+
headers: {
|
|
39441
|
+
[name: string]: unknown;
|
|
39442
|
+
};
|
|
39443
|
+
content: {
|
|
39444
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39445
|
+
};
|
|
39446
|
+
};
|
|
39447
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39448
|
+
500: {
|
|
39449
|
+
headers: {
|
|
39450
|
+
[name: string]: unknown;
|
|
39451
|
+
};
|
|
39452
|
+
content: {
|
|
39453
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39454
|
+
};
|
|
39455
|
+
};
|
|
39456
|
+
};
|
|
39457
|
+
};
|
|
39292
39458
|
products_suggestions_list: {
|
|
39293
39459
|
parameters: {
|
|
39294
39460
|
query?: {
|
package/dist/index.d.ts
CHANGED
|
@@ -5933,6 +5933,28 @@ interface paths {
|
|
|
5933
5933
|
patch?: never;
|
|
5934
5934
|
trace?: never;
|
|
5935
5935
|
};
|
|
5936
|
+
"/api/v1/products/{id}/orderable-dates/": {
|
|
5937
|
+
parameters: {
|
|
5938
|
+
query?: never;
|
|
5939
|
+
header?: never;
|
|
5940
|
+
path?: never;
|
|
5941
|
+
cookie?: never;
|
|
5942
|
+
};
|
|
5943
|
+
/**
|
|
5944
|
+
* @description The dates this product can be ordered for, within the location's
|
|
5945
|
+
* pre-order horizon, as the cart's ``fulfilment-dates`` lists them for
|
|
5946
|
+
* a basket holding only this product's line, so the storefront can tell
|
|
5947
|
+
* a customer when a product it hides for their date is available.
|
|
5948
|
+
*/
|
|
5949
|
+
get: operations["products_orderable_dates_retrieve"];
|
|
5950
|
+
put?: never;
|
|
5951
|
+
post?: never;
|
|
5952
|
+
delete?: never;
|
|
5953
|
+
options?: never;
|
|
5954
|
+
head?: never;
|
|
5955
|
+
patch?: never;
|
|
5956
|
+
trace?: never;
|
|
5957
|
+
};
|
|
5936
5958
|
"/api/v1/products/{id}/suggestions/": {
|
|
5937
5959
|
parameters: {
|
|
5938
5960
|
query?: never;
|
|
@@ -7018,6 +7040,11 @@ interface components {
|
|
|
7018
7040
|
fulfillment_type?: string;
|
|
7019
7041
|
/** Format: date */
|
|
7020
7042
|
fulfillment_date?: string;
|
|
7043
|
+
/**
|
|
7044
|
+
* Format: date
|
|
7045
|
+
* @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.
|
|
7046
|
+
*/
|
|
7047
|
+
handover_date?: string;
|
|
7021
7048
|
/** @default */
|
|
7022
7049
|
fulfillment_time_slot: string;
|
|
7023
7050
|
options?: components["schemas"]["OptionInput"][];
|
|
@@ -7616,6 +7643,7 @@ interface components {
|
|
|
7616
7643
|
* @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.
|
|
7617
7644
|
*/
|
|
7618
7645
|
estimated_shipping_cost?: string | null;
|
|
7646
|
+
readonly delivery_address: components["schemas"]["CartDeliveryAddress"] | null;
|
|
7619
7647
|
readonly service_fees: {
|
|
7620
7648
|
/**
|
|
7621
7649
|
* Format: decimal
|
|
@@ -7638,10 +7666,13 @@ interface components {
|
|
|
7638
7666
|
}[];
|
|
7639
7667
|
};
|
|
7640
7668
|
/**
|
|
7641
|
-
* @description
|
|
7669
|
+
* @description What checkout will charge for this basket, before gift cards and
|
|
7670
|
+
* Zeemijlen: the items, surcharges, delivery fee and service fee, less
|
|
7671
|
+
* discounts. Leaves out only a delivery fee not priced yet, which
|
|
7672
|
+
* ``service_fees.estimated`` says.
|
|
7642
7673
|
*
|
|
7643
|
-
*
|
|
7644
|
-
*
|
|
7674
|
+
* Totalled by ``order_total_before_points``, the formula checkout
|
|
7675
|
+
* totals with, so the cart total is the checkout total.
|
|
7645
7676
|
*/
|
|
7646
7677
|
readonly estimated_total: string;
|
|
7647
7678
|
/**
|
|
@@ -7661,6 +7692,24 @@ interface components {
|
|
|
7661
7692
|
/** Format: date-time */
|
|
7662
7693
|
expires_at: string;
|
|
7663
7694
|
};
|
|
7695
|
+
/**
|
|
7696
|
+
* @description Where the shopper wants delivery, as the shipping estimate reads it.
|
|
7697
|
+
*
|
|
7698
|
+
* Given with the fulfilment choice, before the first item, so every cart
|
|
7699
|
+
* response carries the delivery fee checkout will charge (price
|
|
7700
|
+
* transparency). The same fields a cart GET takes as query parameters.
|
|
7701
|
+
*/
|
|
7702
|
+
CartDeliveryAddress: {
|
|
7703
|
+
/** Format: decimal */
|
|
7704
|
+
latitude: string;
|
|
7705
|
+
/** Format: decimal */
|
|
7706
|
+
longitude: string;
|
|
7707
|
+
postal_code?: string;
|
|
7708
|
+
address_street?: string;
|
|
7709
|
+
address_city?: string;
|
|
7710
|
+
/** @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. */
|
|
7711
|
+
address_country?: string;
|
|
7712
|
+
};
|
|
7664
7713
|
/** @description Validates a single cart item for eligibility checks. */
|
|
7665
7714
|
CartItem: {
|
|
7666
7715
|
product_id: number;
|
|
@@ -7694,6 +7743,7 @@ interface components {
|
|
|
7694
7743
|
[key: string]: unknown;
|
|
7695
7744
|
} | null;
|
|
7696
7745
|
readonly note: string;
|
|
7746
|
+
readonly order_dates: components["schemas"]["CartLineOrderDates"] | null;
|
|
7697
7747
|
};
|
|
7698
7748
|
CartLineItemOption: {
|
|
7699
7749
|
option_id: number;
|
|
@@ -7749,6 +7799,20 @@ interface components {
|
|
|
7749
7799
|
/** @description 'product' or 'modifier' */
|
|
7750
7800
|
source: string;
|
|
7751
7801
|
};
|
|
7802
|
+
/**
|
|
7803
|
+
* @description The product's own dates. An excluded date closes it, an included date
|
|
7804
|
+
* opens it on a day ``weekly_days`` does not cover, and ``order_until`` closes
|
|
7805
|
+
* it once passed. Checkout refuses a handover date outside them with
|
|
7806
|
+
* ``PRODUCT_NOT_ORDERABLE_FOR_DATE``.
|
|
7807
|
+
*/
|
|
7808
|
+
CartLineOrderDates: {
|
|
7809
|
+
/** @description Lower-case weekday names, or null to follow the store's schedule. */
|
|
7810
|
+
weekly_days: string[] | null;
|
|
7811
|
+
included_dates: string[];
|
|
7812
|
+
excluded_dates: string[];
|
|
7813
|
+
/** Format: date */
|
|
7814
|
+
order_until: string | null;
|
|
7815
|
+
};
|
|
7752
7816
|
/**
|
|
7753
7817
|
* @description A codeless discount the cart holds products for but does not get yet.
|
|
7754
7818
|
*
|
|
@@ -10427,6 +10491,8 @@ interface components {
|
|
|
10427
10491
|
fulfillment_type?: components["schemas"]["FulfillmentTypeEnum"];
|
|
10428
10492
|
/** Format: date */
|
|
10429
10493
|
fulfillment_date?: string;
|
|
10494
|
+
/** @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. */
|
|
10495
|
+
delivery_address?: components["schemas"]["CartDeliveryAddress"] | null;
|
|
10430
10496
|
};
|
|
10431
10497
|
PatchedSetNationwideShipping: {
|
|
10432
10498
|
is_enabled?: boolean;
|
|
@@ -10861,6 +10927,19 @@ interface components {
|
|
|
10861
10927
|
/** Format: date-time */
|
|
10862
10928
|
readonly updated_at: string;
|
|
10863
10929
|
};
|
|
10930
|
+
/**
|
|
10931
|
+
* @description The dates one product can be ordered for, within the location's
|
|
10932
|
+
* pre-order horizon (``ProductViewSet.orderable_dates``).
|
|
10933
|
+
*/
|
|
10934
|
+
ProductFulfilmentDates: {
|
|
10935
|
+
dates: string[];
|
|
10936
|
+
reason: (components["schemas"]["ProductFulfilmentDatesReasonEnum"] | components["schemas"]["NullEnum"]) | null;
|
|
10937
|
+
};
|
|
10938
|
+
/**
|
|
10939
|
+
* @description * `no_dates` - no_dates
|
|
10940
|
+
* @enum {string}
|
|
10941
|
+
*/
|
|
10942
|
+
ProductFulfilmentDatesReasonEnum: "no_dates";
|
|
10864
10943
|
ProductImage: {
|
|
10865
10944
|
readonly id: number;
|
|
10866
10945
|
/** Format: uri */
|
|
@@ -19947,7 +20026,7 @@ interface operations {
|
|
|
19947
20026
|
address_country?: string;
|
|
19948
20027
|
/** @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. */
|
|
19949
20028
|
address_street?: string;
|
|
19950
|
-
/** @description Delivery destination latitude. When paired with longitude, enables a per-group shipping estimate in the response. */
|
|
20029
|
+
/** @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. */
|
|
19951
20030
|
latitude?: number;
|
|
19952
20031
|
/** @description Delivery destination longitude. */
|
|
19953
20032
|
longitude?: number;
|
|
@@ -39053,6 +39132,8 @@ interface operations {
|
|
|
39053
39132
|
query?: {
|
|
39054
39133
|
/** @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. */
|
|
39055
39134
|
country?: string;
|
|
39135
|
+
/** @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. */
|
|
39136
|
+
handover_date?: string;
|
|
39056
39137
|
/** @description Sort order for products. Use '-popularity' for most popular first. */
|
|
39057
39138
|
ordering?: "-popularity" | "-position" | "position";
|
|
39058
39139
|
/** @description A page number within the paginated result set. */
|
|
@@ -39289,6 +39370,91 @@ interface operations {
|
|
|
39289
39370
|
};
|
|
39290
39371
|
};
|
|
39291
39372
|
};
|
|
39373
|
+
products_orderable_dates_retrieve: {
|
|
39374
|
+
parameters: {
|
|
39375
|
+
query: {
|
|
39376
|
+
/** @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. */
|
|
39377
|
+
fulfillment_types?: string;
|
|
39378
|
+
/** @description Pickup location id, as the pickup time-slots endpoint takes it. Defaults to the store's active pickup location. */
|
|
39379
|
+
location?: number;
|
|
39380
|
+
/** @description Fulfilment type the dates are for. */
|
|
39381
|
+
type: "delivery" | "pickup";
|
|
39382
|
+
/** @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`. */
|
|
39383
|
+
lang?: string;
|
|
39384
|
+
};
|
|
39385
|
+
header?: never;
|
|
39386
|
+
path: {
|
|
39387
|
+
/** @description A unique integer value identifying this product. */
|
|
39388
|
+
id: number;
|
|
39389
|
+
};
|
|
39390
|
+
cookie?: never;
|
|
39391
|
+
};
|
|
39392
|
+
requestBody?: never;
|
|
39393
|
+
responses: {
|
|
39394
|
+
200: {
|
|
39395
|
+
headers: {
|
|
39396
|
+
[name: string]: unknown;
|
|
39397
|
+
};
|
|
39398
|
+
content: {
|
|
39399
|
+
"application/json": components["schemas"]["ProductFulfilmentDates"];
|
|
39400
|
+
};
|
|
39401
|
+
};
|
|
39402
|
+
/** @description Possible error codes: `VALIDATION_ERROR`. Retryable: no. Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39403
|
+
400: {
|
|
39404
|
+
headers: {
|
|
39405
|
+
[name: string]: unknown;
|
|
39406
|
+
};
|
|
39407
|
+
content: {
|
|
39408
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39409
|
+
};
|
|
39410
|
+
};
|
|
39411
|
+
/** @description Possible error codes include `UNAUTHORIZED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39412
|
+
401: {
|
|
39413
|
+
headers: {
|
|
39414
|
+
[name: string]: unknown;
|
|
39415
|
+
};
|
|
39416
|
+
content: {
|
|
39417
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39418
|
+
};
|
|
39419
|
+
};
|
|
39420
|
+
/** @description Possible error codes include `FORBIDDEN`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39421
|
+
403: {
|
|
39422
|
+
headers: {
|
|
39423
|
+
[name: string]: unknown;
|
|
39424
|
+
};
|
|
39425
|
+
content: {
|
|
39426
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39427
|
+
};
|
|
39428
|
+
};
|
|
39429
|
+
/** @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. */
|
|
39430
|
+
404: {
|
|
39431
|
+
headers: {
|
|
39432
|
+
[name: string]: unknown;
|
|
39433
|
+
};
|
|
39434
|
+
content: {
|
|
39435
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39436
|
+
};
|
|
39437
|
+
};
|
|
39438
|
+
/** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39439
|
+
429: {
|
|
39440
|
+
headers: {
|
|
39441
|
+
[name: string]: unknown;
|
|
39442
|
+
};
|
|
39443
|
+
content: {
|
|
39444
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39445
|
+
};
|
|
39446
|
+
};
|
|
39447
|
+
/** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
|
|
39448
|
+
500: {
|
|
39449
|
+
headers: {
|
|
39450
|
+
[name: string]: unknown;
|
|
39451
|
+
};
|
|
39452
|
+
content: {
|
|
39453
|
+
"application/json": components["schemas"]["APIErrorEnvelope"];
|
|
39454
|
+
};
|
|
39455
|
+
};
|
|
39456
|
+
};
|
|
39457
|
+
};
|
|
39292
39458
|
products_suggestions_list: {
|
|
39293
39459
|
parameters: {
|
|
39294
39460
|
query?: {
|