@flowio/types 0.0.5 → 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,19 @@ 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[];
2809
2641
  readonly session_id: string;
2810
2642
  readonly urls?: io.flow.v0.models.CheckoutUrlsForm;
2811
2643
  }
@@ -2844,16 +2676,7 @@ namespace io.flow.v0.models {
2844
2676
  readonly center?: io.flow.v0.models.ConsumerInvoiceCenterReference;
2845
2677
  readonly destination: io.flow.v0.models.OrderAddress;
2846
2678
  readonly billing_address?: io.flow.v0.models.BillingAddress;
2847
- readonly lines: (
2848
- | {
2849
- discriminator: 'item';
2850
- } & io.flow.v0.models.ConsumerInvoiceLineItem
2851
- | {
2852
- discriminator: 'discount';
2853
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount
2854
- | {
2855
- discriminator: 'shipping';
2856
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
2679
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
2857
2680
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
2858
2681
  readonly attributes: {
2859
2682
  [key: string]: string;
@@ -3014,16 +2837,7 @@ namespace io.flow.v0.models {
3014
2837
  readonly invoice: io.flow.v0.models.ConsumerInvoiceReference;
3015
2838
  readonly entity: io.flow.v0.models.MerchantOfRecordEntity;
3016
2839
  readonly payments: io.flow.v0.models.ConsumerInvoicePayment[];
3017
- readonly lines: (
3018
- | {
3019
- discriminator: 'item';
3020
- } & io.flow.v0.models.ConsumerInvoiceLineItem
3021
- | {
3022
- discriminator: 'discount';
3023
- } & io.flow.v0.models.ConsumerInvoiceLineDiscount
3024
- | {
3025
- discriminator: 'shipping';
3026
- } & io.flow.v0.models.ConsumerInvoiceLineShipping)[];
2840
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLine[];
3027
2841
  readonly documents: io.flow.v0.models.ConsumerInvoiceDocument[];
3028
2842
  readonly attributes: {
3029
2843
  [key: string]: string;
@@ -3042,16 +2856,7 @@ namespace io.flow.v0.models {
3042
2856
  readonly refund_id?: string;
3043
2857
  readonly refund_key?: string;
3044
2858
  readonly refund_identifier?: string;
3045
- readonly lines: (
3046
- | {
3047
- discriminator: 'item';
3048
- } & io.flow.v0.models.ConsumerInvoiceLineItemForm
3049
- | {
3050
- discriminator: 'discount';
3051
- } & io.flow.v0.models.ConsumerInvoiceLineDiscountForm
3052
- | {
3053
- discriminator: 'shipping';
3054
- } & io.flow.v0.models.ConsumerInvoiceLineShippingForm)[];
2859
+ readonly lines: io.flow.v0.unions.ConsumerInvoiceLineForm[];
3055
2860
  readonly attributes?: {
3056
2861
  [key: string]: string;
3057
2862
  };
@@ -3066,13 +2871,7 @@ namespace io.flow.v0.models {
3066
2871
 
3067
2872
  export interface CreditPayment {
3068
2873
  readonly id: string;
3069
- readonly order:
3070
- | {
3071
- discriminator: 'order';
3072
- } & io.flow.v0.models.Order
3073
- | {
3074
- discriminator: 'order_reference';
3075
- } & io.flow.v0.models.OrderReference;
2874
+ readonly order: io.flow.v0.unions.ExpandableOrder;
3076
2875
  readonly key: string;
3077
2876
  readonly description: string;
3078
2877
  readonly value: io.flow.v0.models.PriceWithBase;
@@ -3282,19 +3081,7 @@ namespace io.flow.v0.models {
3282
3081
  readonly service: io.flow.v0.models.ServiceSummary;
3283
3082
  readonly tier: io.flow.v0.models.TierSummary;
3284
3083
  readonly window: io.flow.v0.models.DeliveryWindow;
3285
- readonly rule_outcome?:
3286
- | {
3287
- discriminator: 'amount_margin';
3288
- } & io.flow.v0.models.AmountMargin
3289
- | {
3290
- discriminator: 'at_cost';
3291
- } & io.flow.v0.models.AtCost
3292
- | {
3293
- discriminator: 'flat_rate';
3294
- } & io.flow.v0.models.FlatRate
3295
- | {
3296
- discriminator: 'percent_margin';
3297
- } & io.flow.v0.models.PercentMargin;
3084
+ readonly rule_outcome?: io.flow.v0.unions.TierRuleOutcome;
3298
3085
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
3299
3086
  readonly send_to?: io.flow.v0.models.ShippingAddress;
3300
3087
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
@@ -3529,13 +3316,7 @@ namespace io.flow.v0.models {
3529
3316
  }
3530
3317
 
3531
3318
  export interface DiscountForm {
3532
- readonly offer:
3533
- | {
3534
- discriminator: 'discount_offer_fixed';
3535
- } & io.flow.v0.models.DiscountOfferFixed
3536
- | {
3537
- discriminator: 'discount_offer_percent';
3538
- } & io.flow.v0.models.DiscountOfferPercent;
3319
+ readonly offer: io.flow.v0.unions.DiscountOffer;
3539
3320
  readonly target?: io.flow.v0.enums.DiscountTarget;
3540
3321
  readonly label?: string;
3541
3322
  }
@@ -3560,16 +3341,30 @@ namespace io.flow.v0.models {
3560
3341
  export interface Duty {
3561
3342
  readonly rate: number;
3562
3343
  readonly components: io.flow.v0.enums.LevyComponent[];
3563
- readonly deminimis?:
3564
- | {
3565
- discriminator: 'deminimis_simple';
3566
- } & io.flow.v0.models.DeminimisSimple
3567
- | {
3568
- discriminator: 'deminimis_per_item';
3569
- } & io.flow.v0.models.DeminimisPerItem;
3344
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
3570
3345
  readonly name?: string;
3571
3346
  }
3572
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
+
3573
3368
  export interface EmailVerification {
3574
3369
  readonly email: string;
3575
3370
  }
@@ -3835,58 +3630,14 @@ namespace io.flow.v0.models {
3835
3630
 
3836
3631
  export interface Export {
3837
3632
  readonly id: string;
3838
- readonly type:
3839
- | {
3840
- discriminator: 'account_transactions_export_type';
3841
- } & io.flow.v0.models.AccountTransactionsExportType
3842
- | {
3843
- discriminator: 'account_orders_export_type';
3844
- } & io.flow.v0.models.AccountOrdersExportType
3845
- | {
3846
- discriminator: 'analytics_export_type';
3847
- } & io.flow.v0.models.AnalyticsExportType
3848
- | {
3849
- discriminator: 'catalog_item_export_type';
3850
- } & io.flow.v0.models.CatalogItemExportType
3851
- | {
3852
- discriminator: 'experience_export_type';
3853
- } & io.flow.v0.models.ExperienceExportType
3854
- | {
3855
- discriminator: 'harmonization_overview_export_type';
3856
- } & io.flow.v0.models.HarmonizationOverviewExportType
3857
- | {
3858
- discriminator: 'harmonization_hs6_export_type';
3859
- } & io.flow.v0.models.HarmonizationHs6ExportType
3860
- | {
3861
- discriminator: 'harmonization_hs10_export_type';
3862
- } & io.flow.v0.models.HarmonizationHs10ExportType
3863
- | {
3864
- discriminator: 'unharmonized_item_export_type';
3865
- } & io.flow.v0.models.UnharmonizedItemExportType
3866
- | {
3867
- discriminator: 'harmonization_landed_cost_export_type';
3868
- } & io.flow.v0.models.HarmonizationLandedCostExportType
3869
- | {
3870
- discriminator: 'order_export_type';
3871
- } & io.flow.v0.models.OrderExportType
3872
- | {
3873
- discriminator: 'solidus_product_export_type';
3874
- } & io.flow.v0.models.SolidusProductExportType
3875
- | {
3876
- discriminator: 'solidus_variant_export_type';
3877
- } & io.flow.v0.models.SolidusVariantExportType
3878
- | {
3879
- discriminator: 'localized_item_prices_export_type';
3880
- } & io.flow.v0.models.LocalizedItemPricesExportType;
3633
+ readonly type: io.flow.v0.unions.ExportType;
3881
3634
  readonly status: io.flow.v0.enums.ExportStatus;
3882
3635
  readonly organization_q: string;
3883
3636
  readonly created_at: string;
3884
3637
  readonly started_at?: string;
3885
3638
  readonly completed_at?: string;
3886
3639
  readonly url?: string;
3887
- readonly deliveries: ({
3888
- discriminator: 'export_delivery_email';
3889
- } & io.flow.v0.models.ExportDeliveryEmail)[];
3640
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
3890
3641
  }
3891
3642
 
3892
3643
  export interface ExportDeliveryEmail {
@@ -3894,49 +3645,7 @@ namespace io.flow.v0.models {
3894
3645
  }
3895
3646
 
3896
3647
  export interface ExportForm {
3897
- readonly type:
3898
- | {
3899
- discriminator: 'account_transactions_export_type';
3900
- } & io.flow.v0.models.AccountTransactionsExportType
3901
- | {
3902
- discriminator: 'account_orders_export_type';
3903
- } & io.flow.v0.models.AccountOrdersExportType
3904
- | {
3905
- discriminator: 'analytics_export_type';
3906
- } & io.flow.v0.models.AnalyticsExportType
3907
- | {
3908
- discriminator: 'catalog_item_export_type';
3909
- } & io.flow.v0.models.CatalogItemExportType
3910
- | {
3911
- discriminator: 'experience_export_type';
3912
- } & io.flow.v0.models.ExperienceExportType
3913
- | {
3914
- discriminator: 'harmonization_overview_export_type';
3915
- } & io.flow.v0.models.HarmonizationOverviewExportType
3916
- | {
3917
- discriminator: 'harmonization_hs6_export_type';
3918
- } & io.flow.v0.models.HarmonizationHs6ExportType
3919
- | {
3920
- discriminator: 'harmonization_hs10_export_type';
3921
- } & io.flow.v0.models.HarmonizationHs10ExportType
3922
- | {
3923
- discriminator: 'unharmonized_item_export_type';
3924
- } & io.flow.v0.models.UnharmonizedItemExportType
3925
- | {
3926
- discriminator: 'harmonization_landed_cost_export_type';
3927
- } & io.flow.v0.models.HarmonizationLandedCostExportType
3928
- | {
3929
- discriminator: 'order_export_type';
3930
- } & io.flow.v0.models.OrderExportType
3931
- | {
3932
- discriminator: 'solidus_product_export_type';
3933
- } & io.flow.v0.models.SolidusProductExportType
3934
- | {
3935
- discriminator: 'solidus_variant_export_type';
3936
- } & io.flow.v0.models.SolidusVariantExportType
3937
- | {
3938
- discriminator: 'localized_item_prices_export_type';
3939
- } & io.flow.v0.models.LocalizedItemPricesExportType;
3648
+ readonly type: io.flow.v0.unions.ExportType;
3940
3649
  readonly emails?: string[];
3941
3650
  readonly organization_q?: string;
3942
3651
  }
@@ -4028,13 +3737,7 @@ namespace io.flow.v0.models {
4028
3737
 
4029
3738
  export interface FreeShippingOrderPromotion {
4030
3739
  readonly id: string;
4031
- readonly order:
4032
- | {
4033
- discriminator: 'order';
4034
- } & io.flow.v0.models.Order
4035
- | {
4036
- discriminator: 'order_reference';
4037
- } & io.flow.v0.models.OrderReference;
3740
+ readonly order: io.flow.v0.unions.ExpandableOrder;
4038
3741
  readonly key: string;
4039
3742
  readonly trigger: io.flow.v0.models.OrderPromotionTrigger;
4040
3743
  readonly max?: io.flow.v0.models.Price;
@@ -4342,25 +4045,7 @@ namespace io.flow.v0.models {
4342
4045
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
4343
4046
  readonly currency: string;
4344
4047
  readonly amount: number;
4345
- readonly fees: (
4346
- | {
4347
- discriminator: 'ddp_ratecard_fee';
4348
- } & io.flow.v0.models.DdpRatecardFee
4349
- | {
4350
- discriminator: 'fuel_surcharge_ratecard_fee';
4351
- } & io.flow.v0.models.FuelSurchargeRatecardFee
4352
- | {
4353
- discriminator: 'oversized_shipment_ratecard_fee';
4354
- } & io.flow.v0.models.OversizedShipmentRatecardFee
4355
- | {
4356
- discriminator: 'return_package_ratecard_fee';
4357
- } & io.flow.v0.models.ReturnPackageRatecardFee
4358
- | {
4359
- discriminator: 'crossdock_ratecard_fee';
4360
- } & io.flow.v0.models.CrossdockRatecardFee
4361
- | {
4362
- discriminator: 'remote_area_ratecard_fee';
4363
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
4048
+ readonly fees: io.flow.v0.unions.RatecardFee[];
4364
4049
  readonly total: number;
4365
4050
  }
4366
4051
 
@@ -4443,9 +4128,7 @@ namespace io.flow.v0.models {
4443
4128
  readonly started_at?: string;
4444
4129
  readonly completed_at?: string;
4445
4130
  readonly results?: io.flow.v0.models.ImportResults;
4446
- readonly deliveries: ({
4447
- discriminator: 'export_delivery_email';
4448
- } & io.flow.v0.models.ExportDeliveryEmail)[];
4131
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
4449
4132
  }
4450
4133
 
4451
4134
  export interface ImportForm {
@@ -4535,9 +4218,7 @@ namespace io.flow.v0.models {
4535
4218
  }
4536
4219
 
4537
4220
  export interface InputSpecificationLimitations {
4538
- readonly limitations?: ({
4539
- discriminator: 'input_specification_limitation_max';
4540
- } & io.flow.v0.models.InputSpecificationLimitationMax)[];
4221
+ readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
4541
4222
  }
4542
4223
 
4543
4224
  export interface InstallmentPlanPaymentError {
@@ -4596,31 +4277,13 @@ namespace io.flow.v0.models {
4596
4277
  readonly id: string;
4597
4278
  readonly position: number;
4598
4279
  readonly query: string;
4599
- readonly strategy:
4600
- | {
4601
- discriminator: 'inventory_backorder';
4602
- } & io.flow.v0.models.InventoryBackorder
4603
- | {
4604
- discriminator: 'inventory_stock';
4605
- } & io.flow.v0.models.InventoryStock
4606
- | {
4607
- discriminator: 'inventory_unlimited';
4608
- } & io.flow.v0.models.InventoryUnlimited;
4280
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
4609
4281
  }
4610
4282
 
4611
4283
  export interface InventoryRuleForm {
4612
4284
  readonly position: number;
4613
4285
  readonly query: string;
4614
- readonly strategy:
4615
- | {
4616
- discriminator: 'inventory_backorder';
4617
- } & io.flow.v0.models.InventoryBackorder
4618
- | {
4619
- discriminator: 'inventory_stock';
4620
- } & io.flow.v0.models.InventoryStock
4621
- | {
4622
- discriminator: 'inventory_unlimited';
4623
- } & io.flow.v0.models.InventoryUnlimited;
4286
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
4624
4287
  }
4625
4288
 
4626
4289
  export interface InventoryRuleVersion {
@@ -4685,25 +4348,11 @@ namespace io.flow.v0.models {
4685
4348
 
4686
4349
  export interface Invitation {
4687
4350
  readonly id: string;
4688
- readonly organization:
4689
- | {
4690
- discriminator: 'organization';
4691
- } & io.flow.v0.models.Organization
4692
- | {
4693
- discriminator: 'organization_reference';
4694
- } & io.flow.v0.models.OrganizationReference;
4351
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
4695
4352
  readonly email: string;
4696
4353
  readonly name: io.flow.v0.models.Name;
4697
4354
  readonly role?: io.flow.v0.enums.Role;
4698
- readonly roles?: (
4699
- | {
4700
- discriminator: 'flow_user_role';
4701
- value: io.flow.v0.enums.FlowUserRole;
4702
- }
4703
- | {
4704
- discriminator: 'flow_addon_role';
4705
- value: io.flow.v0.enums.FlowAddonRole;
4706
- })[];
4355
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4707
4356
  readonly expiration: string;
4708
4357
  }
4709
4358
 
@@ -4717,15 +4366,7 @@ namespace io.flow.v0.models {
4717
4366
  readonly email: string;
4718
4367
  readonly name?: io.flow.v0.models.Name;
4719
4368
  readonly role?: io.flow.v0.enums.Role;
4720
- readonly roles?: (
4721
- | {
4722
- discriminator: 'flow_user_role';
4723
- value: io.flow.v0.enums.FlowUserRole;
4724
- }
4725
- | {
4726
- discriminator: 'flow_addon_role';
4727
- value: io.flow.v0.enums.FlowAddonRole;
4728
- })[];
4369
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4729
4370
  }
4730
4371
 
4731
4372
  export interface InvitationVersion {
@@ -5091,19 +4732,7 @@ namespace io.flow.v0.models {
5091
4732
 
5092
4733
  export interface Local {
5093
4734
  readonly experience: io.flow.v0.models.ExperienceSummary;
5094
- readonly prices: (
5095
- | {
5096
- key: 'localized_item_price';
5097
- } & io.flow.v0.models.LocalizedItemPrice
5098
- | {
5099
- key: 'localized_item_vat';
5100
- } & io.flow.v0.models.LocalizedItemVat
5101
- | {
5102
- key: 'localized_item_duty';
5103
- } & io.flow.v0.models.LocalizedItemDuty
5104
- | {
5105
- key: 'localized_total';
5106
- } & io.flow.v0.models.LocalizedTotal)[];
4735
+ readonly prices: io.flow.v0.unions.LocalizedPrice[];
5107
4736
  readonly rates: io.flow.v0.models.Rate[];
5108
4737
  readonly spot_rates: {
5109
4738
  [key: string]: string;
@@ -5228,16 +4857,7 @@ namespace io.flow.v0.models {
5228
4857
  };
5229
4858
  readonly local: io.flow.v0.models.Local;
5230
4859
  readonly shipment_estimate?: io.flow.v0.models.DatetimeRange;
5231
- readonly price_source?:
5232
- | {
5233
- discriminator: 'price_book';
5234
- } & io.flow.v0.models.PriceSourcePriceBook
5235
- | {
5236
- discriminator: 'catalog';
5237
- } & io.flow.v0.models.PriceSourceCatalog
5238
- | {
5239
- discriminator: 'provided';
5240
- } & io.flow.v0.models.PriceSourceProvided;
4860
+ readonly price_source?: io.flow.v0.unions.PriceSource;
5241
4861
  }
5242
4862
 
5243
4863
  export interface LocalizedLineItemDiscount {
@@ -5309,30 +4929,10 @@ namespace io.flow.v0.models {
5309
4929
 
5310
4930
  export interface Membership {
5311
4931
  readonly id: string;
5312
- readonly organization:
5313
- | {
5314
- discriminator: 'organization';
5315
- } & io.flow.v0.models.Organization
5316
- | {
5317
- discriminator: 'organization_reference';
5318
- } & io.flow.v0.models.OrganizationReference;
5319
- readonly user:
5320
- | {
5321
- discriminator: 'user';
5322
- } & io.flow.v0.models.User
5323
- | {
5324
- discriminator: 'user_reference';
5325
- } & io.flow.v0.models.UserReference;
4932
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
4933
+ readonly user: io.flow.v0.unions.ExpandableUser;
5326
4934
  readonly role?: io.flow.v0.enums.Role;
5327
- readonly roles: (
5328
- | {
5329
- discriminator: 'flow_user_role';
5330
- value: io.flow.v0.enums.FlowUserRole;
5331
- }
5332
- | {
5333
- discriminator: 'flow_addon_role';
5334
- value: io.flow.v0.enums.FlowAddonRole;
5335
- })[];
4935
+ readonly roles: io.flow.v0.unions.FlowRole[];
5336
4936
  }
5337
4937
 
5338
4938
  export interface MembershipDeletedV2 {
@@ -5345,28 +4945,12 @@ namespace io.flow.v0.models {
5345
4945
  readonly organization: string;
5346
4946
  readonly user: string;
5347
4947
  readonly role?: io.flow.v0.enums.Role;
5348
- readonly roles?: (
5349
- | {
5350
- discriminator: 'flow_user_role';
5351
- value: io.flow.v0.enums.FlowUserRole;
5352
- }
5353
- | {
5354
- discriminator: 'flow_addon_role';
5355
- value: io.flow.v0.enums.FlowAddonRole;
5356
- })[];
4948
+ readonly roles?: io.flow.v0.unions.FlowRole[];
5357
4949
  }
5358
4950
 
5359
4951
  export interface MembershipPutForm {
5360
4952
  readonly role?: io.flow.v0.enums.Role;
5361
- readonly roles?: (
5362
- | {
5363
- discriminator: 'flow_user_role';
5364
- value: io.flow.v0.enums.FlowUserRole;
5365
- }
5366
- | {
5367
- discriminator: 'flow_addon_role';
5368
- value: io.flow.v0.enums.FlowAddonRole;
5369
- })[];
4953
+ readonly roles?: io.flow.v0.unions.FlowRole[];
5370
4954
  }
5371
4955
 
5372
4956
  export interface MembershipUpsertedV2 {
@@ -5503,16 +5087,7 @@ namespace io.flow.v0.models {
5503
5087
  readonly key: string;
5504
5088
  readonly method?: io.flow.v0.models.PaymentMethod;
5505
5089
  readonly merchant_of_record?: io.flow.v0.enums.MerchantOfRecord;
5506
- readonly details?:
5507
- | {
5508
- discriminator: 'paypal_authorization_details';
5509
- } & io.flow.v0.models.PaypalAuthorizationDetails
5510
- | {
5511
- discriminator: 'redirect_authorization_details';
5512
- } & io.flow.v0.models.RedirectAuthorizationDetails
5513
- | {
5514
- discriminator: 'inline_authorization_details';
5515
- } & io.flow.v0.models.InlineAuthorizationDetails;
5090
+ readonly details?: io.flow.v0.unions.OnlineAuthorizationDetails;
5516
5091
  readonly payment?: {
5517
5092
  [key: string]: string;
5518
5093
  };
@@ -5568,25 +5143,13 @@ namespace io.flow.v0.models {
5568
5143
  readonly id: string;
5569
5144
  readonly number: string;
5570
5145
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
5571
- readonly experience?:
5572
- | {
5573
- discriminator: 'experience';
5574
- } & io.flow.v0.models.Experience
5575
- | {
5576
- discriminator: 'experience_reference';
5577
- } & io.flow.v0.models.ExperienceReference;
5146
+ readonly experience?: io.flow.v0.unions.ExpandableExperience;
5578
5147
  readonly customer: io.flow.v0.models.OrderCustomer;
5579
5148
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5580
5149
  readonly destination: io.flow.v0.models.OrderAddress;
5581
5150
  readonly expires_at: string;
5582
5151
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5583
- readonly deliveries: (
5584
- | {
5585
- discriminator: 'digital_delivery';
5586
- } & io.flow.v0.models.DigitalDelivery
5587
- | {
5588
- discriminator: 'physical_delivery';
5589
- } & io.flow.v0.models.PhysicalDelivery)[];
5152
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5590
5153
  readonly selections: string[];
5591
5154
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5592
5155
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -5691,13 +5254,7 @@ namespace io.flow.v0.models {
5691
5254
  readonly id: string;
5692
5255
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5693
5256
  readonly destination: io.flow.v0.models.OrderAddress;
5694
- readonly deliveries: (
5695
- | {
5696
- discriminator: 'digital_delivery';
5697
- } & io.flow.v0.models.DigitalDelivery
5698
- | {
5699
- discriminator: 'physical_delivery';
5700
- } & io.flow.v0.models.PhysicalDelivery)[];
5257
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5701
5258
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5702
5259
  readonly selections: string[];
5703
5260
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -5945,13 +5502,7 @@ namespace io.flow.v0.models {
5945
5502
  readonly selections: string[];
5946
5503
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5947
5504
  readonly destination: io.flow.v0.models.OrderAddress;
5948
- readonly deliveries: (
5949
- | {
5950
- discriminator: 'digital_delivery';
5951
- } & io.flow.v0.models.DigitalDelivery
5952
- | {
5953
- discriminator: 'physical_delivery';
5954
- } & io.flow.v0.models.PhysicalDelivery)[];
5505
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5955
5506
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5956
5507
  readonly order_id?: string;
5957
5508
  readonly payments?: io.flow.v0.models.OrderPayment[];
@@ -6231,31 +5782,13 @@ namespace io.flow.v0.models {
6231
5782
  export interface PartnerCenter {
6232
5783
  readonly partner_reference: io.flow.v0.models.PartnerReference;
6233
5784
  readonly number?: string;
6234
- readonly fees?: (
6235
- | {
6236
- discriminator: 'commercial_invoice_fee';
6237
- } & io.flow.v0.models.CommercialInvoiceFee
6238
- | {
6239
- discriminator: 'inbound_carton_fee';
6240
- } & io.flow.v0.models.InboundCartonFee
6241
- | {
6242
- discriminator: 'outbound_carton_fee';
6243
- } & io.flow.v0.models.OutboundCartonFee)[];
5785
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
6244
5786
  }
6245
5787
 
6246
5788
  export interface PartnerCenterForm {
6247
5789
  readonly partner_id: string;
6248
5790
  readonly number?: string;
6249
- readonly fees?: (
6250
- | {
6251
- discriminator: 'commercial_invoice_fee';
6252
- } & io.flow.v0.models.CommercialInvoiceFee
6253
- | {
6254
- discriminator: 'inbound_carton_fee';
6255
- } & io.flow.v0.models.InboundCartonFee
6256
- | {
6257
- discriminator: 'outbound_carton_fee';
6258
- } & io.flow.v0.models.OutboundCartonFee)[];
5791
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
6259
5792
  }
6260
5793
 
6261
5794
  export interface PartnerReference {
@@ -6337,15 +5870,7 @@ namespace io.flow.v0.models {
6337
5870
  }
6338
5871
 
6339
5872
  export interface PaymentMethodRule {
6340
- readonly tags: (
6341
- | {
6342
- discriminator: 'organization_payment_method_tag';
6343
- value: io.flow.v0.enums.OrganizationPaymentMethodTag;
6344
- }
6345
- | {
6346
- discriminator: 'experience_payment_method_tag';
6347
- value: io.flow.v0.enums.ExperiencePaymentMethodTag;
6348
- })[];
5873
+ readonly tags: io.flow.v0.unions.PaymentMethodTag[];
6349
5874
  readonly payment_method: io.flow.v0.models.PaymentMethod;
6350
5875
  readonly display_position: number;
6351
5876
  readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
@@ -6383,18 +5908,14 @@ namespace io.flow.v0.models {
6383
5908
  readonly timestamp: string;
6384
5909
  readonly organization: string;
6385
5910
  readonly id: string;
6386
- readonly payment: {
6387
- discriminator: 'payment_paypal';
6388
- } & io.flow.v0.models.PaymentPaypal;
5911
+ readonly payment: io.flow.v0.unions.Payment;
6389
5912
  }
6390
5913
 
6391
5914
  export interface PaymentVersion {
6392
5915
  readonly id: string;
6393
5916
  readonly timestamp: string;
6394
5917
  readonly type: io.flow.v0.enums.ChangeType;
6395
- readonly payment: {
6396
- discriminator: 'payment_paypal';
6397
- } & io.flow.v0.models.PaymentPaypal;
5918
+ readonly payment: io.flow.v0.unions.Payment;
6398
5919
  }
6399
5920
 
6400
5921
  export interface PaypalAuthorizationDetails {
@@ -6422,22 +5943,8 @@ namespace io.flow.v0.models {
6422
5943
 
6423
5944
  export interface PermissionCheck {
6424
5945
  readonly authentication_technique: io.flow.v0.enums.AuthenticationTechnique;
6425
- readonly user?:
6426
- | {
6427
- discriminator: 'user';
6428
- } & io.flow.v0.models.User
6429
- | {
6430
- discriminator: 'user_reference';
6431
- } & io.flow.v0.models.UserReference;
6432
- readonly roles: (
6433
- | {
6434
- discriminator: 'flow_user_role';
6435
- value: io.flow.v0.enums.FlowUserRole;
6436
- }
6437
- | {
6438
- discriminator: 'flow_addon_role';
6439
- value: io.flow.v0.enums.FlowAddonRole;
6440
- })[];
5946
+ readonly user?: io.flow.v0.unions.ExpandableUser;
5947
+ readonly roles: io.flow.v0.unions.FlowRole[];
6441
5948
  readonly behaviors: io.flow.v0.enums.FlowBehavior[];
6442
5949
  readonly routes: io.flow.v0.models.PermittedRoute[];
6443
5950
  }
@@ -6445,15 +5952,7 @@ namespace io.flow.v0.models {
6445
5952
  export interface PermissionError {
6446
5953
  readonly code: io.flow.v0.enums.GenericErrorCode;
6447
5954
  readonly messages: string[];
6448
- readonly granting_roles?: (
6449
- | {
6450
- discriminator: 'flow_user_role';
6451
- value: io.flow.v0.enums.FlowUserRole;
6452
- }
6453
- | {
6454
- discriminator: 'flow_addon_role';
6455
- value: io.flow.v0.enums.FlowAddonRole;
6456
- })[];
5955
+ readonly granting_roles?: io.flow.v0.unions.FlowRole[];
6457
5956
  readonly admin_users?: io.flow.v0.models.User[];
6458
5957
  }
6459
5958
 
@@ -6720,20 +6219,8 @@ namespace io.flow.v0.models {
6720
6219
  }
6721
6220
 
6722
6221
  export interface Promotions {
6723
- readonly applied: (
6724
- | {
6725
- discriminator: 'free_shipping';
6726
- } & io.flow.v0.models.FreeShipping
6727
- | {
6728
- discriminator: 'discount';
6729
- } & io.flow.v0.models.Discount)[];
6730
- readonly available: (
6731
- | {
6732
- discriminator: 'free_shipping';
6733
- } & io.flow.v0.models.FreeShipping
6734
- | {
6735
- discriminator: 'discount';
6736
- } & io.flow.v0.models.Discount)[];
6222
+ readonly applied: io.flow.v0.unions.Promotion[];
6223
+ readonly available: io.flow.v0.unions.Promotion[];
6737
6224
  }
6738
6225
 
6739
6226
  export interface Province {
@@ -6751,41 +6238,17 @@ namespace io.flow.v0.models {
6751
6238
 
6752
6239
  export interface Query {
6753
6240
  readonly q: string;
6754
- readonly filters: (
6755
- | {
6756
- discriminator: 'structured';
6757
- } & io.flow.v0.models.QueryFilterStructured
6758
- | {
6759
- discriminator: 'unstructured';
6760
- } & io.flow.v0.models.QueryFilterUnstructured)[];
6241
+ readonly filters: io.flow.v0.unions.QueryFilter[];
6761
6242
  }
6762
6243
 
6763
6244
  export interface QueryBuilder {
6764
6245
  readonly q: string;
6765
- readonly filters: (
6766
- | {
6767
- discriminator: 'structured';
6768
- } & io.flow.v0.models.QueryFilterStructured
6769
- | {
6770
- discriminator: 'unstructured';
6771
- } & io.flow.v0.models.QueryFilterUnstructured)[];
6772
- readonly available: (
6773
- | {
6774
- discriminator: 'structured';
6775
- } & io.flow.v0.models.AvailableFilterStructured
6776
- | {
6777
- discriminator: 'unstructured';
6778
- } & io.flow.v0.models.AvailableFilterUnstructured)[];
6246
+ readonly filters: io.flow.v0.unions.QueryFilter[];
6247
+ readonly available: io.flow.v0.unions.AvailableFilter[];
6779
6248
  }
6780
6249
 
6781
6250
  export interface QueryBuilderFilterForm {
6782
- readonly filters: (
6783
- | {
6784
- discriminator: 'structured';
6785
- } & io.flow.v0.models.QueryFilterStructuredForm
6786
- | {
6787
- discriminator: 'unstructured';
6788
- } & io.flow.v0.models.QueryFilterUnstructuredForm)[];
6251
+ readonly filters: io.flow.v0.unions.QueryFilterForm[];
6789
6252
  }
6790
6253
 
6791
6254
  export interface QueryBuilderQueryForm {
@@ -6816,13 +6279,7 @@ namespace io.flow.v0.models {
6816
6279
  export interface Quote {
6817
6280
  readonly id: string;
6818
6281
  readonly destination: io.flow.v0.models.ShippingAddress;
6819
- readonly deliveries: (
6820
- | {
6821
- discriminator: 'digital_delivery';
6822
- } & io.flow.v0.models.DigitalDelivery
6823
- | {
6824
- discriminator: 'physical_delivery';
6825
- } & io.flow.v0.models.PhysicalDelivery)[];
6282
+ readonly deliveries: io.flow.v0.unions.Delivery[];
6826
6283
  readonly selections: io.flow.v0.models.DeliveryOptionReference[];
6827
6284
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
6828
6285
  readonly delivered_duties: io.flow.v0.enums.DeliveredDuty[];
@@ -6882,6 +6339,13 @@ namespace io.flow.v0.models {
6882
6339
  readonly rate_id: string;
6883
6340
  }
6884
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
+
6885
6349
  export interface RateForm {
6886
6350
  readonly base: string;
6887
6351
  readonly target: string;
@@ -6899,6 +6363,13 @@ namespace io.flow.v0.models {
6899
6363
  readonly value: number;
6900
6364
  }
6901
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
+
6902
6373
  export interface RateVersion {
6903
6374
  readonly id: string;
6904
6375
  readonly timestamp: string;
@@ -6962,25 +6433,7 @@ namespace io.flow.v0.models {
6962
6433
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
6963
6434
  readonly currency: string;
6964
6435
  readonly amount: number;
6965
- readonly fees: (
6966
- | {
6967
- discriminator: 'ddp_ratecard_fee';
6968
- } & io.flow.v0.models.DdpRatecardFee
6969
- | {
6970
- discriminator: 'fuel_surcharge_ratecard_fee';
6971
- } & io.flow.v0.models.FuelSurchargeRatecardFee
6972
- | {
6973
- discriminator: 'oversized_shipment_ratecard_fee';
6974
- } & io.flow.v0.models.OversizedShipmentRatecardFee
6975
- | {
6976
- discriminator: 'return_package_ratecard_fee';
6977
- } & io.flow.v0.models.ReturnPackageRatecardFee
6978
- | {
6979
- discriminator: 'crossdock_ratecard_fee';
6980
- } & io.flow.v0.models.CrossdockRatecardFee
6981
- | {
6982
- discriminator: 'remote_area_ratecard_fee';
6983
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
6436
+ readonly fees: io.flow.v0.unions.RatecardFee[];
6984
6437
  readonly total: number;
6985
6438
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
6986
6439
  readonly dimensional_weight?: io.flow.v0.models.Measurement;
@@ -7012,25 +6465,7 @@ namespace io.flow.v0.models {
7012
6465
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
7013
6466
  readonly destination: io.flow.v0.models.Zone;
7014
6467
  readonly dim_factor: number;
7015
- readonly fees: (
7016
- | {
7017
- discriminator: 'ddp_ratecard_fee';
7018
- } & io.flow.v0.models.DdpRatecardFee
7019
- | {
7020
- discriminator: 'fuel_surcharge_ratecard_fee';
7021
- } & io.flow.v0.models.FuelSurchargeRatecardFee
7022
- | {
7023
- discriminator: 'oversized_shipment_ratecard_fee';
7024
- } & io.flow.v0.models.OversizedShipmentRatecardFee
7025
- | {
7026
- discriminator: 'return_package_ratecard_fee';
7027
- } & io.flow.v0.models.ReturnPackageRatecardFee
7028
- | {
7029
- discriminator: 'crossdock_ratecard_fee';
7030
- } & io.flow.v0.models.CrossdockRatecardFee
7031
- | {
7032
- discriminator: 'remote_area_ratecard_fee';
7033
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
6468
+ readonly fees: io.flow.v0.unions.RatecardFee[];
7034
6469
  readonly origin: io.flow.v0.models.Zone;
7035
6470
  readonly service: io.flow.v0.models.RatecardServiceSummary;
7036
6471
  readonly rates: io.flow.v0.models.RatecardRate[];
@@ -7053,25 +6488,7 @@ namespace io.flow.v0.models {
7053
6488
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
7054
6489
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
7055
6490
  readonly dim_factor: number;
7056
- readonly fees: (
7057
- | {
7058
- discriminator: 'ddp_ratecard_fee';
7059
- } & io.flow.v0.models.DdpRatecardFee
7060
- | {
7061
- discriminator: 'fuel_surcharge_ratecard_fee';
7062
- } & io.flow.v0.models.FuelSurchargeRatecardFee
7063
- | {
7064
- discriminator: 'oversized_shipment_ratecard_fee';
7065
- } & io.flow.v0.models.OversizedShipmentRatecardFee
7066
- | {
7067
- discriminator: 'return_package_ratecard_fee';
7068
- } & io.flow.v0.models.ReturnPackageRatecardFee
7069
- | {
7070
- discriminator: 'crossdock_ratecard_fee';
7071
- } & io.flow.v0.models.CrossdockRatecardFee
7072
- | {
7073
- discriminator: 'remote_area_ratecard_fee';
7074
- } & io.flow.v0.models.RemoteAreaRatecardFee)[];
6491
+ readonly fees: io.flow.v0.unions.RatecardFee[];
7075
6492
  readonly origin: io.flow.v0.models.Zone;
7076
6493
  readonly rounding: io.flow.v0.models.Rounding;
7077
6494
  readonly rates: io.flow.v0.models.RatecardRateForm[];
@@ -7160,9 +6577,7 @@ namespace io.flow.v0.models {
7160
6577
  export interface RedirectAuthorizationDetails {
7161
6578
  readonly id: string;
7162
6579
  readonly payment_redirect_url: string;
7163
- readonly confirmation_details?: {
7164
- discriminator: 'direct_debit';
7165
- } & io.flow.v0.models.DirectDebit;
6580
+ readonly confirmation_details?: io.flow.v0.unions.ConfirmationDetails;
7166
6581
  }
7167
6582
 
7168
6583
  export interface RedirectAuthorizationForm {
@@ -7524,15 +6939,7 @@ namespace io.flow.v0.models {
7524
6939
  readonly method: io.flow.v0.enums.PermittedHttpMethod;
7525
6940
  readonly path: string;
7526
6941
  readonly authentication_techniques: io.flow.v0.enums.AuthenticationTechnique[];
7527
- readonly roles: (
7528
- | {
7529
- discriminator: 'flow_user_role';
7530
- value: io.flow.v0.enums.FlowUserRole;
7531
- }
7532
- | {
7533
- discriminator: 'flow_addon_role';
7534
- value: io.flow.v0.enums.FlowAddonRole;
7535
- })[];
6942
+ readonly roles: io.flow.v0.unions.FlowRole[];
7536
6943
  }
7537
6944
 
7538
6945
  export interface RuleDeleted {
@@ -7564,49 +6971,7 @@ namespace io.flow.v0.models {
7564
6971
  readonly hour: number;
7565
6972
  readonly minute: number;
7566
6973
  readonly timezone: string;
7567
- readonly types: (
7568
- | {
7569
- discriminator: 'account_transactions_export_type';
7570
- } & io.flow.v0.models.AccountTransactionsExportType
7571
- | {
7572
- discriminator: 'account_orders_export_type';
7573
- } & io.flow.v0.models.AccountOrdersExportType
7574
- | {
7575
- discriminator: 'analytics_export_type';
7576
- } & io.flow.v0.models.AnalyticsExportType
7577
- | {
7578
- discriminator: 'catalog_item_export_type';
7579
- } & io.flow.v0.models.CatalogItemExportType
7580
- | {
7581
- discriminator: 'experience_export_type';
7582
- } & io.flow.v0.models.ExperienceExportType
7583
- | {
7584
- discriminator: 'harmonization_overview_export_type';
7585
- } & io.flow.v0.models.HarmonizationOverviewExportType
7586
- | {
7587
- discriminator: 'harmonization_hs6_export_type';
7588
- } & io.flow.v0.models.HarmonizationHs6ExportType
7589
- | {
7590
- discriminator: 'harmonization_hs10_export_type';
7591
- } & io.flow.v0.models.HarmonizationHs10ExportType
7592
- | {
7593
- discriminator: 'unharmonized_item_export_type';
7594
- } & io.flow.v0.models.UnharmonizedItemExportType
7595
- | {
7596
- discriminator: 'harmonization_landed_cost_export_type';
7597
- } & io.flow.v0.models.HarmonizationLandedCostExportType
7598
- | {
7599
- discriminator: 'order_export_type';
7600
- } & io.flow.v0.models.OrderExportType
7601
- | {
7602
- discriminator: 'solidus_product_export_type';
7603
- } & io.flow.v0.models.SolidusProductExportType
7604
- | {
7605
- discriminator: 'solidus_variant_export_type';
7606
- } & io.flow.v0.models.SolidusVariantExportType
7607
- | {
7608
- discriminator: 'localized_item_prices_export_type';
7609
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
6974
+ readonly types: io.flow.v0.unions.ExportType[];
7610
6975
  readonly last_sent_at?: string;
7611
6976
  }
7612
6977
 
@@ -7616,49 +6981,7 @@ namespace io.flow.v0.models {
7616
6981
  readonly hour: number;
7617
6982
  readonly minute: number;
7618
6983
  readonly timezone: string;
7619
- readonly types: (
7620
- | {
7621
- discriminator: 'account_transactions_export_type';
7622
- } & io.flow.v0.models.AccountTransactionsExportType
7623
- | {
7624
- discriminator: 'account_orders_export_type';
7625
- } & io.flow.v0.models.AccountOrdersExportType
7626
- | {
7627
- discriminator: 'analytics_export_type';
7628
- } & io.flow.v0.models.AnalyticsExportType
7629
- | {
7630
- discriminator: 'catalog_item_export_type';
7631
- } & io.flow.v0.models.CatalogItemExportType
7632
- | {
7633
- discriminator: 'experience_export_type';
7634
- } & io.flow.v0.models.ExperienceExportType
7635
- | {
7636
- discriminator: 'harmonization_overview_export_type';
7637
- } & io.flow.v0.models.HarmonizationOverviewExportType
7638
- | {
7639
- discriminator: 'harmonization_hs6_export_type';
7640
- } & io.flow.v0.models.HarmonizationHs6ExportType
7641
- | {
7642
- discriminator: 'harmonization_hs10_export_type';
7643
- } & io.flow.v0.models.HarmonizationHs10ExportType
7644
- | {
7645
- discriminator: 'unharmonized_item_export_type';
7646
- } & io.flow.v0.models.UnharmonizedItemExportType
7647
- | {
7648
- discriminator: 'harmonization_landed_cost_export_type';
7649
- } & io.flow.v0.models.HarmonizationLandedCostExportType
7650
- | {
7651
- discriminator: 'order_export_type';
7652
- } & io.flow.v0.models.OrderExportType
7653
- | {
7654
- discriminator: 'solidus_product_export_type';
7655
- } & io.flow.v0.models.SolidusProductExportType
7656
- | {
7657
- discriminator: 'solidus_variant_export_type';
7658
- } & io.flow.v0.models.SolidusVariantExportType
7659
- | {
7660
- discriminator: 'localized_item_prices_export_type';
7661
- } & io.flow.v0.models.LocalizedItemPricesExportType)[];
6984
+ readonly types: io.flow.v0.unions.ExportType[];
7662
6985
  }
7663
6986
 
7664
6987
  export interface ScheduledPickup {
@@ -7967,13 +7290,7 @@ namespace io.flow.v0.models {
7967
7290
  readonly id: string;
7968
7291
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
7969
7292
  readonly region: string;
7970
- readonly centers: (
7971
- | {
7972
- discriminator: 'center';
7973
- } & io.flow.v0.models.Center
7974
- | {
7975
- discriminator: 'center_reference';
7976
- } & io.flow.v0.models.CenterReference)[];
7293
+ readonly centers: io.flow.v0.unions.ExpandableCenter[];
7977
7294
  readonly tiers: io.flow.v0.models.Tier[];
7978
7295
  readonly query: io.flow.v0.models.Query;
7979
7296
  readonly strategy: io.flow.v0.enums.LaneStrategy;
@@ -8129,16 +7446,7 @@ namespace io.flow.v0.models {
8129
7446
  readonly quantity: number;
8130
7447
  readonly price: io.flow.v0.models.ShopifyPrice;
8131
7448
  readonly total: io.flow.v0.models.ShopifyPrice;
8132
- readonly price_source?:
8133
- | {
8134
- discriminator: 'price_book';
8135
- } & io.flow.v0.models.PriceSourcePriceBook
8136
- | {
8137
- discriminator: 'catalog';
8138
- } & io.flow.v0.models.PriceSourceCatalog
8139
- | {
8140
- discriminator: 'provided';
8141
- } & io.flow.v0.models.PriceSourceProvided;
7449
+ readonly price_source?: io.flow.v0.unions.PriceSource;
8142
7450
  }
8143
7451
 
8144
7452
  export interface ShopifyLocalCartItemMetadata {
@@ -8190,13 +7498,7 @@ namespace io.flow.v0.models {
8190
7498
  readonly lines: io.flow.v0.models.ShopifyLine[];
8191
7499
  readonly prices: io.flow.v0.models.ShopifyPrice[];
8192
7500
  readonly total: io.flow.v0.models.ShopifyPrice;
8193
- readonly allocation_details: (
8194
- | {
8195
- discriminator: 'allocation_line_detail';
8196
- } & io.flow.v0.models.AllocationLineDetail
8197
- | {
8198
- discriminator: 'allocation_order_detail';
8199
- } & io.flow.v0.models.AllocationOrderDetail)[];
7501
+ readonly allocation_details: io.flow.v0.unions.AllocationDetail[];
8200
7502
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
8201
7503
  readonly merchant_of_record_entity?: io.flow.v0.models.MerchantOfRecordEntity;
8202
7504
  readonly incoterm?: io.flow.v0.enums.Incoterm;
@@ -8290,9 +7592,7 @@ namespace io.flow.v0.models {
8290
7592
  readonly range: io.flow.v0.models.DatetimeRange;
8291
7593
  readonly interval_seconds: number;
8292
7594
  readonly total: number;
8293
- readonly buckets: ({
8294
- discriminator: 'shopify_item_event_bucket';
8295
- } & io.flow.v0.models.ShopifyItemEventBucket)[];
7595
+ readonly buckets: io.flow.v0.unions.ShopifyEventBucket[];
8296
7596
  }
8297
7597
 
8298
7598
  export interface ShopifyVariantFlowMetafield {
@@ -8574,13 +7874,7 @@ namespace io.flow.v0.models {
8574
7874
  readonly name: string;
8575
7875
  readonly rate: number;
8576
7876
  readonly components: io.flow.v0.enums.LevyComponent[];
8577
- readonly deminimis?:
8578
- | {
8579
- discriminator: 'deminimis_simple';
8580
- } & io.flow.v0.models.DeminimisSimple
8581
- | {
8582
- discriminator: 'deminimis_per_item';
8583
- } & io.flow.v0.models.DeminimisPerItem;
7877
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
8584
7878
  }
8585
7879
 
8586
7880
  export interface TaxRegistration {
@@ -8666,37 +7960,13 @@ namespace io.flow.v0.models {
8666
7960
  readonly id: string;
8667
7961
  readonly position: number;
8668
7962
  readonly query: string;
8669
- readonly outcome:
8670
- | {
8671
- discriminator: 'amount_margin';
8672
- } & io.flow.v0.models.AmountMargin
8673
- | {
8674
- discriminator: 'at_cost';
8675
- } & io.flow.v0.models.AtCost
8676
- | {
8677
- discriminator: 'flat_rate';
8678
- } & io.flow.v0.models.FlatRate
8679
- | {
8680
- discriminator: 'percent_margin';
8681
- } & io.flow.v0.models.PercentMargin;
7963
+ readonly outcome: io.flow.v0.unions.TierRuleOutcome;
8682
7964
  }
8683
7965
 
8684
7966
  export interface TierRuleForm {
8685
7967
  readonly position?: number;
8686
7968
  readonly query: string;
8687
- readonly outcome:
8688
- | {
8689
- discriminator: 'amount_margin_form';
8690
- } & io.flow.v0.models.AmountMarginForm
8691
- | {
8692
- discriminator: 'flat_rate_form';
8693
- } & io.flow.v0.models.FlatRateForm
8694
- | {
8695
- discriminator: 'at_cost';
8696
- } & io.flow.v0.models.AtCost
8697
- | {
8698
- discriminator: 'percent_margin';
8699
- } & io.flow.v0.models.PercentMargin;
7969
+ readonly outcome: io.flow.v0.unions.TierRuleOutcomeForm;
8700
7970
  }
8701
7971
 
8702
7972
  export interface TierRuleVersion {
@@ -9303,6 +8573,12 @@ namespace io.flow.v0.unions {
9303
8573
  | {
9304
8574
  discriminator: 'rate_upserted';
9305
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
9306
8582
  | {
9307
8583
  discriminator: 'customer_upserted';
9308
8584
  } & io.flow.v0.models.CustomerUpserted
@@ -9579,6 +8855,12 @@ namespace io.flow.v0.unions {
9579
8855
  | {
9580
8856
  discriminator: 'organization_default_configurations_deleted';
9581
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
9582
8864
  | {
9583
8865
  discriminator: 'authorization_deleted_v2';
9584
8866
  } & io.flow.v0.models.AuthorizationDeletedV2
@@ -10418,6 +9700,10 @@ export type DiscountsForm = io.flow.v0.models.DiscountsForm;
10418
9700
  export type Document = io.flow.v0.unions.Document;
10419
9701
  export type Duration = io.flow.v0.models.Duration;
10420
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;
10421
9707
  export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
10422
9708
  export type EmailVerification = io.flow.v0.models.EmailVerification;
10423
9709
  export type Environment = io.flow.v0.enums.Environment;
@@ -10930,9 +10216,11 @@ export type QuoteSummary = io.flow.v0.models.QuoteSummary;
10930
10216
  export type QuoteVersion = io.flow.v0.models.QuoteVersion;
10931
10217
  export type Rate = io.flow.v0.models.Rate;
10932
10218
  export type RateDeleted = io.flow.v0.models.RateDeleted;
10219
+ export type RateDeletedV3 = io.flow.v0.models.RateDeletedV3;
10933
10220
  export type RateForm = io.flow.v0.models.RateForm;
10934
10221
  export type RateType = io.flow.v0.enums.RateType;
10935
10222
  export type RateUpserted = io.flow.v0.models.RateUpserted;
10223
+ export type RateUpsertedV3 = io.flow.v0.models.RateUpsertedV3;
10936
10224
  export type RateVersion = io.flow.v0.models.RateVersion;
10937
10225
  export type Ratecard = io.flow.v0.models.Ratecard;
10938
10226
  export type RatecardCarrierSummary = io.flow.v0.models.RatecardCarrierSummary;