@flowio/api-types 0.0.225 → 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.
Files changed (36) hide show
  1. package/generated/io.flow.billing.accounting.v0.billing-accounting.d.ts +21 -1
  2. package/generated/io.flow.billing.bank.account.v0.billing-bank-account.d.ts +1 -1
  3. package/generated/io.flow.billing.internal.v0.billing-internal.d.ts +27 -24
  4. package/generated/io.flow.billing.reporting.csv.v0.billing-reporting-csv.d.ts +0 -1
  5. package/generated/io.flow.billing.reporting.v0.billing-reporting.d.ts +33 -21
  6. package/generated/io.flow.billing.v0.billing.d.ts +67 -14
  7. package/generated/io.flow.channel.internal.v0.channel-internal.d.ts +1 -1
  8. package/generated/io.flow.experiment.internal.v0.experiment-internal.d.ts +191 -0
  9. package/generated/io.flow.internal.v0.api-internal.d.ts +746 -399
  10. package/generated/io.flow.label.v0.label.d.ts +7 -0
  11. package/generated/io.flow.organization.onboarding.state.v0.organization-onboarding-state.d.ts +6 -1
  12. package/generated/io.flow.payment.gateway.v0.payment-gateway.d.ts +7 -1
  13. package/generated/io.flow.payment.v0.payment.d.ts +11 -1
  14. package/generated/io.flow.shopify.external.v0.shopify-external.d.ts +1 -0
  15. package/generated/io.flow.shopify.markets.internal.event.v0.shopify-markets-internal-event.d.ts +32 -1
  16. package/generated/io.flow.shopify.markets.internal.v0.shopify-markets-internal.d.ts +18 -0
  17. package/generated/io.flow.shopify.markets.v0.shopify-markets.d.ts +1 -1
  18. package/generated/io.flow.stripe.v0.stripe.d.ts +162 -5
  19. package/generated/io.flow.trueup.v0.trueup.d.ts +1 -1
  20. package/generated/io.flow.v0.api.d.ts +116 -19
  21. package/index.d.ts +1 -14
  22. package/package.json +2 -2
  23. package/generated/io.flow.billing.csv.v0.billing-csv.d.ts +0 -451
  24. package/generated/io.flow.checkout.analytics.v0.checkout-analytics.d.ts +0 -137
  25. package/generated/io.flow.checkout.backend.v0.checkout-backend.d.ts +0 -539
  26. package/generated/io.flow.checkout.common.v0.checkout-common.d.ts +0 -57
  27. package/generated/io.flow.checkout.configuration.v0.checkout-configuration.d.ts +0 -113
  28. package/generated/io.flow.checkout.protocol.v0.checkout-protocol.d.ts +0 -1347
  29. package/generated/io.flow.consumer.invoice.v0.consumer-invoice.d.ts +0 -204
  30. package/generated/io.flow.content.internal.v0.content-internal.d.ts +0 -168
  31. package/generated/io.flow.currency.internal.v0.currency-internal.d.ts +0 -119
  32. package/generated/io.flow.experience.internal.v0.experience-internal.d.ts +0 -247
  33. package/generated/io.flow.feature.v0.feature.d.ts +0 -121
  34. package/generated/io.flow.optin.internal.v0.optin-internal.d.ts +0 -73
  35. package/generated/io.flow.price.internal.v0.price-internal.d.ts +0 -4
  36. package/generated/io.flow.svb.v0.svb.d.ts +0 -166
@@ -73,6 +73,13 @@ declare namespace io.flow.label.v0.models {
73
73
  readonly 'number': string;
74
74
  }
75
75
 
76
+ interface LabelProcessingModification {
77
+ readonly 'id': string;
78
+ readonly 'modifications': string[];
79
+ readonly 'destination': io.flow.fulfillment.v0.models.ShippingAddress;
80
+ readonly 'destination_provided_to_carrier'?: io.flow.fulfillment.v0.models.ShippingAddress;
81
+ }
82
+
76
83
  interface LabelReference {
77
84
  readonly 'id': string;
78
85
  }
