@flowio/types 11.22.0 → 11.22.1
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 +150 -535
- package/dist/api.d.ts +85 -6
- package/package.json +2 -2
- package/src/api-internal.ts +264 -770
- package/src/api.ts +101 -5
package/dist/api.d.ts
CHANGED
|
@@ -139,6 +139,8 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
139
139
|
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
140
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
141
141
|
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.refund.updated' | 'charge.succeeded' | 'charge.updated' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'source.canceled' | 'source.chargeable' | 'source.failed';
|
|
142
|
+
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
143
|
+
type KlarnaProduct = 'payment';
|
|
142
144
|
type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
|
|
143
145
|
type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
|
|
144
146
|
type OrderItemType = 'sku' | 'tax' | 'shipping' | 'discount';
|
|
@@ -374,7 +376,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
374
376
|
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
375
377
|
}
|
|
376
378
|
interface OrderItem {
|
|
377
|
-
readonly object
|
|
379
|
+
readonly object?: string;
|
|
378
380
|
readonly amount: number;
|
|
379
381
|
readonly currency: string;
|
|
380
382
|
readonly description?: string;
|
|
@@ -593,7 +595,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
593
595
|
}
|
|
594
596
|
interface Shipping {
|
|
595
597
|
readonly address: io.flow.stripe.v0.models.Address;
|
|
596
|
-
readonly name
|
|
598
|
+
readonly name?: string;
|
|
597
599
|
readonly phone?: string;
|
|
598
600
|
}
|
|
599
601
|
interface Source {
|
|
@@ -615,6 +617,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
615
617
|
readonly status: io.flow.stripe.v0.enums.SourceStatus;
|
|
616
618
|
readonly type: io.flow.stripe.v0.enums.SourceType;
|
|
617
619
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
620
|
+
readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
|
|
618
621
|
}
|
|
619
622
|
interface SourceCard {
|
|
620
623
|
readonly exp_month: number;
|
|
@@ -642,11 +645,47 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
642
645
|
readonly first_name?: string;
|
|
643
646
|
readonly last_name?: string;
|
|
644
647
|
readonly client_token: string;
|
|
648
|
+
readonly payment_method_categories?: string;
|
|
649
|
+
readonly purchase_country?: string;
|
|
650
|
+
readonly shipping_first_name?: string;
|
|
651
|
+
readonly shipping_last_name?: string;
|
|
652
|
+
readonly locale?: string;
|
|
653
|
+
readonly pay_later_name?: string;
|
|
654
|
+
readonly pay_later_asset_urls_standard?: string;
|
|
655
|
+
readonly pay_later_asset_urls_descriptive?: string;
|
|
656
|
+
readonly pay_now_name?: string;
|
|
657
|
+
readonly pay_now_asset_urls_standard?: string;
|
|
658
|
+
readonly pay_now_asset_urls_descriptive?: string;
|
|
659
|
+
readonly pay_over_time_name?: string;
|
|
660
|
+
readonly pay_over_time_asset_urls_standard?: string;
|
|
661
|
+
readonly pay_over_time_asset_urls_descriptive?: string;
|
|
662
|
+
readonly direct_bank_transfer_name?: string;
|
|
663
|
+
readonly direct_bank_transfer_asset_urls_standard?: string;
|
|
664
|
+
readonly direct_bank_transfer_asset_urls_descriptive?: string;
|
|
665
|
+
readonly direct_debit_name?: string;
|
|
666
|
+
readonly direct_debit_asset_urls_standard?: string;
|
|
667
|
+
readonly direct_debit_asset_urls_descriptive?: string;
|
|
645
668
|
}
|
|
646
669
|
interface SourceKlarnaRequest {
|
|
647
670
|
readonly first_name: string;
|
|
648
671
|
readonly last_name: string;
|
|
672
|
+
readonly purchase_country?: string;
|
|
673
|
+
readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
|
|
649
674
|
readonly attachment?: string;
|
|
675
|
+
readonly shipping_first_name?: string;
|
|
676
|
+
readonly shipping_last_name?: string;
|
|
677
|
+
readonly locale?: string;
|
|
678
|
+
}
|
|
679
|
+
interface SourceOrder {
|
|
680
|
+
readonly amount?: number;
|
|
681
|
+
readonly currency?: string;
|
|
682
|
+
readonly email?: string;
|
|
683
|
+
readonly items?: io.flow.stripe.v0.models.OrderItem[];
|
|
684
|
+
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
685
|
+
}
|
|
686
|
+
interface SourceOrderRequest {
|
|
687
|
+
readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
|
|
688
|
+
readonly shipping?: io.flow.stripe.v0.models.Shipping;
|
|
650
689
|
}
|
|
651
690
|
interface SourceRequest {
|
|
652
691
|
readonly type?: io.flow.stripe.v0.enums.SourceType;
|
|
@@ -663,6 +702,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
663
702
|
readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
|
|
664
703
|
readonly token?: string;
|
|
665
704
|
readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
|
|
705
|
+
readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
|
|
666
706
|
}
|
|
667
707
|
interface Stripe3Ds2Fingerprint {
|
|
668
708
|
readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
|
|
@@ -2492,7 +2532,7 @@ declare namespace io.flow.v0.models {
|
|
|
2492
2532
|
readonly type: 'use_sdk_klarna_v1';
|
|
2493
2533
|
readonly expires_at?: string;
|
|
2494
2534
|
readonly client_token: string;
|
|
2495
|
-
readonly payment_method_categories:
|
|
2535
|
+
readonly payment_method_categories: io.flow.v0.models.KlarnaPaymentCategory[];
|
|
2496
2536
|
}
|
|
2497
2537
|
interface ActionUseSdkPaypal {
|
|
2498
2538
|
readonly type: 'use_sdk_paypal';
|
|
@@ -5664,6 +5704,23 @@ declare namespace io.flow.v0.models {
|
|
|
5664
5704
|
readonly headers: Record<string, string[]>;
|
|
5665
5705
|
readonly body: any;
|
|
5666
5706
|
}
|
|
5707
|
+
interface KlarnaPaymentCategory {
|
|
5708
|
+
readonly id: string;
|
|
5709
|
+
readonly name: string;
|
|
5710
|
+
readonly standard_asset_url?: string;
|
|
5711
|
+
readonly descriptive_asset_url?: string;
|
|
5712
|
+
}
|
|
5713
|
+
interface KlarnaPaymentMethodCategory {
|
|
5714
|
+
readonly id: string;
|
|
5715
|
+
readonly name?: string;
|
|
5716
|
+
readonly standard_asset_url?: string;
|
|
5717
|
+
readonly descriptive_asset_url?: string;
|
|
5718
|
+
}
|
|
5719
|
+
interface KlarnaSdkAuthorizationResultActionDetails {
|
|
5720
|
+
readonly discriminator: 'klarna_sdk_authorization_result_action_details';
|
|
5721
|
+
readonly client_token: string;
|
|
5722
|
+
readonly payment_method_categories: io.flow.v0.models.KlarnaPaymentMethodCategory[];
|
|
5723
|
+
}
|
|
5667
5724
|
interface KlaviyoLineItem {
|
|
5668
5725
|
readonly content: io.flow.v0.models.CheckoutItemContent;
|
|
5669
5726
|
readonly quantity: number;
|
|
@@ -7269,6 +7326,18 @@ declare namespace io.flow.v0.models {
|
|
|
7269
7326
|
readonly type: 'authorize_googlepay';
|
|
7270
7327
|
readonly payment_data: any;
|
|
7271
7328
|
}
|
|
7329
|
+
interface PaymentMethodDataAuthorizeKlarna {
|
|
7330
|
+
readonly type: 'authorize_klarna';
|
|
7331
|
+
readonly result: io.flow.v0.unions.PaymentMethodDataAuthorizeKlarnaResult;
|
|
7332
|
+
}
|
|
7333
|
+
interface PaymentMethodDataAuthorizeKlarnaResultFailure {
|
|
7334
|
+
readonly type: 'failure';
|
|
7335
|
+
readonly placeholder?: string;
|
|
7336
|
+
}
|
|
7337
|
+
interface PaymentMethodDataAuthorizeKlarnaResultSuccess {
|
|
7338
|
+
readonly type: 'success';
|
|
7339
|
+
readonly authorization_token: string;
|
|
7340
|
+
}
|
|
7272
7341
|
interface PaymentMethodDataAuthorizePaypal {
|
|
7273
7342
|
readonly type: 'authorize_paypal';
|
|
7274
7343
|
readonly payment_id: string;
|
|
@@ -9450,6 +9519,7 @@ declare namespace io.flow.v0.models {
|
|
|
9450
9519
|
interface TaxDutyQuoteFeeValue {
|
|
9451
9520
|
readonly amount: number;
|
|
9452
9521
|
readonly description: string;
|
|
9522
|
+
readonly amount_refundable_on_return: number;
|
|
9453
9523
|
}
|
|
9454
9524
|
interface TaxDutyQuoteForm {
|
|
9455
9525
|
readonly primary_identifier: string;
|
|
@@ -9476,7 +9546,7 @@ declare namespace io.flow.v0.models {
|
|
|
9476
9546
|
readonly quantity: number;
|
|
9477
9547
|
readonly unit_price: number;
|
|
9478
9548
|
readonly unit_weight?: io.flow.v0.models.Measurement;
|
|
9479
|
-
readonly country_of_origin
|
|
9549
|
+
readonly country_of_origin?: string;
|
|
9480
9550
|
readonly hs_code: string;
|
|
9481
9551
|
readonly includes: io.flow.v0.enums.LevyInclusion[];
|
|
9482
9552
|
}
|
|
@@ -9486,6 +9556,7 @@ declare namespace io.flow.v0.models {
|
|
|
9486
9556
|
readonly rate: number;
|
|
9487
9557
|
readonly description: string;
|
|
9488
9558
|
readonly zero_levy_reason?: io.flow.v0.enums.ZeroLevyReasonCode[];
|
|
9559
|
+
readonly amount_refundable_on_return: number;
|
|
9489
9560
|
}
|
|
9490
9561
|
interface TaxDutyQuoteSimpleShipping {
|
|
9491
9562
|
readonly values: io.flow.v0.models.TaxDutyQuoteValues;
|
|
@@ -9989,7 +10060,7 @@ declare namespace io.flow.v0.unions {
|
|
|
9989
10060
|
type AuthorizationForm = io.flow.v0.models.AuthorizationCopyForm | io.flow.v0.models.DirectAuthorizationForm | io.flow.v0.models.MerchantOfRecordAuthorizationForm | io.flow.v0.models.PaypalAuthorizationForm | io.flow.v0.models.RedirectAuthorizationForm | io.flow.v0.models.InlineAuthorizationForm | io.flow.v0.models.AchAuthorizationForm | io.flow.v0.models.CardPaymentSourceAuthorizationForm | io.flow.v0.models.OnlinePaymentAuthorizationForm;
|
|
9990
10061
|
type AuthorizationPayloadParameters = io.flow.v0.models.GooglePayAuthorizationPayload | io.flow.v0.models.ApplePayMerchantValidationPayload;
|
|
9991
10062
|
type AuthorizationResultAction = io.flow.v0.models.AuthorizationResultActionGet | io.flow.v0.models.AuthorizationResultActionPost | io.flow.v0.models.AuthorizationResultActionWait | io.flow.v0.models.AuthorizationResultActionNative;
|
|
9992
|
-
type AuthorizationResultActionDetails = io.flow.v0.models.AdyenNativeActionDetails | io.flow.v0.models.StripeAuthorizationResultActionDetails | io.flow.v0.models.ThreedsIdentifyActionDetails | io.flow.v0.models.ThreedsChallengeActionDetails;
|
|
10063
|
+
type AuthorizationResultActionDetails = io.flow.v0.models.AdyenNativeActionDetails | io.flow.v0.models.StripeAuthorizationResultActionDetails | io.flow.v0.models.ThreedsIdentifyActionDetails | io.flow.v0.models.ThreedsChallengeActionDetails | io.flow.v0.models.KlarnaSdkAuthorizationResultActionDetails;
|
|
9993
10064
|
type AvailableFilter = io.flow.v0.models.AvailableFilterStructured | io.flow.v0.models.AvailableFilterUnstructured;
|
|
9994
10065
|
type BrowserActionConfiguration = io.flow.v0.models.CardBrowserActionConfiguration;
|
|
9995
10066
|
type CardAuthorizationActionResult = io.flow.v0.models.AuthorizationActionResultAdyenV3 | io.flow.v0.models.AuthorizationActionResultAdyenV4;
|
|
@@ -10037,7 +10108,8 @@ declare namespace io.flow.v0.unions {
|
|
|
10037
10108
|
type PaymentCaptureOption = io.flow.v0.models.PaymentCaptureOptionAutomaticImmediate | io.flow.v0.models.PaymentCaptureOptionManual;
|
|
10038
10109
|
type PaymentForm = io.flow.v0.models.MerchantOfRecordPaymentForm;
|
|
10039
10110
|
type PaymentMethodCard = io.flow.v0.models.PaymentMethodCardPciDetails | io.flow.v0.models.PaymentMethodCardToken;
|
|
10040
|
-
type PaymentMethodData = io.flow.v0.models.PaymentMethodDataInitKlarna | io.flow.v0.models.PaymentMethodDataInitAfterpay | io.flow.v0.models.PaymentMethodDataInitApplepay | io.flow.v0.models.PaymentMethodDataInitGooglepay | io.flow.v0.models.PaymentMethodDataInitPaypal | io.flow.v0.models.PaymentMethodDataInitIdeal | io.flow.v0.models.PaymentMethodDataValidateApplepay | io.flow.v0.models.PaymentMethodDataAuthorizeCard | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay | io.flow.v0.models.PaymentMethodDataAuthorizeApplepay | io.flow.v0.models.PaymentMethodDataAuthorizePaypal | io.flow.v0.models.PaymentMethodDataCompleteAuthorizationCard;
|
|
10111
|
+
type PaymentMethodData = io.flow.v0.models.PaymentMethodDataInitKlarna | io.flow.v0.models.PaymentMethodDataInitAfterpay | io.flow.v0.models.PaymentMethodDataInitApplepay | io.flow.v0.models.PaymentMethodDataInitGooglepay | io.flow.v0.models.PaymentMethodDataInitPaypal | io.flow.v0.models.PaymentMethodDataInitIdeal | io.flow.v0.models.PaymentMethodDataValidateApplepay | io.flow.v0.models.PaymentMethodDataAuthorizeCard | io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay | io.flow.v0.models.PaymentMethodDataAuthorizeApplepay | io.flow.v0.models.PaymentMethodDataAuthorizePaypal | io.flow.v0.models.PaymentMethodDataAuthorizeKlarna | io.flow.v0.models.PaymentMethodDataCompleteAuthorizationCard;
|
|
10112
|
+
type PaymentMethodDataAuthorizeKlarnaResult = io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultSuccess | io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultFailure;
|
|
10041
10113
|
type PaymentMethodSummary = io.flow.v0.models.PaymentMethodSummaryCard | io.flow.v0.models.PaymentMethodSummaryKlarna | io.flow.v0.models.PaymentMethodSummaryAfterpay | io.flow.v0.models.PaymentMethodSummaryApplepay | io.flow.v0.models.PaymentMethodSummaryGooglepay | io.flow.v0.models.PaymentMethodSummaryPaypal | io.flow.v0.models.PaymentMethodSummaryIdeal;
|
|
10042
10114
|
type PaymentMethodTag = {
|
|
10043
10115
|
discriminator: 'organization_payment_method_tag';
|
|
@@ -10742,6 +10814,9 @@ export declare type ItemShippingPricing = io.flow.v0.models.ItemShippingPricing;
|
|
|
10742
10814
|
export declare type ItemStatistics = io.flow.v0.models.ItemStatistics;
|
|
10743
10815
|
export declare type ItemVersion = io.flow.v0.models.ItemVersion;
|
|
10744
10816
|
export declare type JsonpResponse = io.flow.v0.models.JsonpResponse;
|
|
10817
|
+
export declare type KlarnaPaymentCategory = io.flow.v0.models.KlarnaPaymentCategory;
|
|
10818
|
+
export declare type KlarnaPaymentMethodCategory = io.flow.v0.models.KlarnaPaymentMethodCategory;
|
|
10819
|
+
export declare type KlarnaSdkAuthorizationResultActionDetails = io.flow.v0.models.KlarnaSdkAuthorizationResultActionDetails;
|
|
10745
10820
|
export declare type KlaviyoLineItem = io.flow.v0.models.KlaviyoLineItem;
|
|
10746
10821
|
export declare type KlaviyoOrderContent = io.flow.v0.models.KlaviyoOrderContent;
|
|
10747
10822
|
export declare type KlaviyoOrderPrices = io.flow.v0.models.KlaviyoOrderPrices;
|
|
@@ -11045,6 +11120,10 @@ export declare type PaymentMethodData = io.flow.v0.unions.PaymentMethodData;
|
|
|
11045
11120
|
export declare type PaymentMethodDataAuthorizeApplepay = io.flow.v0.models.PaymentMethodDataAuthorizeApplepay;
|
|
11046
11121
|
export declare type PaymentMethodDataAuthorizeCard = io.flow.v0.models.PaymentMethodDataAuthorizeCard;
|
|
11047
11122
|
export declare type PaymentMethodDataAuthorizeGooglepay = io.flow.v0.models.PaymentMethodDataAuthorizeGooglepay;
|
|
11123
|
+
export declare type PaymentMethodDataAuthorizeKlarna = io.flow.v0.models.PaymentMethodDataAuthorizeKlarna;
|
|
11124
|
+
export declare type PaymentMethodDataAuthorizeKlarnaResult = io.flow.v0.unions.PaymentMethodDataAuthorizeKlarnaResult;
|
|
11125
|
+
export declare type PaymentMethodDataAuthorizeKlarnaResultFailure = io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultFailure;
|
|
11126
|
+
export declare type PaymentMethodDataAuthorizeKlarnaResultSuccess = io.flow.v0.models.PaymentMethodDataAuthorizeKlarnaResultSuccess;
|
|
11048
11127
|
export declare type PaymentMethodDataAuthorizePaypal = io.flow.v0.models.PaymentMethodDataAuthorizePaypal;
|
|
11049
11128
|
export declare type PaymentMethodDataCompleteAuthorizationCard = io.flow.v0.models.PaymentMethodDataCompleteAuthorizationCard;
|
|
11050
11129
|
export declare type PaymentMethodDataInitAfterpay = io.flow.v0.models.PaymentMethodDataInitAfterpay;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/types",
|
|
3
|
-
"version": "11.22.
|
|
3
|
+
"version": "11.22.1",
|
|
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": "ae96a8120e0bba0395976a7c77910d0ddf48bc98"
|
|
29
29
|
}
|