@flowio/api-prop-types 10.16.60 → 10.16.61
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 +15 -21
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +15 -21
- package/src/api.js +130 -76
package/lib/api.d.ts
CHANGED
|
@@ -156,13 +156,13 @@ 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';
|
|
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
168
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
@@ -320,7 +320,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
320
320
|
readonly 'balance_transaction'?: string;
|
|
321
321
|
readonly 'destination'?: string;
|
|
322
322
|
readonly 'dispute'?: string;
|
|
323
|
-
readonly 'failure_code'?:
|
|
323
|
+
readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
324
324
|
readonly 'failure_message'?: string;
|
|
325
325
|
readonly 'on_behalf_of'?: string;
|
|
326
326
|
readonly 'review'?: string;
|
|
@@ -371,7 +371,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
371
371
|
readonly 'balance_transaction'?: string;
|
|
372
372
|
readonly 'destination'?: string;
|
|
373
373
|
readonly 'dispute'?: string;
|
|
374
|
-
readonly 'failure_code'?:
|
|
374
|
+
readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
375
375
|
readonly 'failure_message'?: string;
|
|
376
376
|
readonly 'on_behalf_of'?: string;
|
|
377
377
|
readonly 'review'?: string;
|
|
@@ -423,17 +423,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
423
423
|
readonly 'product_category'?: string;
|
|
424
424
|
}
|
|
425
425
|
|
|
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
426
|
interface LegalEntity {
|
|
438
427
|
readonly 'additional_owners'?: io.flow.stripe.v0.models.Owner[];
|
|
439
428
|
}
|
|
@@ -536,7 +525,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
536
525
|
readonly 'customer'?: string;
|
|
537
526
|
readonly 'description'?: string;
|
|
538
527
|
readonly 'invoice'?: string;
|
|
539
|
-
readonly 'last_payment_error'?: io.flow.stripe.v0.models.
|
|
528
|
+
readonly 'last_payment_error'?: io.flow.stripe.v0.models.StripeError;
|
|
540
529
|
readonly 'livemode': boolean;
|
|
541
530
|
readonly 'metadata'?: io.flow.stripe.v0.models.Metadata;
|
|
542
531
|
readonly 'next_action'?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -737,9 +726,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
737
726
|
}
|
|
738
727
|
|
|
739
728
|
interface PaymentOutcome {
|
|
740
|
-
readonly 'network_status'
|
|
741
|
-
readonly 'risk_level'
|
|
742
|
-
readonly 'seller_message'
|
|
729
|
+
readonly 'network_status'?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
730
|
+
readonly 'risk_level'?: string;
|
|
731
|
+
readonly 'seller_message'?: string;
|
|
743
732
|
readonly 'reason'?: string;
|
|
744
733
|
readonly 'type'?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
745
734
|
}
|
|
@@ -938,10 +927,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
938
927
|
readonly 'type': io.flow.stripe.v0.enums.ErrorType;
|
|
939
928
|
readonly 'charge'?: string;
|
|
940
929
|
readonly 'message'?: string;
|
|
941
|
-
readonly 'code'?: io.flow.stripe.v0.enums.
|
|
942
|
-
readonly 'decline_code'?:
|
|
930
|
+
readonly 'code'?: io.flow.stripe.v0.enums.ErrorCode;
|
|
931
|
+
readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
|
|
943
932
|
readonly 'param'?: string;
|
|
944
933
|
readonly 'payment_intent'?: io.flow.stripe.v0.models.PaymentIntent;
|
|
934
|
+
readonly 'payment_method'?: io.flow.stripe.v0.models.PaymentMethod;
|
|
945
935
|
}
|
|
946
936
|
|
|
947
937
|
interface StripeEvent {
|
|
@@ -974,9 +964,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
974
964
|
interface ThreeDSecureCharge {
|
|
975
965
|
readonly 'authenticated'?: boolean;
|
|
976
966
|
readonly 'authentication_flow'?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
967
|
+
readonly 'electronic_commerce_indicator'?: string;
|
|
968
|
+
readonly 'exemption_indicator'?: string;
|
|
977
969
|
readonly 'result'?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
978
970
|
readonly 'result_reason'?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
979
971
|
readonly 'succeeded'?: boolean;
|
|
972
|
+
readonly 'transaction_id'?: string;
|
|
980
973
|
readonly 'version'?: string;
|
|
981
974
|
}
|
|
982
975
|
|
|
@@ -12129,6 +12122,7 @@ declare namespace io.flow.v0.models {
|
|
|
12129
12122
|
|
|
12130
12123
|
interface TransactionMetadataManual {
|
|
12131
12124
|
readonly 'discriminator': 'manual';
|
|
12125
|
+
readonly 'description': string;
|
|
12132
12126
|
readonly 'original'?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
12133
12127
|
readonly 'url'?: string;
|
|
12134
12128
|
}
|