@flowio/api-types 0.0.226 → 0.0.227

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.
Files changed (34) hide show
  1. package/generated/io.flow.billing.accounting.v0.billing-accounting.d.ts +13 -0
  2. package/generated/io.flow.billing.bank.account.v0.billing-bank-account.d.ts +1 -1
  3. package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +1 -1
  4. package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +0 -1
  5. package/generated/io.flow.billing.reporting.v0.billing-reporting.d.ts +15 -16
  6. package/generated/io.flow.billing.v0.billing.d.ts +6 -1
  7. package/generated/io.flow.channel.internal.v0.channel-internal.d.ts +1 -1
  8. package/generated/io.flow.experiment.internal.v0.experiment-internal.d.ts +191 -0
  9. package/generated/io.flow.internal.v0.api-internal.d.ts +585 -324
  10. package/generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts +6 -1
  11. package/generated/io.flow.payment.gateway.v0.payment-gateway.d.ts +7 -1
  12. package/generated/io.flow.payment.v0.payment.d.ts +11 -1
  13. package/generated/io.flow.shopify.external.v0.shopify-external.d.ts +1 -0
  14. package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts +16 -1
  15. package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +11 -0
  16. package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
  17. package/generated/io.flow.stripe.v0.stripe.d.ts +162 -5
  18. package/generated/io.flow.v0.api.d.ts +29 -3
  19. package/index.d.ts +1 -14
  20. package/package.json +2 -2
  21. package/generated/io.flow.billing.csv.v0.billing-csv.d.ts +0 -454
  22. package/generated/io.flow.checkout.analytics.v0.checkout-analytics.d.ts +0 -137
  23. package/generated/io.flow.checkout.backend.v0.checkout-backend.d.ts +0 -539
  24. package/generated/io.flow.checkout.common.v0.checkout-common.d.ts +0 -57
  25. package/generated/io.flow.checkout.configuration.v0.checkout-configuration.d.ts +0 -113
  26. package/generated/io.flow.checkout.protocol.v0.checkout-protocol.d.ts +0 -1347
  27. package/generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts +0 -204
  28. package/generated/io.flow.content.internal.v0.content-internal.d.ts +0 -168
  29. package/generated/io.flow.currency.internal.v0.currency-internal.d.ts +0 -119
  30. package/generated/io.flow.experience.internal.v0.experience-internal.d.ts +0 -247
  31. package/generated/io.flow.feature.v0.feature.d.ts +0 -121
  32. package/generated/io.flow.optin.internal.v0.optin-internal.d.ts +0 -73
  33. package/generated/io.flow.price.internal.v0.price-internal.d.ts +0 -4
  34. package/generated/io.flow.svb.v0.svb.d.ts +0 -166
