@flowio/types 11.19.34 → 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/src/api.ts CHANGED
@@ -251,13 +251,6 @@ declare namespace io.flow.stripe.v0.enums {
251
251
  | 'source.canceled'
252
252
  | 'source.chargeable'
253
253
  | 'source.failed';
254
- type KlarnaPaymentMethodCategoryType =
255
- | 'direct_bank_transfer'
256
- | 'direct_debit'
257
- | 'pay_later'
258
- | 'pay_now'
259
- | 'pay_over_time';
260
- type KlarnaProduct = 'payment';
261
254
  type NetworkStatus =
262
255
  | 'approved_by_network'
263
256
  | 'declined_by_network'
@@ -561,7 +554,7 @@ declare namespace io.flow.stripe.v0.models {
561
554
  }
562
555
 
563
556
  interface OrderItem {
564
- readonly object?: string;
557
+ readonly object: string;
565
558
  readonly amount: number;
566
559
  readonly currency: string;
567
560
  readonly description?: string;
@@ -803,7 +796,7 @@ declare namespace io.flow.stripe.v0.models {
803
796
 
804
797
  interface Shipping {
805
798
  readonly address: io.flow.stripe.v0.models.Address;
806
- readonly name?: string;
799
+ readonly name: string;
807
800
  readonly phone?: string;
808
801
  }
809
802
 
@@ -826,7 +819,6 @@ declare namespace io.flow.stripe.v0.models {
826
819
  readonly status: io.flow.stripe.v0.enums.SourceStatus;
827
820
  readonly type: io.flow.stripe.v0.enums.SourceType;
828
821
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
829
- readonly source_order?: io.flow.stripe.v0.models.SourceOrder;
830
822
  }
831
823
 
832
824
  interface SourceCard {
@@ -857,50 +849,12 @@ declare namespace io.flow.stripe.v0.models {
857
849
  readonly first_name?: string;
858
850
  readonly last_name?: string;
859
851
  readonly client_token: string;
860
- readonly payment_method_categories?: string;
861
- readonly purchase_country?: string;
862
- readonly shipping_first_name?: string;
863
- readonly shipping_last_name?: string;
864
- readonly locale?: string;
865
- readonly pay_later_name?: string;
866
- readonly pay_later_asset_urls_standard?: string;
867
- readonly pay_later_asset_urls_descriptive?: string;
868
- readonly pay_now_name?: string;
869
- readonly pay_now_asset_urls_standard?: string;
870
- readonly pay_now_asset_urls_descriptive?: string;
871
- readonly pay_over_time_name?: string;
872
- readonly pay_over_time_asset_urls_standard?: string;
873
- readonly pay_over_time_asset_urls_descriptive?: string;
874
- readonly direct_bank_transfer_name?: string;
875
- readonly direct_bank_transfer_asset_urls_standard?: string;
876
- readonly direct_bank_transfer_asset_urls_descriptive?: string;
877
- readonly direct_debit_name?: string;
878
- readonly direct_debit_asset_urls_standard?: string;
879
- readonly direct_debit_asset_urls_descriptive?: string;
880
852
  }
881
853
 
882
854
  interface SourceKlarnaRequest {
883
855
  readonly first_name: string;
884
856
  readonly last_name: string;
885
- readonly purchase_country?: string;
886
- readonly product?: io.flow.stripe.v0.enums.KlarnaProduct;
887
857
  readonly attachment?: string;
888
- readonly shipping_first_name?: string;
889
- readonly shipping_last_name?: string;
890
- readonly locale?: string;
891
- }
892
-
893
- interface SourceOrder {
894
- readonly amount?: number;
895
- readonly currency?: string;
896
- readonly email?: string;
897
- readonly items?: io.flow.stripe.v0.models.OrderItem[];
898
- readonly shipping?: io.flow.stripe.v0.models.Shipping;
899
- }
900
-
901
- interface SourceOrderRequest {
902
- readonly items?: io.flow.stripe.v0.models.OrderItemRequest[];
903
- readonly shipping?: io.flow.stripe.v0.models.Shipping;
904
858
  }
905
859
 
906
860
  interface SourceRequest {
@@ -918,7 +872,6 @@ declare namespace io.flow.stripe.v0.models {
918
872
  readonly three_d_secure?: io.flow.stripe.v0.models.ThreeDSecure;
919
873
  readonly token?: string;
920
874
  readonly usage: io.flow.stripe.v0.enums.SourceUsageType;
921
- readonly source_order?: io.flow.stripe.v0.models.SourceOrderRequest;
922
875
  }
923
876
 
924
877
  interface Stripe3Ds2Fingerprint {
@@ -2000,6 +1953,16 @@ declare namespace io.flow.channel.internal.v0.enums {
2000
1953
  type ChannelCurrencyCapability =
2001
1954
  | 'payment_authorizations'
2002
1955
  | 'settlement_currency';
1956
+ type ChannelOrderAcceptanceRejectionReason =
1957
+ | 'unsupported_origin_country'
1958
+ | 'unsupported_destination_country'
1959
+ | 'domestic_order'
1960
+ | 'order_contains_gift_card';
1961
+ type ChannelOrderAcceptanceStatus =
1962
+ | 'accepted'
1963
+ | 'rejected'
1964
+ | 'held_for_review'
1965
+ | 'reviewed';
2003
1966
  }
2004
1967
 
2005
1968
  declare namespace io.flow.channel.internal.v0.models {
@@ -2028,6 +1991,36 @@ declare namespace io.flow.channel.internal.v0.models {
2028
1991
  readonly environment: io.flow.common.v0.enums.Environment;
2029
1992
  readonly organization_id_prefix?: string;
2030
1993
  }
1994
+
1995
+ interface ChannelMembership {
1996
+ readonly id: string;
1997
+ readonly channel: io.flow.common.v0.models.ChannelReference;
1998
+ readonly user: io.flow.common.v0.unions.ExpandableUser;
1999
+ readonly role?: io.flow.common.v0.enums.Role;
2000
+ }
2001
+
2002
+ interface ChannelMembershipForm {
2003
+ readonly channel_id: string;
2004
+ readonly user_id: string;
2005
+ readonly role?: io.flow.common.v0.enums.Role;
2006
+ }
2007
+
2008
+ interface ChannelMembershipPutForm {
2009
+ readonly role?: io.flow.common.v0.enums.Role;
2010
+ }
2011
+
2012
+ interface ChannelOrderAcceptance {
2013
+ readonly id: string;
2014
+ readonly organization_id: string;
2015
+ readonly order_number: string;
2016
+ readonly channel_id: string;
2017
+ readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
2018
+ readonly reasons: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason[];
2019
+ }
2020
+
2021
+ interface ChannelOrderAcceptanceForm {
2022
+ readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
2023
+ }
2031
2024
  }
2032
2025
 
2033
2026
  declare namespace io.flow.common.v0.enums {
@@ -2083,7 +2076,11 @@ declare namespace io.flow.common.v0.enums {
2083
2076
  type MeasurementSystem = 'imperial' | 'metric';
2084
2077
  type MerchantOfRecord = 'flow' | 'organization';
2085
2078
  type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
2086
- type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
2079
+ type OrganizationStatus =
2080
+ | 'active'
2081
+ | 'inactive'
2082
+ | 'deactivated'
2083
+ | 'provisioned';
2087
2084
  type PriceBookStatus = 'draft' | 'published' | 'archived';
2088
2085
  type Role = 'admin' | 'member';
2089
2086
  type RoundingMethod = 'up' | 'down' | 'nearest';
@@ -2522,10 +2519,16 @@ declare namespace io.flow.token.v0.models {
2522
2519
  readonly channel: io.flow.common.v0.models.ChannelReference;
2523
2520
  readonly user: io.flow.common.v0.models.UserReference;
2524
2521
  readonly partial: string;
2522
+ readonly cleartext?: string;
2525
2523
  readonly created_at: string;
2526
2524
  readonly description?: string;
2527
2525
  }
2528
2526
 
2527
+ interface ChannelTokenForm {
2528
+ readonly channel_id: string;
2529
+ readonly description?: string;
2530
+ }
2531
+
2529
2532
  interface ChannelTokenReference {
2530
2533
  readonly discriminator: 'channel_token_reference';
2531
2534
  readonly id: string;
@@ -2553,6 +2556,11 @@ declare namespace io.flow.token.v0.models {
2553
2556
  readonly description?: string;
2554
2557
  }
2555
2558
 
2559
+ interface OrganizationTokenFormV2 {
2560
+ readonly organization_id: string;
2561
+ readonly description?: string;
2562
+ }
2563
+
2556
2564
  interface OrganizationTokenReference {
2557
2565
  readonly discriminator: 'organization_token_reference';
2558
2566
  readonly id: string;
@@ -2561,6 +2569,23 @@ declare namespace io.flow.token.v0.models {
2561
2569
  readonly user: io.flow.common.v0.models.UserReference;
2562
2570
  }
2563
2571
 
2572
+ interface OrganizationTokenV2 {
2573
+ readonly discriminator: 'organization_token_v2';
2574
+ readonly id: string;
2575
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
2576
+ readonly user: io.flow.common.v0.models.UserReference;
2577
+ readonly partial: string;
2578
+ readonly cleartext?: string;
2579
+ readonly created_at: string;
2580
+ readonly description?: string;
2581
+ }
2582
+
2583
+ interface OrganizationTokenV2Reference {
2584
+ readonly discriminator: 'organization_token_v2_reference';
2585
+ readonly id: string;
2586
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
2587
+ }
2588
+
2564
2589
  interface PartnerToken {
2565
2590
  readonly discriminator: 'partner_token';
2566
2591
  readonly id: string;
@@ -2606,10 +2631,12 @@ declare namespace io.flow.token.v0.unions {
2606
2631
  type Token =
2607
2632
  | io.flow.token.v0.models.ChannelToken
2608
2633
  | io.flow.token.v0.models.OrganizationToken
2634
+ | io.flow.token.v0.models.OrganizationTokenV2
2609
2635
  | io.flow.token.v0.models.PartnerToken;
2610
2636
  type TokenReference =
2611
2637
  | io.flow.token.v0.models.ChannelTokenReference
2612
2638
  | io.flow.token.v0.models.OrganizationTokenReference
2639
+ | io.flow.token.v0.models.OrganizationTokenV2Reference
2613
2640
  | io.flow.token.v0.models.PartnerTokenReference;
2614
2641
  }
2615
2642
 
@@ -2689,6 +2716,13 @@ declare namespace io.flow.permission.v0.models {
2689
2716
  }
2690
2717
  }
2691
2718
 
2719
+ declare namespace io.flow.token.internal.v0.models {
2720
+ interface ChannelTokenForm {
2721
+ readonly channel_id: string;
2722
+ readonly description?: string;
2723
+ }
2724
+ }
2725
+
2692
2726
  declare namespace io.flow.apple.pay.v0.enums {
2693
2727
  type ApplePayContactField =
2694
2728
  | 'email'
@@ -2848,6 +2882,7 @@ declare namespace io.flow.v0.enums {
2848
2882
  type AuthorizationOption = 'store_card';
2849
2883
  type AuthorizationResultActionType = 'native' | 'redirect' | 'wait';
2850
2884
  type AuthorizationStatus =
2885
+ | 'initiated'
2851
2886
  | 'pending'
2852
2887
  | 'expired'
2853
2888
  | 'authorized'
@@ -3220,6 +3255,7 @@ declare namespace io.flow.v0.enums {
3220
3255
  type LanePreselectPreference = 'lowest_cost' | 'default_tier';
3221
3256
  type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
3222
3257
  type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
3258
+ type LevyInclusion = 'tax' | 'duty';
3223
3259
  type LevyStrategy = 'minimum' | 'average' | 'maximum';
3224
3260
  type LocationErrorCode =
3225
3261
  | 'address_required'
@@ -3344,7 +3380,11 @@ declare namespace io.flow.v0.enums {
3344
3380
  type OrderStorage = 'do_not_persist' | 'persist';
3345
3381
  type OrderType = 'standard' | 'replacement';
3346
3382
  type OrganizationPaymentMethodTag = 'deny';
3347
- type OrganizationStatus = 'active' | 'inactive' | 'deactivated';
3383
+ type OrganizationStatus =
3384
+ | 'active'
3385
+ | 'inactive'
3386
+ | 'deactivated'
3387
+ | 'provisioned';
3348
3388
  type PaymentActionType =
3349
3389
  | 'redirect'
3350
3390
  | 'use_sdk_klarna_v1'
@@ -3529,6 +3569,27 @@ declare namespace io.flow.v0.enums {
3529
3569
  type SyncStreamType = 'submitted_order' | 'placed_order';
3530
3570
  type SyncUnitOfTime = 'day' | 'hour' | 'minute' | 'second';
3531
3571
  type TaxApplicability = 'none' | 'all';
3572
+ type TaxDutyCalculatorValidationErrorCode =
3573
+ | 'generic_error'
3574
+ | 'destination_country_not_defined'
3575
+ | 'destination_address_iso3166_unrecognized'
3576
+ | 'line_item_shipfrom_shipto_country_invalid'
3577
+ | 'line_item_ship_from_invalid'
3578
+ | 'line_item_currency_iso4217_unrecognized'
3579
+ | 'line_quantity_invalid'
3580
+ | 'line_item_quantity_invalid'
3581
+ | 'line_item_unit_price_precision_invalid'
3582
+ | 'line_item_unit_price_negative'
3583
+ | 'line_item_discount_amount_precision_invalid'
3584
+ | 'line_item_discount_amount_positive'
3585
+ | 'line_item_country_of_origin_iso3166_unrecognized'
3586
+ | 'line_item_hs_code_invalid'
3587
+ | 'line_item_duty_provider_invalid'
3588
+ | 'shipping_unit_price_precision_invalid'
3589
+ | 'shipping_unit_price_negative'
3590
+ | 'shipping_discount_amount_precision_invalid'
3591
+ | 'shipping_discount_amount_invalid'
3592
+ | 'merchant_of_record_invalid';
3532
3593
  type TaxReportType = 'consumer' | 'b2b';
3533
3594
  type TaxVerificationResult = 'valid' | 'invalid' | 'unable_to_validate';
3534
3595
  type TaxabilityType = 'tax_rule';
@@ -3579,6 +3640,17 @@ declare namespace io.flow.v0.enums {
3579
3640
  type Visibility = 'public' | 'private';
3580
3641
  type WebhookStatus = 'pending' | 'success' | 'failure';
3581
3642
  type ZeroAmountIndicator = 'zero' | 'free';
3643
+ type ZeroLevyReasonCode =
3644
+ | 'zero_basis'
3645
+ | 'zero_rate_on_goods'
3646
+ | 'value_rounds_to_zero'
3647
+ | 'order_below_de_minimis_threshold'
3648
+ | 'amount_below_de_minimis_threshold'
3649
+ | 'delivered_unpaid'
3650
+ | 'duty_free_domestic'
3651
+ | 'duty_free_intra_community'
3652
+ | 'duty_free_reimport'
3653
+ | 'duty_free_by_trade_agreement';
3582
3654
  }
3583
3655
 
3584
3656
  declare namespace io.flow.v0.models {
@@ -4881,14 +4953,14 @@ declare namespace io.flow.v0.models {
4881
4953
 
4882
4954
  interface ChannelOrganizationForm {
4883
4955
  readonly key: string;
4884
- readonly name: string;
4956
+ readonly name?: string;
4885
4957
  readonly slug?: string;
4886
4958
  readonly defaults: io.flow.v0.models.OrganizationDefaults;
4887
4959
  readonly attributes?: Record<string, string>;
4888
4960
  }
4889
4961
 
4890
4962
  interface ChannelOrganizationPutForm {
4891
- readonly name: string;
4963
+ readonly name?: string;
4892
4964
  readonly slug?: string;
4893
4965
  readonly defaults: io.flow.v0.models.OrganizationDefaults;
4894
4966
  readonly attributes?: Record<string, string>;
@@ -4915,10 +4987,16 @@ declare namespace io.flow.v0.models {
4915
4987
  readonly channel: io.flow.v0.models.ChannelReference;
4916
4988
  readonly user: io.flow.v0.models.UserReference;
4917
4989
  readonly partial: string;
4990
+ readonly cleartext?: string;
4918
4991
  readonly created_at: string;
4919
4992
  readonly description?: string;
4920
4993
  }
4921
4994
 
4995
+ interface ChannelTokenForm {
4996
+ readonly channel_id: string;
4997
+ readonly description?: string;
4998
+ }
4999
+
4922
5000
  interface ChannelTokenReference {
4923
5001
  readonly discriminator: 'channel_token_reference';
4924
5002
  readonly id: string;
@@ -6445,6 +6523,7 @@ declare namespace io.flow.v0.models {
6445
6523
  readonly item: io.flow.v0.models.LocalizedItemPrice;
6446
6524
  readonly vat?: io.flow.v0.models.LocalizedItemVat;
6447
6525
  readonly duty?: io.flow.v0.models.LocalizedItemDuty;
6526
+ readonly shipping_price?: io.flow.v0.models.Price;
6448
6527
  readonly price_attributes: Record<string, io.flow.v0.models.PriceWithBase>;
6449
6528
  }
6450
6529
 
@@ -6510,12 +6589,6 @@ declare namespace io.flow.v0.models {
6510
6589
  readonly status: io.flow.v0.enums.SubcatalogItemStatus;
6511
6590
  }
6512
6591
 
6513
- interface FlowShippingLabelRatecardSummary {
6514
- readonly discriminator: 'flow';
6515
- readonly id: string;
6516
- readonly cost: io.flow.v0.models.Money;
6517
- }
6518
-
6519
6592
  interface FraudEmailRule {
6520
6593
  readonly id?: string;
6521
6594
  readonly email: string;
@@ -6862,6 +6935,23 @@ declare namespace io.flow.v0.models {
6862
6935
  readonly total: number;
6863
6936
  }
6864
6937
 
6938
+ interface HopEstimateV2 {
6939
+ readonly origin_address: io.flow.v0.models.ShippingAddress;
6940
+ readonly destination_address: io.flow.v0.models.ShippingAddress;
6941
+ readonly service: io.flow.v0.models.RatecardServiceSummary;
6942
+ readonly shipment_window: io.flow.v0.models.ShipmentWindow;
6943
+ readonly currency: string;
6944
+ readonly amount: number;
6945
+ readonly fees: io.flow.v0.unions.RatecardFee[];
6946
+ readonly total: number;
6947
+ readonly lane: io.flow.v0.models.LaneSummary;
6948
+ }
6949
+
6950
+ interface HopV2 {
6951
+ readonly hop_number: number;
6952
+ readonly hop_estimate: io.flow.v0.models.HopEstimateV2;
6953
+ }
6954
+
6865
6955
  interface Hs10 {
6866
6956
  readonly id: string;
6867
6957
  readonly item: io.flow.v0.models.HarmonizedItemReference;
@@ -7504,6 +7594,11 @@ declare namespace io.flow.v0.models {
7504
7594
  readonly tax: io.flow.v0.models.Tax;
7505
7595
  }
7506
7596
 
7597
+ interface LaneSummary {
7598
+ readonly id: string;
7599
+ readonly ratecard: io.flow.v0.models.RatecardSummary;
7600
+ }
7601
+
7507
7602
  interface Language {
7508
7603
  readonly name: string;
7509
7604
  readonly iso_639_2: string;
@@ -7589,6 +7684,7 @@ declare namespace io.flow.v0.models {
7589
7684
  readonly price: io.flow.v0.models.LocalizedItemPrice;
7590
7685
  readonly vat?: io.flow.v0.models.LocalizedItemVat;
7591
7686
  readonly duty?: io.flow.v0.models.LocalizedItemDuty;
7687
+ readonly shipping?: io.flow.v0.models.Price;
7592
7688
  readonly attributes: Record<string, io.flow.v0.models.PriceWithBase>;
7593
7689
  readonly price_attributes?: Record<
7594
7690
  string,
@@ -7918,10 +8014,6 @@ declare namespace io.flow.v0.models {
7918
8014
  readonly last?: string;
7919
8015
  }
7920
8016
 
7921
- interface NewChannelRate {
7922
- readonly placeholder?: string;
7923
- }
7924
-
7925
8017
  interface NoInventoryReservationError {
7926
8018
  readonly code: 'no_inventory';
7927
8019
  readonly messages: string[];
@@ -8136,6 +8228,7 @@ declare namespace io.flow.v0.models {
8136
8228
  readonly discounts?: io.flow.v0.models.PaymentDiscount[];
8137
8229
  readonly tax?: io.flow.v0.models.PaymentTax;
8138
8230
  readonly duty?: io.flow.v0.models.PaymentDuty;
8231
+ readonly reference?: string;
8139
8232
  }
8140
8233
 
8141
8234
  interface OrderError {
@@ -8902,12 +8995,6 @@ declare namespace io.flow.v0.models {
8902
8995
  readonly environment: io.flow.v0.enums.Environment;
8903
8996
  }
8904
8997
 
8905
- interface OrganizationShippingLabelRatecardSummary {
8906
- readonly discriminator: 'organization';
8907
- readonly id: string;
8908
- readonly cost?: io.flow.v0.models.Money;
8909
- }
8910
-
8911
8998
  interface OrganizationShortId {
8912
8999
  readonly id: string;
8913
9000
  readonly organization: io.flow.v0.models.OrganizationReference;
@@ -8950,6 +9037,11 @@ declare namespace io.flow.v0.models {
8950
9037
  readonly description?: string;
8951
9038
  }
8952
9039
 
9040
+ interface OrganizationTokenFormV2 {
9041
+ readonly organization_id: string;
9042
+ readonly description?: string;
9043
+ }
9044
+
8953
9045
  interface OrganizationTokenReference {
8954
9046
  readonly discriminator: 'organization_token_reference';
8955
9047
  readonly id: string;
@@ -8958,6 +9050,23 @@ declare namespace io.flow.v0.models {
8958
9050
  readonly user: io.flow.v0.models.UserReference;
8959
9051
  }
8960
9052
 
9053
+ interface OrganizationTokenV2 {
9054
+ readonly discriminator: 'organization_token_v2';
9055
+ readonly id: string;
9056
+ readonly organization: io.flow.v0.models.OrganizationReference;
9057
+ readonly user: io.flow.v0.models.UserReference;
9058
+ readonly partial: string;
9059
+ readonly cleartext?: string;
9060
+ readonly created_at: string;
9061
+ readonly description?: string;
9062
+ }
9063
+
9064
+ interface OrganizationTokenV2Reference {
9065
+ readonly discriminator: 'organization_token_v2_reference';
9066
+ readonly id: string;
9067
+ readonly organization: io.flow.v0.models.OrganizationReference;
9068
+ }
9069
+
8961
9070
  interface OrganizationUpserted {
8962
9071
  readonly discriminator: 'organization_upserted';
8963
9072
  readonly event_id: string;
@@ -9132,7 +9241,7 @@ declare namespace io.flow.v0.models {
9132
9241
  }
9133
9242
 
9134
9243
  interface PaymentContactBilling {
9135
- readonly first_name: string;
9244
+ readonly first_name?: string;
9136
9245
  readonly last_name: string;
9137
9246
  readonly company?: string;
9138
9247
  readonly email?: string;
@@ -9140,7 +9249,7 @@ declare namespace io.flow.v0.models {
9140
9249
  }
9141
9250
 
9142
9251
  interface PaymentContactShipping {
9143
- readonly first_name: string;
9252
+ readonly first_name?: string;
9144
9253
  readonly last_name: string;
9145
9254
  readonly email: string;
9146
9255
  readonly phone: string;
@@ -10152,6 +10261,15 @@ declare namespace io.flow.v0.models {
10152
10261
  readonly ratecard: io.flow.v0.models.RatecardSummary;
10153
10262
  }
10154
10263
 
10264
+ interface RatecardEstimateV4 {
10265
+ readonly discriminator: 'ratecard_estimate_v4';
10266
+ readonly hops: io.flow.v0.models.HopV2[];
10267
+ readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
10268
+ readonly dimensional_weight?: io.flow.v0.models.Measurement;
10269
+ readonly gravitational_weight?: io.flow.v0.models.Measurement;
10270
+ readonly line_items?: io.flow.v0.models.LineItemForm[];
10271
+ }
10272
+
10155
10273
  interface RatecardForm {
10156
10274
  readonly direction: io.flow.v0.enums.Direction;
10157
10275
  readonly effective_at: string;
@@ -11045,7 +11163,7 @@ declare namespace io.flow.v0.models {
11045
11163
 
11046
11164
  interface ShippingLabel {
11047
11165
  readonly id: string;
11048
- readonly ratecard?: io.flow.v0.unions.ShippingLabelRatecardSummary;
11166
+ readonly hop?: io.flow.v0.models.ShippingLabelHopSummary;
11049
11167
  readonly attributes: Record<string, string>;
11050
11168
  readonly carrier_tracking_number: string;
11051
11169
  readonly carrier_tracking_number_url: string;
@@ -11076,12 +11194,27 @@ declare namespace io.flow.v0.models {
11076
11194
  readonly required: boolean;
11077
11195
  }
11078
11196
 
11197
+ interface ShippingLabelHopSummary {
11198
+ readonly lane: io.flow.v0.models.ShippingLabelLaneSummary;
11199
+ readonly cost: io.flow.v0.models.Money;
11200
+ }
11201
+
11202
+ interface ShippingLabelLaneSummary {
11203
+ readonly id: string;
11204
+ readonly ratecard: io.flow.v0.models.ShippingLabelRatecardSummary;
11205
+ }
11206
+
11079
11207
  interface ShippingLabelPackage {
11080
11208
  readonly dimensions: io.flow.v0.models.Dimension;
11081
11209
  readonly items: io.flow.v0.models.LineItemForm[];
11082
11210
  readonly reference_number?: string;
11083
11211
  }
11084
11212
 
11213
+ interface ShippingLabelRatecardSummary {
11214
+ readonly id: string;
11215
+ readonly ratecard_owner: io.flow.v0.enums.RatecardOwner;
11216
+ }
11217
+
11085
11218
  interface ShippingLabelSummary {
11086
11219
  readonly id: string;
11087
11220
  readonly flow_tracking_number: string;
@@ -11483,6 +11616,14 @@ declare namespace io.flow.v0.models {
11483
11616
  readonly sort?: string;
11484
11617
  }
11485
11618
 
11619
+ interface StreetAddress {
11620
+ readonly streets?: string[];
11621
+ readonly city?: string;
11622
+ readonly province?: string;
11623
+ readonly postal?: string;
11624
+ readonly country?: string;
11625
+ }
11626
+
11486
11627
  interface StripeAuthenticationData {
11487
11628
  readonly discriminator: 'stripe_authentication_data';
11488
11629
  readonly secret_key_reference: string;
@@ -11708,6 +11849,89 @@ declare namespace io.flow.v0.models {
11708
11849
  readonly deminimis?: io.flow.v0.unions.Deminimis;
11709
11850
  }
11710
11851
 
11852
+ interface TaxDutyCalculatorValidationError {
11853
+ readonly code: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
11854
+ readonly messages: string[];
11855
+ readonly codes: io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode[];
11856
+ }
11857
+
11858
+ interface TaxDutyQuote {
11859
+ readonly id: string;
11860
+ readonly primary_identifier: string;
11861
+ readonly attributes?: Record<string, string>;
11862
+ readonly merchant_of_record: io.flow.v0.enums.MerchantOfRecord;
11863
+ readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
11864
+ readonly destination: io.flow.v0.models.StreetAddress;
11865
+ readonly quote_date: string;
11866
+ readonly currency: string;
11867
+ readonly lines: io.flow.v0.models.TaxDutyQuoteLineItem[];
11868
+ readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShipping[];
11869
+ readonly total_values: io.flow.v0.models.TaxDutyQuoteValues;
11870
+ }
11871
+
11872
+ interface TaxDutyQuoteFeeValue {
11873
+ readonly amount: number;
11874
+ readonly description: string;
11875
+ }
11876
+
11877
+ interface TaxDutyQuoteForm {
11878
+ readonly primary_identifier: string;
11879
+ readonly attributes?: Record<string, string>;
11880
+ readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
11881
+ readonly destination: io.flow.v0.models.StreetAddress;
11882
+ readonly currency: string;
11883
+ readonly lines: io.flow.v0.models.TaxDutyQuoteLineItemForm[];
11884
+ readonly shipping: io.flow.v0.models.TaxDutyQuoteSimpleShippingForm[];
11885
+ }
11886
+
11887
+ interface TaxDutyQuoteLineItem {
11888
+ readonly primary_identifier: string;
11889
+ readonly attributes?: Record<string, string>;
11890
+ readonly ship_from: io.flow.v0.models.StreetAddress;
11891
+ readonly quantity: number;
11892
+ readonly unit_values: io.flow.v0.models.TaxDutyQuoteValues;
11893
+ readonly country_of_origin: string;
11894
+ readonly hs_code: string;
11895
+ }
11896
+
11897
+ interface TaxDutyQuoteLineItemForm {
11898
+ readonly primary_identifier: string;
11899
+ readonly attributes?: Record<string, string>;
11900
+ readonly ship_from: io.flow.v0.models.StreetAddress;
11901
+ readonly quantity: number;
11902
+ readonly unit_price: number;
11903
+ readonly country_of_origin: string;
11904
+ readonly hs_code: string;
11905
+ readonly includes: io.flow.v0.enums.LevyInclusion[];
11906
+ }
11907
+
11908
+ interface TaxDutyQuoteSimpleLevyValue {
11909
+ readonly discriminator: 'tax_duty_quote_simple_levy_value';
11910
+ readonly amount: number;
11911
+ readonly rate: number;
11912
+ readonly description: string;
11913
+ readonly zero_levy_reason?: io.flow.v0.enums.ZeroLevyReasonCode[];
11914
+ }
11915
+
11916
+ interface TaxDutyQuoteSimpleShipping {
11917
+ readonly values: io.flow.v0.models.TaxDutyQuoteValues;
11918
+ readonly ship_from: io.flow.v0.models.StreetAddress;
11919
+ }
11920
+
11921
+ interface TaxDutyQuoteSimpleShippingForm {
11922
+ readonly price: number;
11923
+ readonly includes: io.flow.v0.enums.LevyInclusion[];
11924
+ readonly ship_from?: io.flow.v0.models.StreetAddress;
11925
+ }
11926
+
11927
+ interface TaxDutyQuoteValues {
11928
+ readonly price: number;
11929
+ readonly duty: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
11930
+ readonly tax: io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
11931
+ readonly fees: io.flow.v0.models.TaxDutyQuoteFeeValue;
11932
+ readonly total: number;
11933
+ }
11934
+
11711
11935
  interface TaxRegistration {
11712
11936
  readonly id: string;
11713
11937
  readonly key: string;
@@ -12680,7 +12904,8 @@ declare namespace io.flow.v0.unions {
12680
12904
  type RatecardEstimate =
12681
12905
  | io.flow.v0.models.RatecardEstimateV1
12682
12906
  | io.flow.v0.models.RatecardEstimateV2
12683
- | io.flow.v0.models.RatecardEstimateV3;
12907
+ | io.flow.v0.models.RatecardEstimateV3
12908
+ | io.flow.v0.models.RatecardEstimateV4;
12684
12909
  type RatecardFee =
12685
12910
  | io.flow.v0.models.DdpRatecardFee
12686
12911
  | io.flow.v0.models.FuelSurchargeRatecardFee
@@ -12718,9 +12943,6 @@ declare namespace io.flow.v0.unions {
12718
12943
  type ShippingLabelForm =
12719
12944
  | io.flow.v0.models.DetailedShippingLabelForm
12720
12945
  | io.flow.v0.models.SummaryShippingLabelForm;
12721
- type ShippingLabelRatecardSummary =
12722
- | io.flow.v0.models.FlowShippingLabelRatecardSummary
12723
- | io.flow.v0.models.OrganizationShippingLabelRatecardSummary;
12724
12946
  type ShippingNotificationForm =
12725
12947
  | io.flow.v0.models.DetailedShippingNotificationForm
12726
12948
  | io.flow.v0.models.SinglePackageShippingNotificationForm
@@ -12729,6 +12951,7 @@ declare namespace io.flow.v0.unions {
12729
12951
  | io.flow.v0.models.ShopifyCartAddSingleForm
12730
12952
  | io.flow.v0.models.ShopifyCartAddMultipleForm;
12731
12953
  type ShopifyEventBucket = io.flow.v0.models.ShopifyItemEventBucket;
12954
+ type TaxDutyQuoteLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
12732
12955
  type TaxSetting =
12733
12956
  | io.flow.v0.models.AvalaraTaxSetting
12734
12957
  | io.flow.v0.models.AvalaraTaxCsvSetting;
@@ -12747,10 +12970,12 @@ declare namespace io.flow.v0.unions {
12747
12970
  type Token =
12748
12971
  | io.flow.v0.models.ChannelToken
12749
12972
  | io.flow.v0.models.OrganizationToken
12973
+ | io.flow.v0.models.OrganizationTokenV2
12750
12974
  | io.flow.v0.models.PartnerToken;
12751
12975
  type TokenReference =
12752
12976
  | io.flow.v0.models.ChannelTokenReference
12753
12977
  | io.flow.v0.models.OrganizationTokenReference
12978
+ | io.flow.v0.models.OrganizationTokenV2Reference
12754
12979
  | io.flow.v0.models.PartnerTokenReference;
12755
12980
  }
12756
12981
 
@@ -12969,6 +13194,7 @@ export type ChannelOrganizationUpserted = io.flow.v0.models.ChannelOrganizationU
12969
13194
  export type ChannelRate = io.flow.v0.models.ChannelRate;
12970
13195
  export type ChannelReference = io.flow.v0.models.ChannelReference;
12971
13196
  export type ChannelToken = io.flow.v0.models.ChannelToken;
13197
+ export type ChannelTokenForm = io.flow.v0.models.ChannelTokenForm;
12972
13198
  export type ChannelTokenReference = io.flow.v0.models.ChannelTokenReference;
12973
13199
  export type ChannelUpserted = io.flow.v0.models.ChannelUpserted;
12974
13200
  export type CheckoutAttribute = io.flow.v0.models.CheckoutAttribute;
@@ -13262,7 +13488,6 @@ export type FlowCenterReference = io.flow.v0.models.FlowCenterReference;
13262
13488
  export type FlowEntity = io.flow.v0.enums.FlowEntity;
13263
13489
  export type FlowItemIndexMetadata = io.flow.v0.models.FlowItemIndexMetadata;
13264
13490
  export type FlowRole = io.flow.v0.enums.FlowRole;
13265
- export type FlowShippingLabelRatecardSummary = io.flow.v0.models.FlowShippingLabelRatecardSummary;
13266
13491
  export type FraudEmailRule = io.flow.v0.models.FraudEmailRule;
13267
13492
  export type FraudEmailRuleDecision = io.flow.v0.enums.FraudEmailRuleDecision;
13268
13493
  export type FraudEmailRuleForm = io.flow.v0.models.FraudEmailRuleForm;
@@ -13328,6 +13553,8 @@ export type Healthcheck = io.flow.v0.models.Healthcheck;
13328
13553
  export type HolidayCalendar = io.flow.v0.enums.HolidayCalendar;
13329
13554
  export type Hop = io.flow.v0.models.Hop;
13330
13555
  export type HopEstimate = io.flow.v0.models.HopEstimate;
13556
+ export type HopEstimateV2 = io.flow.v0.models.HopEstimateV2;
13557
+ export type HopV2 = io.flow.v0.models.HopV2;
13331
13558
  export type Hs10 = io.flow.v0.models.Hs10;
13332
13559
  export type Hs10CodeDeleted = io.flow.v0.models.Hs10CodeDeleted;
13333
13560
  export type Hs10CodeUpserted = io.flow.v0.models.Hs10CodeUpserted;
@@ -13432,8 +13659,10 @@ export type LaneDirection = io.flow.v0.enums.LaneDirection;
13432
13659
  export type LaneLandedCost = io.flow.v0.models.LaneLandedCost;
13433
13660
  export type LanePreselectPreference = io.flow.v0.enums.LanePreselectPreference;
13434
13661
  export type LaneStrategy = io.flow.v0.enums.LaneStrategy;
13662
+ export type LaneSummary = io.flow.v0.models.LaneSummary;
13435
13663
  export type Language = io.flow.v0.models.Language;
13436
13664
  export type LevyComponent = io.flow.v0.enums.LevyComponent;
13665
+ export type LevyInclusion = io.flow.v0.enums.LevyInclusion;
13437
13666
  export type LevyStrategy = io.flow.v0.enums.LevyStrategy;
13438
13667
  export type Line = io.flow.v0.models.Line;
13439
13668
  export type LineItem = io.flow.v0.models.LineItem;
@@ -13498,7 +13727,6 @@ export type MoneyWithBase = io.flow.v0.models.MoneyWithBase;
13498
13727
  export type MoneyWithOptionalBase = io.flow.v0.models.MoneyWithOptionalBase;
13499
13728
  export type Name = io.flow.v0.models.Name;
13500
13729
  export type NameForm = io.flow.v0.models.NameForm;
13501
- export type NewChannelRate = io.flow.v0.models.NewChannelRate;
13502
13730
  export type NoInventoryReservationError = io.flow.v0.models.NoInventoryReservationError;
13503
13731
  export type NoInventoryReservationErrorItem = io.flow.v0.models.NoInventoryReservationErrorItem;
13504
13732
  export type NotificationDeletedV2 = io.flow.v0.models.NotificationDeletedV2;
@@ -13655,7 +13883,6 @@ export type OrganizationRatesPublished = io.flow.v0.models.OrganizationRatesPubl
13655
13883
  export type OrganizationReference = io.flow.v0.models.OrganizationReference;
13656
13884
  export type OrganizationSession = io.flow.v0.models.OrganizationSession;
13657
13885
  export type OrganizationSessionAuthorization = io.flow.v0.models.OrganizationSessionAuthorization;
13658
- export type OrganizationShippingLabelRatecardSummary = io.flow.v0.models.OrganizationShippingLabelRatecardSummary;
13659
13886
  export type OrganizationShortId = io.flow.v0.models.OrganizationShortId;
13660
13887
  export type OrganizationShortIdDeleted = io.flow.v0.models.OrganizationShortIdDeleted;
13661
13888
  export type OrganizationShortIdUpserted = io.flow.v0.models.OrganizationShortIdUpserted;
@@ -13663,7 +13890,10 @@ export type OrganizationStatus = io.flow.v0.enums.OrganizationStatus;
13663
13890
  export type OrganizationSummary = io.flow.v0.models.OrganizationSummary;
13664
13891
  export type OrganizationToken = io.flow.v0.models.OrganizationToken;
13665
13892
  export type OrganizationTokenForm = io.flow.v0.models.OrganizationTokenForm;
13893
+ export type OrganizationTokenFormV2 = io.flow.v0.models.OrganizationTokenFormV2;
13666
13894
  export type OrganizationTokenReference = io.flow.v0.models.OrganizationTokenReference;
13895
+ export type OrganizationTokenV2 = io.flow.v0.models.OrganizationTokenV2;
13896
+ export type OrganizationTokenV2Reference = io.flow.v0.models.OrganizationTokenV2Reference;
13667
13897
  export type OrganizationUpserted = io.flow.v0.models.OrganizationUpserted;
13668
13898
  export type OrganizationUpsertedV2 = io.flow.v0.models.OrganizationUpsertedV2;
13669
13899
  export type OrganizationVersion = io.flow.v0.models.OrganizationVersion;
@@ -13872,6 +14102,7 @@ export type RatecardEstimateSummaryForm = io.flow.v0.models.RatecardEstimateSumm
13872
14102
  export type RatecardEstimateV1 = io.flow.v0.models.RatecardEstimateV1;
13873
14103
  export type RatecardEstimateV2 = io.flow.v0.models.RatecardEstimateV2;
13874
14104
  export type RatecardEstimateV3 = io.flow.v0.models.RatecardEstimateV3;
14105
+ export type RatecardEstimateV4 = io.flow.v0.models.RatecardEstimateV4;
13875
14106
  export type RatecardFee = io.flow.v0.unions.RatecardFee;
13876
14107
  export type RatecardForm = io.flow.v0.models.RatecardForm;
13877
14108
  export type RatecardLane = io.flow.v0.models.RatecardLane;
@@ -14025,8 +14256,10 @@ export type ShippingConfigurationVersion = io.flow.v0.models.ShippingConfigurati
14025
14256
  export type ShippingLabel = io.flow.v0.models.ShippingLabel;
14026
14257
  export type ShippingLabelDocument = io.flow.v0.models.ShippingLabelDocument;
14027
14258
  export type ShippingLabelForm = io.flow.v0.unions.ShippingLabelForm;
14259
+ export type ShippingLabelHopSummary = io.flow.v0.models.ShippingLabelHopSummary;
14260
+ export type ShippingLabelLaneSummary = io.flow.v0.models.ShippingLabelLaneSummary;
14028
14261
  export type ShippingLabelPackage = io.flow.v0.models.ShippingLabelPackage;
14029
- export type ShippingLabelRatecardSummary = io.flow.v0.unions.ShippingLabelRatecardSummary;
14262
+ export type ShippingLabelRatecardSummary = io.flow.v0.models.ShippingLabelRatecardSummary;
14030
14263
  export type ShippingLabelSummary = io.flow.v0.models.ShippingLabelSummary;
14031
14264
  export type ShippingLabelVersion = io.flow.v0.models.ShippingLabelVersion;
14032
14265
  export type ShippingLane = io.flow.v0.models.ShippingLane;
@@ -14089,6 +14322,7 @@ export type SolidusProductExportType = io.flow.v0.models.SolidusProductExportTyp
14089
14322
  export type SolidusVariantExportType = io.flow.v0.models.SolidusVariantExportType;
14090
14323
  export type SortDirection = io.flow.v0.enums.SortDirection;
14091
14324
  export type Strategy = io.flow.v0.enums.Strategy;
14325
+ export type StreetAddress = io.flow.v0.models.StreetAddress;
14092
14326
  export type StripeAuthenticationData = io.flow.v0.models.StripeAuthenticationData;
14093
14327
  export type StripeAuthenticationDataForm = io.flow.v0.models.StripeAuthenticationDataForm;
14094
14328
  export type StripeAuthorizationResultActionDetails = io.flow.v0.models.StripeAuthorizationResultActionDetails;
@@ -14129,6 +14363,18 @@ export type SyncStreamType = io.flow.v0.enums.SyncStreamType;
14129
14363
  export type SyncUnitOfTime = io.flow.v0.enums.SyncUnitOfTime;
14130
14364
  export type Tax = io.flow.v0.models.Tax;
14131
14365
  export type TaxApplicability = io.flow.v0.enums.TaxApplicability;
14366
+ export type TaxDutyCalculatorValidationError = io.flow.v0.models.TaxDutyCalculatorValidationError;
14367
+ export type TaxDutyCalculatorValidationErrorCode = io.flow.v0.enums.TaxDutyCalculatorValidationErrorCode;
14368
+ export type TaxDutyQuote = io.flow.v0.models.TaxDutyQuote;
14369
+ export type TaxDutyQuoteFeeValue = io.flow.v0.models.TaxDutyQuoteFeeValue;
14370
+ export type TaxDutyQuoteForm = io.flow.v0.models.TaxDutyQuoteForm;
14371
+ export type TaxDutyQuoteLevyValue = io.flow.v0.unions.TaxDutyQuoteLevyValue;
14372
+ export type TaxDutyQuoteLineItem = io.flow.v0.models.TaxDutyQuoteLineItem;
14373
+ export type TaxDutyQuoteLineItemForm = io.flow.v0.models.TaxDutyQuoteLineItemForm;
14374
+ export type TaxDutyQuoteSimpleLevyValue = io.flow.v0.models.TaxDutyQuoteSimpleLevyValue;
14375
+ export type TaxDutyQuoteSimpleShipping = io.flow.v0.models.TaxDutyQuoteSimpleShipping;
14376
+ export type TaxDutyQuoteSimpleShippingForm = io.flow.v0.models.TaxDutyQuoteSimpleShippingForm;
14377
+ export type TaxDutyQuoteValues = io.flow.v0.models.TaxDutyQuoteValues;
14132
14378
  export type TaxRegistration = io.flow.v0.models.TaxRegistration;
14133
14379
  export type TaxRegistrationForm = io.flow.v0.models.TaxRegistrationForm;
14134
14380
  export type TaxReport = io.flow.v0.models.TaxReport;
@@ -14232,4 +14478,5 @@ export type WebhookResponse = io.flow.v0.models.WebhookResponse;
14232
14478
  export type WebhookSettings = io.flow.v0.models.WebhookSettings;
14233
14479
  export type WebhookStatus = io.flow.v0.enums.WebhookStatus;
14234
14480
  export type ZeroAmountIndicator = io.flow.v0.enums.ZeroAmountIndicator;
14481
+ export type ZeroLevyReasonCode = io.flow.v0.enums.ZeroLevyReasonCode;
14235
14482
  export type Zone = io.flow.v0.models.Zone;