@flowio/types 11.19.1 → 11.19.3

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/api.d.ts CHANGED
@@ -1,3 +1,774 @@
1
+ declare namespace io.flow.google.pay.v0.enums {
2
+ type AuthMethod = 'PAN_ONLY' | 'CRYPTOGRAM_3DS';
3
+ type BillingAddressFormat = 'MIN' | 'FULL';
4
+ type CardGateway = 'adyen' | 'stripe';
5
+ type CardNetwork = 'AMEX' | 'DISCOVER' | 'JCB' | 'MASTERCARD' | 'VISA';
6
+ type PaymentMethodType = 'CARD';
7
+ type TokenizationType = 'PAYMENT_GATEWAY' | 'DIRECT';
8
+ type TotalPriceStatus = 'NOT_CURRENTLY_KNOWN' | 'ESTIMATED' | 'FINAL';
9
+ }
10
+ declare namespace io.flow.google.pay.v0.models {
11
+ interface Address {
12
+ readonly name: string;
13
+ readonly postalCode: string;
14
+ readonly countryCode: string;
15
+ readonly phoneNumber: string;
16
+ readonly companyName: string;
17
+ readonly address1: string;
18
+ readonly address2: string;
19
+ readonly address3: string;
20
+ readonly locality: string;
21
+ readonly administrativeArea: string;
22
+ readonly sortingCode: string;
23
+ }
24
+ interface BillingAddressParameters {
25
+ readonly format?: io.flow.google.pay.v0.enums.BillingAddressFormat;
26
+ readonly phoneNumberRequired?: boolean;
27
+ }
28
+ interface CardAdyenTokenizationParameters {
29
+ readonly gateway: string;
30
+ readonly gatewayMerchantId: string;
31
+ }
32
+ interface CardDirectTokenizationParameters {
33
+ readonly protocolVersion: string;
34
+ readonly publicKey: string;
35
+ }
36
+ interface CardPaymentMethodDataInfo {
37
+ readonly cardDetails: string;
38
+ readonly cardNetwork: string;
39
+ readonly billingAddress?: io.flow.google.pay.v0.models.Address;
40
+ }
41
+ interface CardPaymentMethodParameters {
42
+ readonly allowedAuthMethods: io.flow.google.pay.v0.enums.AuthMethod[];
43
+ readonly allowedCardNetworks: io.flow.google.pay.v0.enums.CardNetwork[];
44
+ readonly billingAddressRequired?: boolean;
45
+ readonly billingAddressParameters?: io.flow.google.pay.v0.models.BillingAddressParameters;
46
+ }
47
+ interface DirectPaymentMethodToken {
48
+ readonly discriminator: 'direct_payment_method_token';
49
+ readonly protocolVersion: string;
50
+ readonly signature: string;
51
+ readonly signedMessage: string;
52
+ }
53
+ interface EncryptedMessage {
54
+ readonly messageExpiration: string;
55
+ readonly messageId: string;
56
+ readonly paymentMethod: io.flow.google.pay.v0.models.PaymentMethod;
57
+ readonly paymentMethodDetails: io.flow.google.pay.v0.models.PaymentMethodDetails;
58
+ }
59
+ interface MerchantInfo {
60
+ readonly merchantId: string;
61
+ readonly merchantName?: string;
62
+ readonly authJwt?: string;
63
+ }
64
+ interface PaymentData {
65
+ readonly apiVersion: number;
66
+ readonly apiVersionMinor: number;
67
+ readonly paymentMethodData: io.flow.google.pay.v0.models.PaymentMethodData;
68
+ readonly email?: string;
69
+ readonly shippingAddress?: io.flow.google.pay.v0.models.Address;
70
+ }
71
+ interface PaymentDataRequest {
72
+ readonly apiVersion: number;
73
+ readonly apiVersionMinor: number;
74
+ readonly merchantInfo: io.flow.google.pay.v0.models.MerchantInfo;
75
+ readonly allowedPaymentMethods: io.flow.google.pay.v0.models.PaymentMethod[];
76
+ readonly transactionInfo: io.flow.google.pay.v0.models.TransactionInfo;
77
+ readonly emailRequired?: boolean;
78
+ readonly shippingAddressRequired?: boolean;
79
+ readonly shippingAddressParameters?: io.flow.google.pay.v0.models.ShippingAddressParameters;
80
+ }
81
+ interface PaymentMethod {
82
+ readonly type: io.flow.google.pay.v0.enums.PaymentMethodType;
83
+ readonly parameters: io.flow.google.pay.v0.models.CardPaymentMethodParameters;
84
+ readonly tokenizationSpecification: io.flow.google.pay.v0.models.PaymentMethodTokenizationSpecification;
85
+ }
86
+ interface PaymentMethodData {
87
+ readonly type: io.flow.google.pay.v0.enums.PaymentMethodType;
88
+ readonly description: string;
89
+ readonly info: io.flow.google.pay.v0.models.CardPaymentMethodDataInfo;
90
+ readonly tokenizationData: io.flow.google.pay.v0.models.PaymentMethodTokenizationData;
91
+ }
92
+ interface PaymentMethodDetails {
93
+ readonly pan: string;
94
+ readonly expirationMonth: number;
95
+ readonly expirationYear: number;
96
+ readonly authMethod: io.flow.google.pay.v0.enums.AuthMethod;
97
+ readonly cryptogram?: string;
98
+ readonly eciIndicator?: string;
99
+ }
100
+ interface PaymentMethodTokenizationData {
101
+ readonly type: string;
102
+ readonly token?: string;
103
+ }
104
+ interface PaymentMethodTokenizationSpecification {
105
+ readonly type: io.flow.google.pay.v0.enums.TokenizationType;
106
+ readonly parameters: any;
107
+ }
108
+ interface ShippingAddressParameters {
109
+ readonly allowedCountryCodes?: string[];
110
+ }
111
+ interface SignedMessage {
112
+ readonly encryptedMessage: string;
113
+ readonly ephemeralPublicKey: string;
114
+ readonly tag: string;
115
+ }
116
+ interface StripePaymentMethodToken {
117
+ readonly discriminator: 'stripe_payment_method_token';
118
+ readonly token: io.flow.stripe.v0.models.Token;
119
+ }
120
+ interface TransactionInfo {
121
+ readonly totalPriceStatus: io.flow.google.pay.v0.enums.TotalPriceStatus;
122
+ readonly totalPrice?: string;
123
+ readonly currencyCode?: string;
124
+ }
125
+ }
126
+ declare namespace io.flow.google.pay.v0.unions {
127
+ type PaymentMethodToken = io.flow.google.pay.v0.models.DirectPaymentMethodToken | io.flow.google.pay.v0.models.StripePaymentMethodToken;
128
+ }
129
+ declare namespace io.flow.stripe.v0.enums {
130
+ type AccountType = 'platform' | 'custom' | 'standard' | 'express';
131
+ type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
132
+ type CaptureMethod = 'automatic' | 'manual';
133
+ type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
134
+ type CardErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'incorrect_number' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'missing' | 'processing_error';
135
+ type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
136
+ type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
137
+ type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
138
+ type ConfirmationMethod = 'automatic' | 'manual';
139
+ type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
140
+ type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
141
+ type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.refund.updated' | 'charge.succeeded' | 'charge.updated' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'source.canceled' | 'source.chargeable' | 'source.failed';
142
+ type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
143
+ type KlarnaProduct = 'payment';
144
+ type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
145
+ type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
146
+ type OrderItemType = 'sku' | 'tax' | 'shipping' | 'discount';
147
+ type PaymentIntentStatus = 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded';
148
+ type PaymentMethodType = 'card' | 'card_present';
149
+ type PaymentOutcomeType = 'authorized' | 'manual_review' | 'issuer_declined' | 'blocked' | 'invalid';
150
+ type PaymentStatus = 'succeeded' | 'pending' | 'failed';
151
+ type RefundFailureReason = 'lost_or_stolen_card' | 'expired_or_canceled_card' | 'unknown';
152
+ type RefundReason = 'duplicate' | 'fraudulent' | 'requested_by_customer';
153
+ type RefundStatus = 'succeeded' | 'failed' | 'pending' | 'canceled';
154
+ type RequestThreeDSecureType = 'automatic' | 'any';
155
+ type RequestedCapabilities = 'card_payments' | 'legacy_payments' | 'transfers';
156
+ type SetupFutureUsage = 'on_session' | 'off_session';
157
+ type SourceFlow = 'redirect' | 'receiver' | 'code_verification' | 'none';
158
+ type SourceStatus = 'canceled' | 'chargeable' | 'consumed' | 'failed' | 'pending';
159
+ type SourceType = 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'bitcoin' | 'card' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure';
160
+ type SourceUsageType = 'reusable' | 'single_use';
161
+ type ThreeDSecureSupport = 'required' | 'recommended' | 'optional' | 'not_supported';
162
+ type TokenType = 'account' | 'bank_account' | 'card' | 'pii';
163
+ type UseStripeSdkType = 'three_d_secure_redirect' | 'stripe_3ds2_fingerprint';
164
+ }
165
+ declare namespace io.flow.stripe.v0.models {
166
+ interface Account {
167
+ readonly id: string;
168
+ readonly object: string;
169
+ readonly business_logo?: string;
170
+ readonly business_name?: string;
171
+ readonly business_url?: string;
172
+ readonly charges_enabled?: boolean;
173
+ readonly country?: string;
174
+ readonly created?: number;
175
+ readonly debit_negative_balances?: boolean;
176
+ readonly default_currency?: string;
177
+ readonly details_submitted?: boolean;
178
+ readonly display_name?: string;
179
+ readonly email?: string;
180
+ readonly keys?: io.flow.stripe.v0.models.Keys;
181
+ readonly legal_entity?: io.flow.stripe.v0.models.LegalEntity;
182
+ readonly payout_statement_descriptor?: string;
183
+ readonly payouts_enabled?: boolean;
184
+ readonly product_description?: string;
185
+ readonly statement_descriptor?: string;
186
+ readonly timezone?: string;
187
+ readonly tos_acceptance?: io.flow.stripe.v0.models.TosAcceptance;
188
+ readonly type?: io.flow.stripe.v0.enums.AccountType;
189
+ }
190
+ interface AccountRequest {
191
+ readonly type: io.flow.stripe.v0.enums.AccountType;
192
+ readonly country?: string;
193
+ readonly business_name?: string;
194
+ readonly legal_entity?: io.flow.stripe.v0.models.LegalEntity;
195
+ readonly payout_statement_descriptor?: string;
196
+ readonly tos_acceptance?: io.flow.stripe.v0.models.TosAcceptance;
197
+ readonly requested_capabilities?: io.flow.stripe.v0.enums.RequestedCapabilities[];
198
+ }
199
+ interface Address {
200
+ readonly city?: string;
201
+ readonly country?: string;
202
+ readonly line1?: string;
203
+ readonly line2?: string;
204
+ readonly postal_code?: string;
205
+ readonly state?: string;
206
+ }
207
+ interface Card {
208
+ readonly id: string;
209
+ readonly object: string;
210
+ readonly address_city?: string;
211
+ readonly address_country?: string;
212
+ readonly address_line1?: string;
213
+ readonly address_line1_check?: io.flow.stripe.v0.enums.CheckOutcome;
214
+ readonly address_line2?: string;
215
+ readonly address_state?: string;
216
+ readonly address_zip?: string;
217
+ readonly address_zip_check?: io.flow.stripe.v0.enums.CheckOutcome;
218
+ readonly brand?: io.flow.stripe.v0.enums.CardBrand;
219
+ readonly country?: string;
220
+ readonly currency?: string;
221
+ readonly cvc_check?: io.flow.stripe.v0.enums.CheckOutcome;
222
+ readonly dynamic_last4?: string;
223
+ readonly exp_month: number;
224
+ readonly exp_year: number;
225
+ readonly fingerprint?: string;
226
+ readonly funding?: io.flow.stripe.v0.enums.CardFundingType;
227
+ readonly last4?: string;
228
+ readonly name?: string;
229
+ readonly tokenization_method?: string;
230
+ }
231
+ interface CardRequest {
232
+ readonly object: string;
233
+ readonly exp_month: string;
234
+ readonly exp_year: string;
235
+ readonly number: string;
236
+ readonly cvc?: string;
237
+ readonly name?: string;
238
+ readonly address_city?: string;
239
+ readonly address_country?: string;
240
+ readonly address_line1?: string;
241
+ readonly address_line2?: string;
242
+ readonly address_state?: string;
243
+ readonly address_zip?: string;
244
+ readonly currency?: string;
245
+ }
246
+ interface Charge {
247
+ readonly id: string;
248
+ readonly amount: number;
249
+ readonly amount_refunded: number;
250
+ readonly captured: boolean;
251
+ readonly created: number;
252
+ readonly currency: string;
253
+ readonly customer?: string;
254
+ readonly outcome: io.flow.stripe.v0.models.PaymentOutcome;
255
+ readonly paid: boolean;
256
+ readonly refunded: boolean;
257
+ readonly refunds?: io.flow.stripe.v0.models.Refunds;
258
+ readonly source: io.flow.stripe.v0.models.Source;
259
+ readonly status: io.flow.stripe.v0.enums.PaymentStatus;
260
+ readonly balance_transaction?: string;
261
+ readonly destination?: string;
262
+ readonly dispute?: string;
263
+ readonly failure_code?: string;
264
+ readonly failure_message?: string;
265
+ readonly on_behalf_of?: string;
266
+ readonly review?: string;
267
+ readonly source_transfer?: string;
268
+ readonly transfer?: string;
269
+ readonly transfer_group?: string;
270
+ readonly payment_intent?: string;
271
+ }
272
+ interface ChargeDestination {
273
+ readonly account: string;
274
+ readonly amount?: string;
275
+ }
276
+ interface ChargeRequest {
277
+ readonly amount: number;
278
+ readonly currency: string;
279
+ readonly capture: boolean;
280
+ readonly description?: string;
281
+ readonly destination?: io.flow.stripe.v0.models.ChargeDestination;
282
+ readonly customer?: string;
283
+ readonly source?: string;
284
+ readonly statement_descriptor?: string;
285
+ readonly statement_descriptor_suffix?: string;
286
+ readonly metadata?: io.flow.stripe.v0.models.Metadata;
287
+ readonly on_behalf_of?: string;
288
+ readonly transfer_data?: io.flow.stripe.v0.models.TransferData;
289
+ }
290
+ interface ChargeSourceOptional {
291
+ readonly id: string;
292
+ readonly amount: number;
293
+ readonly amount_refunded: number;
294
+ readonly captured: boolean;
295
+ readonly created: number;
296
+ readonly currency: string;
297
+ readonly customer?: string;
298
+ readonly outcome: io.flow.stripe.v0.models.PaymentOutcome;
299
+ readonly paid: boolean;
300
+ readonly refunded: boolean;
301
+ readonly refunds?: io.flow.stripe.v0.models.Refunds;
302
+ readonly source?: io.flow.stripe.v0.models.Source;
303
+ readonly status: io.flow.stripe.v0.enums.PaymentStatus;
304
+ readonly balance_transaction?: string;
305
+ readonly destination?: string;
306
+ readonly dispute?: string;
307
+ readonly failure_code?: string;
308
+ readonly failure_message?: string;
309
+ readonly on_behalf_of?: string;
310
+ readonly review?: string;
311
+ readonly source_transfer?: string;
312
+ readonly transfer?: string;
313
+ readonly transfer_group?: string;
314
+ readonly payment_intent?: string;
315
+ }
316
+ interface CodeVerification {
317
+ readonly attempts_remaining: number;
318
+ readonly status: io.flow.stripe.v0.enums.CodeVerificationStatus;
319
+ }
320
+ interface Customer {
321
+ readonly id: string;
322
+ readonly object: string;
323
+ readonly account_balance: number;
324
+ readonly created: number;
325
+ readonly default_source: string;
326
+ readonly livemode: boolean;
327
+ readonly currency?: string;
328
+ readonly description?: string;
329
+ }
330
+ interface CustomerRequest {
331
+ readonly source: string;
332
+ readonly description?: string;
333
+ }
334
+ interface Error {
335
+ readonly error: io.flow.stripe.v0.models.StripeError;
336
+ }
337
+ interface Keys {
338
+ readonly secret?: string;
339
+ readonly publishable?: string;
340
+ }
341
+ interface KlarnaAttachment {
342
+ readonly marketplace_seller_info?: io.flow.stripe.v0.models.KlarnaMarketplaceSellerInfo[];
343
+ }
344
+ interface KlarnaMarketplaceSellerInfo {
345
+ readonly sub_merchant_id?: string;
346
+ readonly product_category?: string;
347
+ }
348
+ interface LastPaymentError {
349
+ readonly charge?: string;
350
+ readonly code?: string;
351
+ readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
352
+ readonly doc_url?: string;
353
+ readonly message?: string;
354
+ readonly param?: string;
355
+ readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
356
+ readonly type: io.flow.stripe.v0.enums.ErrorType;
357
+ }
358
+ interface LegalEntity {
359
+ readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
360
+ }
361
+ interface Metadata {
362
+ readonly order_number?: string;
363
+ readonly authorization_id?: string;
364
+ }
365
+ interface NextAction {
366
+ readonly type: io.flow.stripe.v0.enums.NextActionType;
367
+ readonly use_stripe_sdk?: any;
368
+ readonly redirect_to_url?: io.flow.stripe.v0.models.RedirectToUrl;
369
+ }
370
+ interface Order {
371
+ readonly currency?: string;
372
+ readonly coupon?: string;
373
+ readonly customer?: string;
374
+ readonly email?: string;
375
+ readonly items?: io.flow.stripe.v0.models.OrderItem[];
376
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
377
+ }
378
+ interface OrderItem {
379
+ readonly object?: string;
380
+ readonly amount: number;
381
+ readonly currency: string;
382
+ readonly description?: string;
383
+ readonly parent?: string;
384
+ readonly quantity?: number;
385
+ readonly type: io.flow.stripe.v0.enums.OrderItemType;
386
+ }
387
+ interface OrderItemRequest {
388
+ readonly amount: number;
389
+ readonly currency: string;
390
+ readonly description?: string;
391
+ readonly parent?: string;
392
+ readonly quantity?: number;
393
+ readonly type: io.flow.stripe.v0.enums.OrderItemType;
394
+ }
395
+ interface OrderRequest {
396
+ readonly currency?: string;
397
+ readonly coupon?: string;
398
+ readonly customer?: string;
399
+ readonly email?: string;
400
+ readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
401
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
402
+ }
403
+ interface Owner {
404
+ readonly address?: io.flow.stripe.v0.models.Address;
405
+ readonly email?: string;
406
+ readonly name?: string;
407
+ readonly phone?: string;
408
+ readonly verified_address?: io.flow.stripe.v0.models.Address;
409
+ readonly verified_email?: string;
410
+ readonly verified_name?: string;
411
+ readonly verified_phone?: string;
412
+ }
413
+ interface PaymentIntent {
414
+ readonly id: string;
415
+ readonly object: string;
416
+ readonly amount: number;
417
+ readonly amount_capturable: number;
418
+ readonly amount_received: number;
419
+ readonly application?: string;
420
+ readonly application_fee_amount?: number;
421
+ readonly canceled_at?: number;
422
+ readonly cancellation_reason?: io.flow.stripe.v0.enums.CancellationReason;
423
+ readonly capture_method: io.flow.stripe.v0.enums.CaptureMethod;
424
+ readonly charges?: io.flow.stripe.v0.models.PaymentIntentCharges;
425
+ readonly client_secret: string;
426
+ readonly confirmation_method: io.flow.stripe.v0.enums.ConfirmationMethod;
427
+ readonly created: number;
428
+ readonly currency: string;
429
+ readonly customer?: string;
430
+ readonly description?: string;
431
+ readonly invoice?: string;
432
+ readonly last_payment_error?: io.flow.stripe.v0.models.LastPaymentError;
433
+ readonly livemode: boolean;
434
+ readonly metadata?: io.flow.stripe.v0.models.Metadata;
435
+ readonly next_action?: io.flow.stripe.v0.models.NextAction;
436
+ readonly on_behalf_of?: string;
437
+ readonly payment_method?: string;
438
+ readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
439
+ readonly payment_method_types: string[];
440
+ readonly receipt_email?: string;
441
+ readonly review?: string;
442
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
443
+ readonly source?: io.flow.stripe.v0.models.Source;
444
+ readonly statement_descriptor?: string;
445
+ readonly statement_descriptor_suffix?: string;
446
+ readonly status: io.flow.stripe.v0.enums.PaymentIntentStatus;
447
+ readonly transfer_data?: io.flow.stripe.v0.models.TransferData;
448
+ readonly transfer_group?: string;
449
+ }
450
+ interface PaymentIntentCancellationForm {
451
+ readonly cancellation_reason?: io.flow.stripe.v0.enums.CancellationReason;
452
+ }
453
+ interface PaymentIntentCaptureForm {
454
+ readonly amount_to_capture: number;
455
+ readonly application_fee_amount?: number;
456
+ readonly statement_descriptor?: string;
457
+ readonly statement_descriptor_suffix?: string;
458
+ readonly transfer_data?: io.flow.stripe.v0.models.TransferData;
459
+ }
460
+ interface PaymentIntentCharges {
461
+ readonly object: string;
462
+ readonly data: io.flow.stripe.v0.models.ChargeSourceOptional[];
463
+ readonly has_more: boolean;
464
+ readonly url?: string;
465
+ }
466
+ interface PaymentIntentConfirmationForm {
467
+ readonly off_session?: boolean;
468
+ readonly payment_method?: string;
469
+ readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
470
+ readonly payment_method_types?: string[];
471
+ readonly receipt_email?: string;
472
+ readonly save_payment_method: boolean;
473
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
474
+ }
475
+ interface PaymentIntentForm {
476
+ readonly amount: number;
477
+ readonly currency: string;
478
+ readonly application_fee_amount?: number;
479
+ readonly capture_method?: io.flow.stripe.v0.enums.CaptureMethod;
480
+ readonly confirm?: boolean;
481
+ readonly confirmation_method?: io.flow.stripe.v0.enums.ConfirmationMethod;
482
+ readonly customer?: string;
483
+ readonly description?: string;
484
+ readonly off_session?: boolean;
485
+ readonly metadata?: io.flow.stripe.v0.models.Metadata;
486
+ readonly on_behalf_of?: string;
487
+ readonly payment_method?: string;
488
+ readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
489
+ readonly payment_method_types?: string[];
490
+ readonly receipt_email?: string;
491
+ readonly return_url?: string;
492
+ readonly save_payment_method: boolean;
493
+ readonly setup_future_usage?: io.flow.stripe.v0.enums.SetupFutureUsage;
494
+ readonly statement_descriptor?: string;
495
+ readonly statement_descriptor_suffix?: string;
496
+ readonly transfer_data?: io.flow.stripe.v0.models.TransferData;
497
+ readonly transfer_group?: string;
498
+ }
499
+ interface PaymentIntentUpdateForm {
500
+ readonly amount: number;
501
+ readonly currency: string;
502
+ readonly application_fee_amount?: number;
503
+ readonly customer?: string;
504
+ readonly description?: string;
505
+ readonly payment_method?: string;
506
+ readonly payment_method_types?: string[];
507
+ readonly receipt_email?: string;
508
+ readonly save_payment_method: boolean;
509
+ readonly statement_descriptor?: string;
510
+ readonly statement_descriptor_suffix?: string;
511
+ readonly transfer_data?: io.flow.stripe.v0.models.TransferData;
512
+ readonly transfer_group?: string;
513
+ }
514
+ interface PaymentMethod {
515
+ readonly id: string;
516
+ readonly object: string;
517
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
518
+ readonly card?: io.flow.stripe.v0.models.SourceCard;
519
+ readonly card_present?: any;
520
+ readonly created: number;
521
+ readonly customer?: string;
522
+ readonly livemode: boolean;
523
+ readonly type?: string;
524
+ }
525
+ interface PaymentMethodBillingDetails {
526
+ readonly address: io.flow.stripe.v0.models.Address;
527
+ readonly email?: string;
528
+ readonly name?: string;
529
+ readonly phone?: string;
530
+ }
531
+ interface PaymentMethodForm {
532
+ readonly type: io.flow.stripe.v0.enums.PaymentMethodType;
533
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
534
+ readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
535
+ }
536
+ interface PaymentMethodOptions {
537
+ readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
538
+ }
539
+ interface PaymentMethodOptionsCard {
540
+ readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
541
+ }
542
+ interface PaymentOutcome {
543
+ readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
544
+ readonly risk_level: string;
545
+ readonly seller_message: string;
546
+ readonly reason?: string;
547
+ readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
548
+ }
549
+ interface Receiver {
550
+ readonly address?: string;
551
+ readonly amount_charged?: number;
552
+ readonly amount_received?: number;
553
+ readonly amount_returned?: number;
554
+ }
555
+ interface Redirect {
556
+ readonly failure_reason?: string;
557
+ readonly return_url?: string;
558
+ readonly status?: string;
559
+ readonly url?: string;
560
+ }
561
+ interface RedirectToUrl {
562
+ readonly return_url: string;
563
+ readonly url: string;
564
+ }
565
+ interface Refund {
566
+ readonly id: string;
567
+ readonly object: string;
568
+ readonly amount: number;
569
+ readonly charge: string;
570
+ readonly payment_intent?: string;
571
+ readonly created: number;
572
+ readonly currency: string;
573
+ readonly status: io.flow.stripe.v0.enums.RefundStatus;
574
+ readonly balance_transaction?: string;
575
+ readonly failure_balance_transaction?: string;
576
+ readonly failure_reason?: io.flow.stripe.v0.enums.RefundFailureReason;
577
+ readonly reason?: io.flow.stripe.v0.enums.RefundReason;
578
+ readonly receipt_number?: string;
579
+ }
580
+ interface RefundRequest {
581
+ readonly charge: string;
582
+ readonly payment_intent?: string;
583
+ readonly amount?: number;
584
+ readonly reason?: io.flow.stripe.v0.enums.RefundReason;
585
+ readonly refund_application_fee?: boolean;
586
+ readonly reverse_transfer?: boolean;
587
+ readonly metadata?: io.flow.stripe.v0.models.Metadata;
588
+ }
589
+ interface Refunds {
590
+ readonly object: string;
591
+ readonly data: io.flow.stripe.v0.models.Refund[];
592
+ readonly has_more: boolean;
593
+ readonly total_count: number;
594
+ readonly url: string;
595
+ }
596
+ interface Shipping {
597
+ readonly address: io.flow.stripe.v0.models.Address;
598
+ readonly name?: string;
599
+ readonly phone?: string;
600
+ }
601
+ interface Source {
602
+ readonly id: string;
603
+ readonly object: string;
604
+ readonly amount?: number;
605
+ readonly card?: io.flow.stripe.v0.models.SourceCard;
606
+ readonly client_secret?: string;
607
+ readonly code_verification?: io.flow.stripe.v0.models.CodeVerification;
608
+ readonly created: number;
609
+ readonly currency?: string;
610
+ readonly flow: io.flow.stripe.v0.enums.SourceFlow;
611
+ readonly klarna?: io.flow.stripe.v0.models.SourceKlarna;
612
+ readonly livemode: boolean;
613
+ readonly owner?: io.flow.stripe.v0.models.Owner;
614
+ readonly receiver?: io.flow.stripe.v0.models.Receiver;
615
+ readonly redirect?: io.flow.stripe.v0.models.Redirect;
616
+ readonly statement_descriptor?: string;
617
+ readonly status: io.flow.stripe.v0.enums.SourceStatus;
618
+ readonly type: io.flow.stripe.v0.enums.SourceType;
619
+ readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
620
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
621
+ }
622
+ interface SourceCard {
623
+ readonly exp_month: number;
624
+ readonly exp_year: number;
625
+ readonly brand?: io.flow.stripe.v0.enums.CardBrand;
626
+ readonly card_automatically_updated?: boolean;
627
+ readonly country?: string;
628
+ readonly cvc_check?: io.flow.stripe.v0.enums.CheckOutcome;
629
+ readonly fingerprint?: string;
630
+ readonly funding?: io.flow.stripe.v0.enums.CardFundingType;
631
+ readonly last4?: string;
632
+ readonly three_d_secure?: io.flow.stripe.v0.enums.ThreeDSecureSupport;
633
+ readonly address_line1_check?: io.flow.stripe.v0.enums.CheckOutcome;
634
+ readonly address_zip_check?: io.flow.stripe.v0.enums.CheckOutcome;
635
+ readonly tokenization_method?: string;
636
+ readonly dynamic_last4?: string;
637
+ }
638
+ interface SourceCardRequest {
639
+ readonly exp_month: string;
640
+ readonly exp_year: string;
641
+ readonly number: string;
642
+ readonly cvc?: string;
643
+ }
644
+ interface SourceKlarna {
645
+ readonly first_name?: string;
646
+ readonly last_name?: string;
647
+ readonly client_token: string;
648
+ readonly payment_method_categories?: string;
649
+ readonly purchase_country?: string;
650
+ readonly shipping_first_name?: string;
651
+ readonly shipping_last_name?: string;
652
+ readonly locale?: string;
653
+ readonly pay_later_name?: string;
654
+ readonly pay_later_asset_urls_standard?: string;
655
+ readonly pay_later_asset_urls_descriptive?: string;
656
+ readonly pay_now_name?: string;
657
+ readonly pay_now_asset_urls_standard?: string;
658
+ readonly pay_now_asset_urls_descriptive?: string;
659
+ readonly pay_over_time_name?: string;
660
+ readonly pay_over_time_asset_urls_standard?: string;
661
+ readonly pay_over_time_asset_urls_descriptive?: string;
662
+ readonly direct_bank_transfer_name?: string;
663
+ readonly direct_bank_transfer_asset_urls_standard?: string;
664
+ readonly direct_bank_transfer_asset_urls_descriptive?: string;
665
+ readonly direct_debit_name?: string;
666
+ readonly direct_debit_asset_urls_standard?: string;
667
+ readonly direct_debit_asset_urls_descriptive?: string;
668
+ }
669
+ interface SourceKlarnaRequest {
670
+ readonly first_name: string;
671
+ readonly last_name: string;
672
+ readonly purchase_country?: string;
673
+ readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
674
+ readonly attachment?: string;
675
+ readonly shipping_first_name?: string;
676
+ readonly shipping_last_name?: string;
677
+ readonly locale?: string;
678
+ }
679
+ interface SourceOrder {
680
+ readonly amount?: number;
681
+ readonly currency?: string;
682
+ readonly email?: string;
683
+ readonly items?: io.flow.stripe.v0.models.OrderItem[];
684
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
685
+ }
686
+ interface SourceOrderRequest {
687
+ readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
688
+ readonly shipping?: io.flow.stripe.v0.models.Shipping;
689
+ }
690
+ interface SourceRequest {
691
+ readonly type?: io.flow.stripe.v0.enums.SourceType;
692
+ readonly amount?: number;
693
+ readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
694
+ readonly currency?: string;
695
+ readonly flow?: io.flow.stripe.v0.enums.SourceFlow;
696
+ readonly klarna?: io.flow.stripe.v0.models.SourceKlarnaRequest;
697
+ readonly order?: io.flow.stripe.v0.models.OrderRequest;
698
+ readonly owner?: io.flow.stripe.v0.models.Owner;
699
+ readonly receiver?: io.flow.stripe.v0.models.Receiver;
700
+ readonly redirect?: io.flow.stripe.v0.models.Redirect;
701
+ readonly statement_descriptor?: string;
702
+ readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
703
+ readonly token?: string;
704
+ readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
705
+ readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
706
+ }
707
+ interface Stripe3Ds2Fingerprint {
708
+ readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
709
+ readonly three_d_secure_2_source: string;
710
+ readonly directory_server_name?: string;
711
+ readonly server_transaction_id?: string;
712
+ readonly three_ds_method_url?: string;
713
+ readonly three_ds_optimizations?: string;
714
+ readonly directory_server_encryption?: any;
715
+ }
716
+ interface StripeError {
717
+ readonly type: io.flow.stripe.v0.enums.ErrorType;
718
+ readonly charge?: string;
719
+ readonly message?: string;
720
+ readonly code?: io.flow.stripe.v0.enums.CardErrorCode;
721
+ readonly decline_code?: string;
722
+ readonly param?: string;
723
+ readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
724
+ }
725
+ interface StripeEvent {
726
+ readonly id: string;
727
+ readonly object: string;
728
+ readonly api_version?: string;
729
+ readonly created: number;
730
+ readonly data: io.flow.stripe.v0.models.StripeEventData;
731
+ readonly livemode: boolean;
732
+ readonly pending_webhooks: number;
733
+ readonly request?: io.flow.stripe.v0.models.StripeEventRequest;
734
+ readonly type: string;
735
+ }
736
+ interface StripeEventData {
737
+ readonly object?: any;
738
+ readonly previous_attributes?: any;
739
+ }
740
+ interface StripeEventRequest {
741
+ readonly id?: string;
742
+ readonly idempotency_key?: string;
743
+ }
744
+ interface ThreeDSecure {
745
+ readonly card: string;
746
+ readonly customer?: string;
747
+ }
748
+ interface ThreeDSecureRedirect {
749
+ readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
750
+ readonly stripe_js: string;
751
+ }
752
+ interface Token {
753
+ readonly id: string;
754
+ readonly object: string;
755
+ readonly client_ip: string;
756
+ readonly created: number;
757
+ readonly livemode: boolean;
758
+ readonly type: io.flow.stripe.v0.enums.TokenType;
759
+ readonly used: boolean;
760
+ readonly card?: io.flow.stripe.v0.models.Card;
761
+ }
762
+ interface TosAcceptance {
763
+ readonly date?: number;
764
+ readonly ip?: string;
765
+ readonly user_agent?: string;
766
+ }
767
+ interface TransferData {
768
+ readonly amount?: number;
769
+ readonly destination?: string;
770
+ }
771
+ }
1
772
  declare namespace io.flow.shopify.external.v0.enums {
2
773
  type CancelReason = 'customer' | 'fraud' | 'inventory' | 'declined' | 'other';
3
774
  type DiscountStatus = 'enabled' | 'disabled' | 'depleted';
@@ -804,6 +1575,68 @@ declare namespace io.flow.shopify.external.v0.models {
804
1575
  readonly webhook: io.flow.shopify.external.v0.models.Webhook;
805
1576
  }
806
1577
  }