@@ -1,539 +0,0 @@
1
- declare namespace io.flow.checkout.backend.v0.enums {
2
- type CheckoutAddressSource = 'inputs' | 'address_book' | 'same_as_shipping';
3
- type CheckoutAddressType = 'shipping' | 'billing' | 'invoicing';
4
- type CheckoutLineErrorCode = 'line_quantity_invalid' | 'line_item_number_invalid' | 'line_item_number_not_available' | 'line_value_threshold_exceeded';
5
- type CheckoutPaymentGroupType = 'credit' | 'debit' | 'all_cards';
6
- type CheckoutPaymentRedirectMethod = 'get' | 'post';
7
- type InitialInputDataSource = 'session_persistence';
8
- type PregenDataKeyField = 'shipping_country' | 'shipping_province' | 'invoicing_country' | 'delivery_option_id';
9
- }
10
-
11
- declare namespace io.flow.checkout.backend.v0.models {
12
- interface CheckoutAddress {
13
- readonly 'name'?: string;
14
- readonly 'first_name'?: string;
15
- readonly 'last_name'?: string;
16
- readonly 'country'?: string;
17
- readonly 'streets'?: string[];
18
- readonly 'city'?: string;
19
- readonly 'province'?: string;
20
- readonly 'postal'?: string;
21
- readonly 'company'?: string;
22
- }
23
-
24
- interface CheckoutAddressBook {
25
- readonly 'contacts': io.flow.checkout.backend.v0.models.CheckoutAddressBookContact[];
26
- }
27
-
28
- interface CheckoutAddressBookContact {
29
- readonly 'id': string;
30
- readonly 'address': io.flow.checkout.backend.v0.models.CheckoutAddress;
31
- readonly 'address_type': io.flow.checkout.backend.v0.enums.CheckoutAddressType;
32
- readonly 'contact': io.flow.checkout.backend.v0.models.CheckoutContact;
33
- }
34
-
35
- interface CheckoutAddressBookContactReference {
36
- readonly 'id': string;
37
- }
38
-
39
- interface CheckoutAddressBookContactRemoved {
40
- readonly 'discriminator': 'checkout_address_book_contact_removed';
41
- readonly 'id': string;
42
- }
43
-
44
- interface CheckoutAddressCountriesFormData {
45
- readonly 'countries': io.flow.checkout.backend.v0.models.CheckoutAddressCountry[];
46
- }
47
-
48
- interface CheckoutAddressCountry {
49
- readonly 'name': string;
50
- readonly 'code': string;
51
- readonly 'availability': io.flow.checkout.backend.v0.enums.CheckoutAddressType[];
52
- }
53
-
54
- interface CheckoutAddressPrediction {
55
- readonly 'description': string;
56
- readonly 'id': string;
57
- }
58
-
59
- interface CheckoutAddressPredictionMetadata {
60
- readonly 'session_token': string;
61
- }
62
-
63
- interface CheckoutAddressPredictions {
64
- readonly 'predictions': io.flow.checkout.backend.v0.models.CheckoutAddressPrediction[];
65
- }
66
-
67
- interface CheckoutConnectionParameters {
68
- readonly 'session': io.flow.common.v0.models.SessionReference;
69
- readonly 'geo': io.flow.checkout.backend.v0.models.CheckoutGeoParameters;
70
- }
71
-
72
- interface CheckoutContact {
73
- readonly 'email'?: string;
74
- readonly 'phone'?: string;
75
- }
76
-
77
- interface CheckoutCountriesFormData {
78
- readonly 'available': io.flow.checkout.backend.v0.models.CheckoutOrderFormAddressCountry[];
79
- }
80
-
81
- interface CheckoutCreditPaymentPayload {
82
- readonly 'discriminator': 'credit_payment_payload';
83
- readonly 'payment_method_id': string;
84
- }
85
-
86
- interface CheckoutDeliveryWindowEstimate {
87
- readonly 'discriminator': 'estimate';
88
- readonly 'days': io.flow.checkout.backend.v0.models.CheckoutDeliveryWindowEstimateDays;
89
- readonly 'dates': io.flow.common.v0.models.DatetimeRange;
90
- }
91
-
92
- interface CheckoutDeliveryWindowEstimateDays {
93
- readonly 'from': number;
94
- readonly 'to': number;
95
- }
96
-
97
- interface CheckoutDeliveryWindowStatic {
98
- readonly 'discriminator': 'static';
99
- readonly 'message': string;
100
- }
101
-
102
- interface CheckoutDirectAuthorizationRequirement {
103
- readonly 'discriminator': 'checkout_direct_authorization_requirement';
104
- readonly 'authorization_summary': io.flow.checkout.backend.v0.models.CheckoutPaymentAuthorizationSummary;
105
- }
106
-
107
- interface CheckoutDirectDebit {
108
- readonly 'discriminator': 'checkout_direct_debit';
109
- readonly 'routing_number': string;
110
- readonly 'last4': string;
111
- }
112
-
113
- interface CheckoutGeoParameters {
114
- readonly 'experience_key': string;
115
- readonly 'country': string;
116
- readonly 'ip'?: string;
117
- readonly 'currency'?: string;
118
- readonly 'language'?: string;
119
- readonly 'locale'?: string;
120
- }
121
-
122
- interface CheckoutGiftCardForm {
123
- readonly 'number': string;
124
- readonly 'pin'?: string;
125
- }
126
-
127
- interface CheckoutGooglePayAuthorizationPayload {
128
- readonly 'discriminator': 'google_pay_payment_payload';
129
- readonly 'payload': any/*object*/;
130
- }
131
-
132
- interface CheckoutHostedConfirmationPage {
133
- readonly 'url': string;
134
- }
135
-
136
- interface CheckoutInitiateDirectPaymentForm {
137
- readonly 'discriminator': 'initiate_direct_payment_form';
138
- readonly 'token': string;
139
- readonly 'redirect_urls'?: io.flow.payment.v0.models.PostPaymentRedirectUrls;
140
- readonly 'browser_info'?: io.flow.payment.v0.models.BrowserInfo;
141
- readonly 'inline_action_configuration'?: io.flow.payment.v0.unions.InlineActionConfiguration;
142
- }
143
-
144
- interface CheckoutInitiateInlinePaymentForm {
145
- readonly 'discriminator': 'initiate_inline_payment_form';
146
- readonly 'payment_method_id': string;
147
- }
148
-
149
- interface CheckoutInitiateRedirectPaymentForm {
150
- readonly 'discriminator': 'initiate_redirect_payment_form';
151
- readonly 'payment_method_id': string;
152
- readonly 'redirect_urls': io.flow.payment.v0.models.PostPaymentRedirectUrls;
153
- readonly 'issuer_reference'?: io.flow.payment.v0.models.IssuerReference;
154
- }
155
-
156
- interface CheckoutInlineAuthorizationRequirement {
157
- readonly 'discriminator': 'checkout_inline_authorization_requirement';
158
- readonly 'id': string;
159
- readonly 'client_token'?: string;
160
- readonly 'parameters'?: any/*object*/;
161
- }
162
-
163
- interface CheckoutLine {
164
- readonly 'id': string;
165
- readonly 'checkout': io.flow.checkout.backend.v0.models.V2CheckoutReference;
166
- readonly 'item': io.flow.experience.v0.models.OrderSummaryItem;
167
- readonly 'errors'?: io.flow.checkout.backend.v0.models.CheckoutLineError[];
168
- readonly 'quantity': number;
169
- readonly 'discount'?: io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
170
- readonly 'tax'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryTax;
171
- readonly 'duty'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryDuty;
172
- readonly 'unit_price': io.flow.checkout.backend.v0.unions.CheckoutPrice;
173
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
174
- readonly 'price_attributes': Record<string, io.flow.checkout.backend.v0.models.CheckoutPriceStandard>;
175
- readonly 'attributes': Record<string, string>;
176
- }
177
-
178
- interface CheckoutLineError {
179
- readonly 'error_code': io.flow.checkout.backend.v0.enums.CheckoutLineErrorCode;
180
- }
181
-
182
- interface CheckoutLineForm {
183
- readonly 'item_number': string;
184
- readonly 'quantity': number;
185
- readonly 'attributes'?: Record<string, string>;
186
- }
187
-
188
- interface CheckoutNationalIdNumberValidation {
189
- readonly 'national_id_number': io.flow.field.validation.v0.unions.FieldValidationRule[];
190
- }
191
-
192
- interface CheckoutOpenOrder {
193
- readonly 'discriminator': 'open';
194
- readonly 'summary': io.flow.checkout.backend.v0.models.CheckoutOrderSummary;
195
- readonly 'addresses': io.flow.checkout.backend.v0.models.CheckoutOrderAddresses;
196
- readonly 'contact': io.flow.checkout.backend.v0.models.CheckoutContact;
197
- readonly 'deliveries': io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
198
- }
199
-
200
- interface CheckoutOrderAddressBookInputs {
201
- readonly 'address_book': io.flow.checkout.backend.v0.models.CheckoutAddressBook;
202
- readonly 'shipping'?: io.flow.checkout.backend.v0.models.CheckoutAddressBookContactReference;
203
- readonly 'billing'?: io.flow.checkout.backend.v0.models.CheckoutAddressBookContactReference;
204
- readonly 'invoicing'?: io.flow.checkout.backend.v0.models.CheckoutAddressBookContactReference;
205
- readonly 'edits'?: io.flow.checkout.backend.v0.unions.CheckoutAddressBookEdit[];
206
- readonly 'save_shipping_address'?: boolean;
207
- }
208
-
209
- interface CheckoutOrderAddressInputs {
210
- readonly 'shipping'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
211
- readonly 'billing'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
212
- readonly 'invoicing'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
213
- }
214
-
215
- interface CheckoutOrderAddressSourceInputs {
216
- readonly 'shipping'?: io.flow.checkout.backend.v0.enums.CheckoutAddressSource;
217
- readonly 'billing'?: io.flow.checkout.backend.v0.enums.CheckoutAddressSource;
218
- readonly 'invoicing'?: io.flow.checkout.backend.v0.enums.CheckoutAddressSource;
219
- }
220
-
221
- interface CheckoutOrderAddresses {
222
- readonly 'shipping'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
223
- readonly 'billing'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
224
- readonly 'invoicing'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
225
- }
226
-
227
- interface CheckoutOrderContactInputs {
228
- readonly 'email'?: string;
229
- readonly 'phone'?: string;
230
- }
231
-
232
- interface CheckoutOrderDeliveries {
233
- readonly 'all': io.flow.checkout.backend.v0.models.CheckoutOrderDelivery[];
234
- }
235
-
236
- interface CheckoutOrderDelivery {
237
- readonly 'id': string;
238
- readonly 'selected': io.flow.checkout.backend.v0.unions.CheckoutOrderDeliveryOption;
239
- }
240
-
241
- interface CheckoutOrderDeliveryItem {
242
- readonly 'item': io.flow.experience.v0.models.OrderSummaryItem;
243
- readonly 'quantity': number;
244
- readonly 'discount'?: io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
245
- readonly 'tax'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryTax;
246
- readonly 'duty'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryDuty;
247
- readonly 'unit_price': io.flow.checkout.backend.v0.unions.CheckoutPrice;
248
- }
249
-
250
- interface CheckoutOrderDeliveryOptionsInput {
251
- readonly 'delivery_id': string;
252
- readonly 'option_id': string;
253
- }
254
-
255
- interface CheckoutOrderDigitalDeliveryOption {
256
- readonly 'discriminator': 'digital';
257
- readonly 'id': string;
258
- readonly 'name': string;
259
- readonly 'price': io.flow.checkout.backend.v0.models.CheckoutOrderSummaryShipping;
260
- readonly 'duties': io.flow.common.v0.enums.DeliveredDuty;
261
- }
262
-
263
- interface CheckoutOrderFormAddressCountry {
264
- readonly 'name': string;
265
- readonly 'code': string;
266
- }
267
-
268
- interface CheckoutOrderFormDeliveriesData {
269
- readonly 'all': io.flow.checkout.backend.v0.models.CheckoutOrderFormDeliveryData[];
270
- }
271
-
272
- interface CheckoutOrderFormDeliveryData {
273
- readonly 'id': string;
274
- readonly 'selected': io.flow.checkout.backend.v0.unions.CheckoutOrderDeliveryOption;
275
- readonly 'available': io.flow.checkout.backend.v0.unions.CheckoutOrderDeliveryOption[];
276
- }
277
-
278
- interface CheckoutOrderFormPaymentDataGroupMulti {
279
- readonly 'discriminator': 'multi';
280
- readonly 'methods': io.flow.checkout.backend.v0.models.CheckoutPaymentMethod[];
281
- readonly 'type': io.flow.checkout.backend.v0.enums.CheckoutPaymentGroupType;
282
- }
283
-
284
- interface CheckoutOrderFormPaymentDataGroupSingle {
285
- readonly 'discriminator': 'single';
286
- readonly 'method': io.flow.checkout.backend.v0.models.CheckoutPaymentMethod;
287
- }
288
-
289
- interface CheckoutOrderFormPaymentsData {
290
- readonly 'groups': io.flow.checkout.backend.v0.unions.CheckoutOrderFormPaymentDataGroup[];
291
- }
292
-
293
- interface CheckoutOrderInputs {
294
- readonly 'lines'?: io.flow.checkout.backend.v0.models.CheckoutLineForm[];
295
- readonly 'contact'?: io.flow.checkout.backend.v0.models.CheckoutOrderContactInputs;
296
- readonly 'addresses'?: io.flow.checkout.backend.v0.models.CheckoutOrderAddressInputs;
297
- readonly 'address_book'?: io.flow.checkout.backend.v0.models.CheckoutOrderAddressBookInputs;
298
- readonly 'address_sources'?: io.flow.checkout.backend.v0.models.CheckoutOrderAddressSourceInputs;
299
- readonly 'attributes'?: Record<string, string>;
300
- readonly 'delivery_options'?: io.flow.checkout.backend.v0.models.CheckoutOrderDeliveryOptionsInput[];
301
- readonly 'gift_cards'?: io.flow.checkout.backend.v0.models.CheckoutGiftCardForm[];
302
- readonly 'promotion_code'?: string;
303
- readonly 'currency'?: string;
304
- readonly 'locale'?: string;
305
- readonly 'language'?: string;
306
- readonly 'predictions'?: io.flow.checkout.backend.v0.models.CheckoutPredictionInputs;
307
- readonly 'national_id_number'?: string;
308
- }
309
-
310
- interface CheckoutOrderPaymentCard {
311
- readonly 'discriminator': 'card';
312
- readonly 'id': string;
313
- readonly 'method': string;
314
- readonly 'last4': string;
315
- readonly 'description': string;
316
- readonly 'total': io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
317
- readonly 'address'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
318
- }
319
-
320
- interface CheckoutOrderPaymentGiftCard {
321
- readonly 'discriminator': 'gift_card';
322
- readonly 'id': string;
323
- readonly 'description': string;
324
- readonly 'total': io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
325
- }
326
-
327
- interface CheckoutOrderPaymentOnline {
328
- readonly 'discriminator': 'online';
329
- readonly 'id': string;
330
- readonly 'method': string;
331
- readonly 'total': io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
332
- readonly 'address'?: io.flow.checkout.backend.v0.models.CheckoutAddress;
333
- }
334
-
335
- interface CheckoutOrderPayments {
336
- readonly 'applied': io.flow.checkout.backend.v0.unions.CheckoutOrderPayment[];
337
- readonly 'total': io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
338
- }
339
-
340
- interface CheckoutOrderPhysicalDeliveryOption {
341
- readonly 'discriminator': 'physical';
342
- readonly 'id': string;
343
- readonly 'name': string;
344
- readonly 'carrier_service_id': string;
345
- readonly 'duties': io.flow.common.v0.enums.DeliveredDuty;
346
- readonly 'window': io.flow.checkout.backend.v0.unions.CheckoutDeliveryWindow;
347
- readonly 'price': io.flow.checkout.backend.v0.models.CheckoutOrderSummaryShipping;
348
- }
349
-
350
- interface CheckoutOrderPromotionDiscount {
351
- readonly 'discriminator': 'discount';
352
- readonly 'id': string;
353
- readonly 'code'?: string;
354
- readonly 'label': string;
355
- readonly 'price': io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
356
- }
357
-
358
- interface CheckoutOrderPromotionFreeShipping {
359
- readonly 'discriminator': 'free_shipping';
360
- readonly 'id': string;
361
- }
362
-
363
- interface CheckoutOrderPromotions {
364
- readonly 'applied': io.flow.checkout.backend.v0.unions.CheckoutOrderPromotion[];
365
- }
366
-
367
- interface CheckoutOrderSummary {
368
- readonly 'items': io.flow.checkout.backend.v0.models.CheckoutOrderSummaryItems;
369
- readonly 'attributes'?: Record<string, string>;
370
- readonly 'shipping'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryShipping;
371
- readonly 'tax'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryTax;
372
- readonly 'duty'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryDuty;
373
- readonly 'discount'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryDiscount;
374
- readonly 'total': io.flow.checkout.backend.v0.models.CheckoutOrderSummaryTotal;
375
- readonly 'payments': io.flow.checkout.backend.v0.models.CheckoutOrderPayments;
376
- readonly 'promotions': io.flow.checkout.backend.v0.models.CheckoutOrderPromotions;
377
- readonly 'balance': io.flow.checkout.backend.v0.unions.CheckoutPrice;
378
- }
379
-
380
- interface CheckoutOrderSummaryDiscount {
381
- readonly 'total': io.flow.checkout.backend.v0.models.CheckoutPriceStandard;
382
- }
383
-
384
- interface CheckoutOrderSummaryDuty {
385
- readonly 'name': string;
386
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
387
- }
388
-
389
- interface CheckoutOrderSummaryItems {
390
- readonly 'lines': io.flow.checkout.backend.v0.models.CheckoutLine[];
391
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
392
- }
393
-
394
- interface CheckoutOrderSummaryShipping {
395
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
396
- readonly 'freight'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryShippingFreight;
397
- readonly 'surcharges'?: io.flow.checkout.backend.v0.models.CheckoutOrderSummaryShippingSurcharges;
398
- }
399
-
400
- interface CheckoutOrderSummaryShippingFreight {
401
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
402
- }
403
-
404
- interface CheckoutOrderSummaryShippingSurcharges {
405
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
406
- }
407
-
408
- interface CheckoutOrderSummaryTax {
409
- readonly 'name': string;
410
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
411
- }
412
-
413
- interface CheckoutOrderSummaryTotal {
414
- readonly 'total': io.flow.checkout.backend.v0.unions.CheckoutPrice;
415
- }
416
-
417
- interface CheckoutOrganizationSummary {
418
- readonly 'id': string;
419
- readonly 'environment': io.flow.common.v0.enums.Environment;
420
- }
421
-
422
- interface CheckoutPaymentAuthorizationSummary {
423
- readonly 'key': string;
424
- readonly 'result': io.flow.payment.v0.models.AuthorizationResult;
425
- }
426
-
427
- interface CheckoutPaymentMethod {
428
- readonly 'id': string;
429
- readonly 'type': io.flow.reference.v0.enums.PaymentMethodType;
430
- readonly 'name': string;
431
- readonly 'images': io.flow.reference.v0.models.PaymentMethodImages;
432
- readonly 'issuers'?: io.flow.checkout.backend.v0.models.CheckoutPaymentMethodIssuer[];
433
- }
434
-
435
- interface CheckoutPaymentMethodIssuer {
436
- readonly 'id': string;
437
- readonly 'name': string;
438
- readonly 'logo'?: io.flow.common.v0.unions.LogoImage;
439
- }
440
-
441
- interface CheckoutPaymentSourceOption {
442
- readonly 'id': string;
443
- readonly 'summary': io.flow.payment.v0.models.CardPaymentSourceSummary;
444
- readonly 'actions': io.flow.payment.v0.models.PaymentSourceConfirmationAction[];
445
- }
446
-
447
- interface CheckoutPaypalAuthorizationPayload {
448
- readonly 'discriminator': 'paypal_authorization_payload';
449
- readonly 'payment_id': string;
450
- readonly 'payer_id': string;
451
- }
452
-
453
- interface CheckoutPredictionInputs {
454
- readonly 'address_prediction_metadata'?: io.flow.checkout.backend.v0.models.CheckoutAddressPredictionMetadata;
455
- }
456
-
457
- interface CheckoutPriceEstimated {
458
- readonly 'discriminator': 'estimated';
459
- readonly 'amount': number;
460
- readonly 'currency': string;
461
- readonly 'label': string;
462
- }
463
-
464
- interface CheckoutPriceFree {
465
- readonly 'discriminator': 'free';
466
- readonly 'placeholder'?: string;
467
- }
468
-
469
- interface CheckoutPriceIncluded {
470
- readonly 'discriminator': 'included';
471
- readonly 'placeholder'?: string;
472
- }
473
-
474
- interface CheckoutPriceNotYetKnown {
475
- readonly 'discriminator': 'not_yet_known';
476
- readonly 'placeholder'?: string;
477
- }
478
-
479
- interface CheckoutPriceStandard {
480
- readonly 'discriminator': 'price';
481
- readonly 'amount': number;
482
- readonly 'currency': string;
483
- readonly 'label': string;
484
- }
485
-
486
- interface CheckoutRedirectAuthorizationRequirement {
487
- readonly 'discriminator': 'checkout_redirect_authorization_requirement';
488
- readonly 'redirect_url': string;
489
- readonly 'redirect_method': io.flow.checkout.backend.v0.enums.CheckoutPaymentRedirectMethod;
490
- }
491
-
492
- interface CheckoutSubmittedOrder {
493
- readonly 'discriminator': 'submitted';
494
- readonly 'number': string;
495
- readonly 'submitted_at': string;
496
- readonly 'summary': io.flow.checkout.backend.v0.models.CheckoutOrderSummary;
497
- readonly 'addresses': io.flow.checkout.backend.v0.models.CheckoutOrderAddresses;
498
- readonly 'contact': io.flow.checkout.backend.v0.models.CheckoutContact;
499
- readonly 'deliveries': io.flow.checkout.backend.v0.models.CheckoutOrderDeliveries;
500
- }
501
-
502
- interface CheckoutUrlParameters {
503
- readonly 'confirmation_url'?: string;
504
- }
505
-
506
- interface InternalAvailableDelivery {
507
- readonly 'id': string;
508
- readonly 'items': io.flow.fulfillment.v0.models.DeliveryItem[];
509
- readonly 'options': io.flow.checkout.backend.v0.unions.CheckoutOrderDeliveryOption[];
510
- }
511
-
512
- interface V2Checkout {
513
- readonly 'id': string;
514
- readonly 'organization': io.flow.checkout.backend.v0.models.CheckoutOrganizationSummary;
515
- readonly 'session_id': string;
516
- readonly 'geo': io.flow.checkout.backend.v0.models.CheckoutGeoParameters;
517
- readonly 'order_number'?: string;
518
- readonly 'starting_sequence_number': number;
519
- }
520
-
521
- interface V2CheckoutReference {
522
- readonly 'id': string;
523
- }
524
- }
525
-
526
- declare namespace io.flow.checkout.backend.v0.unions {
527
- type CheckoutAddressBookEdit = (io.flow.checkout.backend.v0.models.CheckoutAddressBookContactRemoved);
528
- type CheckoutConfirmationDetails = (io.flow.checkout.backend.v0.models.CheckoutDirectDebit);
529
- type CheckoutDeliveryWindow = (io.flow.checkout.backend.v0.models.CheckoutDeliveryWindowStatic | io.flow.checkout.backend.v0.models.CheckoutDeliveryWindowEstimate);
530
- type CheckoutInitiatePaymentForm = (io.flow.checkout.backend.v0.models.CheckoutInitiateRedirectPaymentForm | io.flow.checkout.backend.v0.models.CheckoutInitiateInlinePaymentForm | io.flow.checkout.backend.v0.models.CheckoutInitiateDirectPaymentForm);
531
- type CheckoutOrder = (io.flow.checkout.backend.v0.models.CheckoutOpenOrder | io.flow.checkout.backend.v0.models.CheckoutSubmittedOrder);
532
- type CheckoutOrderDeliveryOption = (io.flow.checkout.backend.v0.models.CheckoutOrderDigitalDeliveryOption | io.flow.checkout.backend.v0.models.CheckoutOrderPhysicalDeliveryOption);
533
- type CheckoutOrderFormPaymentDataGroup = (io.flow.checkout.backend.v0.models.CheckoutOrderFormPaymentDataGroupSingle | io.flow.checkout.backend.v0.models.CheckoutOrderFormPaymentDataGroupMulti);
534
- type CheckoutOrderPayment = (io.flow.checkout.backend.v0.models.CheckoutOrderPaymentCard | io.flow.checkout.backend.v0.models.CheckoutOrderPaymentGiftCard | io.flow.checkout.backend.v0.models.CheckoutOrderPaymentOnline);
535
- type CheckoutOrderPromotion = (io.flow.checkout.backend.v0.models.CheckoutOrderPromotionDiscount | io.flow.checkout.backend.v0.models.CheckoutOrderPromotionFreeShipping);
536
- type CheckoutPaymentActionRequirement = (io.flow.checkout.backend.v0.models.CheckoutRedirectAuthorizationRequirement | io.flow.checkout.backend.v0.models.CheckoutInlineAuthorizationRequirement | io.flow.checkout.backend.v0.models.CheckoutDirectAuthorizationRequirement);
537
- type CheckoutPaymentDetailsForm = (io.flow.checkout.backend.v0.models.CheckoutPaypalAuthorizationPayload | io.flow.checkout.backend.v0.models.CheckoutGooglePayAuthorizationPayload | io.flow.checkout.backend.v0.models.CheckoutCreditPaymentPayload);
538
- type CheckoutPrice = (io.flow.checkout.backend.v0.models.CheckoutPriceFree | io.flow.checkout.backend.v0.models.CheckoutPriceNotYetKnown | io.flow.checkout.backend.v0.models.CheckoutPriceIncluded | io.flow.checkout.backend.v0.models.CheckoutPriceStandard | io.flow.checkout.backend.v0.models.CheckoutPriceEstimated);
539
- }
@@ -1,57 +0,0 @@
1
- declare namespace io.flow.checkout.common.v0.enums {
2
- type CheckoutErrorCode = 'generic_error' | 'order_identifier_invalid' | 'url_invalid' | 'organization_invalid' | 'session_invalid' | 'session_missing' | 'session_organization_invalid' | 'country_invalid' | 'currency_invalid' | 'language_invalid' | 'checkout_invalid';
3
- type CheckoutRedirectMethod = 'get' | 'post';
4
- }
5
-
6
- declare namespace io.flow.checkout.common.v0.models {
7
- interface CheckoutContent {
8
- readonly 'global'?: io.flow.content.internal.v0.models.CheckoutContentSummary;
9
- readonly 'items': io.flow.experience.v0.models.CheckoutItemContent[];
10
- }
11
-
12
- interface CheckoutError {
13
- readonly 'code': io.flow.checkout.common.v0.enums.CheckoutErrorCode;
14
- readonly 'messages': string[];
15
- readonly 'organization'?: io.flow.common.v0.models.OrganizationReference;
16
- readonly 'redirect'?: io.flow.checkout.common.v0.models.CheckoutRedirect;
17
- }
18
-
19
- interface CheckoutPayment {
20
- readonly 'authorizations': io.flow.payment.v0.unions.Authorization[];
21
- readonly 'sources': io.flow.payment.v0.unions.PaymentSource[];
22
- readonly 'public_key': io.flow.payment.v0.models.PublicKey;
23
- readonly 'method_types': io.flow.reference.v0.enums.PaymentMethodType[];
24
- readonly 'method_rules': io.flow.experience.v0.models.PaymentMethodRule[];
25
- readonly 'authorization_parameters': io.flow.payment.internal.v0.models.AuthorizationParameters[];
26
- }
27
-
28
- interface CheckoutPlatformData {
29
- readonly 'order_number'?: string;
30
- }
31
-
32
- interface CheckoutRedirect {
33
- readonly 'method': io.flow.checkout.common.v0.enums.CheckoutRedirectMethod;
34
- readonly 'url': string;
35
- readonly 'body'?: string;
36
- }
37
-
38
- interface V1Checkout {
39
- readonly 'id': string;
40
- readonly 'organization': io.flow.common.v0.models.OrganizationSummary;
41
- readonly 'builder': io.flow.experience.v0.models.OrderBuilder;
42
- readonly 'platform': io.flow.checkout.common.v0.models.CheckoutPlatformData;
43
- readonly 'content': io.flow.checkout.common.v0.models.CheckoutContent;
44
- readonly 'destinations': io.flow.reference.v0.models.Country[];
45
- readonly 'optins': io.flow.optin.internal.v0.models.OptinPrompt[];
46
- readonly 'addresses': io.flow.experience.v0.models.AddressConfiguration[];
47
- readonly 'features': io.flow.feature.v0.models.FeatureValueResult;
48
- readonly 'configuration': io.flow.checkout.configuration.v0.models.CheckoutConfiguration;
49
- readonly 'cart'?: io.flow.shopify.v0.models.ShopifyCart;
50
- readonly 'customer'?: io.flow.customer.v0.models.Customer;
51
- readonly 'address_book'?: io.flow.customer.v0.models.CustomerAddressBook;
52
- readonly 'gift_card_program'?: io.flow.experience.internal.v0.models.GiftCardProgram;
53
- readonly 'loyalty_program'?: io.flow.experience.internal.v0.models.LoyaltyProgram;
54
- readonly 'payment': io.flow.checkout.common.v0.models.CheckoutPayment;
55
- readonly 'customer_bundle'?: io.flow.customer.v0.models.CustomerBundle;
56
- }
57
- }