@flowio/api-types 0.0.226 → 0.0.227
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/generated/io.flow.billing.accounting.v0.billing-accounting.d.ts +13 -0
- package/generated/io.flow.billing.bank.account.v0.billing-bank-account.d.ts +1 -1
- package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +1 -1
- package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +0 -1
- package/generated/io.flow.billing.reporting.v0.billing-reporting.d.ts +15 -16
- package/generated/io.flow.billing.v0.billing.d.ts +6 -1
- package/generated/io.flow.channel.internal.v0.channel-internal.d.ts +1 -1
- package/generated/io.flow.experiment.internal.v0.experiment-internal.d.ts +191 -0
- package/generated/io.flow.internal.v0.api-internal.d.ts +585 -324
- package/generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts +6 -1
- package/generated/io.flow.payment.gateway.v0.payment-gateway.d.ts +7 -1
- package/generated/io.flow.payment.v0.payment.d.ts +11 -1
- package/generated/io.flow.shopify.external.v0.shopify-external.d.ts +1 -0
- package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts +16 -1
- package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +11 -0
- package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
- package/generated/io.flow.stripe.v0.stripe.d.ts +162 -5
- package/generated/io.flow.v0.api.d.ts +29 -3
- package/index.d.ts +1 -14
- package/package.json +2 -2
- package/generated/io.flow.billing.csv.v0.billing-csv.d.ts +0 -454
- package/generated/io.flow.checkout.analytics.v0.checkout-analytics.d.ts +0 -137
- package/generated/io.flow.checkout.backend.v0.checkout-backend.d.ts +0 -539
- package/generated/io.flow.checkout.common.v0.checkout-common.d.ts +0 -57
- package/generated/io.flow.checkout.configuration.v0.checkout-configuration.d.ts +0 -113
- package/generated/io.flow.checkout.protocol.v0.checkout-protocol.d.ts +0 -1347
- package/generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts +0 -204
- package/generated/io.flow.content.internal.v0.content-internal.d.ts +0 -168
- package/generated/io.flow.currency.internal.v0.currency-internal.d.ts +0 -119
- package/generated/io.flow.experience.internal.v0.experience-internal.d.ts +0 -247
- package/generated/io.flow.feature.v0.feature.d.ts +0 -121
- package/generated/io.flow.optin.internal.v0.optin-internal.d.ts +0 -73
- package/generated/io.flow.price.internal.v0.price-internal.d.ts +0 -4
- package/generated/io.flow.svb.v0.svb.d.ts +0 -166
package/generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare namespace io.flow.organization.onboarding.state.v0.enums {
|
|
2
2
|
type MerchantDisabledReason = 'merchant_deactivated' | 'merchant_rejected';
|
|
3
3
|
type MerchantRejectedReason = 'merchant_ubo_is_pep' | 'merchant_catalog_is_unsupportable' | 'merchant_failed_kyb_review';
|
|
4
|
-
type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box' | 'exception_merchant' | 'application_missing';
|
|
4
|
+
type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box' | 'exception_merchant' | 'application_missing' | 'missing_logistics_contact_info';
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
declare namespace io.flow.organization.onboarding.state.v0.models {
|
|
@@ -61,6 +61,11 @@ declare namespace io.flow.organization.onboarding.state.v0.models {
|
|
|
61
61
|
readonly 'onboarding_started_at'?: string;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
+
interface RejectionPutForm {
|
|
65
|
+
readonly 'reason': io.flow.organization.onboarding.state.v0.enums.MerchantRejectedReason;
|
|
66
|
+
readonly 'description': string;
|
|
67
|
+
}
|
|
68
|
+
|
|
64
69
|
interface SetupBlocked {
|
|
65
70
|
readonly 'discriminator': 'setup_blocked';
|
|
66
71
|
readonly 'reasons': io.flow.organization.onboarding.state.v0.enums.OnboardingBlockedReason[];
|
|
@@ -4,7 +4,7 @@ declare namespace io.flow.payment.gateway.v0.enums {
|
|
|
4
4
|
type PaymentFailureCode = 'action_expired' | 'action_cancelled' | 'action_failed' | 'authorization_declined' | 'not_supported' | 'fraudulent' | 'error' | 'payment_checks_declined';
|
|
5
5
|
type PaymentMethodDataOptionType = 'ideal_issuer_option';
|
|
6
6
|
type PaymentRequestReviewCheckStatus = 'passed' | 'failed';
|
|
7
|
-
type PaymentRequestReviewCheckType = 'restricted_party_screening' | 'fraud_suspicious_behavior' | 'fraud_suspicious_past_activity' | 'fraud_risky_velocity' | 'fraud_previous_chargebacks' | 'order_restricted_goods' | 'order_unsupported_destination' | 'order_missing_information' | 'order_domestic' | 'order_mismatched_currencies';
|
|
7
|
+
type PaymentRequestReviewCheckType = 'restricted_party_screening' | 'fraud_suspicious_behavior' | 'fraud_suspicious_past_activity' | 'fraud_risky_velocity' | 'fraud_previous_chargebacks' | 'order_restricted_goods' | 'order_unsupported_destination' | 'order_missing_information' | 'order_domestic' | 'order_mismatched_currencies' | 'order_missing';
|
|
8
8
|
type PaymentRequestReviewStatus = 'pending' | 'approved' | 'rejected';
|
|
9
9
|
type PaymentStatus = 'requires_payment_method' | 'requires_action' | 'processing' | 'cancelled' | 'expired' | 'authorized' | 'reversed' | 'captured' | 'refunded' | 'in_dispute' | 'charged_back';
|
|
10
10
|
type PaymentType = 'card' | 'klarna' | 'googlepay' | 'paypal' | 'applepay' | 'ideal' | 'sofort' | 'afterpay' | 'bancontact';
|
|
@@ -556,6 +556,11 @@ declare namespace io.flow.payment.gateway.v0.models {
|
|
|
556
556
|
readonly 'review'?: io.flow.payment.gateway.v0.models.PaymentRequestReview;
|
|
557
557
|
}
|
|
558
558
|
|
|
559
|
+
interface PaymentRequestCancellationReasonOrderMissing {
|
|
560
|
+
readonly 'type': 'order_missing';
|
|
561
|
+
readonly 'description'?: string;
|
|
562
|
+
}
|
|
563
|
+
|
|
559
564
|
interface PaymentRequestForm {
|
|
560
565
|
readonly 'amount': number;
|
|
561
566
|
readonly 'currency': string;
|
|
@@ -636,5 +641,6 @@ declare namespace io.flow.payment.gateway.v0.unions {
|
|
|
636
641
|
type PaymentMethodDataOptionLogo = (io.flow.payment.gateway.v0.models.PaymentMethodDataOptionLogoSvg);
|
|
637
642
|
type PaymentMethodStoredDetailsCard = (io.flow.payment.gateway.v0.models.PaymentMethodStoredDetailsCardInitial | io.flow.payment.gateway.v0.models.PaymentMethodStoredDetailsCardSubsequent);
|
|
638
643
|
type PaymentMethodSummary = (io.flow.payment.gateway.v0.models.PaymentMethodSummaryCard | io.flow.payment.gateway.v0.models.PaymentMethodSummaryKlarna | io.flow.payment.gateway.v0.models.PaymentMethodSummaryAfterpay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryApplepay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryGooglepay | io.flow.payment.gateway.v0.models.PaymentMethodSummaryPaypal | io.flow.payment.gateway.v0.models.PaymentMethodSummaryIdeal | io.flow.payment.gateway.v0.models.PaymentMethodSummarySofort | io.flow.payment.gateway.v0.models.PaymentMethodSummaryBancontact);
|
|
644
|
+
type PaymentRequestCancellationReason = (io.flow.payment.gateway.v0.models.PaymentRequestCancellationReasonOrderMissing);
|
|
639
645
|
type SdkAdyenV3AuthenticationToken = (io.flow.payment.gateway.v0.models.AdyenV3FingerprintToken | io.flow.payment.gateway.v0.models.AdyenV3ChallengeToken);
|
|
640
646
|
}
|
|
@@ -621,6 +621,15 @@ declare namespace io.flow.payment.v0.models {
|
|
|
621
621
|
readonly 'processor': string;
|
|
622
622
|
}
|
|
623
623
|
|
|
624
|
+
interface PaymentProcessorTransactionDetailsApm {
|
|
625
|
+
readonly 'discriminator': 'apm';
|
|
626
|
+
readonly 'transaction_identifier'?: string;
|
|
627
|
+
readonly 'capture_identifier'?: string;
|
|
628
|
+
readonly 'method_type'?: string;
|
|
629
|
+
readonly 'result_status'?: string;
|
|
630
|
+
readonly 'reason_code'?: string;
|
|
631
|
+
}
|
|
632
|
+
|
|
624
633
|
interface PaymentProcessorTransactionDetailsCard {
|
|
625
634
|
readonly 'discriminator': 'card';
|
|
626
635
|
readonly 'transaction_identifier'?: string;
|
|
@@ -650,6 +659,7 @@ declare namespace io.flow.payment.v0.models {
|
|
|
650
659
|
interface PaypalAuthorizationDetails {
|
|
651
660
|
readonly 'discriminator': 'paypal_authorization_details';
|
|
652
661
|
readonly 'payment_id': string;
|
|
662
|
+
readonly 'internal_payment_id'?: string;
|
|
653
663
|
readonly 'payment_method'?: string;
|
|
654
664
|
readonly 'payment_state'?: string;
|
|
655
665
|
readonly 'payer_id'?: string;
|
|
@@ -963,7 +973,7 @@ declare namespace io.flow.payment.v0.unions {
|
|
|
963
973
|
type Payment = (io.flow.payment.v0.models.PaymentPaypal | io.flow.payment.v0.models.PaymentCryptopay);
|
|
964
974
|
type PaymentForm = (io.flow.payment.v0.models.MerchantOfRecordPaymentForm);
|
|
965
975
|
type PaymentOrderReference = (io.flow.payment.v0.models.AuthorizationOrderReference | io.flow.payment.v0.models.PaymentPaymentRequestReference);
|
|
966
|
-
type PaymentProcessorTransactionDetails = (io.flow.payment.v0.models.PaymentProcessorTransactionDetailsCard);
|
|
976
|
+
type PaymentProcessorTransactionDetails = (io.flow.payment.v0.models.PaymentProcessorTransactionDetailsCard | io.flow.payment.v0.models.PaymentProcessorTransactionDetailsApm);
|
|
967
977
|
type PaymentSource = (io.flow.payment.v0.models.CardPaymentSource);
|
|
968
978
|
type PaymentSourceForm = (io.flow.payment.v0.models.CardPaymentSourceForm);
|
|
969
979
|
type ThreedsChallengeAction = (io.flow.payment.v0.models.ThreedsTwoChallengeRequest);
|
|
@@ -163,6 +163,7 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
163
163
|
readonly 'published_at'?: string;
|
|
164
164
|
readonly 'created_at': string;
|
|
165
165
|
readonly 'updated_at': string;
|
|
166
|
+
readonly 'has_variants_that_requires_components'?: boolean;
|
|
166
167
|
}
|
|
167
168
|
|
|
168
169
|
interface ProductDelete {
|
package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts
CHANGED
|
@@ -31,6 +31,21 @@ declare namespace io.flow.shopify.markets.internal.event.v0.models {
|
|
|
31
31
|
readonly 'channel_organization_identifier': io.flow.shopify.markets.internal.v0.models.ChannelOrganizationIdentifier;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
interface OrderTaxAndDutyInclusivitySettingDeleted {
|
|
35
|
+
readonly 'discriminator': 'order_tax_and_duty_inclusivity_setting_deleted';
|
|
36
|
+
readonly 'event_id': string;
|
|
37
|
+
readonly 'timestamp': string;
|
|
38
|
+
readonly 'organization': string;
|
|
39
|
+
readonly 'id': string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
interface OrderTaxAndDutyInclusivitySettingUpserted {
|
|
43
|
+
readonly 'discriminator': 'order_tax_and_duty_inclusivity_setting_upserted';
|
|
44
|
+
readonly 'event_id': string;
|
|
45
|
+
readonly 'timestamp': string;
|
|
46
|
+
readonly 'order_tax_and_duty_inclusivity_setting': io.flow.shopify.markets.internal.v0.models.OrderTaxAndDutyInclusivitySetting;
|
|
47
|
+
}
|
|
48
|
+
|
|
34
49
|
interface ShopifyMarketsMetricsDeleted {
|
|
35
50
|
readonly 'discriminator': 'shopify_markets_metrics_deleted';
|
|
36
51
|
readonly 'event_id': string;
|
|
@@ -116,5 +131,5 @@ declare namespace io.flow.shopify.markets.internal.event.v0.models {
|
|
|
116
131
|
}
|
|
117
132
|
|
|
118
133
|
declare namespace io.flow.shopify.markets.internal.event.v0.unions {
|
|
119
|
-
type ShopifyMarketsInternalEvent = (io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrderUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrderDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsWebhookRegistrationUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsWebhookRegistrationDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopStatisticsUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopStatisticsDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsMetricsUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsMetricsDeleted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrderSummaryUpserted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrderSummaryDeleted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierUpserted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierDeleted);
|
|
134
|
+
type ShopifyMarketsInternalEvent = (io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrderUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsOrderDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsWebhookRegistrationUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsWebhookRegistrationDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopStatisticsUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsShopStatisticsDeleted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsMetricsUpserted | io.flow.shopify.markets.internal.event.v0.models.ShopifyMarketsMetricsDeleted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrderSummaryUpserted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrderSummaryDeleted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierUpserted | io.flow.shopify.markets.internal.event.v0.models.ChannelOrganizationIdentifierDeleted | io.flow.shopify.markets.internal.event.v0.models.OrderTaxAndDutyInclusivitySettingUpserted | io.flow.shopify.markets.internal.event.v0.models.OrderTaxAndDutyInclusivitySettingDeleted);
|
|
120
135
|
}
|
|
@@ -6,6 +6,7 @@ declare namespace io.flow.shopify.markets.internal.v0.enums {
|
|
|
6
6
|
type ShopifyMarketsDangerousGoods = 'aerosols' | 'air_bag_inflators_or_seat_belt_pretensioners' | 'alcoholic_beverages_containing_more_than_24_percent_alcohol_by_volume' | 'batteries' | 'carbon_dioxide_or_dry_ice' | 'corrosives' | 'cannabidiol_products' | 'cologne_or_perfume' | 'currency_or_gift_cards_or_monetary_instruments' | 'exotic_leather_goods' | 'environmental_waste' | 'explosives_or_ammunition' | 'flammable_liquids' | 'gases' | 'hazardous_or_combustible_materials' | 'infectious_or_biological_substances' | 'knives' | 'matches_or_lighter_or_lighter_refills' | 'nail_polish' | 'oxidizing_materials_or_organic_peroxides' | 'pornography' | 'prohibited_carriage' | 'pesticides_or_toxic_herbicides_or_insecticides_or_poisonous_toxic_substances';
|
|
7
7
|
type ShopifyMarketsHtsNumberAvailable = 'yes' | 'no' | 'i_dont_know';
|
|
8
8
|
type ShopifyMarketsTradeSector = 'apparel_and_accessories' | 'beauty_and_cosmetics' | 'electronics' | 'food_or_perishables' | 'jewellery_and_watches' | 'paper_and_art' | 'sports_and_fitness' | 'toys_hobbies_gifts' | 'other';
|
|
9
|
+
type TaxAndDutyInclusivitySetting = 'duty_exclusive_tax_exclusive' | 'duty_inclusive_tax_exclusive' | 'duty_exclusive_tax_inclusive' | 'duty_inclusive_tax_inclusive';
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
declare namespace io.flow.shopify.markets.internal.v0.models {
|
|
@@ -55,6 +56,14 @@ declare namespace io.flow.shopify.markets.internal.v0.models {
|
|
|
55
56
|
readonly 'id': string;
|
|
56
57
|
}
|
|
57
58
|
|
|
59
|
+
interface OrderTaxAndDutyInclusivitySetting {
|
|
60
|
+
readonly 'id': string;
|
|
61
|
+
readonly 'organization_id': string;
|
|
62
|
+
readonly 'shopify_order_id': string;
|
|
63
|
+
readonly 'order_number': string;
|
|
64
|
+
readonly 'tax_and_duty_inclusivity_setting': io.flow.shopify.markets.internal.v0.enums.TaxAndDutyInclusivitySetting;
|
|
65
|
+
}
|
|
66
|
+
|
|
58
67
|
interface OrderValidationError {
|
|
59
68
|
readonly 'message': string;
|
|
60
69
|
readonly 'reason': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
|
|
@@ -183,6 +192,8 @@ declare namespace io.flow.shopify.markets.internal.v0.models {
|
|
|
183
192
|
readonly 'id': string;
|
|
184
193
|
readonly 'initial_catalog_synced_at'?: string;
|
|
185
194
|
readonly 'catalog_sync_duration'?: number;
|
|
195
|
+
readonly 'restrictions_sync_duration'?: number;
|
|
196
|
+
readonly 'classifications_sync_duration'?: number;
|
|
186
197
|
readonly 'catalog_products_count'?: number;
|
|
187
198
|
readonly 'initial_product_restrictions_synced_at'?: string;
|
|
188
199
|
}
|
|
@@ -23,7 +23,7 @@ declare namespace io.flow.shopify.markets.v0.enums {
|
|
|
23
23
|
type ShopifyOrderFulfillmentStatusType = 'fulfilled' | 'null' | 'partial';
|
|
24
24
|
type ShopifyOrderInventoryBehaviour = 'bypass' | 'decrement_ignoring_policy' | 'decrement_obeying_policy';
|
|
25
25
|
type ShopifyOrderKindType = 'authorization' | 'capture' | 'sale' | 'void' | 'refund';
|
|
26
|
-
type ShopifyOrderPaymentGatewayNames = 'flow_commerce' | 'gift_card' | 'manual' | 'shopify_payments' | 'shop_cash';
|
|
26
|
+
type ShopifyOrderPaymentGatewayNames = 'flow_commerce' | 'gift_card' | 'manual' | 'shopify_payments' | 'shop_cash' | 'shopify_store_credit';
|
|
27
27
|
type ShopifyOrderProcessingMethodType = 'checkout' | 'direct' | 'manual' | 'offsite' | 'express' | 'deferred_payment';
|
|
28
28
|
type ShopifyOrderRestockType = 'no_restock' | 'cancel' | 'return';
|
|
29
29
|
type ShopifyOrderStatusType = 'open' | 'closed' | 'cancelled' | 'any';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare namespace io.flow.stripe.v0.enums {
|
|
2
2
|
type AccountType = 'platform' | 'custom' | 'standard' | 'express';
|
|
3
3
|
type ApplePayType = 'apple_pay' | 'apple_pay_later';
|
|
4
|
+
type BankIdeal = 'abn_amro' | 'asn_bank' | 'bunq' | 'handelsbanken' | 'ing' | 'knab' | 'moneyou' | 'n26' | 'nn' | 'rabobank' | 'regiobank' | 'revolut' | 'sns_bank' | 'triodos_bank' | 'van_lanschot' | 'yoursafe';
|
|
5
|
+
type BicIdeal = 'ABNANL2A' | 'ASNBNL21' | 'BITSNL2A' | 'BUNQNL2A' | 'FVLBNL22' | 'HANDNL2A' | 'INGBNL2A' | 'KNABNL2H' | 'MOYONL21' | 'NNBANL2G' | 'NTSBDEB1' | 'RABONL2U' | 'RBRBNL21' | 'REVOIE23' | 'REVOLT21' | 'SNSBNL2A' | 'TRIONL2U';
|
|
4
6
|
type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
|
|
5
7
|
type CaptureMethod = 'automatic' | 'manual';
|
|
6
8
|
type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
|
|
@@ -10,9 +12,14 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
10
12
|
type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
|
|
11
13
|
type ConfirmationMethod = 'automatic' | 'manual';
|
|
12
14
|
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';
|
|
15
|
+
type DisputeEventType = 'charge.dispute.closed' | 'charge.dispute.created' | 'charge.dispute.funds_reinstated' | 'charge.dispute.funds_withdrawn' | 'charge.dispute.updated';
|
|
16
|
+
type DisputePaymentMethodDetailsCardCaseType = 'chargeback' | 'inquiry';
|
|
17
|
+
type DisputePaymentMethodDetailsType = 'card' | 'klarna' | 'paypal';
|
|
18
|
+
type DisputeReason = 'bank_cannot_process' | 'check_returned' | 'credit_not_processed' | 'customer_initiated' | 'debit_not_authorized' | 'duplicate' | 'fraudulent' | 'general' | 'incorrect_account_details' | 'insufficient_funds' | 'product_not_received' | 'product_unacceptable' | 'subscription_canceled' | 'unrecognized';
|
|
19
|
+
type DisputeStatus = 'warning_needs_response' | 'warning_under_review' | 'warning_closed' | 'needs_response' | 'under_review' | 'won' | 'lost';
|
|
13
20
|
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';
|
|
14
21
|
type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
|
|
15
|
-
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';
|
|
22
|
+
type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'charge.dispute.closed' | 'charge.dispute.created' | 'charge.dispute.funds_reinstated' | 'charge.dispute.funds_withdrawn' | 'charge.dispute.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';
|
|
16
23
|
type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
|
|
17
24
|
type FeatureAvailability = 'available' | 'unavailable';
|
|
18
25
|
type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
|
|
@@ -22,9 +29,10 @@ declare namespace io.flow.stripe.v0.enums {
|
|
|
22
29
|
type OrderItemType = 'sku' | 'tax' | 'shipping' | 'discount';
|
|
23
30
|
type PaymentIntentStatus = 'canceled' | 'processing' | 'requires_action' | 'requires_capture' | 'requires_confirmation' | 'requires_payment_method' | 'succeeded';
|
|
24
31
|
type PaymentMethodCategoryKlarna = 'pay_later' | 'pay_now' | 'pay_with_financing' | 'pay_in_installments';
|
|
25
|
-
type PaymentMethodType = 'card' | 'card_present' | 'klarna';
|
|
32
|
+
type PaymentMethodType = 'card' | 'card_present' | 'ideal' | 'klarna' | 'bancontact';
|
|
26
33
|
type PaymentOutcomeType = 'authorized' | 'manual_review' | 'issuer_declined' | 'blocked' | 'invalid';
|
|
27
34
|
type PaymentStatus = 'succeeded' | 'pending' | 'failed';
|
|
35
|
+
type PreferredLanguageBancontact = 'de' | 'en' | 'fr' | 'nl';
|
|
28
36
|
type PreferredLocaleKlarna = 'de-AT' | 'en-AT' | 'nl-BE' | 'fr-BE' | 'en-BE' | 'de-DE' | 'en-DE' | 'da-DK' | 'en-DK' | 'es-ES' | 'en-ES' | 'fi-FI' | 'sv-FI' | 'en-FI' | 'en-GB' | 'en-IE' | 'it-IT' | 'en-IT' | 'nl-NL' | 'en-NL' | 'nb-NO' | 'en-NO' | 'sv-SE' | 'en-SE' | 'en-US' | 'es-US' | 'fr-FR' | 'en-FR' | 'cs-CZ' | 'en-CZ' | 'el-GR' | 'en-GR' | 'en-AU' | 'en-NZ' | 'en-CA' | 'fr-CA' | 'pl-PL' | 'en-PL' | 'pt-PT' | 'en-PT' | 'de-CH' | 'fr-CH' | 'it-CH' | 'en-CH';
|
|
29
37
|
type RefundFailureReason = 'lost_or_stolen_card' | 'expired_or_canceled_card' | 'unknown';
|
|
30
38
|
type RefundReason = 'duplicate' | 'fraudulent' | 'requested_by_customer';
|
|
@@ -259,6 +267,54 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
259
267
|
readonly 'description'?: string;
|
|
260
268
|
}
|
|
261
269
|
|
|
270
|
+
interface Dispute {
|
|
271
|
+
readonly 'id': string;
|
|
272
|
+
readonly 'amount': number;
|
|
273
|
+
readonly 'charge': string;
|
|
274
|
+
readonly 'currency': string;
|
|
275
|
+
readonly 'evidence': any/*object*/;
|
|
276
|
+
readonly 'metadata': Record<string, string>;
|
|
277
|
+
readonly 'payment_intent': string;
|
|
278
|
+
readonly 'reason': io.flow.stripe.v0.enums.DisputeReason;
|
|
279
|
+
readonly 'status': io.flow.stripe.v0.enums.DisputeStatus;
|
|
280
|
+
readonly 'object': string;
|
|
281
|
+
readonly 'balance_transactions': any/*object*/[];
|
|
282
|
+
readonly 'created': number;
|
|
283
|
+
readonly 'evidence_details': io.flow.stripe.v0.models.DisputeEvidenceDetails;
|
|
284
|
+
readonly 'is_charge_refundable': boolean;
|
|
285
|
+
readonly 'livemode': boolean;
|
|
286
|
+
readonly 'payment_method_details'?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
interface DisputeEvidenceDetails {
|
|
290
|
+
readonly 'due_by'?: number;
|
|
291
|
+
readonly 'has_evidence': boolean;
|
|
292
|
+
readonly 'past_due': boolean;
|
|
293
|
+
readonly 'submission_count': number;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
interface DisputePaymentMethodDetails {
|
|
297
|
+
readonly 'card'?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard;
|
|
298
|
+
readonly 'klarna'?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna;
|
|
299
|
+
readonly 'paypal'?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal;
|
|
300
|
+
readonly 'type': io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
interface DisputePaymentMethodDetailsCard {
|
|
304
|
+
readonly 'brand': string;
|
|
305
|
+
readonly 'case_type': io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
|
|
306
|
+
readonly 'network_reason_code'?: string;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
interface DisputePaymentMethodDetailsKlarna {
|
|
310
|
+
readonly 'reason_code'?: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
interface DisputePaymentMethodDetailsPaypal {
|
|
314
|
+
readonly 'case_id'?: string;
|
|
315
|
+
readonly 'reason_code'?: string;
|
|
316
|
+
}
|
|
317
|
+
|
|
262
318
|
interface Error {
|
|
263
319
|
readonly 'error': io.flow.stripe.v0.models.StripeError;
|
|
264
320
|
}
|
|
@@ -515,8 +571,10 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
515
571
|
readonly 'id': string;
|
|
516
572
|
readonly 'object': string;
|
|
517
573
|
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
574
|
+
readonly 'bancontact'?: any/*object*/;
|
|
518
575
|
readonly 'card'?: io.flow.stripe.v0.models.PaymentMethodCardDetails;
|
|
519
576
|
readonly 'card_present'?: any/*object*/;
|
|
577
|
+
readonly 'ideal'?: any/*object*/;
|
|
520
578
|
readonly 'klarna'?: any/*object*/;
|
|
521
579
|
readonly 'created': number;
|
|
522
580
|
readonly 'customer'?: string;
|
|
@@ -551,6 +609,12 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
551
609
|
readonly 'cvc'?: string;
|
|
552
610
|
}
|
|
553
611
|
|
|
612
|
+
interface PaymentMethodDataBancontact {
|
|
613
|
+
readonly 'type': 'bancontact';
|
|
614
|
+
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
615
|
+
readonly 'metadata'?: any/*object*/;
|
|
616
|
+
}
|
|
617
|
+
|
|
554
618
|
interface PaymentMethodDataCard {
|
|
555
619
|
readonly 'type': 'card';
|
|
556
620
|
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
@@ -558,6 +622,13 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
558
622
|
readonly 'card': io.flow.stripe.v0.models.PaymentMethodCardForm;
|
|
559
623
|
}
|
|
560
624
|
|
|
625
|
+
interface PaymentMethodDataIdeal {
|
|
626
|
+
readonly 'type': 'ideal';
|
|
627
|
+
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
628
|
+
readonly 'metadata'?: any/*object*/;
|
|
629
|
+
readonly 'ideal': io.flow.stripe.v0.models.PaymentMethodIdealForm;
|
|
630
|
+
}
|
|
631
|
+
|
|
561
632
|
interface PaymentMethodDataKlarna {
|
|
562
633
|
readonly 'type': 'klarna';
|
|
563
634
|
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
@@ -565,6 +636,22 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
565
636
|
readonly 'klarna': io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
|
|
566
637
|
}
|
|
567
638
|
|
|
639
|
+
interface PaymentMethodDetailsBancontact {
|
|
640
|
+
readonly 'type': 'bancontact';
|
|
641
|
+
readonly 'bancontact': io.flow.stripe.v0.models.PaymentMethodDetailsBancontactInformation;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
interface PaymentMethodDetailsBancontactInformation {
|
|
645
|
+
readonly 'bank_code'?: string;
|
|
646
|
+
readonly 'bank_name'?: string;
|
|
647
|
+
readonly 'bic'?: string;
|
|
648
|
+
readonly 'generated_sepa_debit'?: string;
|
|
649
|
+
readonly 'generated_sepa_debit_mandate'?: string;
|
|
650
|
+
readonly 'iban_last4'?: string;
|
|
651
|
+
readonly 'preferred_language'?: io.flow.stripe.v0.enums.PreferredLanguageBancontact;
|
|
652
|
+
readonly 'verified_name'?: string;
|
|
653
|
+
}
|
|
654
|
+
|
|
568
655
|
interface PaymentMethodDetailsCard {
|
|
569
656
|
readonly 'type': 'card';
|
|
570
657
|
readonly 'card': io.flow.stripe.v0.models.PaymentMethodDetailsCardInformation;
|
|
@@ -596,6 +683,20 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
596
683
|
readonly 'overcapture'?: io.flow.stripe.v0.models.Overcapture;
|
|
597
684
|
}
|
|
598
685
|
|
|
686
|
+
interface PaymentMethodDetailsIdeal {
|
|
687
|
+
readonly 'type': 'ideal';
|
|
688
|
+
readonly 'ideal': io.flow.stripe.v0.models.PaymentMethodDetailsIdealInformation;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
interface PaymentMethodDetailsIdealInformation {
|
|
692
|
+
readonly 'bank'?: io.flow.stripe.v0.enums.BankIdeal;
|
|
693
|
+
readonly 'bic'?: io.flow.stripe.v0.enums.BicIdeal;
|
|
694
|
+
readonly 'generated_sepa_debit'?: string;
|
|
695
|
+
readonly 'generated_sepa_debit_mandate'?: string;
|
|
696
|
+
readonly 'iban_last4'?: string;
|
|
697
|
+
readonly 'verified_name'?: string;
|
|
698
|
+
}
|
|
699
|
+
|
|
599
700
|
interface PaymentMethodDetailsKlarna {
|
|
600
701
|
readonly 'type': 'klarna';
|
|
601
702
|
readonly 'klarna': io.flow.stripe.v0.models.PaymentMethodDetailsKlarnaInformation;
|
|
@@ -606,6 +707,13 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
606
707
|
readonly 'preferred_locale'?: io.flow.stripe.v0.enums.PreferredLocaleKlarna;
|
|
607
708
|
}
|
|
608
709
|
|
|
710
|
+
interface PaymentMethodFormBancontact {
|
|
711
|
+
readonly 'type': 'bancontact';
|
|
712
|
+
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
713
|
+
readonly 'metadata'?: any/*object*/;
|
|
714
|
+
readonly 'bancontact': any/*object*/;
|
|
715
|
+
}
|
|
716
|
+
|
|
609
717
|
interface PaymentMethodFormCard {
|
|
610
718
|
readonly 'type': 'card';
|
|
611
719
|
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
@@ -613,6 +721,13 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
613
721
|
readonly 'card': io.flow.stripe.v0.models.PaymentMethodCardForm;
|
|
614
722
|
}
|
|
615
723
|
|
|
724
|
+
interface PaymentMethodFormIdeal {
|
|
725
|
+
readonly 'type': 'ideal';
|
|
726
|
+
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
727
|
+
readonly 'metadata'?: any/*object*/;
|
|
728
|
+
readonly 'ideal': io.flow.stripe.v0.models.PaymentMethodIdealForm;
|
|
729
|
+
}
|
|
730
|
+
|
|
616
731
|
interface PaymentMethodFormKlarna {
|
|
617
732
|
readonly 'type': 'klarna';
|
|
618
733
|
readonly 'billing_details'?: io.flow.stripe.v0.models.PaymentMethodBillingDetails;
|
|
@@ -620,13 +735,27 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
620
735
|
readonly 'klarna': io.flow.stripe.v0.models.PaymentMethodKlarnaForm;
|
|
621
736
|
}
|
|
622
737
|
|
|
738
|
+
interface PaymentMethodIdealForm {
|
|
739
|
+
readonly 'bank'?: string;
|
|
740
|
+
}
|
|
741
|
+
|
|
623
742
|
interface PaymentMethodKlarnaForm {
|
|
624
743
|
readonly 'dob'?: io.flow.stripe.v0.models.KlarnaDobForm;
|
|
625
744
|
}
|
|
626
745
|
|
|
627
746
|
interface PaymentMethodOptions {
|
|
628
747
|
readonly 'card'?: io.flow.stripe.v0.models.PaymentMethodOptionsCard;
|
|
748
|
+
readonly 'ideal'?: io.flow.stripe.v0.models.PaymentMethodOptionsIdeal;
|
|
629
749
|
readonly 'klarna'?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarna;
|
|
750
|
+
readonly 'bancontact'?: io.flow.stripe.v0.models.PaymentMethodOptionsBancontact;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
interface PaymentMethodOptionsBancontact {
|
|
754
|
+
readonly 'preferred_language': io.flow.stripe.v0.enums.PreferredLanguageBancontact;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
interface PaymentMethodOptionsBancontactForm {
|
|
758
|
+
readonly 'preferred_language': io.flow.stripe.v0.enums.PreferredLanguageBancontact;
|
|
630
759
|
}
|
|
631
760
|
|
|
632
761
|
interface PaymentMethodOptionsCard {
|
|
@@ -646,7 +775,17 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
646
775
|
|
|
647
776
|
interface PaymentMethodOptionsForm {
|
|
648
777
|
readonly 'card'?: io.flow.stripe.v0.models.PaymentMethodOptionsCardForm;
|
|
778
|
+
readonly 'ideal'?: io.flow.stripe.v0.models.PaymentMethodOptionsIdealForm;
|
|
649
779
|
readonly 'klarna'?: io.flow.stripe.v0.models.PaymentMethodOptionsKlarnaForm;
|
|
780
|
+
readonly 'bancontact'?: io.flow.stripe.v0.models.PaymentMethodOptionsBancontactForm;
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
interface PaymentMethodOptionsIdeal {
|
|
784
|
+
readonly 'setup_future_usage'?: io.flow.stripe.v0.enums.SetupFutureUsage;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
interface PaymentMethodOptionsIdealForm {
|
|
788
|
+
readonly 'setup_future_usage'?: io.flow.stripe.v0.enums.SetupFutureUsage;
|
|
650
789
|
}
|
|
651
790
|
|
|
652
791
|
interface PaymentMethodOptionsKlarna {
|
|
@@ -861,6 +1000,24 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
861
1000
|
readonly 'directory_server_encryption'?: any/*object*/;
|
|
862
1001
|
}
|
|
863
1002
|
|
|
1003
|
+
interface StripeDisputeEvent {
|
|
1004
|
+
readonly 'id': string;
|
|
1005
|
+
readonly 'api_version'?: string;
|
|
1006
|
+
readonly 'data': io.flow.stripe.v0.models.StripeDisputeEventData;
|
|
1007
|
+
readonly 'request'?: any/*object*/;
|
|
1008
|
+
readonly 'type': io.flow.stripe.v0.enums.DisputeEventType;
|
|
1009
|
+
readonly 'object': string;
|
|
1010
|
+
readonly 'account'?: string;
|
|
1011
|
+
readonly 'created': number;
|
|
1012
|
+
readonly 'livemode': boolean;
|
|
1013
|
+
readonly 'pending_webhooks': number;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
interface StripeDisputeEventData {
|
|
1017
|
+
readonly 'object': io.flow.stripe.v0.models.Dispute;
|
|
1018
|
+
readonly 'previous_attributes'?: any/*object*/;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
864
1021
|
interface StripeError {
|
|
865
1022
|
readonly 'type': io.flow.stripe.v0.enums.ErrorType;
|
|
866
1023
|
readonly 'charge'?: string;
|
|
@@ -958,7 +1115,7 @@ declare namespace io.flow.stripe.v0.models {
|
|
|
958
1115
|
|
|
959
1116
|
declare namespace io.flow.stripe.v0.unions {
|
|
960
1117
|
type CardWallet = (io.flow.stripe.v0.models.Masterpass | io.flow.stripe.v0.models.ApplePay | io.flow.stripe.v0.models.VisaCheckout);
|
|
961
|
-
type PaymentMethodData = (io.flow.stripe.v0.models.PaymentMethodDataCard | io.flow.stripe.v0.models.PaymentMethodDataKlarna);
|
|
962
|
-
type PaymentMethodDetails = (io.flow.stripe.v0.models.PaymentMethodDetailsCard | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna);
|
|
963
|
-
type PaymentMethodForm = (io.flow.stripe.v0.models.PaymentMethodFormCard | io.flow.stripe.v0.models.PaymentMethodFormKlarna);
|
|
1118
|
+
type PaymentMethodData = (io.flow.stripe.v0.models.PaymentMethodDataCard | io.flow.stripe.v0.models.PaymentMethodDataIdeal | io.flow.stripe.v0.models.PaymentMethodDataKlarna | io.flow.stripe.v0.models.PaymentMethodDataBancontact);
|
|
1119
|
+
type PaymentMethodDetails = (io.flow.stripe.v0.models.PaymentMethodDetailsCard | io.flow.stripe.v0.models.PaymentMethodDetailsIdeal | io.flow.stripe.v0.models.PaymentMethodDetailsKlarna | io.flow.stripe.v0.models.PaymentMethodDetailsBancontact);
|
|
1120
|
+
type PaymentMethodForm = (io.flow.stripe.v0.models.PaymentMethodFormCard | io.flow.stripe.v0.models.PaymentMethodFormIdeal | io.flow.stripe.v0.models.PaymentMethodFormKlarna | io.flow.stripe.v0.models.PaymentMethodFormBancontact);
|
|
964
1121
|
}
|
|
@@ -132,7 +132,7 @@ declare namespace io.flow.v0.enums {
|
|
|
132
132
|
type PaymentMethodRuleContentKey = 'description';
|
|
133
133
|
type PaymentMethodType = 'card' | 'online' | 'offline';
|
|
134
134
|
type PaymentRequestReviewCheckStatus = 'passed' | 'failed';
|
|
135
|
-
type PaymentRequestReviewCheckType = 'restricted_party_screening' | 'fraud_suspicious_behavior' | 'fraud_suspicious_past_activity' | 'fraud_risky_velocity' | 'fraud_previous_chargebacks' | 'order_restricted_goods' | 'order_unsupported_destination' | 'order_missing_information' | 'order_domestic' | 'order_mismatched_currencies';
|
|
135
|
+
type PaymentRequestReviewCheckType = 'restricted_party_screening' | 'fraud_suspicious_behavior' | 'fraud_suspicious_past_activity' | 'fraud_risky_velocity' | 'fraud_previous_chargebacks' | 'order_restricted_goods' | 'order_unsupported_destination' | 'order_missing_information' | 'order_domestic' | 'order_mismatched_currencies' | 'order_missing';
|
|
136
136
|
type PaymentRequestReviewStatus = 'pending' | 'approved' | 'rejected';
|
|
137
137
|
type PaymentSourceConfirmationActionType = 'cvv' | 'billing_address' | 'number';
|
|
138
138
|
type PaymentStatus = 'requires_payment_method' | 'requires_action' | 'processing' | 'cancelled' | 'expired' | 'authorized' | 'reversed' | 'captured' | 'refunded' | 'in_dispute' | 'charged_back';
|
|
@@ -6973,6 +6973,15 @@ declare namespace io.flow.v0.models {
|
|
|
6973
6973
|
readonly 'processor': string;
|
|
6974
6974
|
}
|
|
6975
6975
|
|
|
6976
|
+
interface PaymentProcessorTransactionDetailsApm {
|
|
6977
|
+
readonly 'discriminator': 'apm';
|
|
6978
|
+
readonly 'transaction_identifier'?: string;
|
|
6979
|
+
readonly 'capture_identifier'?: string;
|
|
6980
|
+
readonly 'method_type'?: string;
|
|
6981
|
+
readonly 'result_status'?: string;
|
|
6982
|
+
readonly 'reason_code'?: string;
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6976
6985
|
interface PaymentProcessorTransactionDetailsCard {
|
|
6977
6986
|
readonly 'discriminator': 'card';
|
|
6978
6987
|
readonly 'transaction_identifier'?: string;
|
|
@@ -7060,6 +7069,11 @@ declare namespace io.flow.v0.models {
|
|
|
7060
7069
|
readonly 'billing': io.flow.v0.models.PaymentRequestBilling;
|
|
7061
7070
|
}
|
|
7062
7071
|
|
|
7072
|
+
interface PaymentRequestCancellationReasonOrderMissing {
|
|
7073
|
+
readonly 'type': 'order_missing';
|
|
7074
|
+
readonly 'description'?: string;
|
|
7075
|
+
}
|
|
7076
|
+
|
|
7063
7077
|
interface PaymentRequestDeleted {
|
|
7064
7078
|
readonly 'discriminator': 'payment_request_deleted';
|
|
7065
7079
|
readonly 'event_id': string;
|
|
@@ -7200,6 +7214,7 @@ declare namespace io.flow.v0.models {
|
|
|
7200
7214
|
interface PaypalAuthorizationDetails {
|
|
7201
7215
|
readonly 'discriminator': 'paypal_authorization_details';
|
|
7202
7216
|
readonly 'payment_id': string;
|
|
7217
|
+
readonly 'internal_payment_id'?: string;
|
|
7203
7218
|
readonly 'payment_method'?: string;
|
|
7204
7219
|
readonly 'payment_state'?: string;
|
|
7205
7220
|
readonly 'payer_id'?: string;
|
|
@@ -8196,6 +8211,11 @@ declare namespace io.flow.v0.models {
|
|
|
8196
8211
|
readonly 'status': io.flow.v0.enums.AvailabilityStatus;
|
|
8197
8212
|
}
|
|
8198
8213
|
|
|
8214
|
+
interface RejectionPutForm {
|
|
8215
|
+
readonly 'reason': io.flow.v0.enums.MerchantRejectedReason;
|
|
8216
|
+
readonly 'description': string;
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8199
8219
|
interface RemoteAreaByWeightServiceFee {
|
|
8200
8220
|
readonly 'discriminator': 'remote_area_by_weight_service_fee';
|
|
8201
8221
|
readonly 'amount': io.flow.v0.models.Money;
|
|
@@ -10115,7 +10135,7 @@ declare namespace io.flow.v0.models {
|
|
|
10115
10135
|
readonly 'discriminator': 'channel';
|
|
10116
10136
|
readonly 'method': string;
|
|
10117
10137
|
readonly 'card'?: io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
10118
|
-
readonly 'organization_transaction': io.flow.v0.models.
|
|
10138
|
+
readonly 'organization_transaction': io.flow.v0.models.TransactionMetadataChannelOrganizationTransaction;
|
|
10119
10139
|
}
|
|
10120
10140
|
|
|
10121
10141
|
interface TransactionMetadataChannelCardMetadata {
|
|
@@ -10128,6 +10148,11 @@ declare namespace io.flow.v0.models {
|
|
|
10128
10148
|
readonly 'country': string;
|
|
10129
10149
|
}
|
|
10130
10150
|
|
|
10151
|
+
interface TransactionMetadataChannelOrganizationTransaction {
|
|
10152
|
+
readonly 'id': string;
|
|
10153
|
+
readonly 'metadata': io.flow.v0.models.TransactionMetadataPaymentTransaction;
|
|
10154
|
+
}
|
|
10155
|
+
|
|
10131
10156
|
interface TransactionMetadataFailedPayout {
|
|
10132
10157
|
readonly 'discriminator': 'failed_payout';
|
|
10133
10158
|
readonly 'failed_payout': io.flow.v0.models.TransactionMetadataFailedPayoutReference;
|
|
@@ -10586,7 +10611,8 @@ declare namespace io.flow.v0.unions {
|
|
|
10586
10611
|
});
|
|
10587
10612
|
|
|
10588
10613
|
type PaymentOrderReference = (io.flow.v0.models.AuthorizationOrderReference | io.flow.v0.models.PaymentPaymentRequestReference);
|
|
10589
|
-
type PaymentProcessorTransactionDetails = (io.flow.v0.models.PaymentProcessorTransactionDetailsCard);
|
|
10614
|
+
type PaymentProcessorTransactionDetails = (io.flow.v0.models.PaymentProcessorTransactionDetailsCard | io.flow.v0.models.PaymentProcessorTransactionDetailsApm);
|
|
10615
|
+
type PaymentRequestCancellationReason = (io.flow.v0.models.PaymentRequestCancellationReasonOrderMissing);
|
|
10590
10616
|
type PaymentSource = (io.flow.v0.models.CardPaymentSource);
|
|
10591
10617
|
type PaymentSourceForm = (io.flow.v0.models.CardPaymentSourceForm);
|
|
10592
10618
|
type PayoutStatus = (io.flow.v0.models.PayoutStatusScheduled | io.flow.v0.models.PayoutStatusSent | io.flow.v0.models.PayoutStatusFailed);
|
package/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
/// <reference path="generated/io.flow.ben.test.internal.v0.ben-test-internal.d.ts" />
|
|
5
5
|
/// <reference path="generated/io.flow.billing.accounting.v0.billing-accounting.d.ts" />
|
|
6
6
|
/// <reference path="generated/io.flow.billing.bank.account.v0.billing-bank-account.d.ts" />
|
|
7
|
-
/// <reference path="generated/io.flow.billing.csv.v0.billing-csv.d.ts" />
|
|
8
7
|
/// <reference path="generated/io.flow.billing.internal.v0.billing-internal.d.ts" />
|
|
9
8
|
/// <reference path="generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts" />
|
|
10
9
|
/// <reference path="generated/io.flow.billing.reporting.v0.billing-reporting.d.ts" />
|
|
@@ -16,25 +15,16 @@
|
|
|
16
15
|
/// <reference path="generated/io.flow.catalog.v0.catalog.d.ts" />
|
|
17
16
|
/// <reference path="generated/io.flow.channel.internal.v0.channel-internal.d.ts" />
|
|
18
17
|
/// <reference path="generated/io.flow.channel.v0.channel.d.ts" />
|
|
19
|
-
/// <reference path="generated/io.flow.checkout.analytics.v0.checkout-analytics.d.ts" />
|
|
20
|
-
/// <reference path="generated/io.flow.checkout.backend.v0.checkout-backend.d.ts" />
|
|
21
|
-
/// <reference path="generated/io.flow.checkout.common.v0.checkout-common.d.ts" />
|
|
22
|
-
/// <reference path="generated/io.flow.checkout.configuration.v0.checkout-configuration.d.ts" />
|
|
23
|
-
/// <reference path="generated/io.flow.checkout.protocol.v0.checkout-protocol.d.ts" />
|
|
24
18
|
/// <reference path="generated/io.flow.checkout.v0.checkout.d.ts" />
|
|
25
19
|
/// <reference path="generated/io.flow.common.v0.common.d.ts" />
|
|
26
|
-
/// <reference path="generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts" />
|
|
27
|
-
/// <reference path="generated/io.flow.content.internal.v0.content-internal.d.ts" />
|
|
28
20
|
/// <reference path="generated/io.flow.crypto.v0.crypto.d.ts" />
|
|
29
|
-
/// <reference path="generated/io.flow.currency.internal.v0.currency-internal.d.ts" />
|
|
30
21
|
/// <reference path="generated/io.flow.currency.v0.currency.d.ts" />
|
|
31
22
|
/// <reference path="generated/io.flow.customer.v0.customer.d.ts" />
|
|
32
23
|
/// <reference path="generated/io.flow.error.v0.error.d.ts" />
|
|
33
|
-
/// <reference path="generated/io.flow.experience.internal.v0.experience-internal.d.ts" />
|
|
34
24
|
/// <reference path="generated/io.flow.experience.v0.experience.d.ts" />
|
|
25
|
+
/// <reference path="generated/io.flow.experiment.internal.v0.experiment-internal.d.ts" />
|
|
35
26
|
/// <reference path="generated/io.flow.export.v0.export.d.ts" />
|
|
36
27
|
/// <reference path="generated/io.flow.external.paypal.v1.paypal.d.ts" />
|
|
37
|
-
/// <reference path="generated/io.flow.feature.v0.feature.d.ts" />
|
|
38
28
|
/// <reference path="generated/io.flow.field.validation.v0.field-validation.d.ts" />
|
|
39
29
|
/// <reference path="generated/io.flow.flexe.v0.flexe.d.ts" />
|
|
40
30
|
/// <reference path="generated/io.flow.fraud.v0.fraud.d.ts" />
|
|
@@ -49,7 +39,6 @@
|
|
|
49
39
|
/// <reference path="generated/io.flow.label.v0.label.d.ts" />
|
|
50
40
|
/// <reference path="generated/io.flow.merchant.of.record.v0.merchant-of-record.d.ts" />
|
|
51
41
|
/// <reference path="generated/io.flow.merchant.onboarding.v0.merchant-onboarding.d.ts" />
|
|
52
|
-
/// <reference path="generated/io.flow.optin.internal.v0.optin-internal.d.ts" />
|
|
53
42
|
/// <reference path="generated/io.flow.order.management.event.v0.order-management-event.d.ts" />
|
|
54
43
|
/// <reference path="generated/io.flow.order.management.v0.order-management.d.ts" />
|
|
55
44
|
/// <reference path="generated/io.flow.order.price.v0.order-price.d.ts" />
|
|
@@ -61,7 +50,6 @@
|
|
|
61
50
|
/// <reference path="generated/io.flow.payment.request.bundle.v0.payment-request-bundle.d.ts" />
|
|
62
51
|
/// <reference path="generated/io.flow.payment.v0.payment.d.ts" />
|
|
63
52
|
/// <reference path="generated/io.flow.permission.v0.permission.d.ts" />
|
|
64
|
-
/// <reference path="generated/io.flow.price.internal.v0.price-internal.d.ts" />
|
|
65
53
|
/// <reference path="generated/io.flow.price.v0.price.d.ts" />
|
|
66
54
|
/// <reference path="generated/io.flow.pricing.indicator.internal.event.v0.pricing-indicator-internal-event.d.ts" />
|
|
67
55
|
/// <reference path="generated/io.flow.query.builder.v0.query-builder.d.ts" />
|
|
@@ -77,7 +65,6 @@
|
|
|
77
65
|
/// <reference path="generated/io.flow.shopify.merchant.config.v0.shopify-merchant-config.d.ts" />
|
|
78
66
|
/// <reference path="generated/io.flow.shopify.v0.shopify.d.ts" />
|
|
79
67
|
/// <reference path="generated/io.flow.stripe.v0.stripe.d.ts" />
|
|
80
|
-
/// <reference path="generated/io.flow.svb.v0.svb.d.ts" />
|
|
81
68
|
/// <reference path="generated/io.flow.token.v0.token.d.ts" />
|
|
82
69
|
/// <reference path="generated/io.flow.tracking.v0.tracking.d.ts" />
|
|
83
70
|
/// <reference path="generated/io.flow.trueup.v0.trueup.d.ts" />
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.227",
|
|
4
4
|
"description": "Global TypeScript typings for Flow Commerce API",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
"scripts": {
|
|
15
15
|
"generate": "apibuilder update && node scripts/generate-index.js"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "25d6ba675365a3fb318abcc4bc935dd549089238"
|
|
18
18
|
}
|