@flowio/types 11.24.70 → 11.24.71

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.
@@ -1739,7 +1739,7 @@ declare namespace io.flow.stripe.v0.enums {
1739
1739
  type ConfirmationMethod = 'automatic' | 'manual';
1740
1740
  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';
1741
1741
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
1742
- 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';
1742
+ type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'payment_intent.created' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'payment_intent.requires_action' | 'payment_intent.canceled' | 'payment_intent.processing' | 'source.canceled' | 'source.chargeable' | 'source.failed';
1743
1743
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
1744
1744
  type KlarnaProduct = 'payment';
1745
1745
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
@@ -1761,6 +1761,7 @@ declare namespace io.flow.stripe.v0.enums {
1761
1761
  type SourceStatus = 'canceled' | 'chargeable' | 'consumed' | 'failed' | 'pending';
1762
1762
  type SourceType = 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'bitcoin' | 'card' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure';
1763
1763
  type SourceUsageType = 'reusable' | 'single_use';
1764
+ type StoredCredentialTransactionType = 'setup_on_session' | 'setup_off_session_recurring' | 'setup_off_session_unscheduled' | 'stored_on_session' | 'stored_on_session_recurring' | 'stored_on_session_unscheduled';
1764
1765
  type ThreeDSecureSupport = 'required' | 'recommended' | 'optional' | 'not_supported';
1765
1766
  type ThreeDsAuthenticationFlow = 'challenge' | 'frictionless';
1766
1767
  type ThreeDsResult = 'authenticated' | 'attempt_acknowledged' | 'exempted' | 'not_supported' | 'failed' | 'processing_error';
@@ -1847,6 +1848,10 @@ declare namespace io.flow.stripe.v0.models {
1847
1848
  readonly address_postal_code_check?: io.flow.stripe.v0.enums.CheckOutcome;
1848
1849
  readonly cvc_check?: io.flow.stripe.v0.enums.CheckOutcome;
1849
1850
  }
1851
+ interface CardNetworks {
1852
+ readonly available?: string[];
1853
+ readonly preferred?: string;
1854
+ }
1850
1855
  interface CardRequest {
1851
1856
  readonly object: string;
1852
1857
  readonly exp_month: string;
@@ -2000,6 +2005,8 @@ declare namespace io.flow.stripe.v0.models {
2000
2005
  readonly order_number?: string;
2001
2006
  readonly authorization_id?: string;
2002
2007
  readonly organization_id?: string;
2008
+ readonly payment_request_id?: string;
2009
+ readonly payment_request_order_reference?: string;
2003
2010
  }
2004
2011
  interface NetworkTokenUsed {
2005
2012
  readonly used?: boolean;
@@ -2108,6 +2115,7 @@ declare namespace io.flow.stripe.v0.models {
2108
2115
  interface PaymentIntentConfirmationForm {
2109
2116
  readonly off_session?: boolean;
2110
2117
  readonly payment_method?: string;
2118
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
2111
2119
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
2112
2120
  readonly payment_method_types?: string[];
2113
2121
  readonly receipt_email?: string;
@@ -2127,6 +2135,7 @@ declare namespace io.flow.stripe.v0.models {
2127
2135
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
2128
2136
  readonly on_behalf_of?: string;
2129
2137
  readonly payment_method?: string;
2138
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
2130
2139
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
2131
2140
  readonly payment_method_types?: string[];
2132
2141
  readonly receipt_email?: string;
@@ -2157,7 +2166,7 @@ declare namespace io.flow.stripe.v0.models {
2157
2166
  readonly id: string;
2158
2167
  readonly object: string;
2159
2168
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
2160
- readonly card?: io.flow.stripe.v0.models.SourceCard;
2169
+ readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
2161
2170
  readonly card_present?: any;
2162
2171
  readonly created: number;
2163
2172
  readonly customer?: string;
@@ -2170,6 +2179,30 @@ declare namespace io.flow.stripe.v0.models {
2170
2179
  readonly name?: string;
2171
2180
  readonly phone?: string;
2172
2181
  }
2182
+ interface PaymentMethodCardDetails {
2183
+ readonly brand?: io.flow.stripe.v0.enums.CardBrand;
2184
+ readonly checks?: io.flow.stripe.v0.models.CardChecks;
2185
+ readonly country?: string;
2186
+ readonly exp_month?: number;
2187
+ readonly exp_year?: number;
2188
+ readonly fingerprint?: string;
2189
+ readonly funding?: io.flow.stripe.v0.enums.CardFundingType;
2190
+ readonly last4?: string;
2191
+ readonly networks?: io.flow.stripe.v0.models.CardNetworks;
2192
+ readonly three_d_secure_usage?: io.flow.stripe.v0.models.ThreeDSecureUsage;
2193
+ }
2194
+ interface PaymentMethodCardForm {
2195
+ readonly exp_month: string;
2196
+ readonly exp_year: string;
2197
+ readonly number: string;
2198
+ readonly cvc?: string;
2199
+ }
2200
+ interface PaymentMethodDataCard {
2201
+ readonly type: 'card';
2202
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
2203
+ readonly metadata?: any;
2204
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
2205
+ }
2173
2206
  interface PaymentMethodDetailsCard {
2174
2207
  readonly type: 'card';
2175
2208
  readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -2203,16 +2236,19 @@ declare namespace io.flow.stripe.v0.models {
2203
2236
  readonly payment_method_category?: io.flow.stripe.v0.enums.PaymentMethodCategoryKlarna;
2204
2237
  readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
2205
2238
  }
2206
- interface PaymentMethodForm {
2207
- readonly type: io.flow.stripe.v0.enums.PaymentMethodType;
2239
+ interface PaymentMethodFormCard {
2240
+ readonly type: 'card';
2208
2241
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
2209
- readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
2242
+ readonly metadata?: any;
2243
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
2210
2244
  }
2211
2245
  interface PaymentMethodOptions {
2212
2246
  readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
2213
2247
  }
2214
2248
  interface PaymentMethodOptionsCard {
2249
+ readonly network?: string;
2215
2250
  readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
2251
+ readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
2216
2252
  }
2217
2253
  interface PaymentOutcome {
2218
2254
  readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
@@ -2438,6 +2474,9 @@ declare namespace io.flow.stripe.v0.models {
2438
2474
  readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
2439
2475
  readonly stripe_js: string;
2440
2476
  }
2477
+ interface ThreeDSecureUsage {
2478
+ readonly supported?: boolean;
2479
+ }
2441
2480
  interface Token {
2442
2481
  readonly id: string;
2443
2482
  readonly object: string;
@@ -2471,7 +2510,9 @@ declare namespace io.flow.stripe.v0.models {
2471
2510
  }
2472
2511
  declare namespace io.flow.stripe.v0.unions {
2473
2512
  type CardWallet = io.flow.stripe.v0.models.Masterpass | io.flow.stripe.v0.models.ApplePay | io.flow.stripe.v0.models.VisaCheckout;
2513
+ type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
2474
2514
  type PaymentMethodDetails = io.flow.stripe.v0.models.PaymentMethodDetailsCard | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
2515
+ type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
2475
2516
  }
2476
2517
  declare namespace io.flow.customer.v0.enums {
2477
2518
  type CustomerAddressType = 'billing' | 'invoice' | 'shipping';
@@ -9434,6 +9475,11 @@ declare namespace io.flow.billing.v0.models {
9434
9475
  readonly created_at: string;
9435
9476
  readonly updated_at: string;
9436
9477
  }
9478
+ interface PendingTransaction {
9479
+ readonly id: string;
9480
+ readonly reason: io.flow.billing.v0.enums.TransactionPayoutPendingReason;
9481
+ readonly reason_set_at: string;
9482
+ }
9437
9483
  interface SettlementNoPayout {
9438
9484
  readonly discriminator: 'no_payout';
9439
9485
  readonly placeholder?: string;
@@ -10461,17 +10507,17 @@ declare namespace io.flow.catalog.RESERVED_WORD_return.v0.models {
10461
10507
  }
10462
10508
  }
10463
10509
  declare namespace io.flow.apple.pay.v0.enums {
10464
- type ApplePayContactField = 'email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName';
10510
+ type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
10465
10511
  type ApplePayLineItemType = 'final' | 'pending';
10466
10512
  type ApplePayMerchantCapability = 'supports3DS' | 'supportsCredit' | 'supportsDebit' | 'supportsEMV';
10467
- type ApplePayShippingType = 'shipping' | 'delivery' | 'storePickup' | 'servicePickup';
10513
+ type ApplePayShippingType = 'shipping' | 'delivery' | 'store_pickup' | 'service_pickup';
10468
10514
  type ApplePaySupportedNetworks = 'amex' | 'chinaUnionPay' | 'discover' | 'jcb' | 'masterCard' | 'privateLabel' | 'visa';
10469
10515
  }
10470
10516
  declare namespace io.flow.apple.pay.v0.models {
10471
10517
  interface ApplePayLineItem {
10472
10518
  readonly label: string;
10473
10519
  readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
10474
- readonly amount: string;
10520
+ readonly amount: number;
10475
10521
  }
10476
10522
  interface ApplePayPaymentContact {
10477
10523
  readonly email_address?: string;
@@ -10518,7 +10564,7 @@ declare namespace io.flow.apple.pay.v0.models {
10518
10564
  interface ApplePayShippingMethod {
10519
10565
  readonly label: string;
10520
10566
  readonly detail: string;
10521
- readonly amount: string;
10567
+ readonly amount: number;
10522
10568
  readonly identifier: string;
10523
10569
  }
10524
10570
  }
package/dist/api.d.ts CHANGED
@@ -140,7 +140,7 @@ declare namespace io.flow.stripe.v0.enums {
140
140
  type ConfirmationMethod = 'automatic' | 'manual';
141
141
  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';
142
142
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
143
- 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';
143
+ type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'payment_intent.created' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'payment_intent.requires_action' | 'payment_intent.canceled' | 'payment_intent.processing' | 'source.canceled' | 'source.chargeable' | 'source.failed';
144
144
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
145
145
  type KlarnaProduct = 'payment';
146
146
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
@@ -162,6 +162,7 @@ declare namespace io.flow.stripe.v0.enums {
162
162
  type SourceStatus = 'canceled' | 'chargeable' | 'consumed' | 'failed' | 'pending';
163
163
  type SourceType = 'ach_credit_transfer' | 'ach_debit' | 'alipay' | 'bancontact' | 'bitcoin' | 'card' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_debit' | 'sofort' | 'three_d_secure';
164
164
  type SourceUsageType = 'reusable' | 'single_use';
165
+ type StoredCredentialTransactionType = 'setup_on_session' | 'setup_off_session_recurring' | 'setup_off_session_unscheduled' | 'stored_on_session' | 'stored_on_session_recurring' | 'stored_on_session_unscheduled';
165
166
  type ThreeDSecureSupport = 'required' | 'recommended' | 'optional' | 'not_supported';
166
167
  type ThreeDsAuthenticationFlow = 'challenge' | 'frictionless';
167
168
  type ThreeDsResult = 'authenticated' | 'attempt_acknowledged' | 'exempted' | 'not_supported' | 'failed' | 'processing_error';
@@ -248,6 +249,10 @@ declare namespace io.flow.stripe.v0.models {
248
249
  readonly address_postal_code_check?: io.flow.stripe.v0.enums.CheckOutcome;
249
250
  readonly cvc_check?: io.flow.stripe.v0.enums.CheckOutcome;
250
251
  }
252
+ interface CardNetworks {
253
+ readonly available?: string[];
254
+ readonly preferred?: string;
255
+ }
251
256
  interface CardRequest {
252
257
  readonly object: string;
253
258
  readonly exp_month: string;
@@ -401,6 +406,8 @@ declare namespace io.flow.stripe.v0.models {
401
406
  readonly order_number?: string;
402
407
  readonly authorization_id?: string;
403
408
  readonly organization_id?: string;
409
+ readonly payment_request_id?: string;
410
+ readonly payment_request_order_reference?: string;
404
411
  }
405
412
  interface NetworkTokenUsed {
406
413
  readonly used?: boolean;
@@ -509,6 +516,7 @@ declare namespace io.flow.stripe.v0.models {
509
516
  interface PaymentIntentConfirmationForm {
510
517
  readonly off_session?: boolean;
511
518
  readonly payment_method?: string;
519
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
512
520
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
513
521
  readonly payment_method_types?: string[];
514
522
  readonly receipt_email?: string;
@@ -528,6 +536,7 @@ declare namespace io.flow.stripe.v0.models {
528
536
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
529
537
  readonly on_behalf_of?: string;
530
538
  readonly payment_method?: string;
539
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
531
540
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
532
541
  readonly payment_method_types?: string[];
533
542
  readonly receipt_email?: string;
@@ -558,7 +567,7 @@ declare namespace io.flow.stripe.v0.models {
558
567
  readonly id: string;
559
568
  readonly object: string;
560
569
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
561
- readonly card?: io.flow.stripe.v0.models.SourceCard;
570
+ readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
562
571
  readonly card_present?: any;
563
572
  readonly created: number;
564
573
  readonly customer?: string;
@@ -571,6 +580,30 @@ declare namespace io.flow.stripe.v0.models {
571
580
  readonly name?: string;
572
581
  readonly phone?: string;
573
582
  }
583
+ interface PaymentMethodCardDetails {
584
+ readonly brand?: io.flow.stripe.v0.enums.CardBrand;
585
+ readonly checks?: io.flow.stripe.v0.models.CardChecks;
586
+ readonly country?: string;
587
+ readonly exp_month?: number;
588
+ readonly exp_year?: number;
589
+ readonly fingerprint?: string;
590
+ readonly funding?: io.flow.stripe.v0.enums.CardFundingType;
591
+ readonly last4?: string;
592
+ readonly networks?: io.flow.stripe.v0.models.CardNetworks;
593
+ readonly three_d_secure_usage?: io.flow.stripe.v0.models.ThreeDSecureUsage;
594
+ }
595
+ interface PaymentMethodCardForm {
596
+ readonly exp_month: string;
597
+ readonly exp_year: string;
598
+ readonly number: string;
599
+ readonly cvc?: string;
600
+ }
601
+ interface PaymentMethodDataCard {
602
+ readonly type: 'card';
603
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
604
+ readonly metadata?: any;
605
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
606
+ }
574
607
  interface PaymentMethodDetailsCard {
575
608
  readonly type: 'card';
576
609
  readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -604,16 +637,19 @@ declare namespace io.flow.stripe.v0.models {
604
637
  readonly payment_method_category?: io.flow.stripe.v0.enums.PaymentMethodCategoryKlarna;
605
638
  readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
606
639
  }
607
- interface PaymentMethodForm {
608
- readonly type: io.flow.stripe.v0.enums.PaymentMethodType;
640
+ interface PaymentMethodFormCard {
641
+ readonly type: 'card';
609
642
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
610
- readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
643
+ readonly metadata?: any;
644
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
611
645
  }
612
646
  interface PaymentMethodOptions {
613
647
  readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
614
648
  }
615
649
  interface PaymentMethodOptionsCard {
650
+ readonly network?: string;
616
651
  readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
652
+ readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
617
653
  }
618
654
  interface PaymentOutcome {
619
655
  readonly network_status: io.flow.stripe.v0.enums.NetworkStatus;
@@ -839,6 +875,9 @@ declare namespace io.flow.stripe.v0.models {
839
875
  readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
840
876
  readonly stripe_js: string;
841
877
  }
878
+ interface ThreeDSecureUsage {
879
+ readonly supported?: boolean;
880
+ }
842
881
  interface Token {
843
882
  readonly id: string;
844
883
  readonly object: string;
@@ -872,7 +911,9 @@ declare namespace io.flow.stripe.v0.models {
872
911
  }
873
912
  declare namespace io.flow.stripe.v0.unions {
874
913
  type CardWallet = io.flow.stripe.v0.models.Masterpass | io.flow.stripe.v0.models.ApplePay | io.flow.stripe.v0.models.VisaCheckout;
914
+ type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
875
915
  type PaymentMethodDetails = io.flow.stripe.v0.models.PaymentMethodDetailsCard | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
916
+ type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
876
917
  }
877
918
  declare namespace io.flow.units.v0.enums {
878
919
  type UnitOfLength = 'millimeter' | 'centimeter' | 'inch' | 'foot' | 'meter';
@@ -1705,17 +1746,17 @@ declare namespace io.flow.ben.test.internal.v0.unions {
1705
1746
  type GenerateLoad = io.flow.ben.test.internal.v0.models.GenerateLoadSingleOrg | io.flow.ben.test.internal.v0.models.GenerateLoadMultipleOrgs;
1706
1747
  }
1707
1748
  declare namespace io.flow.apple.pay.v0.enums {
1708
- type ApplePayContactField = 'email' | 'name' | 'phone' | 'postalAddress' | 'phoneticName';
1749
+ type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
1709
1750
  type ApplePayLineItemType = 'final' | 'pending';
1710
1751
  type ApplePayMerchantCapability = 'supports3DS' | 'supportsCredit' | 'supportsDebit' | 'supportsEMV';
1711
- type ApplePayShippingType = 'shipping' | 'delivery' | 'storePickup' | 'servicePickup';
1752
+ type ApplePayShippingType = 'shipping' | 'delivery' | 'store_pickup' | 'service_pickup';
1712
1753
  type ApplePaySupportedNetworks = 'amex' | 'chinaUnionPay' | 'discover' | 'jcb' | 'masterCard' | 'privateLabel' | 'visa';
1713
1754
  }
1714
1755
  declare namespace io.flow.apple.pay.v0.models {
1715
1756
  interface ApplePayLineItem {
1716
1757
  readonly label: string;
1717
1758
  readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
1718
- readonly amount: string;
1759
+ readonly amount: number;
1719
1760
  }
1720
1761
  interface ApplePayPaymentContact {
1721
1762
  readonly email_address?: string;
@@ -1762,7 +1803,7 @@ declare namespace io.flow.apple.pay.v0.models {
1762
1803
  interface ApplePayShippingMethod {
1763
1804
  readonly label: string;
1764
1805
  readonly detail: string;
1765
- readonly amount: string;
1806
+ readonly amount: number;
1766
1807
  readonly identifier: string;
1767
1808
  }
1768
1809
  }
@@ -8046,6 +8087,11 @@ declare namespace io.flow.v0.models {
8046
8087
  readonly starts_at?: string;
8047
8088
  readonly ends_at?: string;
8048
8089
  }
8090
+ interface PendingTransaction {
8091
+ readonly id: string;
8092
+ readonly reason: io.flow.v0.enums.TransactionPayoutPendingReason;
8093
+ readonly reason_set_at: string;
8094
+ }
8049
8095
  interface PercentMargin {
8050
8096
  readonly discriminator: 'percent_margin';
8051
8097
  readonly percentage: number;
@@ -10490,6 +10536,19 @@ declare namespace io.flow.v0.models {
10490
10536
  readonly cvv_result?: io.flow.v0.models.CvvResult;
10491
10537
  readonly network_details?: io.flow.v0.models.TransactionNetworkDetailsCard;
10492
10538
  }
10539
+ interface TransactionMetadataChannel {
10540
+ readonly discriminator: 'channel';
10541
+ readonly method: string;
10542
+ readonly card?: io.flow.v0.models.TransactionMetadataChannelCardMetadata;
10543
+ }
10544
+ interface TransactionMetadataChannelCardMetadata {
10545
+ readonly type: io.flow.v0.enums.CardType;
10546
+ readonly issuer: io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
10547
+ }
10548
+ interface TransactionMetadataChannelCardMetadataIssuerSummary {
10549
+ readonly iin: string;
10550
+ readonly country: string;
10551
+ }
10493
10552
  interface TransactionMetadataShippingLabel {
10494
10553
  readonly discriminator: 'shipping_label';
10495
10554
  readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
@@ -10852,7 +10911,7 @@ declare namespace io.flow.v0.unions {
10852
10911
  type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken;
10853
10912
  type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference;
10854
10913
  type TransactionDetails = io.flow.v0.models.TransactionDetailsCard;
10855
- type TransactionMetadata = io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataTrueup;
10914
+ type TransactionMetadata = io.flow.v0.models.TransactionMetadataShippingLabel | io.flow.v0.models.TransactionMetadataChannel | io.flow.v0.models.TransactionMetadataTrueup;
10856
10915
  }
10857
10916
  export declare type AbandonedOrderEmailSettings = io.flow.v0.models.AbandonedOrderEmailSettings;
10858
10917
  export declare type AbandonedOrderPromotion = io.flow.v0.models.AbandonedOrderPromotion;
@@ -12048,6 +12107,7 @@ export declare type PaypalAuthorizationForm = io.flow.v0.models.PaypalAuthorizat
12048
12107
  export declare type PeakSurchargeByWeightServiceFee = io.flow.v0.models.PeakSurchargeByWeightServiceFee;
12049
12108
  export declare type PeakSurchargeRatecardFee = io.flow.v0.models.PeakSurchargeRatecardFee;
12050
12109
  export declare type PeakSurchargeServiceFee = io.flow.v0.models.PeakSurchargeServiceFee;
12110
+ export declare type PendingTransaction = io.flow.v0.models.PendingTransaction;
12051
12111
  export declare type PercentMargin = io.flow.v0.models.PercentMargin;
12052
12112
  export declare type PermissionAudit = io.flow.v0.models.PermissionAudit;
12053
12113
  export declare type PermissionCheck = io.flow.v0.models.PermissionCheck;
@@ -12511,6 +12571,9 @@ export declare type Transaction = io.flow.v0.models.Transaction;
12511
12571
  export declare type TransactionDetails = io.flow.v0.unions.TransactionDetails;
12512
12572
  export declare type TransactionDetailsCard = io.flow.v0.models.TransactionDetailsCard;
12513
12573
  export declare type TransactionMetadata = io.flow.v0.unions.TransactionMetadata;
12574
+ export declare type TransactionMetadataChannel = io.flow.v0.models.TransactionMetadataChannel;
12575
+ export declare type TransactionMetadataChannelCardMetadata = io.flow.v0.models.TransactionMetadataChannelCardMetadata;
12576
+ export declare type TransactionMetadataChannelCardMetadataIssuerSummary = io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
12514
12577
  export declare type TransactionMetadataShippingLabel = io.flow.v0.models.TransactionMetadataShippingLabel;
12515
12578
  export declare type TransactionMetadataTrueup = io.flow.v0.models.TransactionMetadataTrueup;
12516
12579
  export declare type TransactionMetadataTrueupData = io.flow.v0.models.TransactionMetadataTrueupData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.24.70",
3
+ "version": "11.24.71",
4
4
  "description": "TypeScript type definitions for custom types found in Flow API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,5 +25,5 @@
25
25
  "maintainers": [
26
26
  "Christian Muñoz <christian.munoz@flow.io>"
27
27
  ],
28
- "gitHead": "1c87d63f654d1b7f4aa3ef5237a2cf0558fda3d5"
28
+ "gitHead": "cc45ff4a674f1a129166e04d6910cb7a1a2f0da1"
29
29
  }
@@ -2341,12 +2341,17 @@ declare namespace io.flow.stripe.v0.enums {
2341
2341
  | 'charge.failed'
2342
2342
  | 'charge.pending'
2343
2343
  | 'charge.refunded'
2344
- | 'charge.refund.updated'
2344
+ | 'charge.expired'
2345
2345
  | 'charge.succeeded'
2346
2346
  | 'charge.updated'
2347
+ | 'charge.refund.updated'
2348
+ | 'payment_intent.created'
2347
2349
  | 'payment_intent.amount_capturable_updated'
2348
2350
  | 'payment_intent.payment_failed'
2349
2351
  | 'payment_intent.succeeded'
2352
+ | 'payment_intent.requires_action'
2353
+ | 'payment_intent.canceled'
2354
+ | 'payment_intent.processing'
2350
2355
  | 'source.canceled'
2351
2356
  | 'source.chargeable'
2352
2357
  | 'source.failed';
@@ -2466,6 +2471,13 @@ declare namespace io.flow.stripe.v0.enums {
2466
2471
  | 'sofort'
2467
2472
  | 'three_d_secure';
2468
2473
  type SourceUsageType = 'reusable' | 'single_use';
2474
+ type StoredCredentialTransactionType =
2475
+ | 'setup_on_session'
2476
+ | 'setup_off_session_recurring'
2477
+ | 'setup_off_session_unscheduled'
2478
+ | 'stored_on_session'
2479
+ | 'stored_on_session_recurring'
2480
+ | 'stored_on_session_unscheduled';
2469
2481
  type ThreeDSecureSupport =
2470
2482
  | 'required'
2471
2483
  | 'recommended'
@@ -2577,6 +2589,11 @@ declare namespace io.flow.stripe.v0.models {
2577
2589
  readonly cvc_check?: io.flow.stripe.v0.enums.CheckOutcome;
2578
2590
  }
2579
2591
 
2592
+ interface CardNetworks {
2593
+ readonly available?: string[];
2594
+ readonly preferred?: string;
2595
+ }
2596
+
2580
2597
  interface CardRequest {
2581
2598
  readonly object: string;
2582
2599
  readonly exp_month: string;
@@ -2746,6 +2763,8 @@ declare namespace io.flow.stripe.v0.models {
2746
2763
  readonly order_number?: string;
2747
2764
  readonly authorization_id?: string;
2748
2765
  readonly organization_id?: string;
2766
+ readonly payment_request_id?: string;
2767
+ readonly payment_request_order_reference?: string;
2749
2768
  }
2750
2769
 
2751
2770
  interface NetworkTokenUsed {
@@ -2866,6 +2885,7 @@ declare namespace io.flow.stripe.v0.models {
2866
2885
  interface PaymentIntentConfirmationForm {
2867
2886
  readonly off_session?: boolean;
2868
2887
  readonly payment_method?: string;
2888
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
2869
2889
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
2870
2890
  readonly payment_method_types?: string[];
2871
2891
  readonly receipt_email?: string;
@@ -2886,6 +2906,7 @@ declare namespace io.flow.stripe.v0.models {
2886
2906
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
2887
2907
  readonly on_behalf_of?: string;
2888
2908
  readonly payment_method?: string;
2909
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
2889
2910
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
2890
2911
  readonly payment_method_types?: string[];
2891
2912
  readonly receipt_email?: string;
@@ -2918,7 +2939,7 @@ declare namespace io.flow.stripe.v0.models {
2918
2939
  readonly id: string;
2919
2940
  readonly object: string;
2920
2941
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
2921
- readonly card?: io.flow.stripe.v0.models.SourceCard;
2942
+ readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
2922
2943
  readonly card_present?: any /*object*/;
2923
2944
  readonly created: number;
2924
2945
  readonly customer?: string;
@@ -2933,6 +2954,33 @@ declare namespace io.flow.stripe.v0.models {
2933
2954
  readonly phone?: string;
2934
2955
  }
2935
2956
 
2957
+ interface PaymentMethodCardDetails {
2958
+ readonly brand?: io.flow.stripe.v0.enums.CardBrand;
2959
+ readonly checks?: io.flow.stripe.v0.models.CardChecks;
2960
+ readonly country?: string;
2961
+ readonly exp_month?: number;
2962
+ readonly exp_year?: number;
2963
+ readonly fingerprint?: string;
2964
+ readonly funding?: io.flow.stripe.v0.enums.CardFundingType;
2965
+ readonly last4?: string;
2966
+ readonly networks?: io.flow.stripe.v0.models.CardNetworks;
2967
+ readonly three_d_secure_usage?: io.flow.stripe.v0.models.ThreeDSecureUsage;
2968
+ }
2969
+
2970
+ interface PaymentMethodCardForm {
2971
+ readonly exp_month: string;
2972
+ readonly exp_year: string;
2973
+ readonly number: string;
2974
+ readonly cvc?: string;
2975
+ }
2976
+
2977
+ interface PaymentMethodDataCard {
2978
+ readonly type: 'card';
2979
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
2980
+ readonly metadata?: any /*object*/;
2981
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
2982
+ }
2983
+
2936
2984
  interface PaymentMethodDetailsCard {
2937
2985
  readonly type: 'card';
2938
2986
  readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -2970,10 +3018,11 @@ declare namespace io.flow.stripe.v0.models {
2970
3018
  readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
2971
3019
  }
2972
3020
 
2973
- interface PaymentMethodForm {
2974
- readonly type: io.flow.stripe.v0.enums.PaymentMethodType;
3021
+ interface PaymentMethodFormCard {
3022
+ readonly type: 'card';
2975
3023
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
2976
- readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
3024
+ readonly metadata?: any /*object*/;
3025
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
2977
3026
  }
2978
3027
 
2979
3028
  interface PaymentMethodOptions {
@@ -2981,7 +3030,9 @@ declare namespace io.flow.stripe.v0.models {
2981
3030
  }
2982
3031
 
2983
3032
  interface PaymentMethodOptionsCard {
3033
+ readonly network?: string;
2984
3034
  readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
3035
+ readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
2985
3036
  }
2986
3037
 
2987
3038
  interface PaymentOutcome {
@@ -3233,6 +3284,10 @@ declare namespace io.flow.stripe.v0.models {
3233
3284
  readonly stripe_js: string;
3234
3285
  }
3235
3286
 
3287
+ interface ThreeDSecureUsage {
3288
+ readonly supported?: boolean;
3289
+ }
3290
+
3236
3291
  interface Token {
3237
3292
  readonly id: string;
3238
3293
  readonly object: string;
@@ -3274,9 +3329,11 @@ declare namespace io.flow.stripe.v0.unions {
3274
3329
  | io.flow.stripe.v0.models.Masterpass
3275
3330
  | io.flow.stripe.v0.models.ApplePay
3276
3331
  | io.flow.stripe.v0.models.VisaCheckout;
3332
+ type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
3277
3333
  type PaymentMethodDetails =
3278
3334
  | io.flow.stripe.v0.models.PaymentMethodDetailsCard
3279
3335
  | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
3336
+ type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
3280
3337
  }
3281
3338
 
3282
3339
  declare namespace io.flow.customer.v0.enums {
@@ -12489,6 +12546,12 @@ declare namespace io.flow.billing.v0.models {
12489
12546
  readonly updated_at: string;
12490
12547
  }
12491
12548
 
12549
+ interface PendingTransaction {
12550
+ readonly id: string;
12551
+ readonly reason: io.flow.billing.v0.enums.TransactionPayoutPendingReason;
12552
+ readonly reason_set_at: string;
12553
+ }
12554
+
12492
12555
  interface SettlementNoPayout {
12493
12556
  readonly discriminator: 'no_payout';
12494
12557
  readonly placeholder?: string;
@@ -13749,8 +13812,8 @@ declare namespace io.flow.apple.pay.v0.enums {
13749
13812
  | 'email'
13750
13813
  | 'name'
13751
13814
  | 'phone'
13752
- | 'postalAddress'
13753
- | 'phoneticName';
13815
+ | 'postal_address'
13816
+ | 'phonetic_name';
13754
13817
  type ApplePayLineItemType = 'final' | 'pending';
13755
13818
  type ApplePayMerchantCapability =
13756
13819
  | 'supports3DS'
@@ -13760,8 +13823,8 @@ declare namespace io.flow.apple.pay.v0.enums {
13760
13823
  type ApplePayShippingType =
13761
13824
  | 'shipping'
13762
13825
  | 'delivery'
13763
- | 'storePickup'
13764
- | 'servicePickup';
13826
+ | 'store_pickup'
13827
+ | 'service_pickup';
13765
13828
  type ApplePaySupportedNetworks =
13766
13829
  | 'amex'
13767
13830
  | 'chinaUnionPay'
@@ -13776,7 +13839,7 @@ declare namespace io.flow.apple.pay.v0.models {
13776
13839
  interface ApplePayLineItem {
13777
13840
  readonly label: string;
13778
13841
  readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
13779
- readonly amount: string;
13842
+ readonly amount: number;
13780
13843
  }
13781
13844
 
13782
13845
  interface ApplePayPaymentContact {
@@ -13827,7 +13890,7 @@ declare namespace io.flow.apple.pay.v0.models {
13827
13890
  interface ApplePayShippingMethod {
13828
13891
  readonly label: string;
13829
13892
  readonly detail: string;
13830
- readonly amount: string;
13893
+ readonly amount: number;
13831
13894
  readonly identifier: string;
13832
13895
  }
13833
13896
  }
package/src/api.ts CHANGED
@@ -255,12 +255,17 @@ declare namespace io.flow.stripe.v0.enums {
255
255
  | 'charge.failed'
256
256
  | 'charge.pending'
257
257
  | 'charge.refunded'
258
- | 'charge.refund.updated'
258
+ | 'charge.expired'
259
259
  | 'charge.succeeded'
260
260
  | 'charge.updated'
261
+ | 'charge.refund.updated'
262
+ | 'payment_intent.created'
261
263
  | 'payment_intent.amount_capturable_updated'
262
264
  | 'payment_intent.payment_failed'
263
265
  | 'payment_intent.succeeded'
266
+ | 'payment_intent.requires_action'
267
+ | 'payment_intent.canceled'
268
+ | 'payment_intent.processing'
264
269
  | 'source.canceled'
265
270
  | 'source.chargeable'
266
271
  | 'source.failed';
@@ -380,6 +385,13 @@ declare namespace io.flow.stripe.v0.enums {
380
385
  | 'sofort'
381
386
  | 'three_d_secure';
382
387
  type SourceUsageType = 'reusable' | 'single_use';
388
+ type StoredCredentialTransactionType =
389
+ | 'setup_on_session'
390
+ | 'setup_off_session_recurring'
391
+ | 'setup_off_session_unscheduled'
392
+ | 'stored_on_session'
393
+ | 'stored_on_session_recurring'
394
+ | 'stored_on_session_unscheduled';
383
395
  type ThreeDSecureSupport =
384
396
  | 'required'
385
397
  | 'recommended'
@@ -491,6 +503,11 @@ declare namespace io.flow.stripe.v0.models {
491
503
  readonly cvc_check?: io.flow.stripe.v0.enums.CheckOutcome;
492
504
  }
493
505
 
506
+ interface CardNetworks {
507
+ readonly available?: string[];
508
+ readonly preferred?: string;
509
+ }
510
+
494
511
  interface CardRequest {
495
512
  readonly object: string;
496
513
  readonly exp_month: string;
@@ -660,6 +677,8 @@ declare namespace io.flow.stripe.v0.models {
660
677
  readonly order_number?: string;
661
678
  readonly authorization_id?: string;
662
679
  readonly organization_id?: string;
680
+ readonly payment_request_id?: string;
681
+ readonly payment_request_order_reference?: string;
663
682
  }
664
683
 
665
684
  interface NetworkTokenUsed {
@@ -780,6 +799,7 @@ declare namespace io.flow.stripe.v0.models {
780
799
  interface PaymentIntentConfirmationForm {
781
800
  readonly off_session?: boolean;
782
801
  readonly payment_method?: string;
802
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
783
803
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
784
804
  readonly payment_method_types?: string[];
785
805
  readonly receipt_email?: string;
@@ -800,6 +820,7 @@ declare namespace io.flow.stripe.v0.models {
800
820
  readonly metadata?: io.flow.stripe.v0.models.Metadata;
801
821
  readonly on_behalf_of?: string;
802
822
  readonly payment_method?: string;
823
+ readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
803
824
  readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptions;
804
825
  readonly payment_method_types?: string[];
805
826
  readonly receipt_email?: string;
@@ -832,7 +853,7 @@ declare namespace io.flow.stripe.v0.models {
832
853
  readonly id: string;
833
854
  readonly object: string;
834
855
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
835
- readonly card?: io.flow.stripe.v0.models.SourceCard;
856
+ readonly card?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
836
857
  readonly card_present?: any /*object*/;
837
858
  readonly created: number;
838
859
  readonly customer?: string;
@@ -847,6 +868,33 @@ declare namespace io.flow.stripe.v0.models {
847
868
  readonly phone?: string;
848
869
  }
849
870
 
871
+ interface PaymentMethodCardDetails {
872
+ readonly brand?: io.flow.stripe.v0.enums.CardBrand;
873
+ readonly checks?: io.flow.stripe.v0.models.CardChecks;
874
+ readonly country?: string;
875
+ readonly exp_month?: number;
876
+ readonly exp_year?: number;
877
+ readonly fingerprint?: string;
878
+ readonly funding?: io.flow.stripe.v0.enums.CardFundingType;
879
+ readonly last4?: string;
880
+ readonly networks?: io.flow.stripe.v0.models.CardNetworks;
881
+ readonly three_d_secure_usage?: io.flow.stripe.v0.models.ThreeDSecureUsage;
882
+ }
883
+
884
+ interface PaymentMethodCardForm {
885
+ readonly exp_month: string;
886
+ readonly exp_year: string;
887
+ readonly number: string;
888
+ readonly cvc?: string;
889
+ }
890
+
891
+ interface PaymentMethodDataCard {
892
+ readonly type: 'card';
893
+ readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
894
+ readonly metadata?: any /*object*/;
895
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
896
+ }
897
+
850
898
  interface PaymentMethodDetailsCard {
851
899
  readonly type: 'card';
852
900
  readonly card: io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
@@ -884,10 +932,11 @@ declare namespace io.flow.stripe.v0.models {
884
932
  readonly preferred_locale?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
885
933
  }
886
934
 
887
- interface PaymentMethodForm {
888
- readonly type: io.flow.stripe.v0.enums.PaymentMethodType;
935
+ interface PaymentMethodFormCard {
936
+ readonly type: 'card';
889
937
  readonly billing_details?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
890
- readonly card?: io.flow.stripe.v0.models.SourceCardRequest;
938
+ readonly metadata?: any /*object*/;
939
+ readonly card: io.flow.stripe.v0.models.PaymentMethodCardForm;
891
940
  }
892
941
 
893
942
  interface PaymentMethodOptions {
@@ -895,7 +944,9 @@ declare namespace io.flow.stripe.v0.models {
895
944
  }
896
945
 
897
946
  interface PaymentMethodOptionsCard {
947
+ readonly network?: string;
898
948
  readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
949
+ readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
899
950
  }
900
951
 
901
952
  interface PaymentOutcome {
@@ -1147,6 +1198,10 @@ declare namespace io.flow.stripe.v0.models {
1147
1198
  readonly stripe_js: string;
1148
1199
  }
1149
1200
 
1201
+ interface ThreeDSecureUsage {
1202
+ readonly supported?: boolean;
1203
+ }
1204
+
1150
1205
  interface Token {
1151
1206
  readonly id: string;
1152
1207
  readonly object: string;
@@ -1188,9 +1243,11 @@ declare namespace io.flow.stripe.v0.unions {
1188
1243
  | io.flow.stripe.v0.models.Masterpass
1189
1244
  | io.flow.stripe.v0.models.ApplePay
1190
1245
  | io.flow.stripe.v0.models.VisaCheckout;
1246
+ type PaymentMethodData = io.flow.stripe.v0.models.PaymentMethodDataCard;
1191
1247
  type PaymentMethodDetails =
1192
1248
  | io.flow.stripe.v0.models.PaymentMethodDetailsCard
1193
1249
  | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna;
1250
+ type PaymentMethodForm = io.flow.stripe.v0.models.PaymentMethodFormCard;
1194
1251
  }
1195
1252
 
1196
1253
  declare namespace io.flow.units.v0.enums {
@@ -2230,8 +2287,8 @@ declare namespace io.flow.apple.pay.v0.enums {
2230
2287
  | 'email'
2231
2288
  | 'name'
2232
2289
  | 'phone'
2233
- | 'postalAddress'
2234
- | 'phoneticName';
2290
+ | 'postal_address'
2291
+ | 'phonetic_name';
2235
2292
  type ApplePayLineItemType = 'final' | 'pending';
2236
2293
  type ApplePayMerchantCapability =
2237
2294
  | 'supports3DS'
@@ -2241,8 +2298,8 @@ declare namespace io.flow.apple.pay.v0.enums {
2241
2298
  type ApplePayShippingType =
2242
2299
  | 'shipping'
2243
2300
  | 'delivery'
2244
- | 'storePickup'
2245
- | 'servicePickup';
2301
+ | 'store_pickup'
2302
+ | 'service_pickup';
2246
2303
  type ApplePaySupportedNetworks =
2247
2304
  | 'amex'
2248
2305
  | 'chinaUnionPay'
@@ -2257,7 +2314,7 @@ declare namespace io.flow.apple.pay.v0.models {
2257
2314
  interface ApplePayLineItem {
2258
2315
  readonly label: string;
2259
2316
  readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
2260
- readonly amount: string;
2317
+ readonly amount: number;
2261
2318
  }
2262
2319
 
2263
2320
  interface ApplePayPaymentContact {
@@ -2308,7 +2365,7 @@ declare namespace io.flow.apple.pay.v0.models {
2308
2365
  interface ApplePayShippingMethod {
2309
2366
  readonly label: string;
2310
2367
  readonly detail: string;
2311
- readonly amount: string;
2368
+ readonly amount: number;
2312
2369
  readonly identifier: string;
2313
2370
  }
2314
2371
  }
@@ -10422,6 +10479,12 @@ declare namespace io.flow.v0.models {
10422
10479
  readonly ends_at?: string;
10423
10480
  }
10424
10481
 
10482
+ interface PendingTransaction {
10483
+ readonly id: string;
10484
+ readonly reason: io.flow.v0.enums.TransactionPayoutPendingReason;
10485
+ readonly reason_set_at: string;
10486
+ }
10487
+
10425
10488
  interface PercentMargin {
10426
10489
  readonly discriminator: 'percent_margin';
10427
10490
  readonly percentage: number;
@@ -13244,6 +13307,22 @@ declare namespace io.flow.v0.models {
13244
13307
  readonly network_details?: io.flow.v0.models.TransactionNetworkDetailsCard;
13245
13308
  }
13246
13309
 
13310
+ interface TransactionMetadataChannel {
13311
+ readonly discriminator: 'channel';
13312
+ readonly method: string;
13313
+ readonly card?: io.flow.v0.models.TransactionMetadataChannelCardMetadata;
13314
+ }
13315
+
13316
+ interface TransactionMetadataChannelCardMetadata {
13317
+ readonly type: io.flow.v0.enums.CardType;
13318
+ readonly issuer: io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
13319
+ }
13320
+
13321
+ interface TransactionMetadataChannelCardMetadataIssuerSummary {
13322
+ readonly iin: string;
13323
+ readonly country: string;
13324
+ }
13325
+
13247
13326
  interface TransactionMetadataShippingLabel {
13248
13327
  readonly discriminator: 'shipping_label';
13249
13328
  readonly request_method?: io.flow.v0.enums.LabelRequestMethod;
@@ -14131,6 +14210,7 @@ declare namespace io.flow.v0.unions {
14131
14210
  type TransactionDetails = io.flow.v0.models.TransactionDetailsCard;
14132
14211
  type TransactionMetadata =
14133
14212
  | io.flow.v0.models.TransactionMetadataShippingLabel
14213
+ | io.flow.v0.models.TransactionMetadataChannel
14134
14214
  | io.flow.v0.models.TransactionMetadataTrueup;
14135
14215
  }
14136
14216
 
@@ -15684,6 +15764,7 @@ export type PeakSurchargeByWeightServiceFee =
15684
15764
  export type PeakSurchargeRatecardFee =
15685
15765
  io.flow.v0.models.PeakSurchargeRatecardFee;
15686
15766
  export type PeakSurchargeServiceFee = io.flow.v0.models.PeakSurchargeServiceFee;
15767
+ export type PendingTransaction = io.flow.v0.models.PendingTransaction;
15687
15768
  export type PercentMargin = io.flow.v0.models.PercentMargin;
15688
15769
  export type PermissionAudit = io.flow.v0.models.PermissionAudit;
15689
15770
  export type PermissionCheck = io.flow.v0.models.PermissionCheck;
@@ -16247,6 +16328,12 @@ export type Transaction = io.flow.v0.models.Transaction;
16247
16328
  export type TransactionDetails = io.flow.v0.unions.TransactionDetails;
16248
16329
  export type TransactionDetailsCard = io.flow.v0.models.TransactionDetailsCard;
16249
16330
  export type TransactionMetadata = io.flow.v0.unions.TransactionMetadata;
16331
+ export type TransactionMetadataChannel =
16332
+ io.flow.v0.models.TransactionMetadataChannel;
16333
+ export type TransactionMetadataChannelCardMetadata =
16334
+ io.flow.v0.models.TransactionMetadataChannelCardMetadata;
16335
+ export type TransactionMetadataChannelCardMetadataIssuerSummary =
16336
+ io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
16250
16337
  export type TransactionMetadataShippingLabel =
16251
16338
  io.flow.v0.models.TransactionMetadataShippingLabel;
16252
16339
  export type TransactionMetadataTrueup =