@flowio/types 11.24.78 → 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 +41 -3
- package/dist/api.d.ts +42 -3
- package/package.json +2 -2
- package/src/api-internal.ts +53 -3
- package/src/api.ts +53 -3
package/dist/api-internal.d.ts
CHANGED
|
@@ -2018,10 +2018,12 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2018
2018
|
type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
|
|
2019
2019
|
type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
|
|
2020
2020
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
2021
|
-
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';
|
|
2021
|
+
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';
|
|
2022
2022
|
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';
|
|
2023
2023
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
2024
2024
|
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';
|
|
2025
|
+
type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
|
|
2026
|
+
type FeatureAvailability = 'available' | 'unavailable';
|
|
2025
2027
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
2026
2028
|
type KlarnaProduct = 'payment';
|
|
2027
2029
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
@@ -2159,6 +2161,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2159
2161
|
readonly currency: string;
|
|
2160
2162
|
readonly customer?: string;
|
|
2161
2163
|
readonly outcome?: io.flow.stripe.v0.models.PaymentOutcome;
|
|
2164
|
+
readonly disputed?: boolean;
|
|
2162
2165
|
readonly paid: boolean;
|
|
2163
2166
|
readonly refunded: boolean;
|
|
2164
2167
|
readonly refunds?: io.flow.stripe.v0.models.Refunds;
|
|
@@ -2178,6 +2181,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2178
2181
|
readonly calculated_statement_descriptor?: string;
|
|
2179
2182
|
readonly statement_descriptor?: string;
|
|
2180
2183
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
2184
|
+
readonly payment_method?: string;
|
|
2181
2185
|
}
|
|
2182
2186
|
interface ChargeDestination {
|
|
2183
2187
|
readonly account: string;
|
|
@@ -2203,6 +2207,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2203
2207
|
readonly amount_refunded: number;
|
|
2204
2208
|
readonly authorization_code?: string;
|
|
2205
2209
|
readonly captured: boolean;
|
|
2210
|
+
readonly disputed?: boolean;
|
|
2206
2211
|
readonly created: number;
|
|
2207
2212
|
readonly currency: string;
|
|
2208
2213
|
readonly customer?: string;
|
|
@@ -2226,6 +2231,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2226
2231
|
readonly calculated_statement_descriptor?: string;
|
|
2227
2232
|
readonly statement_descriptor?: string;
|
|
2228
2233
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
2234
|
+
readonly payment_method?: string;
|
|
2229
2235
|
}
|
|
2230
2236
|
interface CodeVerification {
|
|
2231
2237
|
readonly attempts_remaining: number;
|
|
@@ -2248,6 +2254,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2248
2254
|
interface Error {
|
|
2249
2255
|
readonly error: io.flow.stripe.v0.models.StripeError;
|
|
2250
2256
|
}
|
|
2257
|
+
interface ExtendedAuthorization {
|
|
2258
|
+
readonly status?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
|
|
2259
|
+
}
|
|
2260
|
+
interface IncrementalAuthorization {
|
|
2261
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
2262
|
+
}
|
|
2251
2263
|
interface Keys {
|
|
2252
2264
|
readonly secret?: string;
|
|
2253
2265
|
readonly publishable?: string;
|
|
@@ -2280,6 +2292,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2280
2292
|
readonly payment_request_id?: string;
|
|
2281
2293
|
readonly payment_request_order_reference?: string;
|
|
2282
2294
|
}
|
|
2295
|
+
interface Multicapture {
|
|
2296
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
2297
|
+
}
|
|
2283
2298
|
interface NetworkTokenUsed {
|
|
2284
2299
|
readonly used?: boolean;
|
|
2285
2300
|
}
|
|
@@ -2321,6 +2336,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2321
2336
|
readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
|
|
2322
2337
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
2323
2338
|
}
|
|
2339
|
+
interface Overcapture {
|
|
2340
|
+
readonly maximum_amount_capturable?: number;
|
|
2341
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
2342
|
+
}
|
|
2324
2343
|
interface Owner {
|
|
2325
2344
|
readonly address?: io.flow.stripe.v0.models.Address;
|
|
2326
2345
|
readonly email?: string;
|
|
@@ -2389,7 +2408,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2389
2408
|
readonly off_session?: boolean;
|
|
2390
2409
|
readonly payment_method?: string;
|
|
2391
2410
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
2392
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
2411
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
2393
2412
|
readonly payment_method_types?: string[];
|
|
2394
2413
|
readonly receipt_email?: string;
|
|
2395
2414
|
readonly save_payment_method?: boolean;
|
|
@@ -2409,7 +2428,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2409
2428
|
readonly on_behalf_of?: string;
|
|
2410
2429
|
readonly payment_method?: string;
|
|
2411
2430
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
2412
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
2431
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
2413
2432
|
readonly payment_method_types?: string[];
|
|
2414
2433
|
readonly receipt_email?: string;
|
|
2415
2434
|
readonly return_url?: string;
|
|
@@ -2506,6 +2525,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2506
2525
|
readonly issuer?: string;
|
|
2507
2526
|
readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
|
|
2508
2527
|
readonly network_transaction_id?: string;
|
|
2528
|
+
readonly extended_authorization?: io.flow.stripe.v0.models.ExtendedAuthorization;
|
|
2529
|
+
readonly incremental_authorization?: io.flow.stripe.v0.models.IncrementalAuthorization;
|
|
2530
|
+
readonly multicapture?: io.flow.stripe.v0.models.Multicapture;
|
|
2531
|
+
readonly overcapture?: io.flow.stripe.v0.models.Overcapture;
|
|
2509
2532
|
}
|
|
2510
2533
|
interface PaymentMethodDetailsKlarna {
|
|
2511
2534
|
readonly type: 'klarna';
|
|
@@ -2529,6 +2552,16 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2529
2552
|
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
2530
2553
|
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
2531
2554
|
readonly mcc?: string;
|
|
2555
|
+
readonly capture_before?: number;
|
|
2556
|
+
}
|
|
2557
|
+
interface PaymentMethodOptionsCardForm {
|
|
2558
|
+
readonly network?: string;
|
|
2559
|
+
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
2560
|
+
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
2561
|
+
readonly mcc?: string;
|
|
2562
|
+
}
|
|
2563
|
+
interface PaymentMethodOptionsForm {
|
|
2564
|
+
readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
|
|
2532
2565
|
}
|
|
2533
2566
|
interface PaymentOutcome {
|
|
2534
2567
|
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
@@ -13996,6 +14029,7 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
13996
14029
|
type OrganizationPaymentStatus = 'active' | 'archived';
|
|
13997
14030
|
type OrganizationRestrictionApprovalStatus = 'ready' | 'not-ready';
|
|
13998
14031
|
type OrganizationRestrictionNoteType = 'internal' | 'rejection_reason' | 'additional_rejection_info';
|
|
14032
|
+
type OrganizationRestrictionReviewType = 'all_pending' | 'pending_verification';
|
|
13999
14033
|
type OrganizationRestrictionRiskLevel = '5' | '15';
|
|
14000
14034
|
type OrganizationRestrictionScreeningStatus = 'in_review' | 'fully_reviewed' | 'rejected' | 'unscreened';
|
|
14001
14035
|
type OutputStyle = 'flow' | 'shopify_p1';
|
|
@@ -15594,6 +15628,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
15594
15628
|
readonly flow_tracking_status?: io.flow.tracking.v0.enums.TrackingStatus;
|
|
15595
15629
|
readonly order_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
15596
15630
|
readonly label_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
15631
|
+
readonly carrier?: io.flow.reference.v0.models.CarrierService;
|
|
15597
15632
|
readonly tracking_numbers?: string[];
|
|
15598
15633
|
}
|
|
15599
15634
|
interface ChannelMembership {
|
|
@@ -22345,6 +22380,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
22345
22380
|
readonly organization_id: string;
|
|
22346
22381
|
readonly approval_status: io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
|
|
22347
22382
|
readonly screening_status: io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
|
|
22383
|
+
readonly review_type?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
22348
22384
|
readonly risk_level?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
22349
22385
|
readonly hs_code?: string;
|
|
22350
22386
|
readonly merchant_category_code?: string;
|
|
@@ -23608,6 +23644,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
23608
23644
|
readonly url?: string;
|
|
23609
23645
|
readonly approval_status?: io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
|
|
23610
23646
|
readonly screening_status?: io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
|
|
23647
|
+
readonly review_type?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
23611
23648
|
readonly risk_level?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
23612
23649
|
readonly hs_code?: string;
|
|
23613
23650
|
readonly merchant_category_code?: string;
|
|
@@ -27286,6 +27323,7 @@ export declare type OrganizationPaymentStatus = io.flow.internal.v0.enums.Organi
|
|
|
27286
27323
|
export declare type OrganizationRestrictionApprovalStatus = io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
|
|
27287
27324
|
export declare type OrganizationRestrictionNoteForm = io.flow.internal.v0.models.OrganizationRestrictionNoteForm;
|
|
27288
27325
|
export declare type OrganizationRestrictionNoteType = io.flow.internal.v0.enums.OrganizationRestrictionNoteType;
|
|
27326
|
+
export declare type OrganizationRestrictionReviewType = io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
27289
27327
|
export declare type OrganizationRestrictionRiskLevel = io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
27290
27328
|
export declare type OrganizationRestrictionScreeningDecisionForm = io.flow.internal.v0.models.OrganizationRestrictionScreeningDecisionForm;
|
|
27291
27329
|
export declare type OrganizationRestrictionScreeningStatus = io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
|
package/dist/api.d.ts
CHANGED
|
@@ -137,10 +137,12 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
137
137
|
type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
|
|
138
138
|
type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
|
|
139
139
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
140
|
-
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';
|
|
140
|
+
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';
|
|
141
141
|
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';
|
|
142
142
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
143
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
|
+
type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
|
|
145
|
+
type FeatureAvailability = 'available' | 'unavailable';
|
|
144
146
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
145
147
|
type KlarnaProduct = 'payment';
|
|
146
148
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
@@ -278,6 +280,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
278
280
|
readonly currency: string;
|
|
279
281
|
readonly customer?: string;
|
|
280
282
|
readonly outcome?: io.flow.stripe.v0.models.PaymentOutcome;
|
|
283
|
+
readonly disputed?: boolean;
|
|
281
284
|
readonly paid: boolean;
|
|
282
285
|
readonly refunded: boolean;
|
|
283
286
|
readonly refunds?: io.flow.stripe.v0.models.Refunds;
|
|
@@ -297,6 +300,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
297
300
|
readonly calculated_statement_descriptor?: string;
|
|
298
301
|
readonly statement_descriptor?: string;
|
|
299
302
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
303
|
+
readonly payment_method?: string;
|
|
300
304
|
}
|
|
301
305
|
interface ChargeDestination {
|
|
302
306
|
readonly account: string;
|
|
@@ -322,6 +326,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
322
326
|
readonly amount_refunded: number;
|
|
323
327
|
readonly authorization_code?: string;
|
|
324
328
|
readonly captured: boolean;
|
|
329
|
+
readonly disputed?: boolean;
|
|
325
330
|
readonly created: number;
|
|
326
331
|
readonly currency: string;
|
|
327
332
|
readonly customer?: string;
|
|
@@ -345,6 +350,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
345
350
|
readonly calculated_statement_descriptor?: string;
|
|
346
351
|
readonly statement_descriptor?: string;
|
|
347
352
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
353
|
+
readonly payment_method?: string;
|
|
348
354
|
}
|
|
349
355
|
interface CodeVerification {
|
|
350
356
|
readonly attempts_remaining: number;
|
|
@@ -367,6 +373,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
367
373
|
interface Error {
|
|
368
374
|
readonly error: io.flow.stripe.v0.models.StripeError;
|
|
369
375
|
}
|
|
376
|
+
interface ExtendedAuthorization {
|
|
377
|
+
readonly status?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
|
|
378
|
+
}
|
|
379
|
+
interface IncrementalAuthorization {
|
|
380
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
381
|
+
}
|
|
370
382
|
interface Keys {
|
|
371
383
|
readonly secret?: string;
|
|
372
384
|
readonly publishable?: string;
|
|
@@ -399,6 +411,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
399
411
|
readonly payment_request_id?: string;
|
|
400
412
|
readonly payment_request_order_reference?: string;
|
|
401
413
|
}
|
|
414
|
+
interface Multicapture {
|
|
415
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
416
|
+
}
|
|
402
417
|
interface NetworkTokenUsed {
|
|
403
418
|
readonly used?: boolean;
|
|
404
419
|
}
|
|
@@ -440,6 +455,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
440
455
|
readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
|
|
441
456
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
442
457
|
}
|
|
458
|
+
interface Overcapture {
|
|
459
|
+
readonly maximum_amount_capturable?: number;
|
|
460
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
461
|
+
}
|
|
443
462
|
interface Owner {
|
|
444
463
|
readonly address?: io.flow.stripe.v0.models.Address;
|
|
445
464
|
readonly email?: string;
|
|
@@ -508,7 +527,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
508
527
|
readonly off_session?: boolean;
|
|
509
528
|
readonly payment_method?: string;
|
|
510
529
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
511
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
530
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
512
531
|
readonly payment_method_types?: string[];
|
|
513
532
|
readonly receipt_email?: string;
|
|
514
533
|
readonly save_payment_method?: boolean;
|
|
@@ -528,7 +547,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
528
547
|
readonly on_behalf_of?: string;
|
|
529
548
|
readonly payment_method?: string;
|
|
530
549
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
531
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
550
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
532
551
|
readonly payment_method_types?: string[];
|
|
533
552
|
readonly receipt_email?: string;
|
|
534
553
|
readonly return_url?: string;
|
|
@@ -625,6 +644,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
625
644
|
readonly issuer?: string;
|
|
626
645
|
readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
|
|
627
646
|
readonly network_transaction_id?: string;
|
|
647
|
+
readonly extended_authorization?: io.flow.stripe.v0.models.ExtendedAuthorization;
|
|
648
|
+
readonly incremental_authorization?: io.flow.stripe.v0.models.IncrementalAuthorization;
|
|
649
|
+
readonly multicapture?: io.flow.stripe.v0.models.Multicapture;
|
|
650
|
+
readonly overcapture?: io.flow.stripe.v0.models.Overcapture;
|
|
628
651
|
}
|
|
629
652
|
interface PaymentMethodDetailsKlarna {
|
|
630
653
|
readonly type: 'klarna';
|
|
@@ -648,6 +671,16 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
648
671
|
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
649
672
|
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
650
673
|
readonly mcc?: string;
|
|
674
|
+
readonly capture_before?: number;
|
|
675
|
+
}
|
|
676
|
+
interface PaymentMethodOptionsCardForm {
|
|
677
|
+
readonly network?: string;
|
|
678
|
+
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
679
|
+
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
680
|
+
readonly mcc?: string;
|
|
681
|
+
}
|
|
682
|
+
interface PaymentMethodOptionsForm {
|
|
683
|
+
readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
|
|
651
684
|
}
|
|
652
685
|
interface PaymentOutcome {
|
|
653
686
|
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
@@ -2190,6 +2223,10 @@ declare namespace io.flow.v0.models {
|
|
|
2190
2223
|
interface ActivationPutForm {
|
|
2191
2224
|
readonly placeholder?: boolean;
|
|
2192
2225
|
}
|
|
2226
|
+
interface AdditionalServicesRequested {
|
|
2227
|
+
readonly name: string;
|
|
2228
|
+
readonly description?: string;
|
|
2229
|
+
}
|
|
2193
2230
|
interface Address {
|
|
2194
2231
|
readonly text?: string;
|
|
2195
2232
|
readonly streets?: string[];
|
|
@@ -9418,6 +9455,7 @@ declare namespace io.flow.v0.models {
|
|
|
9418
9455
|
readonly shipment_recipient: io.flow.v0.enums.ShipmentRecipient;
|
|
9419
9456
|
readonly label_request_method?: io.flow.v0.enums.LabelRequestMethod;
|
|
9420
9457
|
readonly label_trigger_method?: io.flow.v0.enums.LabelTriggerMethod;
|
|
9458
|
+
readonly additional_services_requested?: io.flow.v0.models.AdditionalServicesRequested[];
|
|
9421
9459
|
readonly created_at?: string;
|
|
9422
9460
|
readonly updated_at?: string;
|
|
9423
9461
|
}
|
|
@@ -10937,6 +10975,7 @@ export declare type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
|
|
|
10937
10975
|
export declare type ActionUseSdkStripeV3 = io.flow.v0.models.ActionUseSdkStripeV3;
|
|
10938
10976
|
export declare type ActionWait = io.flow.v0.models.ActionWait;
|
|
10939
10977
|
export declare type ActivationPutForm = io.flow.v0.models.ActivationPutForm;
|
|
10978
|
+
export declare type AdditionalServicesRequested = io.flow.v0.models.AdditionalServicesRequested;
|
|
10940
10979
|
export declare type Address = io.flow.v0.models.Address;
|
|
10941
10980
|
export declare type AddressConfiguration = io.flow.v0.models.AddressConfiguration;
|
|
10942
10981
|
export declare type AddressConfigurationFieldPlacement = io.flow.v0.models.AddressConfigurationFieldPlacement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.24.
|
|
3
|
+
"version": "11.24.79",
|
|
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": "
|
|
28
|
+
"gitHead": "fc644e9ba6f842b12316085c5adbfeaa86923d6b"
|
|
29
29
|
}
|
package/src/api-internal.ts
CHANGED
|
@@ -2575,7 +2575,10 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2575
2575
|
| 'testmode_decline'
|
|
2576
2576
|
| 'transaction_not_allowed'
|
|
2577
2577
|
| 'try_again_later'
|
|
2578
|
-
| 'withdrawal_count_limit_exceeded'
|
|
2578
|
+
| 'withdrawal_count_limit_exceeded'
|
|
2579
|
+
| 'previously_declined_do_not_retry'
|
|
2580
|
+
| 'highest_risk_level'
|
|
2581
|
+
| 'requested_block_on_incorrect_cvc';
|
|
2579
2582
|
type ErrorCode =
|
|
2580
2583
|
| 'invalid_number'
|
|
2581
2584
|
| 'invalid_expiry_month'
|
|
@@ -2676,6 +2679,8 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
2676
2679
|
| 'source.canceled'
|
|
2677
2680
|
| 'source.chargeable'
|
|
2678
2681
|
| 'source.failed';
|
|
2682
|
+
type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
|
|
2683
|
+
type FeatureAvailability = 'available' | 'unavailable';
|
|
2679
2684
|
type KlarnaPaymentMethodCategoryType =
|
|
2680
2685
|
| 'direct_bank_transfer'
|
|
2681
2686
|
| 'direct_debit'
|
|
@@ -2941,6 +2946,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2941
2946
|
readonly currency: string;
|
|
2942
2947
|
readonly customer?: string;
|
|
2943
2948
|
readonly outcome?: io.flow.stripe.v0.models.PaymentOutcome;
|
|
2949
|
+
readonly disputed?: boolean;
|
|
2944
2950
|
readonly paid: boolean;
|
|
2945
2951
|
readonly refunded: boolean;
|
|
2946
2952
|
readonly refunds?: io.flow.stripe.v0.models.Refunds;
|
|
@@ -2960,6 +2966,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2960
2966
|
readonly calculated_statement_descriptor?: string;
|
|
2961
2967
|
readonly statement_descriptor?: string;
|
|
2962
2968
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
2969
|
+
readonly payment_method?: string;
|
|
2963
2970
|
}
|
|
2964
2971
|
|
|
2965
2972
|
interface ChargeDestination {
|
|
@@ -2988,6 +2995,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
2988
2995
|
readonly amount_refunded: number;
|
|
2989
2996
|
readonly authorization_code?: string;
|
|
2990
2997
|
readonly captured: boolean;
|
|
2998
|
+
readonly disputed?: boolean;
|
|
2991
2999
|
readonly created: number;
|
|
2992
3000
|
readonly currency: string;
|
|
2993
3001
|
readonly customer?: string;
|
|
@@ -3011,6 +3019,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3011
3019
|
readonly calculated_statement_descriptor?: string;
|
|
3012
3020
|
readonly statement_descriptor?: string;
|
|
3013
3021
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
3022
|
+
readonly payment_method?: string;
|
|
3014
3023
|
}
|
|
3015
3024
|
|
|
3016
3025
|
interface CodeVerification {
|
|
@@ -3038,6 +3047,14 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3038
3047
|
readonly error: io.flow.stripe.v0.models.StripeError;
|
|
3039
3048
|
}
|
|
3040
3049
|
|
|
3050
|
+
interface ExtendedAuthorization {
|
|
3051
|
+
readonly status?: io.flow.stripe.v0.enums.ExtendedAuthorizationStatus;
|
|
3052
|
+
}
|
|
3053
|
+
|
|
3054
|
+
interface IncrementalAuthorization {
|
|
3055
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3041
3058
|
interface Keys {
|
|
3042
3059
|
readonly secret?: string;
|
|
3043
3060
|
readonly publishable?: string;
|
|
@@ -3077,6 +3094,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3077
3094
|
readonly payment_request_order_reference?: string;
|
|
3078
3095
|
}
|
|
3079
3096
|
|
|
3097
|
+
interface Multicapture {
|
|
3098
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
3099
|
+
}
|
|
3100
|
+
|
|
3080
3101
|
interface NetworkTokenUsed {
|
|
3081
3102
|
readonly used?: boolean;
|
|
3082
3103
|
}
|
|
@@ -3124,6 +3145,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3124
3145
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
3125
3146
|
}
|
|
3126
3147
|
|
|
3148
|
+
interface Overcapture {
|
|
3149
|
+
readonly maximum_amount_capturable?: number;
|
|
3150
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3127
3153
|
interface Owner {
|
|
3128
3154
|
readonly address?: io.flow.stripe.v0.models.Address;
|
|
3129
3155
|
readonly email?: string;
|
|
@@ -3197,7 +3223,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3197
3223
|
readonly off_session?: boolean;
|
|
3198
3224
|
readonly payment_method?: string;
|
|
3199
3225
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
3200
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
3226
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
3201
3227
|
readonly payment_method_types?: string[];
|
|
3202
3228
|
readonly receipt_email?: string;
|
|
3203
3229
|
readonly save_payment_method?: boolean;
|
|
@@ -3218,7 +3244,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3218
3244
|
readonly on_behalf_of?: string;
|
|
3219
3245
|
readonly payment_method?: string;
|
|
3220
3246
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
3221
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
3247
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
3222
3248
|
readonly payment_method_types?: string[];
|
|
3223
3249
|
readonly receipt_email?: string;
|
|
3224
3250
|
readonly return_url?: string;
|
|
@@ -3324,6 +3350,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3324
3350
|
readonly issuer?: string;
|
|
3325
3351
|
readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
|
|
3326
3352
|
readonly network_transaction_id?: string;
|
|
3353
|
+
readonly extended_authorization?: io.flow.stripe.v0.models.ExtendedAuthorization;
|
|
3354
|
+
readonly incremental_authorization?: io.flow.stripe.v0.models.IncrementalAuthorization;
|
|
3355
|
+
readonly multicapture?: io.flow.stripe.v0.models.Multicapture;
|
|
3356
|
+
readonly overcapture?: io.flow.stripe.v0.models.Overcapture;
|
|
3327
3357
|
}
|
|
3328
3358
|
|
|
3329
3359
|
interface PaymentMethodDetailsKlarna {
|
|
@@ -3352,6 +3382,18 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
3352
3382
|
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
3353
3383
|
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
3354
3384
|
readonly mcc?: string;
|
|
3385
|
+
readonly capture_before?: number;
|
|
3386
|
+
}
|
|
3387
|
+
|
|
3388
|
+
interface PaymentMethodOptionsCardForm {
|
|
3389
|
+
readonly network?: string;
|
|
3390
|
+
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
3391
|
+
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
3392
|
+
readonly mcc?: string;
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
interface PaymentMethodOptionsForm {
|
|
3396
|
+
readonly card?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
|
|
3355
3397
|
}
|
|
3356
3398
|
|
|
3357
3399
|
interface PaymentOutcome {
|
|
@@ -19131,6 +19173,9 @@ declare namespace io.flow.internal.v0.enums {
|
|
|
19131
19173
|
| 'internal'
|
|
19132
19174
|
| 'rejection_reason'
|
|
19133
19175
|
| 'additional_rejection_info';
|
|
19176
|
+
type OrganizationRestrictionReviewType =
|
|
19177
|
+
| 'all_pending'
|
|
19178
|
+
| 'pending_verification';
|
|
19134
19179
|
type OrganizationRestrictionRiskLevel = '5' | '15';
|
|
19135
19180
|
type OrganizationRestrictionScreeningStatus =
|
|
19136
19181
|
| 'in_review'
|
|
@@ -21144,6 +21189,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
21144
21189
|
readonly flow_tracking_status?: io.flow.tracking.v0.enums.TrackingStatus;
|
|
21145
21190
|
readonly order_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
21146
21191
|
readonly label_items: io.flow.experience.v0.models.LocalizedLineItem[];
|
|
21192
|
+
readonly carrier?: io.flow.reference.v0.models.CarrierService;
|
|
21147
21193
|
readonly tracking_numbers?: string[];
|
|
21148
21194
|
}
|
|
21149
21195
|
|
|
@@ -29016,6 +29062,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
29016
29062
|
readonly organization_id: string;
|
|
29017
29063
|
readonly approval_status: io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
|
|
29018
29064
|
readonly screening_status: io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
|
|
29065
|
+
readonly review_type?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
29019
29066
|
readonly risk_level?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
29020
29067
|
readonly hs_code?: string;
|
|
29021
29068
|
readonly merchant_category_code?: string;
|
|
@@ -30466,6 +30513,7 @@ declare namespace io.flow.internal.v0.models {
|
|
|
30466
30513
|
readonly url?: string;
|
|
30467
30514
|
readonly approval_status?: io.flow.internal.v0.enums.OrganizationRestrictionApprovalStatus;
|
|
30468
30515
|
readonly screening_status?: io.flow.internal.v0.enums.OrganizationRestrictionScreeningStatus;
|
|
30516
|
+
readonly review_type?: io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
30469
30517
|
readonly risk_level?: io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
30470
30518
|
readonly hs_code?: string;
|
|
30471
30519
|
readonly merchant_category_code?: string;
|
|
@@ -36597,6 +36645,8 @@ export type OrganizationRestrictionNoteForm =
|
|
|
36597
36645
|
io.flow.internal.v0.models.OrganizationRestrictionNoteForm;
|
|
36598
36646
|
export type OrganizationRestrictionNoteType =
|
|
36599
36647
|
io.flow.internal.v0.enums.OrganizationRestrictionNoteType;
|
|
36648
|
+
export type OrganizationRestrictionReviewType =
|
|
36649
|
+
io.flow.internal.v0.enums.OrganizationRestrictionReviewType;
|
|
36600
36650
|
export type OrganizationRestrictionRiskLevel =
|
|
36601
36651
|
io.flow.internal.v0.enums.OrganizationRestrictionRiskLevel;
|
|
36602
36652
|
export type OrganizationRestrictionScreeningDecisionForm =
|
package/src/api.ts
CHANGED
|
@@ -228,7 +228,10 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
228
228
|
| 'testmode_decline'
|
|
229
229
|
| 'transaction_not_allowed'
|
|
230
230
|
| 'try_again_later'
|
|
231
|
-
| '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';
|
|
232
235
|
type ErrorCode =
|
|
233
236
|
| 'invalid_number'
|
|
234
237
|
| 'invalid_expiry_month'
|
|
@@ -329,6 +332,8 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
329
332
|
| 'source.canceled'
|
|
330
333
|
| 'source.chargeable'
|
|
331
334
|
| 'source.failed';
|
|
335
|
+
type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
|
|
336
|
+
type FeatureAvailability = 'available' | 'unavailable';
|
|
332
337
|
type KlarnaPaymentMethodCategoryType =
|
|
333
338
|
| 'direct_bank_transfer'
|
|
334
339
|
| 'direct_debit'
|
|
@@ -594,6 +599,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
594
599
|
readonly currency: string;
|
|
595
600
|
readonly customer?: string;
|
|
596
601
|
readonly outcome?: io.flow.stripe.v0.models.PaymentOutcome;
|
|
602
|
+
readonly disputed?: boolean;
|
|
597
603
|
readonly paid: boolean;
|
|
598
604
|
readonly refunded: boolean;
|
|
599
605
|
readonly refunds?: io.flow.stripe.v0.models.Refunds;
|
|
@@ -613,6 +619,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
613
619
|
readonly calculated_statement_descriptor?: string;
|
|
614
620
|
readonly statement_descriptor?: string;
|
|
615
621
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
622
|
+
readonly payment_method?: string;
|
|
616
623
|
}
|
|
617
624
|
|
|
618
625
|
interface ChargeDestination {
|
|
@@ -641,6 +648,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
641
648
|
readonly amount_refunded: number;
|
|
642
649
|
readonly authorization_code?: string;
|
|
643
650
|
readonly captured: boolean;
|
|
651
|
+
readonly disputed?: boolean;
|
|
644
652
|
readonly created: number;
|
|
645
653
|
readonly currency: string;
|
|
646
654
|
readonly customer?: string;
|
|
@@ -664,6 +672,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
664
672
|
readonly calculated_statement_descriptor?: string;
|
|
665
673
|
readonly statement_descriptor?: string;
|
|
666
674
|
readonly payment_method_details?: io.flow.stripe.v0.unions.PaymentMethodDetails;
|
|
675
|
+
readonly payment_method?: string;
|
|
667
676
|
}
|
|
668
677
|
|
|
669
678
|
interface CodeVerification {
|
|
@@ -691,6 +700,14 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
691
700
|
readonly error: io.flow.stripe.v0.models.StripeError;
|
|
692
701
|
}
|
|
693
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
|
+
|
|
694
711
|
interface Keys {
|
|
695
712
|
readonly secret?: string;
|
|
696
713
|
readonly publishable?: string;
|
|
@@ -730,6 +747,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
730
747
|
readonly payment_request_order_reference?: string;
|
|
731
748
|
}
|
|
732
749
|
|
|
750
|
+
interface Multicapture {
|
|
751
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
752
|
+
}
|
|
753
|
+
|
|
733
754
|
interface NetworkTokenUsed {
|
|
734
755
|
readonly used?: boolean;
|
|
735
756
|
}
|
|
@@ -777,6 +798,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
777
798
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
778
799
|
}
|
|
779
800
|
|
|
801
|
+
interface Overcapture {
|
|
802
|
+
readonly maximum_amount_capturable?: number;
|
|
803
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
804
|
+
}
|
|
805
|
+
|
|
780
806
|
interface Owner {
|
|
781
807
|
readonly address?: io.flow.stripe.v0.models.Address;
|
|
782
808
|
readonly email?: string;
|
|
@@ -850,7 +876,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
850
876
|
readonly off_session?: boolean;
|
|
851
877
|
readonly payment_method?: string;
|
|
852
878
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
853
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
879
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
854
880
|
readonly payment_method_types?: string[];
|
|
855
881
|
readonly receipt_email?: string;
|
|
856
882
|
readonly save_payment_method?: boolean;
|
|
@@ -871,7 +897,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
871
897
|
readonly on_behalf_of?: string;
|
|
872
898
|
readonly payment_method?: string;
|
|
873
899
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
874
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
900
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
875
901
|
readonly payment_method_types?: string[];
|
|
876
902
|
readonly receipt_email?: string;
|
|
877
903
|
readonly return_url?: string;
|
|
@@ -977,6 +1003,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
977
1003
|
readonly issuer?: string;
|
|
978
1004
|
readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
|
|
979
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;
|
|
980
1010
|
}
|
|
981
1011
|
|
|
982
1012
|
interface PaymentMethodDetailsKlarna {
|
|
@@ -1005,6 +1035,18 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
1005
1035
|
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
1006
1036
|
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
1007
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;
|
|
1008
1050
|
}
|
|
1009
1051
|
|
|
1010
1052
|
interface PaymentOutcome {
|
|
@@ -3653,6 +3695,11 @@ declare namespace io.flow.v0.models {
|
|
|
3653
3695
|
readonly placeholder?: boolean;
|
|
3654
3696
|
}
|
|
3655
3697
|
|
|
3698
|
+
interface AdditionalServicesRequested {
|
|
3699
|
+
readonly name: string;
|
|
3700
|
+
readonly description?: string;
|
|
3701
|
+
}
|
|
3702
|
+
|
|
3656
3703
|
interface Address {
|
|
3657
3704
|
readonly text?: string;
|
|
3658
3705
|
readonly streets?: string[];
|
|
@@ -12073,6 +12120,7 @@ declare namespace io.flow.v0.models {
|
|
|
12073
12120
|
readonly shipment_recipient: io.flow.v0.enums.ShipmentRecipient;
|
|
12074
12121
|
readonly label_request_method?: io.flow.v0.enums.LabelRequestMethod;
|
|
12075
12122
|
readonly label_trigger_method?: io.flow.v0.enums.LabelTriggerMethod;
|
|
12123
|
+
readonly additional_services_requested?: io.flow.v0.models.AdditionalServicesRequested[];
|
|
12076
12124
|
readonly created_at?: string;
|
|
12077
12125
|
readonly updated_at?: string;
|
|
12078
12126
|
}
|
|
@@ -14309,6 +14357,8 @@ export type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
|
|
|
14309
14357
|
export type ActionUseSdkStripeV3 = io.flow.v0.models.ActionUseSdkStripeV3;
|
|
14310
14358
|
export type ActionWait = io.flow.v0.models.ActionWait;
|
|
14311
14359
|
export type ActivationPutForm = io.flow.v0.models.ActivationPutForm;
|
|
14360
|
+
export type AdditionalServicesRequested =
|
|
14361
|
+
io.flow.v0.models.AdditionalServicesRequested;
|
|
14312
14362
|
export type Address = io.flow.v0.models.Address;
|
|
14313
14363
|
export type AddressConfiguration = io.flow.v0.models.AddressConfiguration;
|
|
14314
14364
|
export type AddressConfigurationFieldPlacement =
|