@flowio/api-prop-types 10.16.60 → 10.16.62
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/lib/api.d.ts +63 -23
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +63 -23
- package/src/api.js +176 -71
package/lib/api.d.ts
CHANGED
|
@@ -156,15 +156,17 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
156
156
|
type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
|
|
157
157
|
type CaptureMethod = 'automatic' | 'manual';
|
|
158
158
|
type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
|
|
159
|
-
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';
|
|
160
159
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
161
160
|
type CardNetwork = 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
|
|
162
161
|
type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
|
|
163
162
|
type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
|
|
164
163
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
165
|
-
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';
|
|
164
|
+
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_month' | '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' | 'previously_declined_do_not_retry' | 'highest_risk_level' | 'requested_block_on_incorrect_cvc';
|
|
165
|
+
type ErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'country_code_invalid' | 'email_invalid' | 'postal_code_invalid' | 'invalid_characters' | 'url_invalid' | 'invalid_charge_amount' | 'incorrect_number' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'expired_card' | 'missing' | 'processing_error' | 'account_closed' | 'amount_too_small' | 'amount_too_large' | 'api_key_expired' | 'authentication_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'insufficient_funds' | 'intent_invalid_state' | 'livemode_mismatch' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_unexpected_state' | 'payment_intent_invalid_parameter' | 'payment_method_billing_details_address_missing' | 'payment_method_customer_decline' | 'payment_method_currency_mismatch' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'platform_api_key_expired' | 'refund_disputed_payment' | 'testmode_charges_only' | 'tls_version_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state';
|
|
166
166
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
167
167
|
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';
|
|
168
|
+
type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
|
|
169
|
+
type FeatureAvailability = 'available' | 'unavailable';
|
|
168
170
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
169
171
|
type KlarnaProduct = 'payment';
|
|
170
172
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
@@ -312,6 +314,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
312
314
|
readonly 'currency': string;
|
|
313
315
|
readonly 'customer'?: string;
|
|
314
316
|
readonly 'outcome'?: io.flow.stripe.v0.models.PaymentOutcome;
|
|
317
|
+
readonly 'disputed'?: boolean;
|
|
315
318
|
readonly 'paid': boolean;
|
|
316
319
|
readonly 'refunded': boolean;
|
|
317
320
|
readonly 'refunds'?: io.flow.stripe.v0.models.Refunds;
|
|
@@ -320,7 +323,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
320
323
|
readonly 'balance_transaction'?: string;
|
|
321
324
|
readonly 'destination'?: string;
|
|
322
325
|
readonly 'dispute'?: string;
|
|
323
|
-
readonly 'failure_code'?:
|
|
326
|
+
readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
324
327
|
readonly 'failure_message'?: string;
|
|
325
328
|
readonly 'on_behalf_of'?: string;
|
|
326
329
|
readonly 'review'?: string;
|
|
@@ -331,6 +334,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
331
334
|
readonly 'calculated_statement_descriptor'?: string;
|
|
332
335
|
readonly 'statement_descriptor'?: string;
|
|
333
336
|
readonly 'payment_method_details'?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
337
|
+
readonly 'payment_method'?: string;
|
|
334
338
|
}
|
|
335
339
|
|
|
336
340
|
interface ChargeDestination {
|
|
@@ -359,6 +363,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
359
363
|
readonly 'amount_refunded': number;
|
|
360
364
|
readonly 'authorization_code'?: string;
|
|
361
365
|
readonly 'captured': boolean;
|
|
366
|
+
readonly 'disputed'?: boolean;
|
|
362
367
|
readonly 'created': number;
|
|
363
368
|
readonly 'currency': string;
|
|
364
369
|
readonly 'customer'?: string;
|
|
@@ -371,7 +376,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
371
376
|
readonly 'balance_transaction'?: string;
|
|
372
377
|
readonly 'destination'?: string;
|
|
373
378
|
readonly 'dispute'?: string;
|
|
374
|
-
readonly 'failure_code'?:
|
|
379
|
+
readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
375
380
|
readonly 'failure_message'?: string;
|
|
376
381
|
readonly 'on_behalf_of'?: string;
|
|
377
382
|
readonly 'review'?: string;
|
|
@@ -382,6 +387,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
382
387
|
readonly 'calculated_statement_descriptor'?: string;
|
|
383
388
|
readonly 'statement_descriptor'?: string;
|
|
384
389
|
readonly 'payment_method_details'?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
390
|
+
readonly 'payment_method'?: string;
|
|
385
391
|
}
|
|
386
392
|
|
|
387
393
|
interface CodeVerification {
|
|
@@ -409,6 +415,14 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
409
415
|
readonly 'error': io.flow.stripe.v0.models.StripeError;
|
|
410
416
|
}
|
|
411
417
|
|
|
418
|
+
interface ExtendedAuthorization {
|
|
419
|
+
readonly 'status'?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
interface IncrementalAuthorization {
|
|
423
|
+
readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
424
|
+
}
|
|
425
|
+
|
|
412
426
|
interface Keys {
|
|
413
427
|
readonly 'secret'?: string;
|
|
414
428
|
readonly 'publishable'?: string;
|
|
@@ -423,17 +437,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
423
437
|
readonly 'product_category'?: string;
|
|
424
438
|
}
|
|
425
439
|
|
|
426
|
-
interface LastPaymentError {
|
|
427
|
-
readonly 'charge'?: string;
|
|
428
|
-
readonly 'code'?: string;
|
|
429
|
-
readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
|
|
430
|
-
readonly 'doc_url'?: string;
|
|
431
|
-
readonly 'message'?: string;
|
|
432
|
-
readonly 'param'?: string;
|
|
433
|
-
readonly 'payment_method': io.flow.stripe.v0.models.PaymentMethod;
|
|
434
|
-
readonly 'type': io.flow.stripe.v0.enums.ErrorType;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
440
|
interface LegalEntity {
|
|
438
441
|
readonly 'additional_owners'?: io.flow.stripe.v0.models.Owner[];
|
|
439
442
|
}
|
|
@@ -459,6 +462,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
459
462
|
readonly 'payment_request_order_reference'?: string;
|
|
460
463
|
}
|
|
461
464
|
|
|
465
|
+
interface Multicapture {
|
|
466
|
+
readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
467
|
+
}
|
|
468
|
+
|
|
462
469
|
interface NetworkTokenUsed {
|
|
463
470
|
readonly 'used'?: boolean;
|
|
464
471
|
}
|
|
@@ -506,6 +513,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
506
513
|
readonly 'shipping'?: io.flow.stripe.v0.models.Shipping;
|
|
507
514
|
}
|
|
508
515
|
|
|
516
|
+
interface Overcapture {
|
|
517
|
+
readonly 'maximum_amount_capturable'?: number;
|
|
518
|
+
readonly 'status'?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
519
|
+
}
|
|
520
|
+
|
|
509
521
|
interface Owner {
|
|
510
522
|
readonly 'address'?: io.flow.stripe.v0.models.Address;
|
|
511
523
|
readonly 'email'?: string;
|
|
@@ -536,7 +548,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
536
548
|
readonly 'customer'?: string;
|
|
537
549
|
readonly 'description'?: string;
|
|
538
550
|
readonly 'invoice'?: string;
|
|
539
|
-
readonly 'last_payment_error'?: io.flow.stripe.v0.models.
|
|
551
|
+
readonly 'last_payment_error'?: io.flow.stripe.v0.models.StripeError;
|
|
540
552
|
readonly 'livemode': boolean;
|
|
541
553
|
readonly 'metadata'?: io.flow.stripe.v0.models.Metadata;
|
|
542
554
|
readonly 'next_action'?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -579,7 +591,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
579
591
|
readonly 'off_session'?: boolean;
|
|
580
592
|
readonly 'payment_method'?: string;
|
|
581
593
|
readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
582
|
-
readonly 'payment_method_options'?: io.flow.stripe.v0.models.
|
|
594
|
+
readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
583
595
|
readonly 'payment_method_types'?: string[];
|
|
584
596
|
readonly 'receipt_email'?: string;
|
|
585
597
|
readonly 'save_payment_method'?: boolean;
|
|
@@ -600,7 +612,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
600
612
|
readonly 'on_behalf_of'?: string;
|
|
601
613
|
readonly 'payment_method'?: string;
|
|
602
614
|
readonly 'payment_method_data'?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
603
|
-
readonly 'payment_method_options'?: io.flow.stripe.v0.models.
|
|
615
|
+
readonly 'payment_method_options'?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
604
616
|
readonly 'payment_method_types'?: string[];
|
|
605
617
|
readonly 'receipt_email'?: string;
|
|
606
618
|
readonly 'return_url'?: string;
|
|
@@ -706,6 +718,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
706
718
|
readonly 'issuer'?: string;
|
|
707
719
|
readonly 'wallet'?: io.flow.stripe.v0.unions.CardWallet;
|
|
708
720
|
readonly 'network_transaction_id'?: string;
|
|
721
|
+
readonly 'extended_authorization'?: io.flow.stripe.v0.models.ExtendedAuthorization;
|
|
722
|
+
readonly 'incremental_authorization'?: io.flow.stripe.v0.models.IncrementalAuthorization;
|
|
723
|
+
readonly 'multicapture'?: io.flow.stripe.v0.models.Multicapture;
|
|
724
|
+
readonly 'overcapture'?: io.flow.stripe.v0.models.Overcapture;
|
|
709
725
|
}
|
|
710
726
|
|
|
711
727
|
interface PaymentMethodDetailsKlarna {
|
|
@@ -734,12 +750,24 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
734
750
|
readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
735
751
|
readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
736
752
|
readonly 'mcc'?: string;
|
|
753
|
+
readonly 'capture_before'?: number;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
interface PaymentMethodOptionsCardForm {
|
|
757
|
+
readonly 'network'?: string;
|
|
758
|
+
readonly 'request_three_d_secure'?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
759
|
+
readonly 'stored_credential_transaction_type'?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
760
|
+
readonly 'mcc'?: string;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
interface PaymentMethodOptionsForm {
|
|
764
|
+
readonly 'card'?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
|
|
737
765
|
}
|
|
738
766
|
|
|
739
767
|
interface PaymentOutcome {
|
|
740
|
-
readonly 'network_status'
|
|
741
|
-
readonly 'risk_level'
|
|
742
|
-
readonly 'seller_message'
|
|
768
|
+
readonly 'network_status'?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
769
|
+
readonly 'risk_level'?: string;
|
|
770
|
+
readonly 'seller_message'?: string;
|
|
743
771
|
readonly 'reason'?: string;
|
|
744
772
|
readonly 'type'?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
745
773
|
}
|
|
@@ -938,10 +966,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
938
966
|
readonly 'type': io.flow.stripe.v0.enums.ErrorType;
|
|
939
967
|
readonly 'charge'?: string;
|
|
940
968
|
readonly 'message'?: string;
|
|
941
|
-
readonly 'code'?: io.flow.stripe.v0.enums.
|
|
942
|
-
readonly 'decline_code'?:
|
|
969
|
+
readonly 'code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
970
|
+
readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
|
|
943
971
|
readonly 'param'?: string;
|
|
944
972
|
readonly 'payment_intent'?: io.flow.stripe.v0.models.PaymentIntent;
|
|
973
|
+
readonly 'payment_method'?: io.flow.stripe.v0.models.PaymentMethod;
|
|
945
974
|
}
|
|
946
975
|
|
|
947
976
|
interface StripeEvent {
|
|
@@ -974,9 +1003,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
974
1003
|
interface ThreeDSecureCharge {
|
|
975
1004
|
readonly 'authenticated'?: boolean;
|
|
976
1005
|
readonly 'authentication_flow'?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
1006
|
+
readonly 'electronic_commerce_indicator'?: string;
|
|
1007
|
+
readonly 'exemption_indicator'?: string;
|
|
977
1008
|
readonly 'result'?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
978
1009
|
readonly 'result_reason'?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
979
1010
|
readonly 'succeeded'?: boolean;
|
|
1011
|
+
readonly 'transaction_id'?: string;
|
|
980
1012
|
readonly 'version'?: string;
|
|
981
1013
|
}
|
|
982
1014
|
|
|
@@ -2443,6 +2475,11 @@ declare namespace io.flow.v0.models {
|
|
|
2443
2475
|
readonly 'placeholder'?: boolean;
|
|
2444
2476
|
}
|
|
2445
2477
|
|
|
2478
|
+
interface AdditionalServicesRequested {
|
|
2479
|
+
readonly 'name': string;
|
|
2480
|
+
readonly 'description'?: string;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2446
2483
|
interface Address {
|
|
2447
2484
|
readonly 'text'?: string;
|
|
2448
2485
|
readonly 'streets'?: string[];
|
|
@@ -10854,6 +10891,7 @@ declare namespace io.flow.v0.models {
|
|
|
10854
10891
|
readonly 'shipment_recipient': io.flow.v0.enums.ShipmentRecipient;
|
|
10855
10892
|
readonly 'label_request_method'?: io.flow.v0.enums.LabelRequestMethod;
|
|
10856
10893
|
readonly 'label_trigger_method'?: io.flow.v0.enums.LabelTriggerMethod;
|
|
10894
|
+
readonly 'additional_services_requested'?: io.flow.v0.models.AdditionalServicesRequested[];
|
|
10857
10895
|
readonly 'created_at'?: string;
|
|
10858
10896
|
readonly 'updated_at'?: string;
|
|
10859
10897
|
}
|
|
@@ -12129,6 +12167,7 @@ declare namespace io.flow.v0.models {
|
|
|
12129
12167
|
|
|
12130
12168
|
interface TransactionMetadataManual {
|
|
12131
12169
|
readonly 'discriminator': 'manual';
|
|
12170
|
+
readonly 'description': string;
|
|
12132
12171
|
readonly 'original'?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
12133
12172
|
readonly 'url'?: string;
|
|
12134
12173
|
}
|
|
@@ -12798,6 +12837,7 @@ export const actionUseSdkPaypal: PropTypes.Requireable<io.flow.v0.models.ActionU
|
|
|
12798
12837
|
export const actionUseSdkStripeV3: PropTypes.Requireable<io.flow.v0.models.ActionUseSdkStripeV3>;
|
|
12799
12838
|
export const actionWait: PropTypes.Requireable<io.flow.v0.models.ActionWait>;
|
|
12800
12839
|
export const activationPutForm: PropTypes.Requireable<io.flow.v0.models.ActivationPutForm>;
|
|
12840
|
+
export const additionalServicesRequested: PropTypes.Requireable<io.flow.v0.models.AdditionalServicesRequested>;
|
|
12801
12841
|
export const address: PropTypes.Requireable<io.flow.v0.models.Address>;
|
|
12802
12842
|
export const addressConfiguration: PropTypes.Requireable<io.flow.v0.models.AddressConfiguration>;
|
|
12803
12843
|
export const addressConfigurationFieldPlacement: PropTypes.Requireable<io.flow.v0.models.AddressConfigurationFieldPlacement>;
|