@firfi/voila-sdk 0.1.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/LICENSE +21 -0
- package/README.md +165 -0
- package/dist/src/domain/cart.d.ts +10 -0
- package/dist/src/domain/cart.d.ts.map +1 -0
- package/dist/src/domain/cart.js +14 -0
- package/dist/src/domain/cart.js.map +1 -0
- package/dist/src/domain/checkout-readiness.d.ts +3 -0
- package/dist/src/domain/checkout-readiness.d.ts.map +1 -0
- package/dist/src/domain/checkout-readiness.js +18 -0
- package/dist/src/domain/checkout-readiness.js.map +1 -0
- package/dist/src/domain/parse.d.ts +5 -0
- package/dist/src/domain/parse.d.ts.map +1 -0
- package/dist/src/domain/parse.js +11 -0
- package/dist/src/domain/parse.js.map +1 -0
- package/dist/src/domain/schemas/auth.d.ts +123 -0
- package/dist/src/domain/schemas/auth.d.ts.map +1 -0
- package/dist/src/domain/schemas/auth.js +36 -0
- package/dist/src/domain/schemas/auth.js.map +1 -0
- package/dist/src/domain/schemas/cart.d.ts +1224 -0
- package/dist/src/domain/schemas/cart.d.ts.map +1 -0
- package/dist/src/domain/schemas/cart.js +123 -0
- package/dist/src/domain/schemas/cart.js.map +1 -0
- package/dist/src/domain/schemas/category-page.d.ts +187 -0
- package/dist/src/domain/schemas/category-page.d.ts.map +1 -0
- package/dist/src/domain/schemas/category-page.js +43 -0
- package/dist/src/domain/schemas/category-page.js.map +1 -0
- package/dist/src/domain/schemas/category.d.ts +25 -0
- package/dist/src/domain/schemas/category.d.ts.map +1 -0
- package/dist/src/domain/schemas/category.js +30 -0
- package/dist/src/domain/schemas/category.js.map +1 -0
- package/dist/src/domain/schemas/checkout-summary.d.ts +1035 -0
- package/dist/src/domain/schemas/checkout-summary.d.ts.map +1 -0
- package/dist/src/domain/schemas/checkout-summary.js +103 -0
- package/dist/src/domain/schemas/checkout-summary.js.map +1 -0
- package/dist/src/domain/schemas/delivery-destination.d.ts +176 -0
- package/dist/src/domain/schemas/delivery-destination.d.ts.map +1 -0
- package/dist/src/domain/schemas/delivery-destination.js +52 -0
- package/dist/src/domain/schemas/delivery-destination.js.map +1 -0
- package/dist/src/domain/schemas/index.d.ts +13 -0
- package/dist/src/domain/schemas/index.d.ts.map +1 -0
- package/dist/src/domain/schemas/index.js +13 -0
- package/dist/src/domain/schemas/index.js.map +1 -0
- package/dist/src/domain/schemas/money.d.ts +18 -0
- package/dist/src/domain/schemas/money.d.ts.map +1 -0
- package/dist/src/domain/schemas/money.js +11 -0
- package/dist/src/domain/schemas/money.js.map +1 -0
- package/dist/src/domain/schemas/product.d.ts +230 -0
- package/dist/src/domain/schemas/product.d.ts.map +1 -0
- package/dist/src/domain/schemas/product.js +32 -0
- package/dist/src/domain/schemas/product.js.map +1 -0
- package/dist/src/domain/schemas/proposition.d.ts +746 -0
- package/dist/src/domain/schemas/proposition.d.ts.map +1 -0
- package/dist/src/domain/schemas/proposition.js +110 -0
- package/dist/src/domain/schemas/proposition.js.map +1 -0
- package/dist/src/domain/schemas/search.d.ts +31 -0
- package/dist/src/domain/schemas/search.d.ts.map +1 -0
- package/dist/src/domain/schemas/search.js +16 -0
- package/dist/src/domain/schemas/search.js.map +1 -0
- package/dist/src/domain/schemas/session.d.ts +1341 -0
- package/dist/src/domain/schemas/session.d.ts.map +1 -0
- package/dist/src/domain/schemas/session.js +140 -0
- package/dist/src/domain/schemas/session.js.map +1 -0
- package/dist/src/domain/schemas/slot.d.ts +844 -0
- package/dist/src/domain/schemas/slot.d.ts.map +1 -0
- package/dist/src/domain/schemas/slot.js +130 -0
- package/dist/src/domain/schemas/slot.js.map +1 -0
- package/dist/src/index.d.ts +26 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +26 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/voila/browser-login-adapter.d.ts +108 -0
- package/dist/src/voila/browser-login-adapter.d.ts.map +1 -0
- package/dist/src/voila/browser-login-adapter.js +128 -0
- package/dist/src/voila/browser-login-adapter.js.map +1 -0
- package/dist/src/voila/browser-login.d.ts +32 -0
- package/dist/src/voila/browser-login.d.ts.map +1 -0
- package/dist/src/voila/browser-login.js +86 -0
- package/dist/src/voila/browser-login.js.map +1 -0
- package/dist/src/voila/cart-mutation.d.ts +23 -0
- package/dist/src/voila/cart-mutation.d.ts.map +1 -0
- package/dist/src/voila/cart-mutation.js +52 -0
- package/dist/src/voila/cart-mutation.js.map +1 -0
- package/dist/src/voila/cart-view.d.ts +14 -0
- package/dist/src/voila/cart-view.d.ts.map +1 -0
- package/dist/src/voila/cart-view.js +45 -0
- package/dist/src/voila/cart-view.js.map +1 -0
- package/dist/src/voila/catalog-search.d.ts +27 -0
- package/dist/src/voila/catalog-search.d.ts.map +1 -0
- package/dist/src/voila/catalog-search.js +40 -0
- package/dist/src/voila/catalog-search.js.map +1 -0
- package/dist/src/voila/categories.d.ts +4 -0
- package/dist/src/voila/categories.d.ts.map +1 -0
- package/dist/src/voila/categories.js +22 -0
- package/dist/src/voila/categories.js.map +1 -0
- package/dist/src/voila/category-products.d.ts +22 -0
- package/dist/src/voila/category-products.d.ts.map +1 -0
- package/dist/src/voila/category-products.js +32 -0
- package/dist/src/voila/category-products.js.map +1 -0
- package/dist/src/voila/checkout-summary.d.ts +15 -0
- package/dist/src/voila/checkout-summary.d.ts.map +1 -0
- package/dist/src/voila/checkout-summary.js +93 -0
- package/dist/src/voila/checkout-summary.js.map +1 -0
- package/dist/src/voila/checkout-urls.d.ts +11 -0
- package/dist/src/voila/checkout-urls.d.ts.map +1 -0
- package/dist/src/voila/checkout-urls.js +23 -0
- package/dist/src/voila/checkout-urls.js.map +1 -0
- package/dist/src/voila/delivery-destinations.d.ts +22 -0
- package/dist/src/voila/delivery-destinations.d.ts.map +1 -0
- package/dist/src/voila/delivery-destinations.js +70 -0
- package/dist/src/voila/delivery-destinations.js.map +1 -0
- package/dist/src/voila/guest-bootstrap.d.ts +40 -0
- package/dist/src/voila/guest-bootstrap.d.ts.map +1 -0
- package/dist/src/voila/guest-bootstrap.js +108 -0
- package/dist/src/voila/guest-bootstrap.js.map +1 -0
- package/dist/src/voila/headers.d.ts +5 -0
- package/dist/src/voila/headers.d.ts.map +1 -0
- package/dist/src/voila/headers.js +20 -0
- package/dist/src/voila/headers.js.map +1 -0
- package/dist/src/voila/http-client.d.ts +60 -0
- package/dist/src/voila/http-client.d.ts.map +1 -0
- package/dist/src/voila/http-client.js +124 -0
- package/dist/src/voila/http-client.js.map +1 -0
- package/dist/src/voila/initial-state.d.ts +19 -0
- package/dist/src/voila/initial-state.d.ts.map +1 -0
- package/dist/src/voila/initial-state.js +117 -0
- package/dist/src/voila/initial-state.js.map +1 -0
- package/dist/src/voila/session-health.d.ts +10 -0
- package/dist/src/voila/session-health.d.ts.map +1 -0
- package/dist/src/voila/session-health.js +176 -0
- package/dist/src/voila/session-health.js.map +1 -0
- package/dist/src/voila/session-snapshot.d.ts +41 -0
- package/dist/src/voila/session-snapshot.d.ts.map +1 -0
- package/dist/src/voila/session-snapshot.js +101 -0
- package/dist/src/voila/session-snapshot.js.map +1 -0
- package/dist/src/voila/session-storage.d.ts +22 -0
- package/dist/src/voila/session-storage.d.ts.map +1 -0
- package/dist/src/voila/session-storage.js +54 -0
- package/dist/src/voila/session-storage.js.map +1 -0
- package/dist/src/voila/shopping-context.d.ts +33 -0
- package/dist/src/voila/shopping-context.d.ts.map +1 -0
- package/dist/src/voila/shopping-context.js +159 -0
- package/dist/src/voila/shopping-context.js.map +1 -0
- package/dist/src/voila/slot-urls.d.ts +22 -0
- package/dist/src/voila/slot-urls.d.ts.map +1 -0
- package/dist/src/voila/slot-urls.js +51 -0
- package/dist/src/voila/slot-urls.js.map +1 -0
- package/dist/src/voila/slots.d.ts +41 -0
- package/dist/src/voila/slots.d.ts.map +1 -0
- package/dist/src/voila/slots.js +137 -0
- package/dist/src/voila/slots.js.map +1 -0
- package/dist/src/voila/urls.d.ts +114 -0
- package/dist/src/voila/urls.d.ts.map +1 -0
- package/dist/src/voila/urls.js +197 -0
- package/dist/src/voila/urls.js.map +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,1035 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const CheckoutSummaryInputSchema: Schema.Struct<{
|
|
3
|
+
appliedPaymentCheckId: Schema.optionalWith<Schema.filter<Schema.filter<typeof Schema.String>>, {
|
|
4
|
+
exact: true;
|
|
5
|
+
}>;
|
|
6
|
+
fetchAllocatedPaymentChecks: Schema.optionalWith<typeof Schema.Boolean, {
|
|
7
|
+
exact: true;
|
|
8
|
+
}>;
|
|
9
|
+
}>;
|
|
10
|
+
export type CheckoutSummaryInput = Schema.Schema.Type<typeof CheckoutSummaryInputSchema>;
|
|
11
|
+
export declare const CheckoutSummarySignalSchema: Schema.Schema<{
|
|
12
|
+
readonly message?: string;
|
|
13
|
+
readonly code?: string;
|
|
14
|
+
readonly severity?: string;
|
|
15
|
+
} & {
|
|
16
|
+
readonly [x: string]: unknown;
|
|
17
|
+
}, {
|
|
18
|
+
readonly message?: string;
|
|
19
|
+
readonly code?: string;
|
|
20
|
+
readonly severity?: string;
|
|
21
|
+
} & {
|
|
22
|
+
readonly [x: string]: unknown;
|
|
23
|
+
}, never>;
|
|
24
|
+
export type CheckoutSummarySignal = Schema.Schema.Type<typeof CheckoutSummarySignalSchema>;
|
|
25
|
+
export declare const CheckoutSummaryTotalsSchema: Schema.Schema<{
|
|
26
|
+
readonly finalPrice?: {
|
|
27
|
+
readonly amount: string;
|
|
28
|
+
readonly currency: string;
|
|
29
|
+
};
|
|
30
|
+
readonly itemPriceAfterPromos?: {
|
|
31
|
+
readonly amount: string;
|
|
32
|
+
readonly currency: string;
|
|
33
|
+
};
|
|
34
|
+
readonly itemsRetailPrice?: {
|
|
35
|
+
readonly amount: string;
|
|
36
|
+
readonly currency: string;
|
|
37
|
+
};
|
|
38
|
+
readonly savingsPrice?: {
|
|
39
|
+
readonly amount: string;
|
|
40
|
+
readonly currency: string;
|
|
41
|
+
};
|
|
42
|
+
readonly depositsPrice?: {
|
|
43
|
+
readonly amount: string;
|
|
44
|
+
readonly currency: string;
|
|
45
|
+
};
|
|
46
|
+
readonly environmentalHandlingPrice?: {
|
|
47
|
+
readonly amount: string;
|
|
48
|
+
readonly currency: string;
|
|
49
|
+
};
|
|
50
|
+
readonly retailPrice?: {
|
|
51
|
+
readonly amount: string;
|
|
52
|
+
readonly currency: string;
|
|
53
|
+
};
|
|
54
|
+
readonly totalPrice?: {
|
|
55
|
+
readonly amount: string;
|
|
56
|
+
readonly currency: string;
|
|
57
|
+
};
|
|
58
|
+
} & {
|
|
59
|
+
readonly [x: string]: unknown;
|
|
60
|
+
}, {
|
|
61
|
+
readonly finalPrice?: {
|
|
62
|
+
readonly amount: string;
|
|
63
|
+
readonly currency: string;
|
|
64
|
+
};
|
|
65
|
+
readonly itemPriceAfterPromos?: {
|
|
66
|
+
readonly amount: string;
|
|
67
|
+
readonly currency: string;
|
|
68
|
+
};
|
|
69
|
+
readonly itemsRetailPrice?: {
|
|
70
|
+
readonly amount: string;
|
|
71
|
+
readonly currency: string;
|
|
72
|
+
};
|
|
73
|
+
readonly savingsPrice?: {
|
|
74
|
+
readonly amount: string;
|
|
75
|
+
readonly currency: string;
|
|
76
|
+
};
|
|
77
|
+
readonly depositsPrice?: {
|
|
78
|
+
readonly amount: string;
|
|
79
|
+
readonly currency: string;
|
|
80
|
+
};
|
|
81
|
+
readonly environmentalHandlingPrice?: {
|
|
82
|
+
readonly amount: string;
|
|
83
|
+
readonly currency: string;
|
|
84
|
+
};
|
|
85
|
+
readonly retailPrice?: {
|
|
86
|
+
readonly amount: string;
|
|
87
|
+
readonly currency: string;
|
|
88
|
+
};
|
|
89
|
+
readonly totalPrice?: {
|
|
90
|
+
readonly amount: string;
|
|
91
|
+
readonly currency: string;
|
|
92
|
+
};
|
|
93
|
+
} & {
|
|
94
|
+
readonly [x: string]: unknown;
|
|
95
|
+
}, never>;
|
|
96
|
+
export type CheckoutSummaryTotals = Schema.Schema.Type<typeof CheckoutSummaryTotalsSchema>;
|
|
97
|
+
export declare const CheckoutChargeComponentSchema: Schema.Schema<{
|
|
98
|
+
readonly price?: {
|
|
99
|
+
readonly amount: string;
|
|
100
|
+
readonly currency: string;
|
|
101
|
+
};
|
|
102
|
+
readonly finalPrice?: {
|
|
103
|
+
readonly amount: string;
|
|
104
|
+
readonly currency: string;
|
|
105
|
+
};
|
|
106
|
+
} & {
|
|
107
|
+
readonly [x: string]: unknown;
|
|
108
|
+
}, {
|
|
109
|
+
readonly price?: {
|
|
110
|
+
readonly amount: string;
|
|
111
|
+
readonly currency: string;
|
|
112
|
+
};
|
|
113
|
+
readonly finalPrice?: {
|
|
114
|
+
readonly amount: string;
|
|
115
|
+
readonly currency: string;
|
|
116
|
+
};
|
|
117
|
+
} & {
|
|
118
|
+
readonly [x: string]: unknown;
|
|
119
|
+
}, never>;
|
|
120
|
+
export type CheckoutChargeComponent = Schema.Schema.Type<typeof CheckoutChargeComponentSchema>;
|
|
121
|
+
export declare const CheckoutChargesSchema: Schema.Schema<{
|
|
122
|
+
readonly carrierBag?: {
|
|
123
|
+
readonly price?: {
|
|
124
|
+
readonly amount: string;
|
|
125
|
+
readonly currency: string;
|
|
126
|
+
};
|
|
127
|
+
readonly finalPrice?: {
|
|
128
|
+
readonly amount: string;
|
|
129
|
+
readonly currency: string;
|
|
130
|
+
};
|
|
131
|
+
} & {
|
|
132
|
+
readonly [x: string]: unknown;
|
|
133
|
+
};
|
|
134
|
+
readonly delivery?: {
|
|
135
|
+
readonly price?: {
|
|
136
|
+
readonly amount: string;
|
|
137
|
+
readonly currency: string;
|
|
138
|
+
};
|
|
139
|
+
readonly finalPrice?: {
|
|
140
|
+
readonly amount: string;
|
|
141
|
+
readonly currency: string;
|
|
142
|
+
};
|
|
143
|
+
} & {
|
|
144
|
+
readonly [x: string]: unknown;
|
|
145
|
+
};
|
|
146
|
+
readonly invoice?: {
|
|
147
|
+
readonly price?: {
|
|
148
|
+
readonly amount: string;
|
|
149
|
+
readonly currency: string;
|
|
150
|
+
};
|
|
151
|
+
readonly finalPrice?: {
|
|
152
|
+
readonly amount: string;
|
|
153
|
+
readonly currency: string;
|
|
154
|
+
};
|
|
155
|
+
} & {
|
|
156
|
+
readonly [x: string]: unknown;
|
|
157
|
+
};
|
|
158
|
+
readonly preparation?: {
|
|
159
|
+
readonly price?: {
|
|
160
|
+
readonly amount: string;
|
|
161
|
+
readonly currency: string;
|
|
162
|
+
};
|
|
163
|
+
readonly finalPrice?: {
|
|
164
|
+
readonly amount: string;
|
|
165
|
+
readonly currency: string;
|
|
166
|
+
};
|
|
167
|
+
} & {
|
|
168
|
+
readonly [x: string]: unknown;
|
|
169
|
+
};
|
|
170
|
+
readonly smallOrder?: {
|
|
171
|
+
readonly price?: {
|
|
172
|
+
readonly amount: string;
|
|
173
|
+
readonly currency: string;
|
|
174
|
+
};
|
|
175
|
+
readonly finalPrice?: {
|
|
176
|
+
readonly amount: string;
|
|
177
|
+
readonly currency: string;
|
|
178
|
+
};
|
|
179
|
+
} & {
|
|
180
|
+
readonly [x: string]: unknown;
|
|
181
|
+
};
|
|
182
|
+
} & {
|
|
183
|
+
readonly [x: string]: unknown;
|
|
184
|
+
}, {
|
|
185
|
+
readonly carrierBag?: {
|
|
186
|
+
readonly price?: {
|
|
187
|
+
readonly amount: string;
|
|
188
|
+
readonly currency: string;
|
|
189
|
+
};
|
|
190
|
+
readonly finalPrice?: {
|
|
191
|
+
readonly amount: string;
|
|
192
|
+
readonly currency: string;
|
|
193
|
+
};
|
|
194
|
+
} & {
|
|
195
|
+
readonly [x: string]: unknown;
|
|
196
|
+
};
|
|
197
|
+
readonly delivery?: {
|
|
198
|
+
readonly price?: {
|
|
199
|
+
readonly amount: string;
|
|
200
|
+
readonly currency: string;
|
|
201
|
+
};
|
|
202
|
+
readonly finalPrice?: {
|
|
203
|
+
readonly amount: string;
|
|
204
|
+
readonly currency: string;
|
|
205
|
+
};
|
|
206
|
+
} & {
|
|
207
|
+
readonly [x: string]: unknown;
|
|
208
|
+
};
|
|
209
|
+
readonly invoice?: {
|
|
210
|
+
readonly price?: {
|
|
211
|
+
readonly amount: string;
|
|
212
|
+
readonly currency: string;
|
|
213
|
+
};
|
|
214
|
+
readonly finalPrice?: {
|
|
215
|
+
readonly amount: string;
|
|
216
|
+
readonly currency: string;
|
|
217
|
+
};
|
|
218
|
+
} & {
|
|
219
|
+
readonly [x: string]: unknown;
|
|
220
|
+
};
|
|
221
|
+
readonly preparation?: {
|
|
222
|
+
readonly price?: {
|
|
223
|
+
readonly amount: string;
|
|
224
|
+
readonly currency: string;
|
|
225
|
+
};
|
|
226
|
+
readonly finalPrice?: {
|
|
227
|
+
readonly amount: string;
|
|
228
|
+
readonly currency: string;
|
|
229
|
+
};
|
|
230
|
+
} & {
|
|
231
|
+
readonly [x: string]: unknown;
|
|
232
|
+
};
|
|
233
|
+
readonly smallOrder?: {
|
|
234
|
+
readonly price?: {
|
|
235
|
+
readonly amount: string;
|
|
236
|
+
readonly currency: string;
|
|
237
|
+
};
|
|
238
|
+
readonly finalPrice?: {
|
|
239
|
+
readonly amount: string;
|
|
240
|
+
readonly currency: string;
|
|
241
|
+
};
|
|
242
|
+
} & {
|
|
243
|
+
readonly [x: string]: unknown;
|
|
244
|
+
};
|
|
245
|
+
} & {
|
|
246
|
+
readonly [x: string]: unknown;
|
|
247
|
+
}, never>;
|
|
248
|
+
export type CheckoutCharges = Schema.Schema.Type<typeof CheckoutChargesSchema>;
|
|
249
|
+
export declare const NormalizedCheckoutFeesSchema: Schema.Struct<{
|
|
250
|
+
carrierBag: Schema.optionalWith<Schema.Struct<{
|
|
251
|
+
amount: typeof Schema.String;
|
|
252
|
+
currency: typeof Schema.String;
|
|
253
|
+
}>, {
|
|
254
|
+
exact: true;
|
|
255
|
+
}>;
|
|
256
|
+
delivery: Schema.optionalWith<Schema.Struct<{
|
|
257
|
+
amount: typeof Schema.String;
|
|
258
|
+
currency: typeof Schema.String;
|
|
259
|
+
}>, {
|
|
260
|
+
exact: true;
|
|
261
|
+
}>;
|
|
262
|
+
invoice: Schema.optionalWith<Schema.Struct<{
|
|
263
|
+
amount: typeof Schema.String;
|
|
264
|
+
currency: typeof Schema.String;
|
|
265
|
+
}>, {
|
|
266
|
+
exact: true;
|
|
267
|
+
}>;
|
|
268
|
+
preparation: Schema.optionalWith<Schema.Struct<{
|
|
269
|
+
amount: typeof Schema.String;
|
|
270
|
+
currency: typeof Schema.String;
|
|
271
|
+
}>, {
|
|
272
|
+
exact: true;
|
|
273
|
+
}>;
|
|
274
|
+
smallOrder: Schema.optionalWith<Schema.Struct<{
|
|
275
|
+
amount: typeof Schema.String;
|
|
276
|
+
currency: typeof Schema.String;
|
|
277
|
+
}>, {
|
|
278
|
+
exact: true;
|
|
279
|
+
}>;
|
|
280
|
+
}>;
|
|
281
|
+
export type NormalizedCheckoutFees = Schema.Schema.Type<typeof NormalizedCheckoutFeesSchema>;
|
|
282
|
+
export declare const RawCheckoutDeliverySchema: Schema.Schema<{
|
|
283
|
+
readonly price?: {
|
|
284
|
+
readonly amount: string;
|
|
285
|
+
readonly currency: string;
|
|
286
|
+
};
|
|
287
|
+
readonly deliveryPriceChanged?: boolean;
|
|
288
|
+
readonly endTime?: string;
|
|
289
|
+
readonly expiryTime?: string;
|
|
290
|
+
readonly slotId?: string;
|
|
291
|
+
readonly startTime?: string;
|
|
292
|
+
readonly timeZoneId?: string;
|
|
293
|
+
} & {
|
|
294
|
+
readonly [x: string]: unknown;
|
|
295
|
+
}, {
|
|
296
|
+
readonly price?: {
|
|
297
|
+
readonly amount: string;
|
|
298
|
+
readonly currency: string;
|
|
299
|
+
};
|
|
300
|
+
readonly deliveryPriceChanged?: boolean;
|
|
301
|
+
readonly endTime?: string;
|
|
302
|
+
readonly expiryTime?: string;
|
|
303
|
+
readonly slotId?: string;
|
|
304
|
+
readonly startTime?: string;
|
|
305
|
+
readonly timeZoneId?: string;
|
|
306
|
+
} & {
|
|
307
|
+
readonly [x: string]: unknown;
|
|
308
|
+
}, never>;
|
|
309
|
+
export type RawCheckoutDelivery = Schema.Schema.Type<typeof RawCheckoutDeliverySchema>;
|
|
310
|
+
export declare const CheckoutSlotSummarySchema: Schema.Struct<{
|
|
311
|
+
deliveryPriceChanged: Schema.optionalWith<typeof Schema.Boolean, {
|
|
312
|
+
exact: true;
|
|
313
|
+
}>;
|
|
314
|
+
endTime: Schema.optionalWith<typeof Schema.String, {
|
|
315
|
+
exact: true;
|
|
316
|
+
}>;
|
|
317
|
+
expiryTime: Schema.optionalWith<typeof Schema.String, {
|
|
318
|
+
exact: true;
|
|
319
|
+
}>;
|
|
320
|
+
price: Schema.optionalWith<Schema.Struct<{
|
|
321
|
+
amount: typeof Schema.String;
|
|
322
|
+
currency: typeof Schema.String;
|
|
323
|
+
}>, {
|
|
324
|
+
exact: true;
|
|
325
|
+
}>;
|
|
326
|
+
slotId: Schema.optionalWith<typeof Schema.String, {
|
|
327
|
+
exact: true;
|
|
328
|
+
}>;
|
|
329
|
+
startTime: Schema.optionalWith<typeof Schema.String, {
|
|
330
|
+
exact: true;
|
|
331
|
+
}>;
|
|
332
|
+
timeZoneId: Schema.optionalWith<typeof Schema.String, {
|
|
333
|
+
exact: true;
|
|
334
|
+
}>;
|
|
335
|
+
}>;
|
|
336
|
+
export type CheckoutSlotSummary = Schema.Schema.Type<typeof CheckoutSlotSummarySchema>;
|
|
337
|
+
export declare const RawCheckoutStateSchema: Schema.Schema<{
|
|
338
|
+
readonly checkoutRestrictions?: readonly ({
|
|
339
|
+
readonly message?: string;
|
|
340
|
+
readonly code?: string;
|
|
341
|
+
readonly severity?: string;
|
|
342
|
+
} & {
|
|
343
|
+
readonly [x: string]: unknown;
|
|
344
|
+
})[];
|
|
345
|
+
readonly delivery?: {
|
|
346
|
+
readonly price?: {
|
|
347
|
+
readonly amount: string;
|
|
348
|
+
readonly currency: string;
|
|
349
|
+
};
|
|
350
|
+
readonly deliveryPriceChanged?: boolean;
|
|
351
|
+
readonly endTime?: string;
|
|
352
|
+
readonly expiryTime?: string;
|
|
353
|
+
readonly slotId?: string;
|
|
354
|
+
readonly startTime?: string;
|
|
355
|
+
readonly timeZoneId?: string;
|
|
356
|
+
} & {
|
|
357
|
+
readonly [x: string]: unknown;
|
|
358
|
+
};
|
|
359
|
+
readonly basketAboveThreshold?: boolean;
|
|
360
|
+
readonly canCheckout?: boolean;
|
|
361
|
+
readonly minimumCheckoutThreshold?: {
|
|
362
|
+
readonly amount: string;
|
|
363
|
+
readonly currency: string;
|
|
364
|
+
};
|
|
365
|
+
readonly shippingGroupType?: string;
|
|
366
|
+
readonly shippingGroupTypeDisplayName?: string;
|
|
367
|
+
} & {
|
|
368
|
+
readonly [x: string]: unknown;
|
|
369
|
+
}, {
|
|
370
|
+
readonly checkoutRestrictions?: readonly ({
|
|
371
|
+
readonly message?: string;
|
|
372
|
+
readonly code?: string;
|
|
373
|
+
readonly severity?: string;
|
|
374
|
+
} & {
|
|
375
|
+
readonly [x: string]: unknown;
|
|
376
|
+
})[];
|
|
377
|
+
readonly delivery?: {
|
|
378
|
+
readonly price?: {
|
|
379
|
+
readonly amount: string;
|
|
380
|
+
readonly currency: string;
|
|
381
|
+
};
|
|
382
|
+
readonly deliveryPriceChanged?: boolean;
|
|
383
|
+
readonly endTime?: string;
|
|
384
|
+
readonly expiryTime?: string;
|
|
385
|
+
readonly slotId?: string;
|
|
386
|
+
readonly startTime?: string;
|
|
387
|
+
readonly timeZoneId?: string;
|
|
388
|
+
} & {
|
|
389
|
+
readonly [x: string]: unknown;
|
|
390
|
+
};
|
|
391
|
+
readonly basketAboveThreshold?: boolean;
|
|
392
|
+
readonly canCheckout?: boolean;
|
|
393
|
+
readonly minimumCheckoutThreshold?: {
|
|
394
|
+
readonly amount: string;
|
|
395
|
+
readonly currency: string;
|
|
396
|
+
};
|
|
397
|
+
readonly shippingGroupType?: string;
|
|
398
|
+
readonly shippingGroupTypeDisplayName?: string;
|
|
399
|
+
} & {
|
|
400
|
+
readonly [x: string]: unknown;
|
|
401
|
+
}, never>;
|
|
402
|
+
export type RawCheckoutState = Schema.Schema.Type<typeof RawCheckoutStateSchema>;
|
|
403
|
+
export declare const CheckoutSummaryWarningSchema: Schema.Struct<{
|
|
404
|
+
kind: Schema.Literal<["checkout-restriction", "limited-item", "pricing-notification", "substitution", "unavailable-item"]>;
|
|
405
|
+
signal: Schema.Schema<{
|
|
406
|
+
readonly message?: string;
|
|
407
|
+
readonly code?: string;
|
|
408
|
+
readonly severity?: string;
|
|
409
|
+
} & {
|
|
410
|
+
readonly [x: string]: unknown;
|
|
411
|
+
}, {
|
|
412
|
+
readonly message?: string;
|
|
413
|
+
readonly code?: string;
|
|
414
|
+
readonly severity?: string;
|
|
415
|
+
} & {
|
|
416
|
+
readonly [x: string]: unknown;
|
|
417
|
+
}, never>;
|
|
418
|
+
}>;
|
|
419
|
+
export type CheckoutSummaryWarning = Schema.Schema.Type<typeof CheckoutSummaryWarningSchema>;
|
|
420
|
+
export declare const RawCheckoutSummaryResponseSchema: Schema.Schema<{
|
|
421
|
+
readonly totals?: {
|
|
422
|
+
readonly finalPrice?: {
|
|
423
|
+
readonly amount: string;
|
|
424
|
+
readonly currency: string;
|
|
425
|
+
};
|
|
426
|
+
readonly itemPriceAfterPromos?: {
|
|
427
|
+
readonly amount: string;
|
|
428
|
+
readonly currency: string;
|
|
429
|
+
};
|
|
430
|
+
readonly itemsRetailPrice?: {
|
|
431
|
+
readonly amount: string;
|
|
432
|
+
readonly currency: string;
|
|
433
|
+
};
|
|
434
|
+
readonly savingsPrice?: {
|
|
435
|
+
readonly amount: string;
|
|
436
|
+
readonly currency: string;
|
|
437
|
+
};
|
|
438
|
+
readonly depositsPrice?: {
|
|
439
|
+
readonly amount: string;
|
|
440
|
+
readonly currency: string;
|
|
441
|
+
};
|
|
442
|
+
readonly environmentalHandlingPrice?: {
|
|
443
|
+
readonly amount: string;
|
|
444
|
+
readonly currency: string;
|
|
445
|
+
};
|
|
446
|
+
readonly retailPrice?: {
|
|
447
|
+
readonly amount: string;
|
|
448
|
+
readonly currency: string;
|
|
449
|
+
};
|
|
450
|
+
readonly totalPrice?: {
|
|
451
|
+
readonly amount: string;
|
|
452
|
+
readonly currency: string;
|
|
453
|
+
};
|
|
454
|
+
} & {
|
|
455
|
+
readonly [x: string]: unknown;
|
|
456
|
+
};
|
|
457
|
+
readonly limitedItems?: readonly ({
|
|
458
|
+
readonly message?: string;
|
|
459
|
+
readonly code?: string;
|
|
460
|
+
readonly severity?: string;
|
|
461
|
+
} & {
|
|
462
|
+
readonly [x: string]: unknown;
|
|
463
|
+
})[];
|
|
464
|
+
readonly pricingNotifications?: readonly ({
|
|
465
|
+
readonly message?: string;
|
|
466
|
+
readonly code?: string;
|
|
467
|
+
readonly severity?: string;
|
|
468
|
+
} & {
|
|
469
|
+
readonly [x: string]: unknown;
|
|
470
|
+
})[];
|
|
471
|
+
readonly unavailableData?: readonly ({
|
|
472
|
+
readonly message?: string;
|
|
473
|
+
readonly code?: string;
|
|
474
|
+
readonly severity?: string;
|
|
475
|
+
} & {
|
|
476
|
+
readonly [x: string]: unknown;
|
|
477
|
+
})[];
|
|
478
|
+
readonly cartId?: string;
|
|
479
|
+
readonly charges?: {
|
|
480
|
+
readonly carrierBag?: {
|
|
481
|
+
readonly price?: {
|
|
482
|
+
readonly amount: string;
|
|
483
|
+
readonly currency: string;
|
|
484
|
+
};
|
|
485
|
+
readonly finalPrice?: {
|
|
486
|
+
readonly amount: string;
|
|
487
|
+
readonly currency: string;
|
|
488
|
+
};
|
|
489
|
+
} & {
|
|
490
|
+
readonly [x: string]: unknown;
|
|
491
|
+
};
|
|
492
|
+
readonly delivery?: {
|
|
493
|
+
readonly price?: {
|
|
494
|
+
readonly amount: string;
|
|
495
|
+
readonly currency: string;
|
|
496
|
+
};
|
|
497
|
+
readonly finalPrice?: {
|
|
498
|
+
readonly amount: string;
|
|
499
|
+
readonly currency: string;
|
|
500
|
+
};
|
|
501
|
+
} & {
|
|
502
|
+
readonly [x: string]: unknown;
|
|
503
|
+
};
|
|
504
|
+
readonly invoice?: {
|
|
505
|
+
readonly price?: {
|
|
506
|
+
readonly amount: string;
|
|
507
|
+
readonly currency: string;
|
|
508
|
+
};
|
|
509
|
+
readonly finalPrice?: {
|
|
510
|
+
readonly amount: string;
|
|
511
|
+
readonly currency: string;
|
|
512
|
+
};
|
|
513
|
+
} & {
|
|
514
|
+
readonly [x: string]: unknown;
|
|
515
|
+
};
|
|
516
|
+
readonly preparation?: {
|
|
517
|
+
readonly price?: {
|
|
518
|
+
readonly amount: string;
|
|
519
|
+
readonly currency: string;
|
|
520
|
+
};
|
|
521
|
+
readonly finalPrice?: {
|
|
522
|
+
readonly amount: string;
|
|
523
|
+
readonly currency: string;
|
|
524
|
+
};
|
|
525
|
+
} & {
|
|
526
|
+
readonly [x: string]: unknown;
|
|
527
|
+
};
|
|
528
|
+
readonly smallOrder?: {
|
|
529
|
+
readonly price?: {
|
|
530
|
+
readonly amount: string;
|
|
531
|
+
readonly currency: string;
|
|
532
|
+
};
|
|
533
|
+
readonly finalPrice?: {
|
|
534
|
+
readonly amount: string;
|
|
535
|
+
readonly currency: string;
|
|
536
|
+
};
|
|
537
|
+
} & {
|
|
538
|
+
readonly [x: string]: unknown;
|
|
539
|
+
};
|
|
540
|
+
} & {
|
|
541
|
+
readonly [x: string]: unknown;
|
|
542
|
+
};
|
|
543
|
+
readonly checkout: {
|
|
544
|
+
readonly checkoutRestrictions?: readonly ({
|
|
545
|
+
readonly message?: string;
|
|
546
|
+
readonly code?: string;
|
|
547
|
+
readonly severity?: string;
|
|
548
|
+
} & {
|
|
549
|
+
readonly [x: string]: unknown;
|
|
550
|
+
})[];
|
|
551
|
+
readonly delivery?: {
|
|
552
|
+
readonly price?: {
|
|
553
|
+
readonly amount: string;
|
|
554
|
+
readonly currency: string;
|
|
555
|
+
};
|
|
556
|
+
readonly deliveryPriceChanged?: boolean;
|
|
557
|
+
readonly endTime?: string;
|
|
558
|
+
readonly expiryTime?: string;
|
|
559
|
+
readonly slotId?: string;
|
|
560
|
+
readonly startTime?: string;
|
|
561
|
+
readonly timeZoneId?: string;
|
|
562
|
+
} & {
|
|
563
|
+
readonly [x: string]: unknown;
|
|
564
|
+
};
|
|
565
|
+
readonly basketAboveThreshold?: boolean;
|
|
566
|
+
readonly canCheckout?: boolean;
|
|
567
|
+
readonly minimumCheckoutThreshold?: {
|
|
568
|
+
readonly amount: string;
|
|
569
|
+
readonly currency: string;
|
|
570
|
+
};
|
|
571
|
+
readonly shippingGroupType?: string;
|
|
572
|
+
readonly shippingGroupTypeDisplayName?: string;
|
|
573
|
+
} & {
|
|
574
|
+
readonly [x: string]: unknown;
|
|
575
|
+
};
|
|
576
|
+
readonly checkoutCorrelationId?: string;
|
|
577
|
+
readonly orderId?: string;
|
|
578
|
+
readonly substitutions?: readonly ({
|
|
579
|
+
readonly message?: string;
|
|
580
|
+
readonly code?: string;
|
|
581
|
+
readonly severity?: string;
|
|
582
|
+
} & {
|
|
583
|
+
readonly [x: string]: unknown;
|
|
584
|
+
})[];
|
|
585
|
+
} & {
|
|
586
|
+
readonly [x: string]: unknown;
|
|
587
|
+
}, {
|
|
588
|
+
readonly checkout: {
|
|
589
|
+
readonly checkoutRestrictions?: readonly ({
|
|
590
|
+
readonly message?: string;
|
|
591
|
+
readonly code?: string;
|
|
592
|
+
readonly severity?: string;
|
|
593
|
+
} & {
|
|
594
|
+
readonly [x: string]: unknown;
|
|
595
|
+
})[];
|
|
596
|
+
readonly delivery?: {
|
|
597
|
+
readonly price?: {
|
|
598
|
+
readonly amount: string;
|
|
599
|
+
readonly currency: string;
|
|
600
|
+
};
|
|
601
|
+
readonly deliveryPriceChanged?: boolean;
|
|
602
|
+
readonly endTime?: string;
|
|
603
|
+
readonly expiryTime?: string;
|
|
604
|
+
readonly slotId?: string;
|
|
605
|
+
readonly startTime?: string;
|
|
606
|
+
readonly timeZoneId?: string;
|
|
607
|
+
} & {
|
|
608
|
+
readonly [x: string]: unknown;
|
|
609
|
+
};
|
|
610
|
+
readonly basketAboveThreshold?: boolean;
|
|
611
|
+
readonly canCheckout?: boolean;
|
|
612
|
+
readonly minimumCheckoutThreshold?: {
|
|
613
|
+
readonly amount: string;
|
|
614
|
+
readonly currency: string;
|
|
615
|
+
};
|
|
616
|
+
readonly shippingGroupType?: string;
|
|
617
|
+
readonly shippingGroupTypeDisplayName?: string;
|
|
618
|
+
} & {
|
|
619
|
+
readonly [x: string]: unknown;
|
|
620
|
+
};
|
|
621
|
+
readonly totals?: {
|
|
622
|
+
readonly finalPrice?: {
|
|
623
|
+
readonly amount: string;
|
|
624
|
+
readonly currency: string;
|
|
625
|
+
};
|
|
626
|
+
readonly itemPriceAfterPromos?: {
|
|
627
|
+
readonly amount: string;
|
|
628
|
+
readonly currency: string;
|
|
629
|
+
};
|
|
630
|
+
readonly itemsRetailPrice?: {
|
|
631
|
+
readonly amount: string;
|
|
632
|
+
readonly currency: string;
|
|
633
|
+
};
|
|
634
|
+
readonly savingsPrice?: {
|
|
635
|
+
readonly amount: string;
|
|
636
|
+
readonly currency: string;
|
|
637
|
+
};
|
|
638
|
+
readonly depositsPrice?: {
|
|
639
|
+
readonly amount: string;
|
|
640
|
+
readonly currency: string;
|
|
641
|
+
};
|
|
642
|
+
readonly environmentalHandlingPrice?: {
|
|
643
|
+
readonly amount: string;
|
|
644
|
+
readonly currency: string;
|
|
645
|
+
};
|
|
646
|
+
readonly retailPrice?: {
|
|
647
|
+
readonly amount: string;
|
|
648
|
+
readonly currency: string;
|
|
649
|
+
};
|
|
650
|
+
readonly totalPrice?: {
|
|
651
|
+
readonly amount: string;
|
|
652
|
+
readonly currency: string;
|
|
653
|
+
};
|
|
654
|
+
} & {
|
|
655
|
+
readonly [x: string]: unknown;
|
|
656
|
+
};
|
|
657
|
+
readonly limitedItems?: readonly ({
|
|
658
|
+
readonly message?: string;
|
|
659
|
+
readonly code?: string;
|
|
660
|
+
readonly severity?: string;
|
|
661
|
+
} & {
|
|
662
|
+
readonly [x: string]: unknown;
|
|
663
|
+
})[];
|
|
664
|
+
readonly pricingNotifications?: readonly ({
|
|
665
|
+
readonly message?: string;
|
|
666
|
+
readonly code?: string;
|
|
667
|
+
readonly severity?: string;
|
|
668
|
+
} & {
|
|
669
|
+
readonly [x: string]: unknown;
|
|
670
|
+
})[];
|
|
671
|
+
readonly unavailableData?: readonly ({
|
|
672
|
+
readonly message?: string;
|
|
673
|
+
readonly code?: string;
|
|
674
|
+
readonly severity?: string;
|
|
675
|
+
} & {
|
|
676
|
+
readonly [x: string]: unknown;
|
|
677
|
+
})[];
|
|
678
|
+
readonly cartId?: string;
|
|
679
|
+
readonly charges?: {
|
|
680
|
+
readonly carrierBag?: {
|
|
681
|
+
readonly price?: {
|
|
682
|
+
readonly amount: string;
|
|
683
|
+
readonly currency: string;
|
|
684
|
+
};
|
|
685
|
+
readonly finalPrice?: {
|
|
686
|
+
readonly amount: string;
|
|
687
|
+
readonly currency: string;
|
|
688
|
+
};
|
|
689
|
+
} & {
|
|
690
|
+
readonly [x: string]: unknown;
|
|
691
|
+
};
|
|
692
|
+
readonly delivery?: {
|
|
693
|
+
readonly price?: {
|
|
694
|
+
readonly amount: string;
|
|
695
|
+
readonly currency: string;
|
|
696
|
+
};
|
|
697
|
+
readonly finalPrice?: {
|
|
698
|
+
readonly amount: string;
|
|
699
|
+
readonly currency: string;
|
|
700
|
+
};
|
|
701
|
+
} & {
|
|
702
|
+
readonly [x: string]: unknown;
|
|
703
|
+
};
|
|
704
|
+
readonly invoice?: {
|
|
705
|
+
readonly price?: {
|
|
706
|
+
readonly amount: string;
|
|
707
|
+
readonly currency: string;
|
|
708
|
+
};
|
|
709
|
+
readonly finalPrice?: {
|
|
710
|
+
readonly amount: string;
|
|
711
|
+
readonly currency: string;
|
|
712
|
+
};
|
|
713
|
+
} & {
|
|
714
|
+
readonly [x: string]: unknown;
|
|
715
|
+
};
|
|
716
|
+
readonly preparation?: {
|
|
717
|
+
readonly price?: {
|
|
718
|
+
readonly amount: string;
|
|
719
|
+
readonly currency: string;
|
|
720
|
+
};
|
|
721
|
+
readonly finalPrice?: {
|
|
722
|
+
readonly amount: string;
|
|
723
|
+
readonly currency: string;
|
|
724
|
+
};
|
|
725
|
+
} & {
|
|
726
|
+
readonly [x: string]: unknown;
|
|
727
|
+
};
|
|
728
|
+
readonly smallOrder?: {
|
|
729
|
+
readonly price?: {
|
|
730
|
+
readonly amount: string;
|
|
731
|
+
readonly currency: string;
|
|
732
|
+
};
|
|
733
|
+
readonly finalPrice?: {
|
|
734
|
+
readonly amount: string;
|
|
735
|
+
readonly currency: string;
|
|
736
|
+
};
|
|
737
|
+
} & {
|
|
738
|
+
readonly [x: string]: unknown;
|
|
739
|
+
};
|
|
740
|
+
} & {
|
|
741
|
+
readonly [x: string]: unknown;
|
|
742
|
+
};
|
|
743
|
+
readonly checkoutCorrelationId?: string;
|
|
744
|
+
readonly orderId?: string;
|
|
745
|
+
readonly substitutions?: readonly ({
|
|
746
|
+
readonly message?: string;
|
|
747
|
+
readonly code?: string;
|
|
748
|
+
readonly severity?: string;
|
|
749
|
+
} & {
|
|
750
|
+
readonly [x: string]: unknown;
|
|
751
|
+
})[];
|
|
752
|
+
} & {
|
|
753
|
+
readonly [x: string]: unknown;
|
|
754
|
+
}, never>;
|
|
755
|
+
export type RawCheckoutSummaryResponse = Schema.Schema.Type<typeof RawCheckoutSummaryResponseSchema>;
|
|
756
|
+
export declare const NormalizedCheckoutSummarySchema: Schema.Struct<{
|
|
757
|
+
basketAboveThreshold: typeof Schema.Boolean;
|
|
758
|
+
basketId: Schema.optionalWith<typeof Schema.String, {
|
|
759
|
+
exact: true;
|
|
760
|
+
}>;
|
|
761
|
+
canCheckout: typeof Schema.Boolean;
|
|
762
|
+
checkoutCorrelationId: Schema.optionalWith<typeof Schema.String, {
|
|
763
|
+
exact: true;
|
|
764
|
+
}>;
|
|
765
|
+
checkoutRestrictions: Schema.Array$<Schema.Schema<{
|
|
766
|
+
readonly message?: string;
|
|
767
|
+
readonly code?: string;
|
|
768
|
+
readonly severity?: string;
|
|
769
|
+
} & {
|
|
770
|
+
readonly [x: string]: unknown;
|
|
771
|
+
}, {
|
|
772
|
+
readonly message?: string;
|
|
773
|
+
readonly code?: string;
|
|
774
|
+
readonly severity?: string;
|
|
775
|
+
} & {
|
|
776
|
+
readonly [x: string]: unknown;
|
|
777
|
+
}, never>>;
|
|
778
|
+
fees: Schema.Struct<{
|
|
779
|
+
carrierBag: Schema.optionalWith<Schema.Struct<{
|
|
780
|
+
amount: typeof Schema.String;
|
|
781
|
+
currency: typeof Schema.String;
|
|
782
|
+
}>, {
|
|
783
|
+
exact: true;
|
|
784
|
+
}>;
|
|
785
|
+
delivery: Schema.optionalWith<Schema.Struct<{
|
|
786
|
+
amount: typeof Schema.String;
|
|
787
|
+
currency: typeof Schema.String;
|
|
788
|
+
}>, {
|
|
789
|
+
exact: true;
|
|
790
|
+
}>;
|
|
791
|
+
invoice: Schema.optionalWith<Schema.Struct<{
|
|
792
|
+
amount: typeof Schema.String;
|
|
793
|
+
currency: typeof Schema.String;
|
|
794
|
+
}>, {
|
|
795
|
+
exact: true;
|
|
796
|
+
}>;
|
|
797
|
+
preparation: Schema.optionalWith<Schema.Struct<{
|
|
798
|
+
amount: typeof Schema.String;
|
|
799
|
+
currency: typeof Schema.String;
|
|
800
|
+
}>, {
|
|
801
|
+
exact: true;
|
|
802
|
+
}>;
|
|
803
|
+
smallOrder: Schema.optionalWith<Schema.Struct<{
|
|
804
|
+
amount: typeof Schema.String;
|
|
805
|
+
currency: typeof Schema.String;
|
|
806
|
+
}>, {
|
|
807
|
+
exact: true;
|
|
808
|
+
}>;
|
|
809
|
+
}>;
|
|
810
|
+
limitedItems: Schema.Array$<Schema.Schema<{
|
|
811
|
+
readonly message?: string;
|
|
812
|
+
readonly code?: string;
|
|
813
|
+
readonly severity?: string;
|
|
814
|
+
} & {
|
|
815
|
+
readonly [x: string]: unknown;
|
|
816
|
+
}, {
|
|
817
|
+
readonly message?: string;
|
|
818
|
+
readonly code?: string;
|
|
819
|
+
readonly severity?: string;
|
|
820
|
+
} & {
|
|
821
|
+
readonly [x: string]: unknown;
|
|
822
|
+
}, never>>;
|
|
823
|
+
minimumCheckoutThreshold: Schema.optionalWith<Schema.Struct<{
|
|
824
|
+
amount: typeof Schema.String;
|
|
825
|
+
currency: typeof Schema.String;
|
|
826
|
+
}>, {
|
|
827
|
+
exact: true;
|
|
828
|
+
}>;
|
|
829
|
+
orderId: Schema.optionalWith<typeof Schema.String, {
|
|
830
|
+
exact: true;
|
|
831
|
+
}>;
|
|
832
|
+
pricingNotifications: Schema.Array$<Schema.Schema<{
|
|
833
|
+
readonly message?: string;
|
|
834
|
+
readonly code?: string;
|
|
835
|
+
readonly severity?: string;
|
|
836
|
+
} & {
|
|
837
|
+
readonly [x: string]: unknown;
|
|
838
|
+
}, {
|
|
839
|
+
readonly message?: string;
|
|
840
|
+
readonly code?: string;
|
|
841
|
+
readonly severity?: string;
|
|
842
|
+
} & {
|
|
843
|
+
readonly [x: string]: unknown;
|
|
844
|
+
}, never>>;
|
|
845
|
+
selectedSlot: Schema.optionalWith<Schema.Struct<{
|
|
846
|
+
deliveryPriceChanged: Schema.optionalWith<typeof Schema.Boolean, {
|
|
847
|
+
exact: true;
|
|
848
|
+
}>;
|
|
849
|
+
endTime: Schema.optionalWith<typeof Schema.String, {
|
|
850
|
+
exact: true;
|
|
851
|
+
}>;
|
|
852
|
+
expiryTime: Schema.optionalWith<typeof Schema.String, {
|
|
853
|
+
exact: true;
|
|
854
|
+
}>;
|
|
855
|
+
price: Schema.optionalWith<Schema.Struct<{
|
|
856
|
+
amount: typeof Schema.String;
|
|
857
|
+
currency: typeof Schema.String;
|
|
858
|
+
}>, {
|
|
859
|
+
exact: true;
|
|
860
|
+
}>;
|
|
861
|
+
slotId: Schema.optionalWith<typeof Schema.String, {
|
|
862
|
+
exact: true;
|
|
863
|
+
}>;
|
|
864
|
+
startTime: Schema.optionalWith<typeof Schema.String, {
|
|
865
|
+
exact: true;
|
|
866
|
+
}>;
|
|
867
|
+
timeZoneId: Schema.optionalWith<typeof Schema.String, {
|
|
868
|
+
exact: true;
|
|
869
|
+
}>;
|
|
870
|
+
}>, {
|
|
871
|
+
exact: true;
|
|
872
|
+
}>;
|
|
873
|
+
shippingGroupType: Schema.optionalWith<typeof Schema.String, {
|
|
874
|
+
exact: true;
|
|
875
|
+
}>;
|
|
876
|
+
shippingGroupTypeDisplayName: Schema.optionalWith<typeof Schema.String, {
|
|
877
|
+
exact: true;
|
|
878
|
+
}>;
|
|
879
|
+
substitutions: Schema.Array$<Schema.Schema<{
|
|
880
|
+
readonly message?: string;
|
|
881
|
+
readonly code?: string;
|
|
882
|
+
readonly severity?: string;
|
|
883
|
+
} & {
|
|
884
|
+
readonly [x: string]: unknown;
|
|
885
|
+
}, {
|
|
886
|
+
readonly message?: string;
|
|
887
|
+
readonly code?: string;
|
|
888
|
+
readonly severity?: string;
|
|
889
|
+
} & {
|
|
890
|
+
readonly [x: string]: unknown;
|
|
891
|
+
}, never>>;
|
|
892
|
+
totals: Schema.optionalWith<Schema.Schema<{
|
|
893
|
+
readonly finalPrice?: {
|
|
894
|
+
readonly amount: string;
|
|
895
|
+
readonly currency: string;
|
|
896
|
+
};
|
|
897
|
+
readonly itemPriceAfterPromos?: {
|
|
898
|
+
readonly amount: string;
|
|
899
|
+
readonly currency: string;
|
|
900
|
+
};
|
|
901
|
+
readonly itemsRetailPrice?: {
|
|
902
|
+
readonly amount: string;
|
|
903
|
+
readonly currency: string;
|
|
904
|
+
};
|
|
905
|
+
readonly savingsPrice?: {
|
|
906
|
+
readonly amount: string;
|
|
907
|
+
readonly currency: string;
|
|
908
|
+
};
|
|
909
|
+
readonly depositsPrice?: {
|
|
910
|
+
readonly amount: string;
|
|
911
|
+
readonly currency: string;
|
|
912
|
+
};
|
|
913
|
+
readonly environmentalHandlingPrice?: {
|
|
914
|
+
readonly amount: string;
|
|
915
|
+
readonly currency: string;
|
|
916
|
+
};
|
|
917
|
+
readonly retailPrice?: {
|
|
918
|
+
readonly amount: string;
|
|
919
|
+
readonly currency: string;
|
|
920
|
+
};
|
|
921
|
+
readonly totalPrice?: {
|
|
922
|
+
readonly amount: string;
|
|
923
|
+
readonly currency: string;
|
|
924
|
+
};
|
|
925
|
+
} & {
|
|
926
|
+
readonly [x: string]: unknown;
|
|
927
|
+
}, {
|
|
928
|
+
readonly finalPrice?: {
|
|
929
|
+
readonly amount: string;
|
|
930
|
+
readonly currency: string;
|
|
931
|
+
};
|
|
932
|
+
readonly itemPriceAfterPromos?: {
|
|
933
|
+
readonly amount: string;
|
|
934
|
+
readonly currency: string;
|
|
935
|
+
};
|
|
936
|
+
readonly itemsRetailPrice?: {
|
|
937
|
+
readonly amount: string;
|
|
938
|
+
readonly currency: string;
|
|
939
|
+
};
|
|
940
|
+
readonly savingsPrice?: {
|
|
941
|
+
readonly amount: string;
|
|
942
|
+
readonly currency: string;
|
|
943
|
+
};
|
|
944
|
+
readonly depositsPrice?: {
|
|
945
|
+
readonly amount: string;
|
|
946
|
+
readonly currency: string;
|
|
947
|
+
};
|
|
948
|
+
readonly environmentalHandlingPrice?: {
|
|
949
|
+
readonly amount: string;
|
|
950
|
+
readonly currency: string;
|
|
951
|
+
};
|
|
952
|
+
readonly retailPrice?: {
|
|
953
|
+
readonly amount: string;
|
|
954
|
+
readonly currency: string;
|
|
955
|
+
};
|
|
956
|
+
readonly totalPrice?: {
|
|
957
|
+
readonly amount: string;
|
|
958
|
+
readonly currency: string;
|
|
959
|
+
};
|
|
960
|
+
} & {
|
|
961
|
+
readonly [x: string]: unknown;
|
|
962
|
+
}, never>, {
|
|
963
|
+
exact: true;
|
|
964
|
+
}>;
|
|
965
|
+
unavailableData: Schema.Array$<Schema.Schema<{
|
|
966
|
+
readonly message?: string;
|
|
967
|
+
readonly code?: string;
|
|
968
|
+
readonly severity?: string;
|
|
969
|
+
} & {
|
|
970
|
+
readonly [x: string]: unknown;
|
|
971
|
+
}, {
|
|
972
|
+
readonly message?: string;
|
|
973
|
+
readonly code?: string;
|
|
974
|
+
readonly severity?: string;
|
|
975
|
+
} & {
|
|
976
|
+
readonly [x: string]: unknown;
|
|
977
|
+
}, never>>;
|
|
978
|
+
warnings: Schema.Array$<Schema.Struct<{
|
|
979
|
+
kind: Schema.Literal<["checkout-restriction", "limited-item", "pricing-notification", "substitution", "unavailable-item"]>;
|
|
980
|
+
signal: Schema.Schema<{
|
|
981
|
+
readonly message?: string;
|
|
982
|
+
readonly code?: string;
|
|
983
|
+
readonly severity?: string;
|
|
984
|
+
} & {
|
|
985
|
+
readonly [x: string]: unknown;
|
|
986
|
+
}, {
|
|
987
|
+
readonly message?: string;
|
|
988
|
+
readonly code?: string;
|
|
989
|
+
readonly severity?: string;
|
|
990
|
+
} & {
|
|
991
|
+
readonly [x: string]: unknown;
|
|
992
|
+
}, never>;
|
|
993
|
+
}>>;
|
|
994
|
+
}>;
|
|
995
|
+
export type NormalizedCheckoutSummary = Schema.Schema.Type<typeof NormalizedCheckoutSummarySchema>;
|
|
996
|
+
export declare const CheckoutReadinessStatusSchema: Schema.Literal<["blocked", "needs-review", "ready-for-manual-checkout"]>;
|
|
997
|
+
export type CheckoutReadinessStatus = Schema.Schema.Type<typeof CheckoutReadinessStatusSchema>;
|
|
998
|
+
export declare const CheckoutReadinessReasonSchema: Schema.Literal<["checkout-blocked", "review-signals-present", "ready-for-manual-checkout"]>;
|
|
999
|
+
export type CheckoutReadinessReason = Schema.Schema.Type<typeof CheckoutReadinessReasonSchema>;
|
|
1000
|
+
export declare const CheckoutReadinessDecisionSchema: Schema.Struct<{
|
|
1001
|
+
canContinueToManualCheckout: typeof Schema.Boolean;
|
|
1002
|
+
checkoutRestrictions: Schema.Array$<Schema.Schema<{
|
|
1003
|
+
readonly message?: string;
|
|
1004
|
+
readonly code?: string;
|
|
1005
|
+
readonly severity?: string;
|
|
1006
|
+
} & {
|
|
1007
|
+
readonly [x: string]: unknown;
|
|
1008
|
+
}, {
|
|
1009
|
+
readonly message?: string;
|
|
1010
|
+
readonly code?: string;
|
|
1011
|
+
readonly severity?: string;
|
|
1012
|
+
} & {
|
|
1013
|
+
readonly [x: string]: unknown;
|
|
1014
|
+
}, never>>;
|
|
1015
|
+
reason: Schema.Literal<["checkout-blocked", "review-signals-present", "ready-for-manual-checkout"]>;
|
|
1016
|
+
status: Schema.Literal<["blocked", "needs-review", "ready-for-manual-checkout"]>;
|
|
1017
|
+
warnings: Schema.Array$<Schema.Struct<{
|
|
1018
|
+
kind: Schema.Literal<["checkout-restriction", "limited-item", "pricing-notification", "substitution", "unavailable-item"]>;
|
|
1019
|
+
signal: Schema.Schema<{
|
|
1020
|
+
readonly message?: string;
|
|
1021
|
+
readonly code?: string;
|
|
1022
|
+
readonly severity?: string;
|
|
1023
|
+
} & {
|
|
1024
|
+
readonly [x: string]: unknown;
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly message?: string;
|
|
1027
|
+
readonly code?: string;
|
|
1028
|
+
readonly severity?: string;
|
|
1029
|
+
} & {
|
|
1030
|
+
readonly [x: string]: unknown;
|
|
1031
|
+
}, never>;
|
|
1032
|
+
}>>;
|
|
1033
|
+
}>;
|
|
1034
|
+
export type CheckoutReadinessDecision = Schema.Schema.Type<typeof CheckoutReadinessDecisionSchema>;
|
|
1035
|
+
//# sourceMappingURL=checkout-summary.d.ts.map
|