@@ -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 {
@@ -15,6 +15,37 @@ declare namespace io.flow.shopify.markets.internal.event.v0.models {
15
15
  readonly 'channel_order_summary': io.flow.shopify.markets.internal.v0.models.ChannelOrderSummary;
16
16
  }
17
17
 
18
+ interface ChannelOrganizationIdentifierDeleted {
19
+ readonly 'discriminator': 'channel_organization_identifier_deleted';
20
+ readonly 'event_id': string;
21
+ readonly 'timestamp': string;
22
+ readonly 'channel_id': string;
23
+ readonly 'id': string;
24
+ }
25
+
26
+ interface ChannelOrganizationIdentifierUpserted {
27
+ readonly 'discriminator': 'channel_organization_identifier_upserted';
28
+ readonly 'event_id': string;
29
+ readonly 'timestamp': string;
30
+ readonly 'channel_id': string;
31
+ readonly 'channel_organization_identifier': io.flow.shopify.markets.internal.v0.models.ChannelOrganizationIdentifier;
32
+ }
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
+
18
49
  interface ShopifyMarketsMetricsDeleted {
19
50
  readonly 'discriminator': 'shopify_markets_metrics_deleted';
20
51
  readonly 'event_id': string;
@@ -100,5 +131,5 @@ declare namespace io.flow.shopify.markets.internal.event.v0.models {
100
131
  }
101
132
 
102
133
  declare namespace io.flow.shopify.markets.internal.event.v0.unions {
103
- 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);
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);
104
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 {
@@ -28,6 +29,12 @@ declare namespace io.flow.shopify.markets.internal.v0.models {
28
29
  readonly 'timestamp': string;
29
30
  }
30
31
 
32
+ interface ChannelOrganizationIdentifier {
33
+ readonly 'id': string;
34
+ readonly 'organization': io.flow.common.v0.models.OrganizationReference;
35
+ readonly 'identifier': string;
36
+ }
37
+
31
38
  interface FlowShopValidationError {
32
39
  readonly 'message': string;
33
40
  readonly 'reason': string;
@@ -49,6 +56,14 @@ declare namespace io.flow.shopify.markets.internal.v0.models {
49
56
  readonly 'id': string;
50
57
  }
51
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
+
52
67
  interface OrderValidationError {
53
68
  readonly 'message': string;
54
69
  readonly 'reason': io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
@@ -177,7 +192,10 @@ declare namespace io.flow.shopify.markets.internal.v0.models {
177
192
  readonly 'id': string;
178
193
  readonly 'initial_catalog_synced_at'?: string;
179
194
  readonly 'catalog_sync_duration'?: number;
195
+ readonly 'restrictions_sync_duration'?: number;
196
+ readonly 'classifications_sync_duration'?: number;
180
197
  readonly 'catalog_products_count'?: number;
198
+ readonly 'initial_product_restrictions_synced_at'?: string;
181
199
  }
182
200
 
183
201
  interface ThirdPartyLogisticsPartner {
@@ -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';
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
  }
@@ -1,6 +1,6 @@
1
1
  declare namespace io.flow.trueup.v0.enums {
2
2
  type CarrierChargeReason = 'return_to_origin' | 'rejection' | 'other';
3
- type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction' | 'security' | 'eei_filing' | 'fixed_ddp' | 'fixed_currency_conversion';
3
+ type TrueupSurchargeType = 'fuel' | 'remote_area' | 'oversize' | 'duties_paid' | 'emergency' | 'peak' | 'address_correction' | 'security' | 'eei_filing' | 'fixed_ddp' | 'fixed_currency_conversion' | 'prohibited_item' | 'undeliverable_shipment' | 'signature_required' | 'direct_delivery' | 'saturday_stop' | 'residential_extended_area_pickup';
4
4
  }
5
5
 
6
6
  declare namespace io.flow.trueup.v0.models {