@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/dist/api.d.ts
CHANGED
|
@@ -132,15 +132,17 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
132
132
|
type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
|
|
133
133
|
type CaptureMethod = 'automatic' | 'manual';
|
|
134
134
|
type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
|
|
135
|
-
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';
|
|
136
135
|
type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
|
|
137
136
|
type CardNetwork = 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
|
|
138
137
|
type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
|
|
139
138
|
type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
|
|
140
139
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
141
|
-
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';
|
|
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
|
+
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;
|
|
@@ -286,7 +289,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
286
289
|
readonly balance_transaction?: string;
|
|
287
290
|
readonly destination?: string;
|
|
288
291
|
readonly dispute?: string;
|
|
289
|
-
readonly failure_code?:
|
|
292
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
290
293
|
readonly failure_message?: string;
|
|
291
294
|
readonly on_behalf_of?: string;
|
|
292
295
|
readonly review?: string;
|
|
@@ -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;
|
|
@@ -334,7 +339,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
334
339
|
readonly balance_transaction?: string;
|
|
335
340
|
readonly destination?: string;
|
|
336
341
|
readonly dispute?: string;
|
|
337
|
-
readonly failure_code?:
|
|
342
|
+
readonly failure_code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
338
343
|
readonly failure_message?: string;
|
|
339
344
|
readonly on_behalf_of?: string;
|
|
340
345
|
readonly review?: 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;
|
|
@@ -378,16 +390,6 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
378
390
|
readonly sub_merchant_id?: string;
|
|
379
391
|
readonly product_category?: string;
|
|
380
392
|
}
|
|
381
|
-
interface LastPaymentError {
|
|
382
|
-
readonly charge?: string;
|
|
383
|
-
readonly code?: string;
|
|
384
|
-
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
385
|
-
readonly doc_url?: string;
|
|
386
|
-
readonly message?: string;
|
|
387
|
-
readonly param?: string;
|
|
388
|
-
readonly payment_method: io.flow.stripe.v0.models.PaymentMethod;
|
|
389
|
-
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
390
|
-
}
|
|
391
393
|
interface LegalEntity {
|
|
392
394
|
readonly additional_owners?: io.flow.stripe.v0.models.Owner[];
|
|
393
395
|
}
|
|
@@ -409,6 +411,9 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
409
411
|
readonly payment_request_id?: string;
|
|
410
412
|
readonly payment_request_order_reference?: string;
|
|
411
413
|
}
|
|
414
|
+
interface Multicapture {
|
|
415
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
416
|
+
}
|
|
412
417
|
interface NetworkTokenUsed {
|
|
413
418
|
readonly used?: boolean;
|
|
414
419
|
}
|
|
@@ -450,6 +455,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
450
455
|
readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
|
|
451
456
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
452
457
|
}
|
|
458
|
+
interface Overcapture {
|
|
459
|
+
readonly maximum_amount_capturable?: number;
|
|
460
|
+
readonly status?: io.flow.stripe.v0.enums.FeatureAvailability;
|
|
461
|
+
}
|
|
453
462
|
interface Owner {
|
|
454
463
|
readonly address?: io.flow.stripe.v0.models.Address;
|
|
455
464
|
readonly email?: string;
|
|
@@ -479,7 +488,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
479
488
|
readonly customer?: string;
|
|
480
489
|
readonly description?: string;
|
|
481
490
|
readonly invoice?: string;
|
|
482
|
-
readonly last_payment_error?: io.flow.stripe.v0.models.
|
|
491
|
+
readonly last_payment_error?: io.flow.stripe.v0.models.StripeError;
|
|
483
492
|
readonly livemode: boolean;
|
|
484
493
|
readonly metadata?: io.flow.stripe.v0.models.Metadata;
|
|
485
494
|
readonly next_action?: io.flow.stripe.v0.models.NextAction;
|
|
@@ -518,7 +527,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
518
527
|
readonly off_session?: boolean;
|
|
519
528
|
readonly payment_method?: string;
|
|
520
529
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
521
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
530
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
522
531
|
readonly payment_method_types?: string[];
|
|
523
532
|
readonly receipt_email?: string;
|
|
524
533
|
readonly save_payment_method?: boolean;
|
|
@@ -538,7 +547,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
538
547
|
readonly on_behalf_of?: string;
|
|
539
548
|
readonly payment_method?: string;
|
|
540
549
|
readonly payment_method_data?: io.flow.stripe.v0.unions.PaymentMethodData;
|
|
541
|
-
readonly payment_method_options?: io.flow.stripe.v0.models.
|
|
550
|
+
readonly payment_method_options?: io.flow.stripe.v0.models.PaymentMethodOptionsForm;
|
|
542
551
|
readonly payment_method_types?: string[];
|
|
543
552
|
readonly receipt_email?: string;
|
|
544
553
|
readonly return_url?: string;
|
|
@@ -635,6 +644,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
635
644
|
readonly issuer?: string;
|
|
636
645
|
readonly wallet?: io.flow.stripe.v0.unions.CardWallet;
|
|
637
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;
|
|
638
651
|
}
|
|
639
652
|
interface PaymentMethodDetailsKlarna {
|
|
640
653
|
readonly type: 'klarna';
|
|
@@ -658,11 +671,21 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
658
671
|
readonly request_three_d_secure?: io.flow.stripe.v0.enums.RequestThreeDSecureType;
|
|
659
672
|
readonly stored_credential_transaction_type?: io.flow.stripe.v0.enums.StoredCredentialTransactionType;
|
|
660
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;
|
|
661
684
|
}
|
|
662
685
|
interface PaymentOutcome {
|
|
663
|
-
readonly network_status
|
|
664
|
-
readonly risk_level
|
|
665
|
-
readonly seller_message
|
|
686
|
+
readonly network_status?: io.flow.stripe.v0.enums.NetworkStatus;
|
|
687
|
+
readonly risk_level?: string;
|
|
688
|
+
readonly seller_message?: string;
|
|
666
689
|
readonly reason?: string;
|
|
667
690
|
readonly type?: io.flow.stripe.v0.enums.PaymentOutcomeType;
|
|
668
691
|
}
|
|
@@ -843,10 +866,11 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
843
866
|
readonly type: io.flow.stripe.v0.enums.ErrorType;
|
|
844
867
|
readonly charge?: string;
|
|
845
868
|
readonly message?: string;
|
|
846
|
-
readonly code?: io.flow.stripe.v0.enums.
|
|
847
|
-
readonly decline_code?:
|
|
869
|
+
readonly code?: io.flow.stripe.v0.enums.ErrorCode;
|
|
870
|
+
readonly decline_code?: io.flow.stripe.v0.enums.DeclineCode;
|
|
848
871
|
readonly param?: string;
|
|
849
872
|
readonly payment_intent?: io.flow.stripe.v0.models.PaymentIntent;
|
|
873
|
+
readonly payment_method?: io.flow.stripe.v0.models.PaymentMethod;
|
|
850
874
|
}
|
|
851
875
|
interface StripeEvent {
|
|
852
876
|
readonly id: string;
|
|
@@ -874,9 +898,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
874
898
|
interface ThreeDSecureCharge {
|
|
875
899
|
readonly authenticated?: boolean;
|
|
876
900
|
readonly authentication_flow?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
|
|
901
|
+
readonly electronic_commerce_indicator?: string;
|
|
902
|
+
readonly exemption_indicator?: string;
|
|
877
903
|
readonly result?: io.flow.stripe.v0.enums.ThreeDsResult;
|
|
878
904
|
readonly result_reason?: io.flow.stripe.v0.enums.ThreeDsResultReason;
|
|
879
905
|
readonly succeeded?: boolean;
|
|
906
|
+
readonly transaction_id?: string;
|
|
880
907
|
readonly version?: string;
|
|
881
908
|
}
|
|
882
909
|
interface ThreeDSecureRedirect {
|
|
@@ -2196,6 +2223,10 @@ declare namespace io.flow.v0.models {
|
|
|
2196
2223
|
interface ActivationPutForm {
|
|
2197
2224
|
readonly placeholder?: boolean;
|
|
2198
2225
|
}
|
|
2226
|
+
interface AdditionalServicesRequested {
|
|
2227
|
+
readonly name: string;
|
|
2228
|
+
readonly description?: string;
|
|
2229
|
+
}
|
|
2199
2230
|
interface Address {
|
|
2200
2231
|
readonly text?: string;
|
|
2201
2232
|
readonly streets?: string[];
|
|
@@ -9424,6 +9455,7 @@ declare namespace io.flow.v0.models {
|
|
|
9424
9455
|
readonly shipment_recipient: io.flow.v0.enums.ShipmentRecipient;
|
|
9425
9456
|
readonly label_request_method?: io.flow.v0.enums.LabelRequestMethod;
|
|
9426
9457
|
readonly label_trigger_method?: io.flow.v0.enums.LabelTriggerMethod;
|
|
9458
|
+
readonly additional_services_requested?: io.flow.v0.models.AdditionalServicesRequested[];
|
|
9427
9459
|
readonly created_at?: string;
|
|
9428
9460
|
readonly updated_at?: string;
|
|
9429
9461
|
}
|
|
@@ -10534,6 +10566,7 @@ declare namespace io.flow.v0.models {
|
|
|
10534
10566
|
}
|
|
10535
10567
|
interface TransactionMetadataManual {
|
|
10536
10568
|
readonly discriminator: 'manual';
|
|
10569
|
+
readonly description: string;
|
|
10537
10570
|
readonly original?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
|
|
10538
10571
|
readonly url?: string;
|
|
10539
10572
|
}
|
|
@@ -10942,6 +10975,7 @@ export declare type ActionUseSdkPaypal = io.flow.v0.models.ActionUseSdkPaypal;
|
|
|
10942
10975
|
export declare type ActionUseSdkStripeV3 = io.flow.v0.models.ActionUseSdkStripeV3;
|
|
10943
10976
|
export declare type ActionWait = io.flow.v0.models.ActionWait;
|
|
10944
10977
|
export declare type ActivationPutForm = io.flow.v0.models.ActivationPutForm;
|
|
10978
|
+
export declare type AdditionalServicesRequested = io.flow.v0.models.AdditionalServicesRequested;
|
|
10945
10979
|
export declare type Address = io.flow.v0.models.Address;
|
|
10946
10980
|
export declare type AddressConfiguration = io.flow.v0.models.AddressConfiguration;
|
|
10947
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
|
}
|