1578
+ declare namespace io.flow.apple.pay.v0.enums {
1579
+ type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
1580
+ type ApplePayLineItemType = 'final' | 'pending';
1581
+ type ApplePayMerchantCapability = 'supports3DS' | 'supportsCredit' | 'supportsDebit' | 'supportsEMV';
1582
+ type ApplePayShippingType = 'shipping' | 'delivery' | 'store_pickup' | 'service_pickup';
1583
+ type ApplePaySupportedNetworks = 'amex' | 'chinaUnionPay' | 'discover' | 'jcb' | 'masterCard' | 'privateLabel' | 'visa';
1584
+ }
1585
+ declare namespace io.flow.apple.pay.v0.models {
1586
+ interface ApplePayLineItem {
1587
+ readonly label: string;
1588
+ readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
1589
+ readonly amount: number;
1590
+ }
1591
+ interface ApplePayPaymentContact {
1592
+ readonly email_address?: string;
1593
+ readonly family_name?: string;
1594
+ readonly given_name?: string;
1595
+ readonly phone_number?: string;
1596
+ readonly phonetic_familyName?: string;
1597
+ readonly phonetic_givenName?: string;
1598
+ readonly address_lines?: string[];
1599
+ readonly locality?: string;
1600
+ readonly sub_locality?: string;
1601
+ readonly administrative_area?: string;
1602
+ readonly sub_administrative_area?: string;
1603
+ readonly postal_code?: string;
1604
+ readonly country?: string;
1605
+ readonly country_code?: string;
1606
+ }
1607
+ interface ApplePayPaymentData {
1608
+ readonly applicationPrimaryAccountNumber: string;
1609
+ readonly applicationExpirationDate: string;
1610
+ readonly currencyCode: string;
1611
+ readonly transactionAmount: number;
1612
+ readonly cardholderName?: string;
1613
+ readonly deviceManufacturerIdentifier: string;
1614
+ readonly paymentDataType: string;
1615
+ readonly paymentData: any;
1616
+ }
1617
+ interface ApplePayPaymentInfo {
1618
+ readonly total: io.flow.apple.pay.v0.models.ApplePayLineItem;
1619
+ readonly line_items?: io.flow.apple.pay.v0.models.ApplePayLineItem[];
1620
+ readonly country_code: string;
1621
+ readonly currency_code: string;
1622
+ readonly merchant_capabilities: io.flow.apple.pay.v0.enums.ApplePayMerchantCapability[];
1623
+ readonly shipping_methods?: io.flow.apple.pay.v0.models.ApplePayShippingMethod[];
1624
+ readonly shipping_type?: io.flow.apple.pay.v0.enums.ApplePayShippingType;
1625
+ readonly supported_countries?: string[];
1626
+ readonly supported_networks: io.flow.apple.pay.v0.enums.ApplePaySupportedNetworks[];
1627
+ readonly required_billingContactFields?: io.flow.apple.pay.v0.enums.ApplePayContactField[];
1628
+ readonly required_shippingContactFields?: io.flow.apple.pay.v0.enums.ApplePayContactField[];
1629
+ readonly billing_contact?: io.flow.apple.pay.v0.models.ApplePayPaymentContact;
1630
+ readonly shipping_contact?: io.flow.apple.pay.v0.models.ApplePayPaymentContact;
1631
+ readonly application_data?: string;
1632
+ }
1633
+ interface ApplePayShippingMethod {
1634
+ readonly label: string;
1635
+ readonly detail: string;
1636
+ readonly amount: number;
1637
+ readonly identifier: string;
1638
+ }
1639
+ }
807
1640
  declare namespace io.flow.v0.enums {
808
1641
  type AbandonedOrderSettingStatus = 'active' | 'inactive';
809
1642
  type AddressFieldName = 'first_name' | 'last_name' | 'street_1' | 'street_2' | 'city' | 'province' | 'postal' | 'country' | 'phone' | 'company' | 'vat_registration_number';
@@ -1085,12 +1918,12 @@ declare namespace io.flow.v0.models {
1085
1918
  readonly type: 'use_sdk_applepay_js_create_session';
1086
1919
  readonly expires_at?: string;
1087
1920
  readonly merchant_identifier: string;
1088
- readonly payment_data_request: any;
1921
+ readonly payment_data_request: io.flow.apple.pay.v0.models.ApplePayPaymentInfo;
1089
1922
  }
1090
1923
  interface ActionUseSdkGooglepay {
1091
1924
  readonly type: 'use_sdk_googlepay';
1092
1925
  readonly expires_at?: string;
1093
- readonly payment_data_request: any;
1926
+ readonly payment_data_request: io.flow.google.pay.v0.models.PaymentDataRequest;
1094
1927
  }
1095
1928
  interface ActionUseSdkKlarnaV1 {
1096
1929
  readonly type: 'use_sdk_klarna_v1';
@@ -4718,6 +5551,10 @@ declare namespace io.flow.v0.models {
4718
5551
  }
4719
5552
  interface OrderDetails {
4720
5553
  readonly line_items: io.flow.v0.models.PaymentOrderDetailsLineItem[];
5554
+ readonly shipping?: io.flow.v0.models.Shipping;
5555
+ readonly discounts?: io.flow.v0.models.PaymentDiscount[];
5556
+ readonly tax?: io.flow.v0.models.PaymentTax;
5557
+ readonly duty?: io.flow.v0.models.PaymentDuty;
4721
5558
  }
4722
5559
  interface OrderError {
4723
5560
  readonly code: io.flow.v0.enums.OrderErrorCode;
@@ -4839,6 +5676,17 @@ declare namespace io.flow.v0.models {
4839
5676
  readonly type: io.flow.v0.enums.ChangeType;
4840
5677
  readonly order_identifier: io.flow.v0.models.OrderIdentifier;
4841
5678
  }
5679
+ interface OrderInformationDetails {
5680
+ readonly type: 'details';
5681
+ readonly order_details: io.flow.v0.models.OrderDetails;
5682
+ readonly billing_address?: io.flow.v0.models.PaymentAddress;
5683
+ readonly shipping_address?: io.flow.v0.models.PaymentAddress;
5684
+ }
5685
+ interface OrderInformationFlow {
5686
+ readonly type: 'flow';
5687
+ readonly order_number: string;
5688
+ readonly billing_address?: io.flow.v0.models.PaymentAddress;
5689
+ }
4842
5690
  interface OrderNumberGeneratorDefaults {
4843
5691
  readonly starts_with: number;
4844
5692
  readonly min_hex_length: number;
@@ -5430,6 +6278,15 @@ declare namespace io.flow.v0.models {
5430
6278
  readonly organization: string;
5431
6279
  readonly id: string;
5432
6280
  }
6281
+ interface PaymentDiscount {
6282
+ readonly amount: number;
6283
+ readonly name?: string;
6284
+ readonly code?: string;
6285
+ }
6286
+ interface PaymentDuty {
6287
+ readonly amount: number;
6288
+ readonly name?: string;
6289
+ }
5433
6290
  interface PaymentError {
5434
6291
  readonly code: string;
5435
6292
  readonly messages: string[];
@@ -5567,13 +6424,16 @@ declare namespace io.flow.v0.models {
5567
6424
  readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
5568
6425
  }
5569
6426
  interface PaymentOrderDetailsLineItem {
6427
+ readonly id: string;
5570
6428
  readonly description: string;
5571
6429
  readonly quantity: number;
5572
- readonly amount_excluding_tax_and_duty: number;
5573
- readonly tax_amount?: number;
5574
- readonly duty_amount?: number;
6430
+ readonly amount: number;
6431
+ readonly tax?: io.flow.v0.models.PaymentTax;
6432
+ readonly duty?: io.flow.v0.models.PaymentDuty;
5575
6433
  readonly product_url?: string;
5576
6434
  readonly image_url?: string;
6435
+ readonly category?: string;
6436
+ readonly discounts?: io.flow.v0.models.PaymentDiscount[];
5577
6437
  }
5578
6438
  interface PaymentPaymentMethod {
5579
6439
  readonly id: string;
@@ -5643,10 +6503,9 @@ declare namespace io.flow.v0.models {
5643
6503
  readonly amount: number;
5644
6504
  readonly amount_refundable?: number;
5645
6505
  readonly currency: string;
5646
- readonly order_details: io.flow.v0.models.OrderDetails;
5647
- readonly billing_address?: io.flow.v0.models.PaymentAddress;
5648
- readonly shipping_address?: io.flow.v0.models.PaymentAddress;
6506
+ readonly order_information: io.flow.v0.unions.OrderInformation;
5649
6507
  readonly ip?: string;
6508
+ readonly locale?: string;
5650
6509
  readonly return_url: string;
5651
6510
  readonly attributes?: Record<string, string>;
5652
6511
  readonly reference?: string;
@@ -5656,10 +6515,9 @@ declare namespace io.flow.v0.models {
5656
6515
  interface PaymentRequestForm {
5657
6516
  readonly amount: number;
5658
6517
  readonly currency: string;
5659
- readonly order_details: io.flow.v0.models.OrderDetails;
5660
- readonly billing_address?: io.flow.v0.models.PaymentAddress;
5661
- readonly shipping_address?: io.flow.v0.models.PaymentAddress;
6518
+ readonly order_information: io.flow.v0.unions.OrderInformation;
5662
6519
  readonly ip?: string;
6520
+ readonly locale?: string;
5663
6521
  readonly return_url: string;
5664
6522
  readonly attributes?: Record<string, string>;
5665
6523
  readonly reference?: string;
@@ -5685,6 +6543,10 @@ declare namespace io.flow.v0.models {
5685
6543
  interface PaymentSourceConfirmationAction {
5686
6544
  readonly type: io.flow.v0.enums.PaymentSourceConfirmationActionType;
5687
6545
  }
6546
+ interface PaymentTax {
6547
+ readonly amount: number;
6548
+ readonly name?: string;
6549
+ }
5688
6550
  interface PaymentUpserted {
5689
6551
  readonly discriminator: 'payment_upserted';
5690
6552
  readonly event_id: string;
@@ -6881,6 +7743,13 @@ declare namespace io.flow.v0.models {
6881
7743
  readonly from: number;
6882
7744
  readonly to: number;
6883
7745
  }
7746
+ interface Shipping {
7747
+ readonly description: string;
7748
+ readonly amount: number;
7749
+ readonly tax?: io.flow.v0.models.PaymentTax;
7750
+ readonly duty?: io.flow.v0.models.PaymentDuty;
7751
+ readonly discounts?: io.flow.v0.models.PaymentDiscount[];
7752
+ }
6884
7753
  interface ShippingAddress {
6885
7754
  readonly contact: io.flow.v0.models.Contact;
6886
7755
  readonly location: io.flow.v0.models.Address;
@@ -8036,6 +8905,7 @@ declare namespace io.flow.v0.unions {
8036
8905
  type InventoryStrategy = io.flow.v0.models.InventoryBackorder | io.flow.v0.models.InventoryStock | io.flow.v0.models.InventoryUnlimited | io.flow.v0.models.InventoryFollowEcommercePlatform;
8037
8906
  type LocalizedPrice = io.flow.v0.models.LocalizedItemPrice | io.flow.v0.models.LocalizedItemVat | io.flow.v0.models.LocalizedItemDuty | io.flow.v0.models.LocalizedTotal;
8038
8907
  type OnlineAuthorizationDetails = io.flow.v0.models.CryptopayAuthorizationDetails | io.flow.v0.models.PaypalAuthorizationDetails | io.flow.v0.models.RedirectAuthorizationDetails | io.flow.v0.models.InlineAuthorizationDetails;
8908
+ type OrderInformation = io.flow.v0.models.OrderInformationFlow | io.flow.v0.models.OrderInformationDetails;
8039
8909
  type OrderNumberGenerator = io.flow.v0.models.OrderNumberGeneratorUuid | io.flow.v0.models.OrderNumberGeneratorHexadecimal | io.flow.v0.models.OrderNumberGeneratorPrefixSuffix;
8040
8910
  type OrderPromotion = io.flow.v0.models.FreeShippingOrderPromotion;
8041
8911
  type OrderPromotionForm = io.flow.v0.models.FreeShippingOrderPromotionForm;
@@ -8835,6 +9705,9 @@ export declare type OrderIdentifierUpserted = io.flow.v0.models.OrderIdentifierU
8835
9705
  export declare type OrderIdentifierUpsertedV2 = io.flow.v0.models.OrderIdentifierUpsertedV2;
8836
9706
  export declare type OrderIdentifierUpsertedV3 = io.flow.v0.models.OrderIdentifierUpsertedV3;
8837
9707
  export declare type OrderIdentifierVersion = io.flow.v0.models.OrderIdentifierVersion;
9708
+ export declare type OrderInformation = io.flow.v0.unions.OrderInformation;
9709
+ export declare type OrderInformationDetails = io.flow.v0.models.OrderInformationDetails;
9710
+ export declare type OrderInformationFlow = io.flow.v0.models.OrderInformationFlow;
8838
9711
  export declare type OrderMerchantOfRecord = io.flow.v0.enums.OrderMerchantOfRecord;
8839
9712
  export declare type OrderNumberGenerator = io.flow.v0.unions.OrderNumberGenerator;
8840
9713
  export declare type OrderNumberGeneratorDefaults = io.flow.v0.models.OrderNumberGeneratorDefaults;
@@ -8946,6 +9819,8 @@ export declare type PaymentCaptureForm = io.flow.v0.models.PaymentCaptureForm;
8946
9819
  export declare type PaymentCaptureStatus = io.flow.v0.models.PaymentCaptureStatus;
8947
9820
  export declare type PaymentCryptopay = io.flow.v0.models.PaymentCryptopay;
8948
9821
  export declare type PaymentDeleted = io.flow.v0.models.PaymentDeleted;
9822
+ export declare type PaymentDiscount = io.flow.v0.models.PaymentDiscount;
9823
+ export declare type PaymentDuty = io.flow.v0.models.PaymentDuty;
8949
9824
  export declare type PaymentError = io.flow.v0.models.PaymentError;
8950
9825
  export declare type PaymentErrorCode = io.flow.v0.enums.PaymentErrorCode;
8951
9826
  export declare type PaymentFailure = io.flow.v0.models.PaymentFailure;
@@ -9007,6 +9882,7 @@ export declare type PaymentSourceConfirmationAction = io.flow.v0.models.PaymentS
9007
9882
  export declare type PaymentSourceConfirmationActionType = io.flow.v0.enums.PaymentSourceConfirmationActionType;
9008
9883
  export declare type PaymentSourceForm = io.flow.v0.unions.PaymentSourceForm;
9009
9884
  export declare type PaymentStatus = io.flow.v0.enums.PaymentStatus;
9885
+ export declare type PaymentTax = io.flow.v0.models.PaymentTax;
9010
9886
  export declare type PaymentType = io.flow.v0.enums.PaymentType;
9011
9887
  export declare type PaymentUpserted = io.flow.v0.models.PaymentUpserted;
9012
9888
  export declare type PaymentVersion = io.flow.v0.models.PaymentVersion;
@@ -9241,6 +10117,7 @@ export declare type SessionVisitor = io.flow.v0.models.SessionVisitor;
9241
10117
  export declare type ShipmentIntegrationType = io.flow.v0.enums.ShipmentIntegrationType;
9242
10118
  export declare type ShipmentRecipient = io.flow.v0.enums.ShipmentRecipient;
9243
10119
  export declare type ShipmentWindow = io.flow.v0.models.ShipmentWindow;
10120
+ export declare type Shipping = io.flow.v0.models.Shipping;
9244
10121
  export declare type ShippingAddress = io.flow.v0.models.ShippingAddress;
9245
10122
  export declare type ShippingConfiguration = io.flow.v0.models.ShippingConfiguration;
9246
10123
  export declare type ShippingConfigurationCopy = io.flow.v0.models.ShippingConfigurationCopy;