@flowio/types 0.0.4 → 0.0.6

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
@@ -526,9 +526,7 @@ namespace io.flow.shopify.external.v0.models {
526
526
 
527
527
  export interface ShopifyCustomer {
528
528
  readonly id: number;
529
- readonly addresses: {
530
- [key: string]: string;
531
- }[];
529
+ readonly addresses: io.flow.shopify.external.v0.models.ShopifyCustomerAddress[];
532
530
  readonly created_at: string;
533
531
  readonly tags: string;
534
532
  readonly tax_exempt: boolean;
@@ -550,6 +548,26 @@ namespace io.flow.shopify.external.v0.models {
550
548
  readonly updated_at?: string;
551
549
  }
552
550
 
551
+ export interface ShopifyCustomerAddress {
552
+ readonly id: number;
553
+ readonly customer_id: number;
554
+ readonly default: boolean;
555
+ readonly address1?: string;
556
+ readonly address2?: string;
557
+ readonly city?: string;
558
+ readonly company?: string;
559
+ readonly first_name?: string;
560
+ readonly last_name?: string;
561
+ readonly name?: string;
562
+ readonly phone?: string;
563
+ readonly country?: string;
564
+ readonly country_code?: string;
565
+ readonly country_name?: string;
566
+ readonly province?: string;
567
+ readonly province_code?: string;
568
+ readonly zip?: string;
569
+ }
570
+
553
571
  export interface ShopifyCustomerDelete {
554
572
  readonly id: number;
555
573
  }
@@ -669,6 +687,7 @@ namespace io.flow.shopify.external.v0.models {
669
687
  readonly sku: string;
670
688
  readonly tracked: boolean;
671
689
  readonly cost?: string;
690
+ readonly country_code_of_origin?: string;
672
691
  readonly created_at: string;
673
692
  readonly updated_at?: string;
674
693
  }
@@ -1155,6 +1174,14 @@ namespace io.flow.v0.enums {
1155
1174
  export type DeliveryWindowLocation = 'center' | 'crossdock' | 'customer';
1156
1175
  export type Direction = 'outbound' | 'return';
1157
1176
  export type DiscountTarget = 'item' | 'shipping';
1177
+ export type EcommercePlatformType =
1178
+ | 'commercetools'
1179
+ | 'custom'
1180
+ | 'magento'
1181
+ | 'shopify'
1182
+ | 'sfcc'
1183
+ | 'solidus'
1184
+ | 'workarea';
1158
1185
  export type EconomicTitleLocation =
1159
1186
  | 'high_seas'
1160
1187
  | 'origination'
@@ -1184,6 +1211,8 @@ namespace io.flow.v0.enums {
1184
1211
  | 'crossdock_shipment_upserted'
1185
1212
  | 'rate_deleted'
1186
1213
  | 'rate_upserted'
1214
+ | 'rate_deleted_v3'
1215
+ | 'rate_upserted_v3'
1187
1216
  | 'customer_upserted'
1188
1217
  | 'customer_deleted'
1189
1218
  | 'customer_address_book_contact_upserted'
@@ -1276,6 +1305,8 @@ namespace io.flow.v0.enums {
1276
1305
  | 'organization_short_id_deleted'
1277
1306
  | 'organization_default_configurations_upserted'
1278
1307
  | 'organization_default_configurations_deleted'
1308
+ | 'ecommerce_platform_upserted'
1309
+ | 'ecommerce_platform_deleted'
1279
1310
  | 'authorization_deleted_v2'
1280
1311
  | 'authorization_status_changed'
1281
1312
  | 'card_authorization_upserted_v2'
@@ -1694,110 +1725,14 @@ namespace io.flow.v0.models {
1694
1725
  }
1695
1726
 
1696
1727
  export interface AddressFieldValidation {
1697
- readonly first_name: (
1698
- | {
1699
- discriminator: 'required';
1700
- } & io.flow.v0.models.FieldValidationRequired
1701
- | {
1702
- discriminator: 'min';
1703
- } & io.flow.v0.models.FieldValidationMin
1704
- | {
1705
- discriminator: 'max';
1706
- } & io.flow.v0.models.FieldValidationMax
1707
- | {
1708
- discriminator: 'pattern';
1709
- } & io.flow.v0.models.FieldValidationPattern)[];
1710
- readonly last_name: (
1711
- | {
1712
- discriminator: 'required';
1713
- } & io.flow.v0.models.FieldValidationRequired
1714
- | {
1715
- discriminator: 'min';
1716
- } & io.flow.v0.models.FieldValidationMin
1717
- | {
1718
- discriminator: 'max';
1719
- } & io.flow.v0.models.FieldValidationMax
1720
- | {
1721
- discriminator: 'pattern';
1722
- } & io.flow.v0.models.FieldValidationPattern)[];
1723
- readonly street_1: (
1724
- | {
1725
- discriminator: 'required';
1726
- } & io.flow.v0.models.FieldValidationRequired
1727
- | {
1728
- discriminator: 'min';
1729
- } & io.flow.v0.models.FieldValidationMin
1730
- | {
1731
- discriminator: 'max';
1732
- } & io.flow.v0.models.FieldValidationMax
1733
- | {
1734
- discriminator: 'pattern';
1735
- } & io.flow.v0.models.FieldValidationPattern)[];
1736
- readonly street_2: (
1737
- | {
1738
- discriminator: 'required';
1739
- } & io.flow.v0.models.FieldValidationRequired
1740
- | {
1741
- discriminator: 'min';
1742
- } & io.flow.v0.models.FieldValidationMin
1743
- | {
1744
- discriminator: 'max';
1745
- } & io.flow.v0.models.FieldValidationMax
1746
- | {
1747
- discriminator: 'pattern';
1748
- } & io.flow.v0.models.FieldValidationPattern)[];
1749
- readonly city: (
1750
- | {
1751
- discriminator: 'required';
1752
- } & io.flow.v0.models.FieldValidationRequired
1753
- | {
1754
- discriminator: 'min';
1755
- } & io.flow.v0.models.FieldValidationMin
1756
- | {
1757
- discriminator: 'max';
1758
- } & io.flow.v0.models.FieldValidationMax
1759
- | {
1760
- discriminator: 'pattern';
1761
- } & io.flow.v0.models.FieldValidationPattern)[];
1762
- readonly province: (
1763
- | {
1764
- discriminator: 'required';
1765
- } & io.flow.v0.models.FieldValidationRequired
1766
- | {
1767
- discriminator: 'min';
1768
- } & io.flow.v0.models.FieldValidationMin
1769
- | {
1770
- discriminator: 'max';
1771
- } & io.flow.v0.models.FieldValidationMax
1772
- | {
1773
- discriminator: 'pattern';
1774
- } & io.flow.v0.models.FieldValidationPattern)[];
1775
- readonly postal: (
1776
- | {
1777
- discriminator: 'required';
1778
- } & io.flow.v0.models.FieldValidationRequired
1779
- | {
1780
- discriminator: 'min';
1781
- } & io.flow.v0.models.FieldValidationMin
1782
- | {
1783
- discriminator: 'max';
1784
- } & io.flow.v0.models.FieldValidationMax
1785
- | {
1786
- discriminator: 'pattern';
1787
- } & io.flow.v0.models.FieldValidationPattern)[];
1788
- readonly phone: (
1789
- | {
1790
- discriminator: 'required';
1791
- } & io.flow.v0.models.FieldValidationRequired
1792
- | {
1793
- discriminator: 'min';
1794
- } & io.flow.v0.models.FieldValidationMin
1795
- | {
1796
- discriminator: 'max';
1797
- } & io.flow.v0.models.FieldValidationMax
1798
- | {
1799
- discriminator: 'pattern';
1800
- } & io.flow.v0.models.FieldValidationPattern)[];
1728
+ readonly first_name: io.flow.v0.unions.FieldValidationRule[];
1729
+ readonly last_name: io.flow.v0.unions.FieldValidationRule[];
1730
+ readonly street_1: io.flow.v0.unions.FieldValidationRule[];
1731
+ readonly street_2: io.flow.v0.unions.FieldValidationRule[];
1732
+ readonly city: io.flow.v0.unions.FieldValidationRule[];
1733
+ readonly province: io.flow.v0.unions.FieldValidationRule[];
1734
+ readonly postal: io.flow.v0.unions.FieldValidationRule[];
1735
+ readonly phone: io.flow.v0.unions.FieldValidationRule[];
1801
1736
  }
1802
1737
 
1803
1738
  export interface AddressSuggestion {
@@ -1822,13 +1757,7 @@ namespace io.flow.v0.models {
1822
1757
 
1823
1758
  export interface Allocation {
1824
1759
  readonly order: io.flow.v0.models.AllocationOrderSummary;
1825
- readonly details: (
1826
- | {
1827
- discriminator: 'allocation_line_detail';
1828
- } & io.flow.v0.models.AllocationLineDetail
1829
- | {
1830
- discriminator: 'allocation_order_detail';
1831
- } & io.flow.v0.models.AllocationOrderDetail)[];
1760
+ readonly details: io.flow.v0.unions.AllocationDetail[];
1832
1761
  }
1833
1762
 
1834
1763
  export interface AllocationDeletedV2 {
@@ -1860,39 +1789,15 @@ namespace io.flow.v0.models {
1860
1789
  readonly key: io.flow.v0.enums.OrderPriceDetailKey;
1861
1790
  readonly price: io.flow.v0.models.PriceWithBase;
1862
1791
  readonly total: io.flow.v0.models.PriceWithBase;
1863
- readonly included: (
1864
- | {
1865
- discriminator: 'allocation_detail_component';
1866
- } & io.flow.v0.models.AllocationDetailComponent
1867
- | {
1868
- discriminator: 'allocation_levy_component';
1869
- } & io.flow.v0.models.AllocationLevyComponent)[];
1870
- readonly not_included: (
1871
- | {
1872
- discriminator: 'allocation_detail_component';
1873
- } & io.flow.v0.models.AllocationDetailComponent
1874
- | {
1875
- discriminator: 'allocation_levy_component';
1876
- } & io.flow.v0.models.AllocationLevyComponent)[];
1792
+ readonly included: io.flow.v0.unions.AllocationComponent[];
1793
+ readonly not_included: io.flow.v0.unions.AllocationComponent[];
1877
1794
  }
1878
1795
 
1879
1796
  export interface AllocationOrderDetail {
1880
1797
  readonly key: io.flow.v0.enums.OrderPriceDetailKey;
1881
1798
  readonly total: io.flow.v0.models.PriceWithBase;
1882
- readonly included: (
1883
- | {
1884
- discriminator: 'allocation_detail_component';
1885
- } & io.flow.v0.models.AllocationDetailComponent
1886
- | {
1887
- discriminator: 'allocation_levy_component';
1888
- } & io.flow.v0.models.AllocationLevyComponent)[];
1889
- readonly not_included: (
1890
- | {
1891
- discriminator: 'allocation_detail_component';
1892
- } & io.flow.v0.models.AllocationDetailComponent
1893
- | {
1894
- discriminator: 'allocation_levy_component';
1895
- } & io.flow.v0.models.AllocationLevyComponent)[];
1799
+ readonly included: io.flow.v0.unions.AllocationComponent[];
1800
+ readonly not_included: io.flow.v0.unions.AllocationComponent[];
1896
1801
  }
1897
1802
 
1898
1803
  export interface AllocationOrderSummary {
@@ -1911,13 +1816,7 @@ namespace io.flow.v0.models {
1911
1816
  export interface AllocationV2 {
1912
1817
  readonly id: string;
1913
1818
  readonly order: io.flow.v0.models.AllocationOrderSummary;
1914
- readonly details: (
1915
- | {
1916
- discriminator: 'allocation_line_detail';
1917
- } & io.flow.v0.models.AllocationLineDetail
1918
- | {
1919
- discriminator: 'allocation_order_detail';
1920
- } & io.flow.v0.models.AllocationOrderDetail)[];
1819
+ readonly details: io.flow.v0.unions.AllocationDetail[];
1921
1820
  readonly total: io.flow.v0.models.LocalizedTotal;
1922
1821
  }
1923
1822
 
@@ -2035,13 +1934,7 @@ namespace io.flow.v0.models {
2035
1934
  }
2036
1935
 
2037
1936
  export interface AuthorizationPayload {
2038
- readonly parameters:
2039
- | {
2040
- discriminator: 'google_pay_authorization_payload';
2041
- } & io.flow.v0.models.GooglePayAuthorizationPayload
2042
- | {
2043
- discriminator: 'apple_pay_merchant_validation_payload';
2044
- } & io.flow.v0.models.ApplePayMerchantValidationPayload;
1937
+ readonly parameters: io.flow.v0.unions.AuthorizationPayloadParameters;
2045
1938
  }
2046
1939
 
2047
1940
  export interface AuthorizationReference {
@@ -2052,16 +1945,7 @@ namespace io.flow.v0.models {
2052
1945
 
2053
1946
  export interface AuthorizationResult {
2054
1947
  readonly status: io.flow.v0.enums.AuthorizationStatus;
2055
- readonly action?:
2056
- | {
2057
- discriminator: 'authorization_result_action_get';
2058
- } & io.flow.v0.models.AuthorizationResultActionGet
2059
- | {
2060
- discriminator: 'authorization_result_action_post';
2061
- } & io.flow.v0.models.AuthorizationResultActionPost
2062
- | {
2063
- discriminator: 'authorization_result_action_wait';
2064
- } & io.flow.v0.models.AuthorizationResultActionWait;
1948
+ readonly action?: io.flow.v0.unions.AuthorizationResultAction;
2065
1949
  readonly decline_code?: io.flow.v0.enums.AuthorizationDeclineCode;
2066
1950
  readonly avs?: io.flow.v0.models.Avs;
2067
1951
  readonly cvv?: io.flow.v0.models.Cvv;
@@ -2095,26 +1979,14 @@ namespace io.flow.v0.models {
2095
1979
  readonly timestamp: string;
2096
1980
  readonly organization: string;
2097
1981
  readonly id: string;
2098
- readonly authorization:
2099
- | {
2100
- discriminator: 'card_authorization';
2101
- } & io.flow.v0.models.CardAuthorization
2102
- | {
2103
- discriminator: 'online_authorization';
2104
- } & io.flow.v0.models.OnlineAuthorization;
1982
+ readonly authorization: io.flow.v0.unions.Authorization;
2105
1983
  }
2106
1984
 
2107
1985
  export interface AuthorizationVersion {
2108
1986
  readonly id: string;
2109
1987
  readonly timestamp: string;
2110
1988
  readonly type: io.flow.v0.enums.ChangeType;
2111
- readonly authorization:
2112
- | {
2113
- discriminator: 'card_authorization';
2114
- } & io.flow.v0.models.CardAuthorization
2115
- | {
2116
- discriminator: 'online_authorization';
2117
- } & io.flow.v0.models.OnlineAuthorization;
1989
+ readonly authorization: io.flow.v0.unions.Authorization;
2118
1990
  }
2119
1991
 
2120
1992
  export interface AvailableFilterStructured {
@@ -2133,13 +2005,7 @@ namespace io.flow.v0.models {
2133
2005
  readonly id: string;
2134
2006
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
2135
2007
  readonly region: io.flow.v0.models.RegionReference;
2136
- readonly promotions: (
2137
- | {
2138
- discriminator: 'free_shipping';
2139
- } & io.flow.v0.models.FreeShipping
2140
- | {
2141
- discriminator: 'discount';
2142
- } & io.flow.v0.models.Discount)[];
2008
+ readonly promotions: io.flow.v0.unions.Promotion[];
2143
2009
  }
2144
2010
 
2145
2011
  export interface AvailablePromotionsDeleted {
@@ -2180,16 +2046,7 @@ namespace io.flow.v0.models {
2180
2046
  }
2181
2047
 
2182
2048
  export interface AvalaraTaxCsvSetting {
2183
- readonly schedule:
2184
- | {
2185
- discriminator: 'repeat_daily';
2186
- } & io.flow.v0.models.RepeatDaily
2187
- | {
2188
- discriminator: 'repeat_weekly';
2189
- } & io.flow.v0.models.RepeatWeekly
2190
- | {
2191
- discriminator: 'repeat_monthly';
2192
- } & io.flow.v0.models.RepeatMonthly;
2049
+ readonly schedule: io.flow.v0.unions.RepeatSchedule;
2193
2050
  readonly timezone: string;
2194
2051
  readonly email_recipients?: string[];
2195
2052
  }
@@ -2221,16 +2078,7 @@ namespace io.flow.v0.models {
2221
2078
  readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
2222
2079
  readonly destination?: io.flow.v0.models.OrderAddress;
2223
2080
  readonly tax: io.flow.v0.models.Money;
2224
- readonly lines: (
2225
- | {
2226
- discriminator: 'item';
2227
- } & io.flow.v0.models.ConsumerInvoiceLineItem
2228
- | {
2229
- discriminator: 'discount';
2230
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount
2231
- | {
2232
- discriminator: 'shipping';
2233
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
2081
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
2234
2082
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
2235
2083
  readonly attributes: {
2236
2084
  [key: string]: string;
@@ -2254,15 +2102,7 @@ namespace io.flow.v0.models {
2254
2102
  export interface BehaviorAudit {
2255
2103
  readonly behavior: io.flow.v0.enums.FlowBehavior;
2256
2104
  readonly authentication_techniques: io.flow.v0.enums.AuthenticationTechnique[];
2257
- readonly roles: (
2258
- | {
2259
- discriminator: 'flow_user_role';
2260
- value: io.flow.v0.enums.FlowUserRole;
2261
- }
2262
- | {
2263
- discriminator: 'flow_addon_role';
2264
- value: io.flow.v0.enums.FlowAddonRole;
2265
- })[];
2105
+ readonly roles: io.flow.v0.unions.FlowRole[];
2266
2106
  }
2267
2107
 
2268
2108
  export interface BillingAddress {
@@ -2391,16 +2231,7 @@ namespace io.flow.v0.models {
2391
2231
  readonly key: string;
2392
2232
  readonly merchant_of_record?: io.flow.v0.enums.MerchantOfRecord;
2393
2233
  readonly method?: io.flow.v0.models.PaymentMethod;
2394
- readonly card:
2395
- | {
2396
- discriminator: 'card';
2397
- } & io.flow.v0.models.Card
2398
- | {
2399
- discriminator: 'card_reference';
2400
- } & io.flow.v0.models.CardReference
2401
- | {
2402
- discriminator: 'card_summary';
2403
- } & io.flow.v0.models.CardSummary;
2234
+ readonly card: io.flow.v0.unions.ExpandableCard;
2404
2235
  readonly amount: number;
2405
2236
  readonly currency: string;
2406
2237
  readonly requested?: io.flow.v0.models.Money;
@@ -2735,12 +2566,14 @@ namespace io.flow.v0.models {
2735
2566
  readonly id: string;
2736
2567
  readonly experience: io.flow.v0.models.ExperienceReference;
2737
2568
  readonly key: string;
2569
+ readonly name: string;
2738
2570
  readonly attribute_keys: string[];
2739
2571
  readonly position: number;
2740
2572
  }
2741
2573
 
2742
2574
  export interface CheckoutAttributeForm {
2743
2575
  readonly key: string;
2576
+ readonly name?: string;
2744
2577
  readonly experience_key: string;
2745
2578
  readonly attribute_keys: string[];
2746
2579
  readonly position?: number;
@@ -2756,6 +2589,7 @@ namespace io.flow.v0.models {
2756
2589
 
2757
2590
  export interface CheckoutItemContentAttribute {
2758
2591
  readonly key: string;
2592
+ readonly name: string;
2759
2593
  readonly value: string;
2760
2594
  }
2761
2595
 
@@ -2791,21 +2625,20 @@ namespace io.flow.v0.models {
2791
2625
  export interface CheckoutToken {
2792
2626
  readonly id: string;
2793
2627
  readonly organization: io.flow.v0.models.OrganizationReference;
2628
+ readonly checkout: io.flow.v0.models.CheckoutReference;
2794
2629
  readonly order: io.flow.v0.models.OrderNumberReference;
2795
2630
  readonly urls: io.flow.v0.models.CheckoutUrls;
2796
2631
  readonly expires_at: string;
2797
- readonly session?: io.flow.v0.models.SessionReference;
2632
+ readonly session: io.flow.v0.models.SessionReference;
2798
2633
  readonly customer?: io.flow.v0.models.CustomerReference;
2799
- readonly checkout?: io.flow.v0.models.CheckoutReference;
2800
2634
  }
2801
2635
 
2802
2636
  export interface CheckoutTokenOrderForm {
2803
2637
  readonly order_form: io.flow.v0.models.OrderForm;
2804
2638
  readonly customer?: io.flow.v0.models.CustomerForm;
2805
2639
  readonly address_book?: io.flow.v0.models.CustomerAddressBookForm;
2806
- readonly payment_sources?: ({
2807
- discriminator: 'card_payment_source_form';
2808
- } & io.flow.v0.models.CardPaymentSourceForm)[];
2640
+ readonly payment_sources?: io.flow.v0.unions.PaymentSourceForm[];
2641
+ readonly session_id: string;
2809
2642
  readonly urls?: io.flow.v0.models.CheckoutUrlsForm;
2810
2643
  }
2811
2644
 
@@ -2843,16 +2676,7 @@ namespace io.flow.v0.models {
2843
2676
  readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
2844
2677
  readonly destination: io.flow.v0.models.OrderAddress;
2845
2678
  readonly billing_address?: io.flow.v0.models.BillingAddress;
2846
- readonly lines: (
2847
- | {
2848
- discriminator: 'item';
2849
- } & io.flow.v0.models.ConsumerInvoiceLineItem
2850
- | {
2851
- discriminator: 'discount';
2852
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount
2853
- | {
2854
- discriminator: 'shipping';
2855
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
2679
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
2856
2680
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
2857
2681
  readonly attributes: {
2858
2682
  [key: string]: string;
@@ -3013,16 +2837,7 @@ namespace io.flow.v0.models {
3013
2837
  readonly invoice: io.flow.v0.models.ConsumerInvoiceReference;
3014
2838
  readonly entity: io.flow.v0.models.MerchantOfRecordEntity;
3015
2839
  readonly payments: io.flow.v0.models.ConsumerInvoicePayment[];
3016
- readonly lines: (
3017
- | {
3018
- discriminator: 'item';
3019
- } & io.flow.v0.models.ConsumerInvoiceLineItem
3020
- | {
3021
- discriminator: 'discount';
3022
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount
3023
- | {
3024
- discriminator: 'shipping';
3025
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
2840
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
3026
2841
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
3027
2842
  readonly attributes: {
3028
2843
  [key: string]: string;
@@ -3041,16 +2856,7 @@ namespace io.flow.v0.models {
3041
2856
  readonly refund_id?: string;
3042
2857
  readonly refund_key?: string;
3043
2858
  readonly refund_identifier?: string;
3044
- readonly lines: (
3045
- | {
3046
- discriminator: 'item';
3047
- } & io.flow.v0.models.ConsumerInvoiceLineItemForm
3048
- | {
3049
- discriminator: 'discount';
3050
- } & io.flow.v0.models.ConsumerInvoiceLineDiscountForm
3051
- | {
3052
- discriminator: 'shipping';
3053
- } & io.flow.v0.models.ConsumerInvoiceLineShippingForm)[];
2859
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLineForm[];
3054
2860
  readonly attributes?: {
3055
2861
  [key: string]: string;
3056
2862
  };
@@ -3065,13 +2871,7 @@ namespace io.flow.v0.models {
3065
2871
 
3066
2872
  export interface CreditPayment {
3067
2873
  readonly id: string;
3068
- readonly order:
3069
- | {
3070
- discriminator: 'order';
3071
- } & io.flow.v0.models.Order
3072
- | {
3073
- discriminator: 'order_reference';
3074
- } & io.flow.v0.models.OrderReference;
2874
+ readonly order: io.flow.v0.unions.ExpandableOrder;
3075
2875
  readonly key: string;
3076
2876
  readonly description: string;
3077
2877
  readonly value: io.flow.v0.models.PriceWithBase;
@@ -3281,19 +3081,7 @@ namespace io.flow.v0.models {
3281
3081
  readonly service: io.flow.v0.models.ServiceSummary;
3282
3082
  readonly tier: io.flow.v0.models.TierSummary;
3283
3083
  readonly window: io.flow.v0.models.DeliveryWindow;
3284
- readonly rule_outcome?:
3285
- | {
3286
- discriminator: 'amount_margin';
3287
- } & io.flow.v0.models.AmountMargin
3288
- | {
3289
- discriminator: 'at_cost';
3290
- } & io.flow.v0.models.AtCost
3291
- | {
3292
- discriminator: 'flat_rate';
3293
- } & io.flow.v0.models.FlatRate
3294
- | {
3295
- discriminator: 'percent_margin';
3296
- } & io.flow.v0.models.PercentMargin;
3084
+ readonly rule_outcome?: io.flow.v0.unions.TierRuleOutcome;
3297
3085
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
3298
3086
  readonly send_to?: io.flow.v0.models.ShippingAddress;
3299
3087
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
@@ -3528,13 +3316,7 @@ namespace io.flow.v0.models {
3528
3316
  }
3529
3317
 
3530
3318
  export interface DiscountForm {
3531
- readonly offer:
3532
- | {
3533
- discriminator: 'discount_offer_fixed';
3534
- } & io.flow.v0.models.DiscountOfferFixed
3535
- | {
3536
- discriminator: 'discount_offer_percent';
3537
- } & io.flow.v0.models.DiscountOfferPercent;
3319
+ readonly offer: io.flow.v0.unions.DiscountOffer;
3538
3320
  readonly target?: io.flow.v0.enums.DiscountTarget;
3539
3321
  readonly label?: string;
3540
3322
  }
@@ -3559,16 +3341,30 @@ namespace io.flow.v0.models {
3559
3341
  export interface Duty {
3560
3342
  readonly rate: number;
3561
3343
  readonly components: io.flow.v0.enums.LevyComponent[];
3562
- readonly deminimis?:
3563
- | {
3564
- discriminator: 'deminimis_simple';
3565
- } & io.flow.v0.models.DeminimisSimple
3566
- | {
3567
- discriminator: 'deminimis_per_item';
3568
- } & io.flow.v0.models.DeminimisPerItem;
3344
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
3569
3345
  readonly name?: string;
3570
3346
  }
3571
3347
 
3348
+ export interface EcommercePlatform {
3349
+ readonly id: string;
3350
+ readonly type: io.flow.v0.enums.EcommercePlatformType;
3351
+ readonly version?: string;
3352
+ }
3353
+
3354
+ export interface EcommercePlatformDeleted {
3355
+ readonly event_id: string;
3356
+ readonly timestamp: string;
3357
+ readonly organization: string;
3358
+ readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
3359
+ }
3360
+
3361
+ export interface EcommercePlatformUpserted {
3362
+ readonly event_id: string;
3363
+ readonly timestamp: string;
3364
+ readonly organization: string;
3365
+ readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
3366
+ }
3367
+
3572
3368
  export interface EmailVerification {
3573
3369
  readonly email: string;
3574
3370
  }
@@ -3834,58 +3630,14 @@ namespace io.flow.v0.models {
3834
3630
 
3835
3631
  export interface Export {
3836
3632
  readonly id: string;
3837
- readonly type:
3838
- | {
3839
- discriminator: 'account_transactions_export_type';
3840
- } & io.flow.v0.models.AccountTransactionsExportType
3841
- | {
3842
- discriminator: 'account_orders_export_type';
3843
- } & io.flow.v0.models.AccountOrdersExportType
3844
- | {
3845
- discriminator: 'analytics_export_type';
3846
- } & io.flow.v0.models.AnalyticsExportType
3847
- | {
3848
- discriminator: 'catalog_item_export_type';
3849
- } & io.flow.v0.models.CatalogItemExportType
3850
- | {
3851
- discriminator: 'experience_export_type';
3852
- } & io.flow.v0.models.ExperienceExportType
3853
- | {
3854
- discriminator: 'harmonization_overview_export_type';
3855
- } & io.flow.v0.models.HarmonizationOverviewExportType
3856
- | {
3857
- discriminator: 'harmonization_hs6_export_type';
3858
- } & io.flow.v0.models.HarmonizationHs6ExportType
3859
- | {
3860
- discriminator: 'harmonization_hs10_export_type';
3861
- } & io.flow.v0.models.HarmonizationHs10ExportType
3862
- | {
3863
- discriminator: 'unharmonized_item_export_type';
3864
- } & io.flow.v0.models.UnharmonizedItemExportType
3865
- | {
3866
- discriminator: 'harmonization_landed_cost_export_type';
3867
- } & io.flow.v0.models.HarmonizationLandedCostExportType
3868
- | {
3869
- discriminator: 'order_export_type';
3870
- } & io.flow.v0.models.OrderExportType
3871
- | {
3872
- discriminator: 'solidus_product_export_type';
3873
- } & io.flow.v0.models.SolidusProductExportType
3874
- | {
3875
- discriminator: 'solidus_variant_export_type';
3876
- } & io.flow.v0.models.SolidusVariantExportType
3877
- | {
3878
- discriminator: 'localized_item_prices_export_type';
3879
- } & io.flow.v0.models.LocalizedItemPricesExportType;
3633
+ readonly type: io.flow.v0.unions.ExportType;
3880
3634
  readonly status: io.flow.v0.enums.ExportStatus;
3881
3635
  readonly organization_q: string;
3882
3636
  readonly created_at: string;
3883
3637
  readonly started_at?: string;
3884
3638
  readonly completed_at?: string;
3885
3639
  readonly url?: string;
3886
- readonly deliveries: ({
3887
- discriminator: 'export_delivery_email';
3888
- } & io.flow.v0.models.ExportDeliveryEmail)[];
3640
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
3889
3641
  }
3890
3642
 
3891
3643
  export interface ExportDeliveryEmail {
@@ -3893,49 +3645,7 @@ namespace io.flow.v0.models {
3893
3645
  }
3894
3646
 
3895
3647
  export interface ExportForm {
3896
- readonly type:
3897
- | {
3898
- discriminator: 'account_transactions_export_type';
3899
- } & io.flow.v0.models.AccountTransactionsExportType
3900
- | {
3901
- discriminator: 'account_orders_export_type';
3902
- } & io.flow.v0.models.AccountOrdersExportType
3903
- | {
3904
- discriminator: 'analytics_export_type';
3905
- } & io.flow.v0.models.AnalyticsExportType
3906
- | {
3907
- discriminator: 'catalog_item_export_type';
3908
- } & io.flow.v0.models.CatalogItemExportType
3909
- | {
3910
- discriminator: 'experience_export_type';
3911
- } & io.flow.v0.models.ExperienceExportType
3912
- | {
3913
- discriminator: 'harmonization_overview_export_type';
3914
- } & io.flow.v0.models.HarmonizationOverviewExportType
3915
- | {
3916
- discriminator: 'harmonization_hs6_export_type';
3917
- } & io.flow.v0.models.HarmonizationHs6ExportType
3918
- | {
3919
- discriminator: 'harmonization_hs10_export_type';
3920
- } & io.flow.v0.models.HarmonizationHs10ExportType
3921
- | {
3922
- discriminator: 'unharmonized_item_export_type';
3923
- } & io.flow.v0.models.UnharmonizedItemExportType
3924
- | {
3925
- discriminator: 'harmonization_landed_cost_export_type';
3926
- } & io.flow.v0.models.HarmonizationLandedCostExportType
3927
- | {
3928
- discriminator: 'order_export_type';
3929
- } & io.flow.v0.models.OrderExportType
3930
- | {
3931
- discriminator: 'solidus_product_export_type';
3932
- } & io.flow.v0.models.SolidusProductExportType
3933
- | {
3934
- discriminator: 'solidus_variant_export_type';
3935
- } & io.flow.v0.models.SolidusVariantExportType
3936
- | {
3937
- discriminator: 'localized_item_prices_export_type';
3938
- } & io.flow.v0.models.LocalizedItemPricesExportType;
3648
+ readonly type: io.flow.v0.unions.ExportType;
3939
3649
  readonly emails?: string[];
3940
3650
  readonly organization_q?: string;
3941
3651
  }
@@ -4027,13 +3737,7 @@ namespace io.flow.v0.models {
4027
3737
 
4028
3738
  export interface FreeShippingOrderPromotion {
4029
3739
  readonly id: string;
4030
- readonly order:
4031
- | {
4032
- discriminator: 'order';
4033
- } & io.flow.v0.models.Order
4034
- | {
4035
- discriminator: 'order_reference';
4036
- } & io.flow.v0.models.OrderReference;
3740
+ readonly order: io.flow.v0.unions.ExpandableOrder;
4037
3741
  readonly key: string;
4038
3742
  readonly trigger: io.flow.v0.models.OrderPromotionTrigger;
4039
3743
  readonly max?: io.flow.v0.models.Price;
@@ -4341,25 +4045,7 @@ namespace io.flow.v0.models {
4341
4045
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
4342
4046
  readonly currency: string;
4343
4047
  readonly amount: number;
4344
- readonly fees: (
4345
- | {
4346
- discriminator: 'ddp_ratecard_fee';
4347
- } & io.flow.v0.models.DdpRatecardFee
4348
- | {
4349
- discriminator: 'fuel_surcharge_ratecard_fee';
4350
- } & io.flow.v0.models.FuelSurchargeRatecardFee
4351
- | {
4352
- discriminator: 'oversized_shipment_ratecard_fee';
4353
- } & io.flow.v0.models.OversizedShipmentRatecardFee
4354
- | {
4355
- discriminator: 'return_package_ratecard_fee';
4356
- } & io.flow.v0.models.ReturnPackageRatecardFee
4357
- | {
4358
- discriminator: 'crossdock_ratecard_fee';
4359
- } & io.flow.v0.models.CrossdockRatecardFee
4360
- | {
4361
- discriminator: 'remote_area_ratecard_fee';
4362
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
4048
+ readonly fees: io.flow.v0.unions.RatecardFee[];
4363
4049
  readonly total: number;
4364
4050
  }
4365
4051
 
@@ -4442,9 +4128,7 @@ namespace io.flow.v0.models {
4442
4128
  readonly started_at?: string;
4443
4129
  readonly completed_at?: string;
4444
4130
  readonly results?: io.flow.v0.models.ImportResults;
4445
- readonly deliveries: ({
4446
- discriminator: 'export_delivery_email';
4447
- } & io.flow.v0.models.ExportDeliveryEmail)[];
4131
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
4448
4132
  }
4449
4133
 
4450
4134
  export interface ImportForm {
@@ -4534,9 +4218,7 @@ namespace io.flow.v0.models {
4534
4218
  }
4535
4219
 
4536
4220
  export interface InputSpecificationLimitations {
4537
- readonly limitations?: ({
4538
- discriminator: 'input_specification_limitation_max';
4539
- } & io.flow.v0.models.InputSpecificationLimitationMax)[];
4221
+ readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
4540
4222
  }
4541
4223
 
4542
4224
  export interface InstallmentPlanPaymentError {
@@ -4595,31 +4277,13 @@ namespace io.flow.v0.models {
4595
4277
  readonly id: string;
4596
4278
  readonly position: number;
4597
4279
  readonly query: string;
4598
- readonly strategy:
4599
- | {
4600
- discriminator: 'inventory_backorder';
4601
- } & io.flow.v0.models.InventoryBackorder
4602
- | {
4603
- discriminator: 'inventory_stock';
4604
- } & io.flow.v0.models.InventoryStock
4605
- | {
4606
- discriminator: 'inventory_unlimited';
4607
- } & io.flow.v0.models.InventoryUnlimited;
4280
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
4608
4281
  }
4609
4282
 
4610
4283
  export interface InventoryRuleForm {
4611
4284
  readonly position: number;
4612
4285
  readonly query: string;
4613
- readonly strategy:
4614
- | {
4615
- discriminator: 'inventory_backorder';
4616
- } & io.flow.v0.models.InventoryBackorder
4617
- | {
4618
- discriminator: 'inventory_stock';
4619
- } & io.flow.v0.models.InventoryStock
4620
- | {
4621
- discriminator: 'inventory_unlimited';
4622
- } & io.flow.v0.models.InventoryUnlimited;
4286
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
4623
4287
  }
4624
4288
 
4625
4289
  export interface InventoryRuleVersion {
@@ -4684,25 +4348,11 @@ namespace io.flow.v0.models {
4684
4348
 
4685
4349
  export interface Invitation {
4686
4350
  readonly id: string;
4687
- readonly organization:
4688
- | {
4689
- discriminator: 'organization';
4690
- } & io.flow.v0.models.Organization
4691
- | {
4692
- discriminator: 'organization_reference';
4693
- } & io.flow.v0.models.OrganizationReference;
4351
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
4694
4352
  readonly email: string;
4695
4353
  readonly name: io.flow.v0.models.Name;
4696
4354
  readonly role?: io.flow.v0.enums.Role;
4697
- readonly roles?: (
4698
- | {
4699
- discriminator: 'flow_user_role';
4700
- value: io.flow.v0.enums.FlowUserRole;
4701
- }
4702
- | {
4703
- discriminator: 'flow_addon_role';
4704
- value: io.flow.v0.enums.FlowAddonRole;
4705
- })[];
4355
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4706
4356
  readonly expiration: string;
4707
4357
  }
4708
4358
 
@@ -4716,15 +4366,7 @@ namespace io.flow.v0.models {
4716
4366
  readonly email: string;
4717
4367
  readonly name?: io.flow.v0.models.Name;
4718
4368
  readonly role?: io.flow.v0.enums.Role;
4719
- readonly roles?: (
4720
- | {
4721
- discriminator: 'flow_user_role';
4722
- value: io.flow.v0.enums.FlowUserRole;
4723
- }
4724
- | {
4725
- discriminator: 'flow_addon_role';
4726
- value: io.flow.v0.enums.FlowAddonRole;
4727
- })[];
4369
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4728
4370
  }
4729
4371
 
4730
4372
  export interface InvitationVersion {
@@ -5090,19 +4732,7 @@ namespace io.flow.v0.models {
5090
4732
 
5091
4733
  export interface Local {
5092
4734
  readonly experience: io.flow.v0.models.ExperienceSummary;
5093
- readonly prices: (
5094
- | {
5095
- key: 'localized_item_price';
5096
- } & io.flow.v0.models.LocalizedItemPrice
5097
- | {
5098
- key: 'localized_item_vat';
5099
- } & io.flow.v0.models.LocalizedItemVat
5100
- | {
5101
- key: 'localized_item_duty';
5102
- } & io.flow.v0.models.LocalizedItemDuty
5103
- | {
5104
- key: 'localized_total';
5105
- } & io.flow.v0.models.LocalizedTotal)[];
4735
+ readonly prices: io.flow.v0.unions.LocalizedPrice[];
5106
4736
  readonly rates: io.flow.v0.models.Rate[];
5107
4737
  readonly spot_rates: {
5108
4738
  [key: string]: string;
@@ -5227,16 +4857,7 @@ namespace io.flow.v0.models {
5227
4857
  };
5228
4858
  readonly local: io.flow.v0.models.Local;
5229
4859
  readonly shipment_estimate?: io.flow.v0.models.DatetimeRange;
5230
- readonly price_source?:
5231
- | {
5232
- discriminator: 'price_book';
5233
- } & io.flow.v0.models.PriceSourcePriceBook
5234
- | {
5235
- discriminator: 'catalog';
5236
- } & io.flow.v0.models.PriceSourceCatalog
5237
- | {
5238
- discriminator: 'provided';
5239
- } & io.flow.v0.models.PriceSourceProvided;
4860
+ readonly price_source?: io.flow.v0.unions.PriceSource;
5240
4861
  }
5241
4862
 
5242
4863
  export interface LocalizedLineItemDiscount {
@@ -5308,30 +4929,10 @@ namespace io.flow.v0.models {
5308
4929
 
5309
4930
  export interface Membership {
5310
4931
  readonly id: string;
5311
- readonly organization:
5312
- | {
5313
- discriminator: 'organization';
5314
- } & io.flow.v0.models.Organization
5315
- | {
5316
- discriminator: 'organization_reference';
5317
- } & io.flow.v0.models.OrganizationReference;
5318
- readonly user:
5319
- | {
5320
- discriminator: 'user';
5321
- } & io.flow.v0.models.User
5322
- | {
5323
- discriminator: 'user_reference';
5324
- } & io.flow.v0.models.UserReference;
4932
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
4933
+ readonly user: io.flow.v0.unions.ExpandableUser;
5325
4934
  readonly role?: io.flow.v0.enums.Role;
5326
- readonly roles: (
5327
- | {
5328
- discriminator: 'flow_user_role';
5329
- value: io.flow.v0.enums.FlowUserRole;
5330
- }
5331
- | {
5332
- discriminator: 'flow_addon_role';
5333
- value: io.flow.v0.enums.FlowAddonRole;
5334
- })[];
4935
+ readonly roles: io.flow.v0.unions.FlowRole[];
5335
4936
  }
5336
4937
 
5337
4938
  export interface MembershipDeletedV2 {
@@ -5344,28 +4945,12 @@ namespace io.flow.v0.models {
5344
4945
  readonly organization: string;
5345
4946
  readonly user: string;
5346
4947
  readonly role?: io.flow.v0.enums.Role;
5347
- readonly roles?: (
5348
- | {
5349
- discriminator: 'flow_user_role';
5350
- value: io.flow.v0.enums.FlowUserRole;
5351
- }
5352
- | {
5353
- discriminator: 'flow_addon_role';
5354
- value: io.flow.v0.enums.FlowAddonRole;
5355
- })[];
4948
+ readonly roles?: io.flow.v0.unions.FlowRole[];
5356
4949
  }
5357
4950
 
5358
4951
  export interface MembershipPutForm {
5359
4952
  readonly role?: io.flow.v0.enums.Role;
5360
- readonly roles?: (
5361
- | {
5362
- discriminator: 'flow_user_role';
5363
- value: io.flow.v0.enums.FlowUserRole;
5364
- }
5365
- | {
5366
- discriminator: 'flow_addon_role';
5367
- value: io.flow.v0.enums.FlowAddonRole;
5368
- })[];
4953
+ readonly roles?: io.flow.v0.unions.FlowRole[];
5369
4954
  }
5370
4955
 
5371
4956
  export interface MembershipUpsertedV2 {
@@ -5502,16 +5087,7 @@ namespace io.flow.v0.models {
5502
5087
  readonly key: string;
5503
5088
  readonly method?: io.flow.v0.models.PaymentMethod;
5504
5089
  readonly merchant_of_record?: io.flow.v0.enums.MerchantOfRecord;
5505
- readonly details?:
5506
- | {
5507
- discriminator: 'paypal_authorization_details';
5508
- } & io.flow.v0.models.PaypalAuthorizationDetails
5509
- | {
5510
- discriminator: 'redirect_authorization_details';
5511
- } & io.flow.v0.models.RedirectAuthorizationDetails
5512
- | {
5513
- discriminator: 'inline_authorization_details';
5514
- } & io.flow.v0.models.InlineAuthorizationDetails;
5090
+ readonly details?: io.flow.v0.unions.OnlineAuthorizationDetails;
5515
5091
  readonly payment?: {
5516
5092
  [key: string]: string;
5517
5093
  };
@@ -5567,25 +5143,13 @@ namespace io.flow.v0.models {
5567
5143
  readonly id: string;
5568
5144
  readonly number: string;
5569
5145
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
5570
- readonly experience?:
5571
- | {
5572
- discriminator: 'experience';
5573
- } & io.flow.v0.models.Experience
5574
- | {
5575
- discriminator: 'experience_reference';
5576
- } & io.flow.v0.models.ExperienceReference;
5146
+ readonly experience?: io.flow.v0.unions.ExpandableExperience;
5577
5147
  readonly customer: io.flow.v0.models.OrderCustomer;
5578
5148
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5579
5149
  readonly destination: io.flow.v0.models.OrderAddress;
5580
5150
  readonly expires_at: string;
5581
5151
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5582
- readonly deliveries: (
5583
- | {
5584
- discriminator: 'digital_delivery';
5585
- } & io.flow.v0.models.DigitalDelivery
5586
- | {
5587
- discriminator: 'physical_delivery';
5588
- } & io.flow.v0.models.PhysicalDelivery)[];
5152
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5589
5153
  readonly selections: string[];
5590
5154
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5591
5155
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -5690,13 +5254,7 @@ namespace io.flow.v0.models {
5690
5254
  readonly id: string;
5691
5255
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5692
5256
  readonly destination: io.flow.v0.models.OrderAddress;
5693
- readonly deliveries: (
5694
- | {
5695
- discriminator: 'digital_delivery';
5696
- } & io.flow.v0.models.DigitalDelivery
5697
- | {
5698
- discriminator: 'physical_delivery';
5699
- } & io.flow.v0.models.PhysicalDelivery)[];
5257
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5700
5258
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5701
5259
  readonly selections: string[];
5702
5260
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -5944,13 +5502,7 @@ namespace io.flow.v0.models {
5944
5502
  readonly selections: string[];
5945
5503
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5946
5504
  readonly destination: io.flow.v0.models.OrderAddress;
5947
- readonly deliveries: (
5948
- | {
5949
- discriminator: 'digital_delivery';
5950
- } & io.flow.v0.models.DigitalDelivery
5951
- | {
5952
- discriminator: 'physical_delivery';
5953
- } & io.flow.v0.models.PhysicalDelivery)[];
5505
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5954
5506
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5955
5507
  readonly order_id?: string;
5956
5508
  readonly payments?: io.flow.v0.models.OrderPayment[];
@@ -6230,31 +5782,13 @@ namespace io.flow.v0.models {
6230
5782
  export interface PartnerCenter {
6231
5783
  readonly partner_reference: io.flow.v0.models.PartnerReference;
6232
5784
  readonly number?: string;
6233
- readonly fees?: (
6234
- | {
6235
- discriminator: 'commercial_invoice_fee';
6236
- } & io.flow.v0.models.CommercialInvoiceFee
6237
- | {
6238
- discriminator: 'inbound_carton_fee';
6239
- } & io.flow.v0.models.InboundCartonFee
6240
- | {
6241
- discriminator: 'outbound_carton_fee';
6242
- } & io.flow.v0.models.OutboundCartonFee)[];
5785
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
6243
5786
  }
6244
5787
 
6245
5788
  export interface PartnerCenterForm {
6246
5789
  readonly partner_id: string;
6247
5790
  readonly number?: string;
6248
- readonly fees?: (
6249
- | {
6250
- discriminator: 'commercial_invoice_fee';
6251
- } & io.flow.v0.models.CommercialInvoiceFee
6252
- | {
6253
- discriminator: 'inbound_carton_fee';
6254
- } & io.flow.v0.models.InboundCartonFee
6255
- | {
6256
- discriminator: 'outbound_carton_fee';
6257
- } & io.flow.v0.models.OutboundCartonFee)[];
5791
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
6258
5792
  }
6259
5793
 
6260
5794
  export interface PartnerReference {
@@ -6336,15 +5870,7 @@ namespace io.flow.v0.models {
6336
5870
  }
6337
5871
 
6338
5872
  export interface PaymentMethodRule {
6339
- readonly tags: (
6340
- | {
6341
- discriminator: 'organization_payment_method_tag';
6342
- value: io.flow.v0.enums.OrganizationPaymentMethodTag;
6343
- }
6344
- | {
6345
- discriminator: 'experience_payment_method_tag';
6346
- value: io.flow.v0.enums.ExperiencePaymentMethodTag;
6347
- })[];
5873
+ readonly tags: io.flow.v0.unions.PaymentMethodTag[];
6348
5874
  readonly payment_method: io.flow.v0.models.PaymentMethod;
6349
5875
  readonly display_position: number;
6350
5876
  readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
@@ -6382,18 +5908,14 @@ namespace io.flow.v0.models {
6382
5908
  readonly timestamp: string;
6383
5909
  readonly organization: string;
6384
5910
  readonly id: string;
6385
- readonly payment: {
6386
- discriminator: 'payment_paypal';
6387
- } & io.flow.v0.models.PaymentPaypal;
5911
+ readonly payment: io.flow.v0.unions.Payment;
6388
5912
  }
6389
5913
 
6390
5914
  export interface PaymentVersion {
6391
5915
  readonly id: string;
6392
5916
  readonly timestamp: string;
6393
5917
  readonly type: io.flow.v0.enums.ChangeType;
6394
- readonly payment: {
6395
- discriminator: 'payment_paypal';
6396
- } & io.flow.v0.models.PaymentPaypal;
5918
+ readonly payment: io.flow.v0.unions.Payment;
6397
5919
  }
6398
5920
 
6399
5921
  export interface PaypalAuthorizationDetails {
@@ -6421,22 +5943,8 @@ namespace io.flow.v0.models {
6421
5943
 
6422
5944
  export interface PermissionCheck {
6423
5945
  readonly authentication_technique: io.flow.v0.enums.AuthenticationTechnique;
6424
- readonly user?:
6425
- | {
6426
- discriminator: 'user';
6427
- } & io.flow.v0.models.User
6428
- | {
6429
- discriminator: 'user_reference';
6430
- } & io.flow.v0.models.UserReference;
6431
- readonly roles: (
6432
- | {
6433
- discriminator: 'flow_user_role';
6434
- value: io.flow.v0.enums.FlowUserRole;
6435
- }
6436
- | {
6437
- discriminator: 'flow_addon_role';
6438
- value: io.flow.v0.enums.FlowAddonRole;
6439
- })[];
5946
+ readonly user?: io.flow.v0.unions.ExpandableUser;
5947
+ readonly roles: io.flow.v0.unions.FlowRole[];
6440
5948
  readonly behaviors: io.flow.v0.enums.FlowBehavior[];
6441
5949
  readonly routes: io.flow.v0.models.PermittedRoute[];
6442
5950
  }
@@ -6444,15 +5952,7 @@ namespace io.flow.v0.models {
6444
5952
  export interface PermissionError {
6445
5953
  readonly code: io.flow.v0.enums.GenericErrorCode;
6446
5954
  readonly messages: string[];
6447
- readonly granting_roles?: (
6448
- | {
6449
- discriminator: 'flow_user_role';
6450
- value: io.flow.v0.enums.FlowUserRole;
6451
- }
6452
- | {
6453
- discriminator: 'flow_addon_role';
6454
- value: io.flow.v0.enums.FlowAddonRole;
6455
- })[];
5955
+ readonly granting_roles?: io.flow.v0.unions.FlowRole[];
6456
5956
  readonly admin_users?: io.flow.v0.models.User[];
6457
5957
  }
6458
5958
 
@@ -6719,20 +6219,8 @@ namespace io.flow.v0.models {
6719
6219
  }
6720
6220
 
6721
6221
  export interface Promotions {
6722
- readonly applied: (
6723
- | {
6724
- discriminator: 'free_shipping';
6725
- } & io.flow.v0.models.FreeShipping
6726
- | {
6727
- discriminator: 'discount';
6728
- } & io.flow.v0.models.Discount)[];
6729
- readonly available: (
6730
- | {
6731
- discriminator: 'free_shipping';
6732
- } & io.flow.v0.models.FreeShipping
6733
- | {
6734
- discriminator: 'discount';
6735
- } & io.flow.v0.models.Discount)[];
6222
+ readonly applied: io.flow.v0.unions.Promotion[];
6223
+ readonly available: io.flow.v0.unions.Promotion[];
6736
6224
  }
6737
6225
 
6738
6226
  export interface Province {
@@ -6750,41 +6238,17 @@ namespace io.flow.v0.models {
6750
6238
 
6751
6239
  export interface Query {
6752
6240
  readonly q: string;
6753
- readonly filters: (
6754
- | {
6755
- discriminator: 'structured';
6756
- } & io.flow.v0.models.QueryFilterStructured
6757
- | {
6758
- discriminator: 'unstructured';
6759
- } & io.flow.v0.models.QueryFilterUnstructured)[];
6241
+ readonly filters: io.flow.v0.unions.QueryFilter[];
6760
6242
  }
6761
6243
 
6762
6244
  export interface QueryBuilder {
6763
6245
  readonly q: string;
6764
- readonly filters: (
6765
- | {
6766
- discriminator: 'structured';
6767
- } & io.flow.v0.models.QueryFilterStructured
6768
- | {
6769
- discriminator: 'unstructured';
6770
- } & io.flow.v0.models.QueryFilterUnstructured)[];
6771
- readonly available: (
6772
- | {
6773
- discriminator: 'structured';
6774
- } & io.flow.v0.models.AvailableFilterStructured
6775
- | {
6776
- discriminator: 'unstructured';
6777
- } & io.flow.v0.models.AvailableFilterUnstructured)[];
6246
+ readonly filters: io.flow.v0.unions.QueryFilter[];
6247
+ readonly available: io.flow.v0.unions.AvailableFilter[];
6778
6248
  }
6779
6249
 
6780
6250
  export interface QueryBuilderFilterForm {
6781
- readonly filters: (
6782
- | {
6783
- discriminator: 'structured';
6784
- } & io.flow.v0.models.QueryFilterStructuredForm
6785
- | {
6786
- discriminator: 'unstructured';
6787
- } & io.flow.v0.models.QueryFilterUnstructuredForm)[];
6251
+ readonly filters: io.flow.v0.unions.QueryFilterForm[];
6788
6252
  }
6789
6253
 
6790
6254
  export interface QueryBuilderQueryForm {
@@ -6815,13 +6279,7 @@ namespace io.flow.v0.models {
6815
6279
  export interface Quote {
6816
6280
  readonly id: string;
6817
6281
  readonly destination: io.flow.v0.models.ShippingAddress;
6818
- readonly deliveries: (
6819
- | {
6820
- discriminator: 'digital_delivery';
6821
- } & io.flow.v0.models.DigitalDelivery
6822
- | {
6823
- discriminator: 'physical_delivery';
6824
- } & io.flow.v0.models.PhysicalDelivery)[];
6282
+ readonly deliveries: io.flow.v0.unions.Delivery[];
6825
6283
  readonly selections: io.flow.v0.models.DeliveryOptionReference[];
6826
6284
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
6827
6285
  readonly delivered_duties: io.flow.v0.enums.DeliveredDuty[];
@@ -6881,6 +6339,13 @@ namespace io.flow.v0.models {
6881
6339
  readonly rate_id: string;
6882
6340
  }
6883
6341
 
6342
+ export interface RateDeletedV3 {
6343
+ readonly event_id: string;
6344
+ readonly timestamp: string;
6345
+ readonly organization: string;
6346
+ readonly rate: io.flow.v0.models.Rate;
6347
+ }
6348
+
6884
6349
  export interface RateForm {
6885
6350
  readonly base: string;
6886
6351
  readonly target: string;
@@ -6898,6 +6363,13 @@ namespace io.flow.v0.models {
6898
6363
  readonly value: number;
6899
6364
  }
6900
6365
 
6366
+ export interface RateUpsertedV3 {
6367
+ readonly event_id: string;
6368
+ readonly timestamp: string;
6369
+ readonly organization: string;
6370
+ readonly rate: io.flow.v0.models.Rate;
6371
+ }
6372
+
6901
6373
  export interface RateVersion {
6902
6374
  readonly id: string;
6903
6375
  readonly timestamp: string;
@@ -6961,25 +6433,7 @@ namespace io.flow.v0.models {
6961
6433
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
6962
6434
  readonly currency: string;
6963
6435
  readonly amount: number;
6964
- readonly fees: (
6965
- | {
6966
- discriminator: 'ddp_ratecard_fee';
6967
- } & io.flow.v0.models.DdpRatecardFee
6968
- | {
6969
- discriminator: 'fuel_surcharge_ratecard_fee';
6970
- } & io.flow.v0.models.FuelSurchargeRatecardFee
6971
- | {
6972
- discriminator: 'oversized_shipment_ratecard_fee';
6973
- } & io.flow.v0.models.OversizedShipmentRatecardFee
6974
- | {
6975
- discriminator: 'return_package_ratecard_fee';
6976
- } & io.flow.v0.models.ReturnPackageRatecardFee
6977
- | {
6978
- discriminator: 'crossdock_ratecard_fee';
6979
- } & io.flow.v0.models.CrossdockRatecardFee
6980
- | {
6981
- discriminator: 'remote_area_ratecard_fee';
6982
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
6436
+ readonly fees: io.flow.v0.unions.RatecardFee[];
6983
6437
  readonly total: number;
6984
6438
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
6985
6439
  readonly dimensional_weight?: io.flow.v0.models.Measurement;
@@ -7011,25 +6465,7 @@ namespace io.flow.v0.models {
7011
6465
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
7012
6466
  readonly destination: io.flow.v0.models.Zone;
7013
6467
  readonly dim_factor: number;
7014
- readonly fees: (
7015
- | {
7016
- discriminator: 'ddp_ratecard_fee';
7017
- } & io.flow.v0.models.DdpRatecardFee
7018
- | {
7019
- discriminator: 'fuel_surcharge_ratecard_fee';
7020
- } & io.flow.v0.models.FuelSurchargeRatecardFee
7021
- | {
7022
- discriminator: 'oversized_shipment_ratecard_fee';
7023
- } & io.flow.v0.models.OversizedShipmentRatecardFee
7024
- | {
7025
- discriminator: 'return_package_ratecard_fee';
7026
- } & io.flow.v0.models.ReturnPackageRatecardFee
7027
- | {
7028
- discriminator: 'crossdock_ratecard_fee';
7029
- } & io.flow.v0.models.CrossdockRatecardFee
7030
- | {
7031
- discriminator: 'remote_area_ratecard_fee';
7032
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
6468
+ readonly fees: io.flow.v0.unions.RatecardFee[];
7033
6469
  readonly origin: io.flow.v0.models.Zone;
7034
6470
  readonly service: io.flow.v0.models.RatecardServiceSummary;
7035
6471
  readonly rates: io.flow.v0.models.RatecardRate[];
@@ -7052,25 +6488,7 @@ namespace io.flow.v0.models {
7052
6488
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
7053
6489
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
7054
6490
  readonly dim_factor: number;
7055
- readonly fees: (
7056
- | {
7057
- discriminator: 'ddp_ratecard_fee';
7058
- } & io.flow.v0.models.DdpRatecardFee
7059
- | {
7060
- discriminator: 'fuel_surcharge_ratecard_fee';
7061
- } & io.flow.v0.models.FuelSurchargeRatecardFee
7062
- | {
7063
- discriminator: 'oversized_shipment_ratecard_fee';
7064
- } & io.flow.v0.models.OversizedShipmentRatecardFee
7065
- | {
7066
- discriminator: 'return_package_ratecard_fee';
7067
- } & io.flow.v0.models.ReturnPackageRatecardFee
7068
- | {
7069
- discriminator: 'crossdock_ratecard_fee';
7070
- } & io.flow.v0.models.CrossdockRatecardFee
7071
- | {
7072
- discriminator: 'remote_area_ratecard_fee';
7073
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
6491
+ readonly fees: io.flow.v0.unions.RatecardFee[];
7074
6492
  readonly origin: io.flow.v0.models.Zone;
7075
6493
  readonly rounding: io.flow.v0.models.Rounding;
7076
6494
  readonly rates: io.flow.v0.models.RatecardRateForm[];
@@ -7159,9 +6577,7 @@ namespace io.flow.v0.models {
7159
6577
  export interface RedirectAuthorizationDetails {
7160
6578
  readonly id: string;
7161
6579
  readonly payment_redirect_url: string;
7162
- readonly confirmation_details?: {
7163
- discriminator: 'direct_debit';
7164
- } & io.flow.v0.models.DirectDebit;
6580
+ readonly confirmation_details?: io.flow.v0.unions.ConfirmationDetails;
7165
6581
  }
7166
6582
 
7167
6583
  export interface RedirectAuthorizationForm {
@@ -7523,15 +6939,7 @@ namespace io.flow.v0.models {
7523
6939
  readonly method: io.flow.v0.enums.PermittedHttpMethod;
7524
6940
  readonly path: string;
7525
6941
  readonly authentication_techniques: io.flow.v0.enums.AuthenticationTechnique[];
7526
- readonly roles: (
7527
- | {
7528
- discriminator: 'flow_user_role';
7529
- value: io.flow.v0.enums.FlowUserRole;
7530
- }
7531
- | {
7532
- discriminator: 'flow_addon_role';
7533
- value: io.flow.v0.enums.FlowAddonRole;
7534
- })[];
6942
+ readonly roles: io.flow.v0.unions.FlowRole[];
7535
6943
  }
7536
6944
 
7537
6945
  export interface RuleDeleted {
@@ -7563,49 +6971,7 @@ namespace io.flow.v0.models {
7563
6971
  readonly hour: number;
7564
6972
  readonly minute: number;
7565
6973
  readonly timezone: string;
7566
- readonly types: (
7567
- | {
7568
- discriminator: 'account_transactions_export_type';
7569
- } & io.flow.v0.models.AccountTransactionsExportType
7570
- | {
7571
- discriminator: 'account_orders_export_type';
7572
- } & io.flow.v0.models.AccountOrdersExportType
7573
- | {
7574
- discriminator: 'analytics_export_type';
7575
- } & io.flow.v0.models.AnalyticsExportType
7576
- | {
7577
- discriminator: 'catalog_item_export_type';
7578
- } & io.flow.v0.models.CatalogItemExportType
7579
- | {
7580
- discriminator: 'experience_export_type';
7581
- } & io.flow.v0.models.ExperienceExportType
7582
- | {
7583
- discriminator: 'harmonization_overview_export_type';
7584
- } & io.flow.v0.models.HarmonizationOverviewExportType
7585
- | {
7586
- discriminator: 'harmonization_hs6_export_type';
7587
- } & io.flow.v0.models.HarmonizationHs6ExportType
7588
- | {
7589
- discriminator: 'harmonization_hs10_export_type';
7590
- } & io.flow.v0.models.HarmonizationHs10ExportType
7591
- | {
7592
- discriminator: 'unharmonized_item_export_type';
7593
- } & io.flow.v0.models.UnharmonizedItemExportType
7594
- | {
7595
- discriminator: 'harmonization_landed_cost_export_type';
7596
- } & io.flow.v0.models.HarmonizationLandedCostExportType
7597
- | {
7598
- discriminator: 'order_export_type';
7599
- } & io.flow.v0.models.OrderExportType
7600
- | {
7601
- discriminator: 'solidus_product_export_type';
7602
- } & io.flow.v0.models.SolidusProductExportType
7603
- | {
7604
- discriminator: 'solidus_variant_export_type';
7605
- } & io.flow.v0.models.SolidusVariantExportType
7606
- | {
7607
- discriminator: 'localized_item_prices_export_type';
7608
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
6974
+ readonly types: io.flow.v0.unions.ExportType[];
7609
6975
  readonly last_sent_at?: string;
7610
6976
  }
7611
6977
 
@@ -7615,49 +6981,7 @@ namespace io.flow.v0.models {
7615
6981
  readonly hour: number;
7616
6982
  readonly minute: number;
7617
6983
  readonly timezone: string;
7618
- readonly types: (
7619
- | {
7620
- discriminator: 'account_transactions_export_type';
7621
- } & io.flow.v0.models.AccountTransactionsExportType
7622
- | {
7623
- discriminator: 'account_orders_export_type';
7624
- } & io.flow.v0.models.AccountOrdersExportType
7625
- | {
7626
- discriminator: 'analytics_export_type';
7627
- } & io.flow.v0.models.AnalyticsExportType
7628
- | {
7629
- discriminator: 'catalog_item_export_type';
7630
- } & io.flow.v0.models.CatalogItemExportType
7631
- | {
7632
- discriminator: 'experience_export_type';
7633
- } & io.flow.v0.models.ExperienceExportType
7634
- | {
7635
- discriminator: 'harmonization_overview_export_type';
7636
- } & io.flow.v0.models.HarmonizationOverviewExportType
7637
- | {
7638
- discriminator: 'harmonization_hs6_export_type';
7639
- } & io.flow.v0.models.HarmonizationHs6ExportType
7640
- | {
7641
- discriminator: 'harmonization_hs10_export_type';
7642
- } & io.flow.v0.models.HarmonizationHs10ExportType
7643
- | {
7644
- discriminator: 'unharmonized_item_export_type';
7645
- } & io.flow.v0.models.UnharmonizedItemExportType
7646
- | {
7647
- discriminator: 'harmonization_landed_cost_export_type';
7648
- } & io.flow.v0.models.HarmonizationLandedCostExportType
7649
- | {
7650
- discriminator: 'order_export_type';
7651
- } & io.flow.v0.models.OrderExportType
7652
- | {
7653
- discriminator: 'solidus_product_export_type';
7654
- } & io.flow.v0.models.SolidusProductExportType
7655
- | {
7656
- discriminator: 'solidus_variant_export_type';
7657
- } & io.flow.v0.models.SolidusVariantExportType
7658
- | {
7659
- discriminator: 'localized_item_prices_export_type';
7660
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
6984
+ readonly types: io.flow.v0.unions.ExportType[];
7661
6985
  }
7662
6986
 
7663
6987
  export interface ScheduledPickup {
@@ -7966,13 +7290,7 @@ namespace io.flow.v0.models {
7966
7290
  readonly id: string;
7967
7291
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
7968
7292
  readonly region: string;
7969
- readonly centers: (
7970
- | {
7971
- discriminator: 'center';
7972
- } & io.flow.v0.models.Center
7973
- | {
7974
- discriminator: 'center_reference';
7975
- } & io.flow.v0.models.CenterReference)[];
7293
+ readonly centers: io.flow.v0.unions.ExpandableCenter[];
7976
7294
  readonly tiers: io.flow.v0.models.Tier[];
7977
7295
  readonly query: io.flow.v0.models.Query;
7978
7296
  readonly strategy: io.flow.v0.enums.LaneStrategy;
@@ -8128,16 +7446,7 @@ namespace io.flow.v0.models {
8128
7446
  readonly quantity: number;
8129
7447
  readonly price: io.flow.v0.models.ShopifyPrice;
8130
7448
  readonly total: io.flow.v0.models.ShopifyPrice;
8131
- readonly price_source?:
8132
- | {
8133
- discriminator: 'price_book';
8134
- } & io.flow.v0.models.PriceSourcePriceBook
8135
- | {
8136
- discriminator: 'catalog';
8137
- } & io.flow.v0.models.PriceSourceCatalog
8138
- | {
8139
- discriminator: 'provided';
8140
- } & io.flow.v0.models.PriceSourceProvided;
7449
+ readonly price_source?: io.flow.v0.unions.PriceSource;
8141
7450
  }
8142
7451
 
8143
7452
  export interface ShopifyLocalCartItemMetadata {
@@ -8189,13 +7498,7 @@ namespace io.flow.v0.models {
8189
7498
  readonly lines: io.flow.v0.models.ShopifyLine[];
8190
7499
  readonly prices: io.flow.v0.models.ShopifyPrice[];
8191
7500
  readonly total: io.flow.v0.models.ShopifyPrice;
8192
- readonly allocation_details: (
8193
- | {
8194
- discriminator: 'allocation_line_detail';
8195
- } & io.flow.v0.models.AllocationLineDetail
8196
- | {
8197
- discriminator: 'allocation_order_detail';
8198
- } & io.flow.v0.models.AllocationOrderDetail)[];
7501
+ readonly allocation_details: io.flow.v0.unions.AllocationDetail[];
8199
7502
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
8200
7503
  readonly merchant_of_record_entity?: io.flow.v0.models.MerchantOfRecordEntity;
8201
7504
  readonly incoterm?: io.flow.v0.enums.Incoterm;
@@ -8289,9 +7592,7 @@ namespace io.flow.v0.models {
8289
7592
  readonly range: io.flow.v0.models.DatetimeRange;
8290
7593
  readonly interval_seconds: number;
8291
7594
  readonly total: number;
8292
- readonly buckets: ({
8293
- discriminator: 'shopify_item_event_bucket';
8294
- } & io.flow.v0.models.ShopifyItemEventBucket)[];
7595
+ readonly buckets: io.flow.v0.unions.ShopifyEventBucket[];
8295
7596
  }
8296
7597
 
8297
7598
  export interface ShopifyVariantFlowMetafield {
@@ -8573,13 +7874,7 @@ namespace io.flow.v0.models {
8573
7874
  readonly name: string;
8574
7875
  readonly rate: number;
8575
7876
  readonly components: io.flow.v0.enums.LevyComponent[];
8576
- readonly deminimis?:
8577
- | {
8578
- discriminator: 'deminimis_simple';
8579
- } & io.flow.v0.models.DeminimisSimple
8580
- | {
8581
- discriminator: 'deminimis_per_item';
8582
- } & io.flow.v0.models.DeminimisPerItem;
7877
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
8583
7878
  }
8584
7879
 
8585
7880
  export interface TaxRegistration {
@@ -8665,37 +7960,13 @@ namespace io.flow.v0.models {
8665
7960
  readonly id: string;
8666
7961
  readonly position: number;
8667
7962
  readonly query: string;
8668
- readonly outcome:
8669
- | {
8670
- discriminator: 'amount_margin';
8671
- } & io.flow.v0.models.AmountMargin
8672
- | {
8673
- discriminator: 'at_cost';
8674
- } & io.flow.v0.models.AtCost
8675
- | {
8676
- discriminator: 'flat_rate';
8677
- } & io.flow.v0.models.FlatRate
8678
- | {
8679
- discriminator: 'percent_margin';
8680
- } & io.flow.v0.models.PercentMargin;
7963
+ readonly outcome: io.flow.v0.unions.TierRuleOutcome;
8681
7964
  }
8682
7965
 
8683
7966
  export interface TierRuleForm {
8684
7967
  readonly position?: number;
8685
7968
  readonly query: string;
8686
- readonly outcome:
8687
- | {
8688
- discriminator: 'amount_margin_form';
8689
- } & io.flow.v0.models.AmountMarginForm
8690
- | {
8691
- discriminator: 'flat_rate_form';
8692
- } & io.flow.v0.models.FlatRateForm
8693
- | {
8694
- discriminator: 'at_cost';
8695
- } & io.flow.v0.models.AtCost
8696
- | {
8697
- discriminator: 'percent_margin';
8698
- } & io.flow.v0.models.PercentMargin;
7969
+ readonly outcome: io.flow.v0.unions.TierRuleOutcomeForm;
8699
7970
  }
8700
7971
 
8701
7972
  export interface TierRuleVersion {
@@ -9302,6 +8573,12 @@ namespace io.flow.v0.unions {
9302
8573
  | {
9303
8574
  discriminator: 'rate_upserted';
9304
8575
  } & io.flow.v0.models.RateUpserted
8576
+ | {
8577
+ discriminator: 'rate_deleted_v3';
8578
+ } & io.flow.v0.models.RateDeletedV3
8579
+ | {
8580
+ discriminator: 'rate_upserted_v3';
8581
+ } & io.flow.v0.models.RateUpsertedV3
9305
8582
  | {
9306
8583
  discriminator: 'customer_upserted';
9307
8584
  } & io.flow.v0.models.CustomerUpserted
@@ -9578,6 +8855,12 @@ namespace io.flow.v0.unions {
9578
8855
  | {
9579
8856
  discriminator: 'organization_default_configurations_deleted';
9580
8857
  } & io.flow.v0.models.OrganizationDefaultConfigurationsDeleted
8858
+ | {
8859
+ discriminator: 'ecommerce_platform_upserted';
8860
+ } & io.flow.v0.models.EcommercePlatformUpserted
8861
+ | {
8862
+ discriminator: 'ecommerce_platform_deleted';
8863
+ } & io.flow.v0.models.EcommercePlatformDeleted
9581
8864
  | {
9582
8865
  discriminator: 'authorization_deleted_v2';
9583
8866
  } & io.flow.v0.models.AuthorizationDeletedV2
@@ -10417,6 +9700,10 @@ export type DiscountsForm = io.flow.v0.models.DiscountsForm;
10417
9700
  export type Document = io.flow.v0.unions.Document;
10418
9701
  export type Duration = io.flow.v0.models.Duration;
10419
9702
  export type Duty = io.flow.v0.models.Duty;
9703
+ export type EcommercePlatform = io.flow.v0.models.EcommercePlatform;
9704
+ export type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatformDeleted;
9705
+ export type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
9706
+ export type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
10420
9707
  export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
10421
9708
  export type EmailVerification = io.flow.v0.models.EmailVerification;
10422
9709
  export type Environment = io.flow.v0.enums.Environment;
@@ -10929,9 +10216,11 @@ export type QuoteSummary = io.flow.v0.models.QuoteSummary;
10929
10216
  export type QuoteVersion = io.flow.v0.models.QuoteVersion;
10930
10217
  export type Rate = io.flow.v0.models.Rate;
10931
10218
  export type RateDeleted = io.flow.v0.models.RateDeleted;
10219
+ export type RateDeletedV3 = io.flow.v0.models.RateDeletedV3;
10932
10220
  export type RateForm = io.flow.v0.models.RateForm;
10933
10221
  export type RateType = io.flow.v0.enums.RateType;
10934
10222
  export type RateUpserted = io.flow.v0.models.RateUpserted;
10223
+ export type RateUpsertedV3 = io.flow.v0.models.RateUpsertedV3;
10935
10224
  export type RateVersion = io.flow.v0.models.RateVersion;
10936
10225
  export type Ratecard = io.flow.v0.models.Ratecard;
10937
10226
  export type RatecardCarrierSummary = io.flow.v0.models.RatecardCarrierSummary;