@flowio/types 11.24.77 → 11.24.79
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-internal.d.ts +106 -34
- package/dist/api.d.ts +56 -22
- package/package.json +2 -2
- package/src/api-internal.ts +195 -47
- package/src/api.ts +139 -35
package/src/api.ts
CHANGED
|
@@ -169,19 +169,6 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
169
169
|
| 'JCB'
|
|
170
170
|
| 'Diners Club'
|
|
171
171
|
| 'Unknown';
|
|
172
|
-
type CardErrorCode =
|
|
173
|
-
| 'invalid_number'
|
|
174
|
-
| 'invalid_expiry_month'
|
|
175
|
-
| 'invalid_expiry_year'
|
|
176
|
-
| 'invalid_cvc'
|
|
177
|
-
| 'invalid_swipe_data'
|
|
178
|
-
| 'incorrect_number'
|
|
179
|
-
| 'expired_card'
|
|
180
|
-
| 'incorrect_cvc'
|
|
181
|
-
| 'incorrect_zip'
|
|
182
|
-
| 'card_declined'
|
|
183
|
-
| 'missing'
|
|
184
|
-
| 'processing_error';
|
|
185
172
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
186
173
|
type CardNetwork =
|
|
187
174
|
| 'amex'
|
|
@@ -218,6 +205,7 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
218
205
|
| 'invalid_account'
|
|
219
206
|
| 'invalid_amount'
|
|
220
207
|
| 'invalid_cvc'
|
|
208
|
+
| 'invalid_expiry_month'
|
|
221
209
|
| 'invalid_expiry_year'
|
|
222
210
|
| 'invalid_number'
|
|
223
211
|
| 'invalid_pin'
|
|
@@ -240,7 +228,82 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
240
228
|
| 'testmode_decline'
|
|
241
229
|
| 'transaction_not_allowed'
|
|
242
230
|
| 'try_again_later'
|
|
243
|
-
| 'withdrawal_count_limit_exceeded'
|
|
231
|
+
| 'withdrawal_count_limit_exceeded'
|
|
232
|
+
| 'previously_declined_do_not_retry'
|
|
233
|
+
| 'highest_risk_level'
|
|
234
|
+
| 'requested_block_on_incorrect_cvc';
|
|
235
|
+
type ErrorCode =
|
|
236
|
+
| 'invalid_number'
|
|
237
|
+
| 'invalid_expiry_month'
|
|
238
|
+
| 'invalid_expiry_year'
|
|
239
|
+
| 'invalid_cvc'
|
|
240
|
+
| 'invalid_swipe_data'
|
|
241
|
+
| 'country_code_invalid'
|
|
242
|
+
| 'email_invalid'
|
|
243
|
+
| 'postal_code_invalid'
|
|
244
|
+
| 'invalid_characters'
|
|
245
|
+
| 'url_invalid'
|
|
246
|
+
| 'invalid_charge_amount'
|
|
247
|
+
| 'incorrect_number'
|
|
248
|
+
| 'incorrect_address'
|
|
249
|
+
| 'incorrect_cvc'
|
|
250
|
+
| 'incorrect_zip'
|
|
251
|
+
| 'card_declined'
|
|
252
|
+
| 'expired_card'
|
|
253
|
+
| 'missing'
|
|
254
|
+
| 'processing_error'
|
|
255
|
+
| 'account_closed'
|
|
256
|
+
| 'amount_too_small'
|
|
257
|
+
| 'amount_too_large'
|
|
258
|
+
| 'api_key_expired'
|
|
259
|
+
| 'authentication_required'
|
|
260
|
+
| 'capture_charge_authorization_expired'
|
|
261
|
+
| 'capture_unauthorized_payment'
|
|
262
|
+
| 'card_decline_rate_limit_exceeded'
|
|
263
|
+
| 'charge_already_captured'
|
|
264
|
+
| 'charge_already_refunded'
|
|
265
|
+
| 'charge_disputed'
|
|
266
|
+
| 'charge_exceeds_source_limit'
|
|
267
|
+
| 'charge_expired_for_capture'
|
|
268
|
+
| 'charge_invalid_parameter'
|
|
269
|
+
| 'charge_not_refundable'
|
|
270
|
+
| 'insufficient_funds'
|
|
271
|
+
| 'intent_invalid_state'
|
|
272
|
+
| 'livemode_mismatch'
|
|
273
|
+
| 'parameter_invalid_empty'
|
|
274
|
+
| 'parameter_invalid_integer'
|
|
275
|
+
| 'parameter_invalid_string_blank'
|
|
276
|
+
| 'parameter_invalid_string_empty'
|
|
277
|
+
| 'parameter_missing'
|
|
278
|
+
| 'parameter_unknown'
|
|
279
|
+
| 'parameters_exclusive'
|
|
280
|
+
| 'payment_intent_action_required'
|
|
281
|
+
| 'payment_intent_authentication_failure'
|
|
282
|
+
| 'payment_intent_incompatible_payment_method'
|
|
283
|
+
| 'payment_intent_payment_attempt_expired'
|
|
284
|
+
| 'payment_intent_payment_attempt_failed'
|
|
285
|
+
| 'payment_intent_unexpected_state'
|
|
286
|
+
| 'payment_intent_invalid_parameter'
|
|
287
|
+
| 'payment_method_billing_details_address_missing'
|
|
288
|
+
| 'payment_method_customer_decline'
|
|
289
|
+
| 'payment_method_currency_mismatch'
|
|
290
|
+
| 'payment_method_invalid_parameter'
|
|
291
|
+
| 'payment_method_invalid_parameter_testmode'
|
|
292
|
+
| 'payment_method_not_available'
|
|
293
|
+
| 'payment_method_provider_decline'
|
|
294
|
+
| 'payment_method_provider_timeout'
|
|
295
|
+
| 'payment_method_unactivated'
|
|
296
|
+
| 'payment_method_unexpected_state'
|
|
297
|
+
| 'payment_method_unsupported_type'
|
|
298
|
+
| 'platform_api_key_expired'
|
|
299
|
+
| 'refund_disputed_payment'
|
|
300
|
+
| 'testmode_charges_only'
|
|
301
|
+
| 'tls_version_unsupported'
|
|
302
|
+
| 'setup_attempt_failed'
|
|
303
|
+
| 'setup_intent_authentication_failure'
|
|
304
|
+
| 'setup_intent_invalid_parameter'
|
|
305
|
+
| 'setup_intent_setup_attempt_expired'
|
|
306
|
+
| 'setup_intent_unexpected_state';
|
|
244
307
|
type ErrorType =
|
|
245
308
|
| 'api_connection_error'
|
|
246
309
|
| 'api_error'
|
|
@@ -269,6 +332,8 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
269
332
|
| 'source.canceled'
|
|
270
333
|
| 'source.chargeable'
|
|
271
334
|
| 'source.failed';
|
|
335
|
+
type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
|
|
336
|
+
type FeatureAvailability = 'available' | 'unavailable';
|
|
272
337
|
type KlarnaPaymentMethodCategoryType =
|
|
273
338
|
| 'direct_bank_transfer'
|
|
274
339
|
| 'direct_debit'
|
|
@@ -534,6 +599,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
534
599
|
readonly currency: string;
|
|
535
600
|
readonly customer?: string;
|
|
536
601
|
readonly outcome?: io.flow.stripe.v0.models.PaymentOutcome;
|
|
602
|
+
readonly disputed?: boolean;
|
|
537
603
|
readonly paid: boolean;
|
|
538
604
|
readonly refunded: boolean;
|
|
539
605
|
readonly refunds?: io.flow.stripe.v0.models.Refunds;
|
|
@@ -542,7 +608,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
542
608
|
readonly balance_transaction?: string;
|
|
543
609
|
readonly destination?: string;
|
|
544
610
|
readonly dispute?: string;
|
|
545
|
-
readonly failure_code?:
|
|
611
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
546
612
|
readonly failure_message?: string;
|
|
547
613
|
readonly on_behalf_of?: string;
|
|
548
614
|
readonly review?: string;
|
|
@@ -553,6 +619,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
553
619
|
readonly calculated_statement_descriptor?: string;
|
|
554
620
|
readonly statement_descriptor?: string;
|
|
555
621
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
622
|
+
readonly payment_method?: string;
|
|
556
623
|
}
|
|
557
624
|
|
|
558
625
|
interface ChargeDestination {
|
|
@@ -581,6 +648,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
581
648
|
readonly amount_refunded: number;
|
|
582
649
|
readonly authorization_code?: string;
|
|
583
650
|
readonly captured: boolean;
|
|
651
|
+
readonly disputed?: boolean;
|
|
584
652
|
readonly created: number;
|
|
585
653
|
readonly currency: string;
|
|
586
654
|
readonly customer?: string;
|
|
@@ -593,7 +661,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
593
661
|
readonly balance_transaction?: string;
|
|
594
662
|
readonly destination?: string;
|
|
595
663
|
readonly dispute?: string;
|
|
596
|
-
readonly failure_code?:
|
|
664
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
597
665
|
readonly failure_message?: string;
|
|
598
666
|
readonly on_behalf_of?: string;
|
|
599
667
|
readonly review?: string;
|
|
@@ -604,6 +672,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
604
672
|
readonly calculated_statement_descriptor?: string;
|
|
605
673
|
readonly statement_descriptor?: string;
|
|
606
674
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
675
|
+
readonly payment_method?: string;
|
|
607
676
|
}
|
|
608
677
|
|
|
609
678
|
interface CodeVerification {
|
|
@@ -631,6 +700,14 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
631
700
|
readonly error: io.flow.stripe.v0.models.StripeError;
|
|
632
701
|
}
|
|
633
702
|
|
|
703
|
+
interface ExtendedAuthorization {
|
|
704
|
+
readonly status?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
interface IncrementalAuthorization {
|
|
708
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
709
|
+
}
|
|
710
|
+
|
|
634
711
|
interface Keys {
|
|
635
712
|
readonly secret?: string;
|
|
636
713
|
readonly publishable?: string;
|
|
@@ -645,17 +722,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
645
722
|
readonly product_category?: string;
|
|
646
723
|
}
|
|
647
724
|
|
|
648
|
-
interface LastPaymentError {
|
|
649
|
-
readonly charge?: string;
|
|
650
|
-
readonly code?: string;
|
|
651
|
-
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
652
|
-
readonly doc_url?: string;
|
|
653
|
-
readonly message?: string;
|
|
654
|
-
readonly param?: string;
|
|
655
|
-
readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
|
|
656
|
-
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
657
|
-
}
|
|
658
|
-
|
|
659
725
|
interface LegalEntity {
|
|
660
726
|
readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
|
|
661
727
|
}
|
|
@@ -681,6 +747,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
681
747
|
readonly payment_request_order_reference?: string;
|
|
682
748
|
}
|
|
683
749
|
|
|
750
|
+
interface Multicapture {
|
|
751
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
752
|
+
}
|
|
753
|
+
|
|
684
754
|
interface NetworkTokenUsed {
|
|
685
755
|
readonly used?: boolean;
|
|
686
756
|
}
|
|
@@ -728,6 +798,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
728
798
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
729
799
|
}
|
|
730
800
|
|
|
801
|
+
interface Overcapture {
|
|
802
|
+
readonly maximum_amount_capturable?: number;
|
|
803
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
804
|
+
}
|
|
805
|
+
|
|
731
806
|
interface Owner {
|
|
732
807
|
readonly address?: io.flow.stripe.v0.models.Address;
|
|
733
808
|
readonly email?: string;
|
|
@@ -758,7 +833,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
758
833
|
readonly customer?: string;
|
|
759
834
|
readonly description?: string;
|
|
760
835
|
readonly invoice?: string;
|
|
761
|
-
readonly last_payment_error?: io.flow.stripe.v0.models.
|
|
836
|
+
readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
|
|
762
837
|
readonly livemode: boolean;
|
|
763
838
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
764
839
|
readonly next_action?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -801,7 +876,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
801
876
|
readonly off_session?: boolean;
|
|
802
877
|
readonly payment_method?: string;
|
|
803
878
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
804
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
879
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
805
880
|
readonly payment_method_types?: string[];
|
|
806
881
|
readonly receipt_email?: string;
|
|
807
882
|
readonly save_payment_method?: boolean;
|
|
@@ -822,7 +897,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
822
897
|
readonly on_behalf_of?: string;
|
|
823
898
|
readonly payment_method?: string;
|
|
824
899
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
825
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
900
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
826
901
|
readonly payment_method_types?: string[];
|
|
827
902
|
readonly receipt_email?: string;
|
|
828
903
|
readonly return_url?: string;
|
|
@@ -928,6 +1003,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
928
1003
|
readonly issuer?: string;
|
|
929
1004
|
readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
|
|
930
1005
|
readonly network_transaction_id?: string;
|
|
1006
|
+
readonly extended_authorization?: io.flow.stripe.v0.models.ExtendedAuthorization;
|
|
1007
|
+
readonly incremental_authorization?: io.flow.stripe.v0.models.IncrementalAuthorization;
|
|
1008
|
+
readonly multicapture?: io.flow.stripe.v0.models.Multicapture;
|
|
1009
|
+
readonly overcapture?: io.flow.stripe.v0.models.Overcapture;
|
|
931
1010
|
}
|
|
932
1011
|
|
|
933
1012
|
interface PaymentMethodDetailsKlarna {
|
|
@@ -956,12 +1035,24 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
956
1035
|
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
957
1036
|
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
958
1037
|
readonly mcc?: string;
|
|
1038
|
+
readonly capture_before?: number;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
interface PaymentMethodOptionsCardForm {
|
|
1042
|
+
readonly network?: string;
|
|
1043
|
+
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
1044
|
+
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
1045
|
+
readonly mcc?: string;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
interface PaymentMethodOptionsForm {
|
|
1049
|
+
readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
|
|
959
1050
|
}
|
|
960
1051
|
|
|
961
1052
|
interface PaymentOutcome {
|
|
962
|
-
readonly network_status
|
|
963
|
-
readonly risk_level
|
|
964
|
-
readonly seller_message
|
|
1053
|
+
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
1054
|
+
readonly risk_level?: string;
|
|
1055
|
+
readonly seller_message?: string;
|
|
965
1056
|
readonly reason?: string;
|
|
966
1057
|
readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
967
1058
|
}
|
|
@@ -1160,10 +1251,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1160
1251
|
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
1161
1252
|
readonly charge?: string;
|
|
1162
1253
|
readonly message?: string;
|
|
1163
|
-
readonly code?: io.flow.stripe.v0.enums.
|
|
1164
|
-
readonly decline_code?:
|
|
1254
|
+
readonly code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
1255
|
+
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
1165
1256
|
readonly param?: string;
|
|
1166
1257
|
readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
|
|
1258
|
+
readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
|
|
1167
1259
|
}
|
|
1168
1260
|
|
|
1169
1261
|
interface StripeEvent {
|
|
@@ -1196,9 +1288,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1196
1288
|
interface ThreeDSecureCharge {
|
|
1197
1289
|
readonly authenticated?: boolean;
|
|
1198
1290
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
1291
|
+
readonly electronic_commerce_indicator?: string;
|
|
1292
|
+
readonly exemption_indicator?: string;
|
|
1199
1293
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
1200
1294
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
1201
1295
|
readonly succeeded?: boolean;
|
|
1296
|
+
readonly transaction_id?: string;
|
|
1202
1297
|
readonly version?: string;
|
|
1203
1298
|
}
|
|
1204
1299
|
|
|
@@ -3600,6 +3695,11 @@ declare namespace io.flow.v0.models {
|
|
|
3600
3695
|
readonly placeholder?: boolean;
|
|
3601
3696
|
}
|
|
3602
3697
|
|
|
3698
|
+
interface AdditionalServicesRequested {
|
|
3699
|
+
readonly name: string;
|
|
3700
|
+
readonly description?: string;
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3603
3703
|
interface Address {
|
|
3604
3704
|
readonly text?: string;
|
|
3605
3705
|
readonly streets?: string[];
|
|
@@ -12020,6 +12120,7 @@ declare namespace io.flow.v0.models {
|
|
|
12020
12120
|
readonly shipment_recipient: io.flow.v0.enums.ShipmentRecipient;
|
|
12021
12121
|
readonly label_request_method?: io.flow.v0.enums.LabelRequestMethod;
|
|
12022
12122
|
readonly label_trigger_method?: io.flow.v0.enums.LabelTriggerMethod;
|
|
12123
|
+
readonly additional_services_requested?: io.flow.v0.models.AdditionalServicesRequested[];
|
|
12023
12124
|
readonly created_at?: string;
|
|
12024
12125
|
readonly updated_at?: string;
|
|
12025
12126
|
}
|
|
@@ -13295,6 +13396,7 @@ declare namespace io.flow.v0.models {
|
|
|
13295
13396
|
|
|
13296
13397
|
interface TransactionMetadataManual {
|
|
13297
13398
|
readonly discriminator: 'manual';
|
|
13399
|
+
readonly description: string;
|
|
13298
13400
|
readonly original?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
13299
13401
|
readonly url?: string;
|
|
13300
13402
|
}
|
|
@@ -14255,6 +14357,8 @@ export type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
|
|
|
14255
14357
|
export type ActionUseSdkStripeV3 = io.flow.v0.models.ActionUseSdkStripeV3;
|
|
14256
14358
|
export type ActionWait = io.flow.v0.models.ActionWait;
|
|
14257
14359
|
export type ActivationPutForm = io.flow.v0.models.ActivationPutForm;
|
|
14360
|
+
export type AdditionalServicesRequested =
|
|
14361
|
+
io.flow.v0.models.AdditionalServicesRequested;
|
|
14258
14362
|
export type Address = io.flow.v0.models.Address;
|
|
14259
14363
|
export type AddressConfiguration = io.flow.v0.models.AddressConfiguration;
|
|
14260
14364
|
export type AddressConfigurationFieldPlacement =
|