@flowio/types 11.24.70 → 11.24.72

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/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 =