@flowio/types 11.19.35 → 11.20.0

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.d.ts CHANGED
@@ -139,8 +139,6 @@ 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';
144
142
  type NetworkStatus = 'approved_by_network' | 'declined_by_network' | 'not_sent_to_network' | 'reversed_after_approval';
145
143
  type NextActionType = 'redirect_to_url' | 'use_stripe_sdk';
146
144
  type OrderItemType = 'sku' | 'tax' | 'shipping' | 'discount';
@@ -376,7 +374,7 @@ declare namespace io.flow.stripe.v0.models {
376
374
  readonly shipping?: io.flow.stripe.v0.models.Shipping;
377
375
  }
378
376
  interface OrderItem {
379
- readonly object?: string;
377
+ readonly object: string;
380
378
  readonly amount: number;
381
379
  readonly currency: string;
382
380
  readonly description?: string;
@@ -595,7 +593,7 @@ declare namespace io.flow.stripe.v0.models {
595
593
  }
596
594
  interface Shipping {
597
595
  readonly address: io.flow.stripe.v0.models.Address;
598
- readonly name?: string;
596
+ readonly name: string;
599
597
  readonly phone?: string;
600
598
  }
601
599
  interface Source {
@@ -617,7 +615,6 @@ declare namespace io.flow.stripe.v0.models {
617
615
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
618
616
  readonly type: io.flow.stripe.v0.enums.SourceType;
619
617
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
620
- readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
621
618
  }
622
619
  interface SourceCard {
623
620
  readonly exp_month: number;
@@ -645,47 +642,11 @@ declare namespace io.flow.stripe.v0.models {
645
642
  readonly first_name?: string;
646
643
  readonly last_name?: string;
647
644
  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;
668
645
  }
669
646
  interface SourceKlarnaRequest {
670
647
  readonly first_name: string;
671
648
  readonly last_name: string;
672
- readonly purchase_country?: string;
673
- readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
674
649
  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;
689
650
  }
690
651
  interface SourceRequest {
691
652
  readonly type?: io.flow.stripe.v0.enums.SourceType;
@@ -702,7 +663,6 @@ declare namespace io.flow.stripe.v0.models {
702
663
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
703
664
  readonly token?: string;
704
665
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
705
- readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
706
666
  }
707
667
  interface Stripe3Ds2Fingerprint {
708
668
  readonly type: io.flow.stripe.v0.enums.UseStripeSdkType;
@@ -1577,6 +1537,8 @@ declare namespace io.flow.shopify.external.v0.models {
1577
1537
  }
1578
1538
  declare namespace io.flow.channel.internal.v0.enums {
1579
1539
  type ChannelCurrencyCapability = 'payment_authorizations' | 'settlement_currency';
1540
+ type ChannelOrderAcceptanceRejectionReason = 'unsupported_origin_country' | 'unsupported_destination_country' | 'domestic_order' | 'order_contains_gift_card';
1541
+ type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'held_for_review' | 'reviewed';
1580
1542
  }
1581
1543
  declare namespace io.flow.channel.internal.v0.models {
1582
1544
  interface Channel {
@@ -1601,6 +1563,31 @@ declare namespace io.flow.channel.internal.v0.models {
1601
1563
  readonly environment: io.flow.common.v0.enums.Environment;
1602
1564
  readonly organization_id_prefix?: string;
1603
1565
  }
1566
+ interface ChannelMembership {
1567
+ readonly id: string;
1568
+ readonly channel: io.flow.common.v0.models.ChannelReference;
1569
+ readonly user: io.flow.common.v0.unions.ExpandableUser;
1570
+ readonly role?: io.flow.common.v0.enums.Role;
1571
+ }
1572
+ interface ChannelMembershipForm {
1573
+ readonly channel_id: string;
1574
+ readonly user_id: string;
1575
+ readonly role?: io.flow.common.v0.enums.Role;
1576
+ }
1577
+ interface ChannelMembershipPutForm {
1578
+ readonly role?: io.flow.common.v0.enums.Role;
1579
+ }
1580
+ interface ChannelOrderAcceptance {
1581
+ readonly id: string;
1582
+ readonly organization_id: string;
1583
+ readonly order_number: string;
1584
+ readonly channel_id: string;
1585
+ readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
1586
+ readonly reasons: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason[];
1587
+ }
1588
+ interface ChannelOrderAcceptanceForm {
1589
+ readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
1590
+ }
1604
1591
  }
1605
1592
  declare namespace io.flow.common.v0.enums {
1606
1593
  type AttributeDataType = 'boolean' | 'integer' | 'decimal' | 'string' | 'json_array';
@@ -1625,7 +1612,7 @@ declare namespace io.flow.common.v0.enums {
1625
1612
  type MeasurementSystem = 'imperial' | 'metric';
1626
1613
  type MerchantOfRecord = 'flow' | 'organization';
1627
1614
  type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
1628
- type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
1615
+ type OrganizationStatus = 'active' | 'inactive' | 'deactivated' | 'provisioned';
1629
1616
  type PriceBookStatus = 'draft' | 'published' | 'archived';
1630
1617
  type Role = 'admin' | 'member';
1631
1618
  type RoundingMethod = 'up' | 'down' | 'nearest';
@@ -1975,9 +1962,14 @@ declare namespace io.flow.token.v0.models {
1975
1962
  readonly channel: io.flow.common.v0.models.ChannelReference;
1976
1963
  readonly user: io.flow.common.v0.models.UserReference;
1977
1964
  readonly partial: string;
1965
+ readonly cleartext?: string;
1978
1966
  readonly created_at: string;
1979
1967
  readonly description?: string;
1980
1968
  }
1969
+ interface ChannelTokenForm {
1970
+ readonly channel_id: string;
1971
+ readonly description?: string;
1972
+ }
1981
1973
  interface ChannelTokenReference {
1982
1974
  readonly discriminator: 'channel_token_reference';
1983
1975
  readonly id: string;
@@ -2001,6 +1993,10 @@ declare namespace io.flow.token.v0.models {
2001
1993
  readonly environment: io.flow.common.v0.enums.Environment;
2002
1994
  readonly description?: string;
2003
1995
  }
1996
+ interface OrganizationTokenFormV2 {
1997
+ readonly organization_id: string;
1998
+ readonly description?: string;
1999
+ }
2004
2000
  interface OrganizationTokenReference {
2005
2001
  readonly discriminator: 'organization_token_reference';
2006
2002
  readonly id: string;
@@ -2008,6 +2004,21 @@ declare namespace io.flow.token.v0.models {
2008
2004
  readonly environment: io.flow.common.v0.enums.Environment;
2009
2005
  readonly user: io.flow.common.v0.models.UserReference;
2010
2006
  }
2007
+ interface OrganizationTokenV2 {
2008
+ readonly discriminator: 'organization_token_v2';
2009
+ readonly id: string;
2010
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
2011
+ readonly user: io.flow.common.v0.models.UserReference;
2012
+ readonly partial: string;
2013
+ readonly cleartext?: string;
2014
+ readonly created_at: string;
2015
+ readonly description?: string;
2016
+ }
2017
+ interface OrganizationTokenV2Reference {
2018
+ readonly discriminator: 'organization_token_v2_reference';
2019
+ readonly id: string;
2020
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
2021
+ }
2011
2022
  interface PartnerToken {
2012
2023
  readonly discriminator: 'partner_token';
2013
2024
  readonly id: string;
@@ -2043,8 +2054,8 @@ declare namespace io.flow.token.v0.models {
2043
2054
  }
2044
2055
  }
2045
2056
  declare namespace io.flow.token.v0.unions {
2046
- type Token = io.flow.token.v0.models.ChannelToken | io.flow.token.v0.models.OrganizationToken | io.flow.token.v0.models.PartnerToken;
2047
- type TokenReference = io.flow.token.v0.models.ChannelTokenReference | io.flow.token.v0.models.OrganizationTokenReference | io.flow.token.v0.models.PartnerTokenReference;
2057
+ type Token = io.flow.token.v0.models.ChannelToken | io.flow.token.v0.models.OrganizationToken | io.flow.token.v0.models.OrganizationTokenV2 | io.flow.token.v0.models.PartnerToken;
2058
+ type TokenReference = io.flow.token.v0.models.ChannelTokenReference | io.flow.token.v0.models.OrganizationTokenReference | io.flow.token.v0.models.OrganizationTokenV2Reference | io.flow.token.v0.models.PartnerTokenReference;
2048
2059
  }
2049
2060
  declare namespace io.flow.error.v0.enums {
2050
2061
  type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
@@ -2098,6 +2109,12 @@ declare namespace io.flow.permission.v0.models {
2098
2109
  readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
2099
2110
  }
2100
2111
  }
2112
+ declare namespace io.flow.token.internal.v0.models {
2113
+ interface ChannelTokenForm {
2114
+ readonly channel_id: string;
2115
+ readonly description?: string;
2116
+ }
2117
+ }
2101
2118
  declare namespace io.flow.apple.pay.v0.enums {
2102
2119
  type ApplePayContactField = 'email' | 'name' | 'phone' | 'postal_address' | 'phonetic_name';
2103
2120
  type ApplePayLineItemType = 'final' | 'pending';
@@ -2172,7 +2189,7 @@ declare namespace io.flow.v0.enums {
2172
2189
  type AuthorizationDeclineCode = 'expired' | 'invalid_name' | 'invalid_number' | 'invalid_expiration' | 'invalid_address' | 'invalid_token_type' | 'invalid_token' | 'no_account' | 'avs' | 'cvv' | 'fraud' | 'duplicate' | 'not_supported' | 'unknown' | 'online_payment_error';
2173
2190
  type AuthorizationOption = 'store_card';
2174
2191
  type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
2175
- type AuthorizationStatus = 'pending' | 'expired' | 'authorized' | 'review' | 'declined' | 'reversed';
2192
+ type AuthorizationStatus = 'initiated' | 'pending' | 'expired' | 'authorized' | 'review' | 'declined' | 'reversed';
2176
2193
  type AvailabilityStatus = 'enabled' | 'disabled';
2177
2194
  type AvailableFilterFormat = 'boolean' | 'date' | 'money' | 'decimal' | 'string' | 'unit_of_length' | 'unit_of_mass';
2178
2195
  type AvsCode = 'match' | 'partial' | 'unsupported' | 'no_match';
@@ -2247,6 +2264,7 @@ declare namespace io.flow.v0.enums {
2247
2264
  type LanePreselectPreference = 'lowest_cost' | 'default_tier';
2248
2265
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
2249
2266
  type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
2267
+ type LevyInclusion = 'tax' | 'duty';
2250
2268
  type LevyStrategy = 'minimum' | 'average' | 'maximum';
2251
2269
  type LocationErrorCode = 'address_required' | 'ip_invalid' | 'ip_required' | 'timezone_unavailable';
2252
2270
  type MarginType = 'fixed' | 'percent';
@@ -2270,7 +2288,7 @@ declare namespace io.flow.v0.enums {
2270
2288
  type OrderStorage = 'do_not_persist' | 'persist';
2271
2289
  type OrderType = 'standard' | 'replacement';
2272
2290
  type OrganizationPaymentMethodTag = 'deny';
2273
- type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
2291
+ type OrganizationStatus = 'active' | 'inactive' | 'deactivated' | 'provisioned';
2274
2292
  type PaymentActionType = 'redirect' | 'use_sdk_klarna_v1' | 'use_sdk_applepay_js' | 'use_sdk_googlepay' | 'use_sdk_paypal' | 'use_sdk_stripe_v3' | 'use_sdk_adyen_v3' | 'use_sdk_adyen_v4' | 'execute_script' | 'display_inline_window';
2275
2293
  type PaymentErrorCode = 'duplicate' | 'invalid_amount' | 'invalid_currency' | 'invalid_method' | 'invalid_order' | 'invalid_customer' | 'invalid_destination' | 'unknown';
2276
2294
  type PaymentFailureCode = 'action_expired' | 'action_cancelled' | 'action_failed' | 'authorization_declined' | 'not_supported' | 'fraudulent' | 'error';
@@ -2319,6 +2337,7 @@ declare namespace io.flow.v0.enums {
2319
2337
  type SyncStreamType = 'submitted_order' | 'placed_order';
2320
2338
  type SyncUnitOfTime = 'day' | 'hour' | 'minute' | 'second';
2321
2339
  type TaxApplicability = 'none' | 'all';
2340
+ type TaxDutyCalculatorValidationErrorCode = 'generic_error' | 'destination_country_not_defined' | 'destination_address_iso3166_unrecognized' | 'line_item_shipfrom_shipto_country_invalid' | 'line_item_ship_from_invalid' | 'line_item_currency_iso4217_unrecognized' | 'line_quantity_invalid' | 'line_item_quantity_invalid' | 'line_item_unit_price_precision_invalid' | 'line_item_unit_price_negative' | 'line_item_discount_amount_precision_invalid' | 'line_item_discount_amount_positive' | 'line_item_country_of_origin_iso3166_unrecognized' | 'line_item_hs_code_invalid' | 'line_item_duty_provider_invalid' | 'shipping_unit_price_precision_invalid' | 'shipping_unit_price_negative' | 'shipping_discount_amount_precision_invalid' | 'shipping_discount_amount_invalid' | 'merchant_of_record_invalid';
2322
2341
  type TaxReportType = 'consumer' | 'b2b';
2323
2342
  type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
2324
2343
  type TaxabilityType = 'tax_rule';
@@ -2342,6 +2361,7 @@ declare namespace io.flow.v0.enums {
2342
2361
  type Visibility = 'public' | 'private';
2343
2362
  type WebhookStatus = 'pending' | 'success' | 'failure';
2344
2363
  type ZeroAmountIndicator = 'zero' | 'free';
2364
+ type ZeroLevyReasonCode = 'zero_basis' | 'zero_rate_on_goods' | 'value_rounds_to_zero' | 'order_below_de_minimis_threshold' | 'amount_below_de_minimis_threshold' | 'delivered_unpaid' | 'duty_free_domestic' | 'duty_free_intra_community' | 'duty_free_reimport' | 'duty_free_by_trade_agreement';
2345
2365
  }
2346
2366
  declare namespace io.flow.v0.models {
2347
2367
  interface AbandonedOrderEmailSettings {
@@ -3473,13 +3493,13 @@ declare namespace io.flow.v0.models {
3473
3493
  }
3474
3494
  interface ChannelOrganizationForm {
3475
3495
  readonly key: string;
3476
- readonly name: string;
3496
+ readonly name?: string;
3477
3497
  readonly slug?: string;
3478
3498
  readonly defaults: io.flow.v0.models.OrganizationDefaults;
3479
3499
  readonly attributes?: Record<string, string>;
3480
3500
  }
3481
3501
  interface ChannelOrganizationPutForm {
3482
- readonly name: string;
3502
+ readonly name?: string;
3483
3503
  readonly slug?: string;
3484
3504
  readonly defaults: io.flow.v0.models.OrganizationDefaults;
3485
3505
  readonly attributes?: Record<string, string>;
@@ -3502,9 +3522,14 @@ declare namespace io.flow.v0.models {
3502
3522
  readonly channel: io.flow.v0.models.ChannelReference;
3503
3523
  readonly user: io.flow.v0.models.UserReference;
3504
3524
  readonly partial: string;
3525
+ readonly cleartext?: string;
3505
3526
  readonly created_at: string;
3506
3527
  readonly description?: string;
3507
3528
  }
3529
+ interface ChannelTokenForm {
3530
+ readonly channel_id: string;
3531
+ readonly description?: string;
3532
+ }
3508
3533
  interface ChannelTokenReference {
3509
3534
  readonly discriminator: 'channel_token_reference';
3510
3535
  readonly id: string;
@@ -5806,6 +5831,7 @@ declare namespace io.flow.v0.models {
5806
5831
  readonly price: io.flow.v0.models.LocalizedItemPrice;
5807
5832
  readonly vat?: io.flow.v0.models.LocalizedItemVat;
5808
5833
  readonly duty?: io.flow.v0.models.LocalizedItemDuty;
5834
+ readonly shipping?: io.flow.v0.models.Price;
5809
5835
  readonly attributes: Record<string, io.flow.v0.models.PriceWithBase>;
5810
5836
  readonly price_attributes?: Record<string, io.flow.v0.models.LocalItemAttributePricing>;
5811
5837
  }
@@ -6273,6 +6299,7 @@ declare namespace io.flow.v0.models {
6273
6299
  readonly discounts?: io.flow.v0.models.PaymentDiscount[];
6274
6300
  readonly tax?: io.flow.v0.models.PaymentTax;
6275
6301
  readonly duty?: io.flow.v0.models.PaymentDuty;
6302
+ readonly reference?: string;
6276
6303
  }
6277
6304
  interface OrderError {
6278
6305
  readonly code: io.flow.v0.enums.OrderErrorCode;
@@ -6966,6 +6993,10 @@ declare namespace io.flow.v0.models {
6966
6993
  readonly environment: io.flow.v0.enums.Environment;
6967
6994
  readonly description?: string;
6968
6995
  }
6996
+ interface OrganizationTokenFormV2 {
6997
+ readonly organization_id: string;
6998
+ readonly description?: string;
6999
+ }
6969
7000
  interface OrganizationTokenReference {
6970
7001
  readonly discriminator: 'organization_token_reference';
6971
7002
  readonly id: string;
@@ -6973,6 +7004,21 @@ declare namespace io.flow.v0.models {
6973
7004
  readonly environment: io.flow.v0.enums.Environment;
6974
7005
  readonly user: io.flow.v0.models.UserReference;
6975
7006
  }
7007
+ interface OrganizationTokenV2 {
7008
+ readonly discriminator: 'organization_token_v2';
7009
+ readonly id: string;
7010
+ readonly organization: io.flow.v0.models.OrganizationReference;
7011
+ readonly user: io.flow.v0.models.UserReference;
7012
+ readonly partial: string;
7013
+ readonly cleartext?: string;
7014
+ readonly created_at: string;
7015
+ readonly description?: string;
7016
+ }
7017
+ interface OrganizationTokenV2Reference {
7018
+ readonly discriminator: 'organization_token_v2_reference';
7019
+ readonly id: string;
7020
+ readonly organization: io.flow.v0.models.OrganizationReference;
7021
+ }
6976
7022
  interface OrganizationUpserted {
6977
7023
  readonly discriminator: 'organization_upserted';
6978
7024
  readonly event_id: string;
@@ -7121,14 +7167,14 @@ declare namespace io.flow.v0.models {
7121
7167
  readonly reason?: io.flow.v0.enums.CaptureDeclineCode;
7122
7168
  }
7123
7169
  interface PaymentContactBilling {
7124
- readonly first_name: string;
7170
+ readonly first_name?: string;
7125
7171
  readonly last_name: string;
7126
7172
  readonly company?: string;
7127
7173
  readonly email?: string;
7128
7174
  readonly phone?: string;
7129
7175
  }
7130
7176
  interface PaymentContactShipping {
7131
- readonly first_name: string;
7177
+ readonly first_name?: string;
7132
7178
  readonly last_name: string;
7133
7179
  readonly email: string;
7134
7180
  readonly phone: string;
@@ -9162,6 +9208,13 @@ declare namespace io.flow.v0.models {
9162
9208
  readonly numbers?: string[];
9163
9209
  readonly sort?: string;
9164
9210
  }
9211
+ interface StreetAddress {
9212
+ readonly streets?: string[];
9213
+ readonly city?: string;
9214
+ readonly province?: string;
9215
+ readonly postal?: string;
9216
+ readonly country?: string;
9217
+ }
9165
9218
  interface StripeAuthenticationData {
9166
9219
  readonly discriminator: 'stripe_authentication_data';
9167
9220
  readonly secret_key_reference: string;
@@ -9353,6 +9406,79 @@ declare namespace io.flow.v0.models {
9353
9406
  readonly components: io.flow.v0.enums.LevyComponent[];
9354
9407
  readonly deminimis?: io.flow.v0.unions.Deminimis;
9355
9408
  }
9409
+ interface TaxDutyCalculatorValidationError {
9410
+ readonly code: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
9411
+ readonly messages: string[];
9412
+ readonly codes: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode[];
9413
+ }
9414
+ interface TaxDutyQuote {
9415
+ readonly id: string;
9416
+ readonly primary_identifier: string;
9417
+ readonly attributes?: Record<string, string>;
9418
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
9419
+ readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
9420
+ readonly destination: io.flow.v0.models.StreetAddress;
9421
+ readonly quote_date: string;
9422
+ readonly currency: string;
9423
+ readonly lines: io.flow.v0.models.TaxDutyQuoteLineItem[];
9424
+ readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShipping[];
9425
+ readonly total_values: io.flow.v0.models.TaxDutyQuoteValues;
9426
+ }
9427
+ interface TaxDutyQuoteFeeValue {
9428
+ readonly amount: number;
9429
+ readonly description: string;
9430
+ }
9431
+ interface TaxDutyQuoteForm {
9432
+ readonly primary_identifier: string;
9433
+ readonly attributes?: Record<string, string>;
9434
+ readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
9435
+ readonly destination: io.flow.v0.models.StreetAddress;
9436
+ readonly currency: string;
9437
+ readonly lines: io.flow.v0.models.TaxDutyQuoteLineItemForm[];
9438
+ readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShippingForm[];
9439
+ }
9440
+ interface TaxDutyQuoteLineItem {
9441
+ readonly primary_identifier: string;
9442
+ readonly attributes?: Record<string, string>;
9443
+ readonly ship_from: io.flow.v0.models.StreetAddress;
9444
+ readonly quantity: number;
9445
+ readonly unit_values: io.flow.v0.models.TaxDutyQuoteValues;
9446
+ readonly country_of_origin: string;
9447
+ readonly hs_code: string;
9448
+ }
9449
+ interface TaxDutyQuoteLineItemForm {
9450
+ readonly primary_identifier: string;
9451
+ readonly attributes?: Record<string, string>;
9452
+ readonly ship_from: io.flow.v0.models.StreetAddress;
9453
+ readonly quantity: number;
9454
+ readonly unit_price: number;
9455
+ readonly country_of_origin: string;
9456
+ readonly hs_code: string;
9457
+ readonly includes: io.flow.v0.enums.LevyInclusion[];
9458
+ }
9459
+ interface TaxDutyQuoteSimpleLevyValue {
9460
+ readonly discriminator: 'tax_duty_quote_simple_levy_value';
9461
+ readonly amount: number;
9462
+ readonly rate: number;
9463
+ readonly description: string;
9464
+ readonly zero_levy_reason?: io.flow.v0.enums.ZeroLevyReasonCode[];
9465
+ }
9466
+ interface TaxDutyQuoteSimpleShipping {
9467
+ readonly values: io.flow.v0.models.TaxDutyQuoteValues;
9468
+ readonly ship_from: io.flow.v0.models.StreetAddress;
9469
+ }
9470
+ interface TaxDutyQuoteSimpleShippingForm {
9471
+ readonly price: number;
9472
+ readonly includes: io.flow.v0.enums.LevyInclusion[];
9473
+ readonly ship_from?: io.flow.v0.models.StreetAddress;
9474
+ }
9475
+ interface TaxDutyQuoteValues {
9476
+ readonly price: number;
9477
+ readonly duty: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
9478
+ readonly tax: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
9479
+ readonly fees: io.flow.v0.models.TaxDutyQuoteFeeValue;
9480
+ readonly total: number;
9481
+ }
9356
9482
  interface TaxRegistration {
9357
9483
  readonly id: string;
9358
9484
  readonly key: string;
@@ -9917,13 +10043,14 @@ declare namespace io.flow.v0.unions {
9917
10043
  type ShippingNotificationForm = io.flow.v0.models.DetailedShippingNotificationForm | io.flow.v0.models.SinglePackageShippingNotificationForm | io.flow.v0.models.SummaryShippingNotificationForm;
9918
10044
  type ShopifyCartAddForm = io.flow.v0.models.ShopifyCartAddSingleForm | io.flow.v0.models.ShopifyCartAddMultipleForm;
9919
10045
  type ShopifyEventBucket = io.flow.v0.models.ShopifyItemEventBucket;
10046
+ type TaxDutyQuoteLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
9920
10047
  type TaxSetting = io.flow.v0.models.AvalaraTaxSetting | io.flow.v0.models.AvalaraTaxCsvSetting;
9921
10048
  type ThreedsChallengeAction = io.flow.v0.models.ThreedsTwoChallengeRequest;
9922
10049
  type ThreedsIdentifyAction = io.flow.v0.models.ThreedsTwoMethod;
9923
10050
  type TierRuleOutcome = io.flow.v0.models.AmountMargin | io.flow.v0.models.AtCost | io.flow.v0.models.FlatRate | io.flow.v0.models.PercentMargin;
9924
10051
  type TierRuleOutcomeForm = io.flow.v0.models.AmountMarginForm | io.flow.v0.models.FlatRateForm | io.flow.v0.models.AtCost | io.flow.v0.models.PercentMargin;
9925
- type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.PartnerToken;
9926
- type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.PartnerTokenReference;
10052
+ type Token = io.flow.v0.models.ChannelToken | io.flow.v0.models.OrganizationToken | io.flow.v0.models.OrganizationTokenV2 | io.flow.v0.models.PartnerToken;
10053
+ type TokenReference = io.flow.v0.models.ChannelTokenReference | io.flow.v0.models.OrganizationTokenReference | io.flow.v0.models.OrganizationTokenV2Reference | io.flow.v0.models.PartnerTokenReference;
9927
10054
  }
9928
10055
  export declare type AbandonedOrderEmailSettings = io.flow.v0.models.AbandonedOrderEmailSettings;
9929
10056
  export declare type AbandonedOrderPromotion = io.flow.v0.models.AbandonedOrderPromotion;
@@ -10140,6 +10267,7 @@ export declare type ChannelOrganizationUpserted = io.flow.v0.models.ChannelOrgan
10140
10267
  export declare type ChannelRate = io.flow.v0.models.ChannelRate;
10141
10268
  export declare type ChannelReference = io.flow.v0.models.ChannelReference;
10142
10269
  export declare type ChannelToken = io.flow.v0.models.ChannelToken;
10270
+ export declare type ChannelTokenForm = io.flow.v0.models.ChannelTokenForm;
10143
10271
  export declare type ChannelTokenReference = io.flow.v0.models.ChannelTokenReference;
10144
10272
  export declare type ChannelUpserted = io.flow.v0.models.ChannelUpserted;
10145
10273
  export declare type CheckoutAttribute = io.flow.v0.models.CheckoutAttribute;
@@ -10607,6 +10735,7 @@ export declare type LaneStrategy = io.flow.v0.enums.LaneStrategy;
10607
10735
  export declare type LaneSummary = io.flow.v0.models.LaneSummary;
10608
10736
  export declare type Language = io.flow.v0.models.Language;
10609
10737
  export declare type LevyComponent = io.flow.v0.enums.LevyComponent;
10738
+ export declare type LevyInclusion = io.flow.v0.enums.LevyInclusion;
10610
10739
  export declare type LevyStrategy = io.flow.v0.enums.LevyStrategy;
10611
10740
  export declare type Line = io.flow.v0.models.Line;
10612
10741
  export declare type LineItem = io.flow.v0.models.LineItem;
@@ -10834,7 +10963,10 @@ export declare type OrganizationStatus = io.flow.v0.enums.OrganizationStatus;
10834
10963
  export declare type OrganizationSummary = io.flow.v0.models.OrganizationSummary;
10835
10964
  export declare type OrganizationToken = io.flow.v0.models.OrganizationToken;
10836
10965
  export declare type OrganizationTokenForm = io.flow.v0.models.OrganizationTokenForm;
10966
+ export declare type OrganizationTokenFormV2 = io.flow.v0.models.OrganizationTokenFormV2;
10837
10967
  export declare type OrganizationTokenReference = io.flow.v0.models.OrganizationTokenReference;
10968
+ export declare type OrganizationTokenV2 = io.flow.v0.models.OrganizationTokenV2;
10969
+ export declare type OrganizationTokenV2Reference = io.flow.v0.models.OrganizationTokenV2Reference;
10838
10970
  export declare type OrganizationUpserted = io.flow.v0.models.OrganizationUpserted;
10839
10971
  export declare type OrganizationUpsertedV2 = io.flow.v0.models.OrganizationUpsertedV2;
10840
10972
  export declare type OrganizationVersion = io.flow.v0.models.OrganizationVersion;
@@ -11263,6 +11395,7 @@ export declare type SolidusProductExportType = io.flow.v0.models.SolidusProductE
11263
11395
  export declare type SolidusVariantExportType = io.flow.v0.models.SolidusVariantExportType;
11264
11396
  export declare type SortDirection = io.flow.v0.enums.SortDirection;
11265
11397
  export declare type Strategy = io.flow.v0.enums.Strategy;
11398
+ export declare type StreetAddress = io.flow.v0.models.StreetAddress;
11266
11399
  export declare type StripeAuthenticationData = io.flow.v0.models.StripeAuthenticationData;
11267
11400
  export declare type StripeAuthenticationDataForm = io.flow.v0.models.StripeAuthenticationDataForm;
11268
11401
  export declare type StripeAuthorizationResultActionDetails = io.flow.v0.models.StripeAuthorizationResultActionDetails;
@@ -11303,6 +11436,18 @@ export declare type SyncStreamType = io.flow.v0.enums.SyncStreamType;
11303
11436
  export declare type SyncUnitOfTime = io.flow.v0.enums.SyncUnitOfTime;
11304
11437
  export declare type Tax = io.flow.v0.models.Tax;
11305
11438
  export declare type TaxApplicability = io.flow.v0.enums.TaxApplicability;
11439
+ export declare type TaxDutyCalculatorValidationError = io.flow.v0.models.TaxDutyCalculatorValidationError;
11440
+ export declare type TaxDutyCalculatorValidationErrorCode = io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
11441
+ export declare type TaxDutyQuote = io.flow.v0.models.TaxDutyQuote;
11442
+ export declare type TaxDutyQuoteFeeValue = io.flow.v0.models.TaxDutyQuoteFeeValue;
11443
+ export declare type TaxDutyQuoteForm = io.flow.v0.models.TaxDutyQuoteForm;
11444
+ export declare type TaxDutyQuoteLevyValue = io.flow.v0.unions.TaxDutyQuoteLevyValue;
11445
+ export declare type TaxDutyQuoteLineItem = io.flow.v0.models.TaxDutyQuoteLineItem;
11446
+ export declare type TaxDutyQuoteLineItemForm = io.flow.v0.models.TaxDutyQuoteLineItemForm;
11447
+ export declare type TaxDutyQuoteSimpleLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
11448
+ export declare type TaxDutyQuoteSimpleShipping = io.flow.v0.models.TaxDutyQuoteSimpleShipping;
11449
+ export declare type TaxDutyQuoteSimpleShippingForm = io.flow.v0.models.TaxDutyQuoteSimpleShippingForm;
11450
+ export declare type TaxDutyQuoteValues = io.flow.v0.models.TaxDutyQuoteValues;
11306
11451
  export declare type TaxRegistration = io.flow.v0.models.TaxRegistration;
11307
11452
  export declare type TaxRegistrationForm = io.flow.v0.models.TaxRegistrationForm;
11308
11453
  export declare type TaxReport = io.flow.v0.models.TaxReport;
@@ -11406,5 +11551,6 @@ export declare type WebhookResponse = io.flow.v0.models.WebhookResponse;
11406
11551
  export declare type WebhookSettings = io.flow.v0.models.WebhookSettings;
11407
11552
  export declare type WebhookStatus = io.flow.v0.enums.WebhookStatus;
11408
11553
  export declare type ZeroAmountIndicator = io.flow.v0.enums.ZeroAmountIndicator;
11554
+ export declare type ZeroLevyReasonCode = io.flow.v0.enums.ZeroLevyReasonCode;
11409
11555
  export declare type Zone = io.flow.v0.models.Zone;
11410
11556
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/types",
3
- "version": "11.19.35",
3
+ "version": "11.20.0",
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": "9830eb7bfd95d68aec644fe08f108dc944bf7350"
28
+ "gitHead": "31fa1fa0ccea753b679b88046a8cc02baae9a0a9"
29
29
  }