@flowio/types 0.0.5 → 0.0.7

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
  }
@@ -666,9 +684,10 @@ namespace io.flow.shopify.external.v0.models {
666
684
 
667
685
  export interface ShopifyInventoryItem {
668
686
  readonly id: number;
669
- readonly sku: string;
670
687
  readonly tracked: boolean;
688
+ readonly sku?: string;
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;
@@ -3235,6 +3034,12 @@ namespace io.flow.v0.models {
3235
3034
  readonly number: string;
3236
3035
  }
3237
3036
 
3037
+ export interface CustomerToken {
3038
+ readonly id: string;
3039
+ readonly customer: io.flow.v0.models.CustomerReference;
3040
+ readonly token: string;
3041
+ }
3042
+
3238
3043
  export interface CustomerUpserted {
3239
3044
  readonly event_id: string;
3240
3045
  readonly timestamp: string;
@@ -3272,6 +3077,7 @@ namespace io.flow.v0.models {
3272
3077
  };
3273
3078
  readonly center?: string;
3274
3079
  readonly discount?: io.flow.v0.models.MoneyWithOptionalBase;
3080
+ readonly line_number?: number;
3275
3081
  }
3276
3082
 
3277
3083
  export interface DeliveryOption {
@@ -3282,22 +3088,13 @@ namespace io.flow.v0.models {
3282
3088
  readonly service: io.flow.v0.models.ServiceSummary;
3283
3089
  readonly tier: io.flow.v0.models.TierSummary;
3284
3090
  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;
3091
+ readonly rule_outcome?: io.flow.v0.unions.TierRuleOutcome;
3298
3092
  readonly weight?: io.flow.v0.models.OptionWeightEstimates;
3299
3093
  readonly send_to?: io.flow.v0.models.ShippingAddress;
3300
3094
  readonly surcharge?: io.flow.v0.models.PriceWithBaseAndDetails;
3095
+ readonly merchant_of_record_override?: io.flow.v0.enums.OrderMerchantOfRecord;
3096
+ readonly prices?: io.flow.v0.models.OrderPriceDetail[];
3097
+ readonly total?: io.flow.v0.models.LocalizedTotal;
3301
3098
  }
3302
3099
 
3303
3100
  export interface DeliveryOptionCostComponent {
@@ -3529,13 +3326,7 @@ namespace io.flow.v0.models {
3529
3326
  }
3530
3327
 
3531
3328
  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;
3329
+ readonly offer: io.flow.v0.unions.DiscountOffer;
3539
3330
  readonly target?: io.flow.v0.enums.DiscountTarget;
3540
3331
  readonly label?: string;
3541
3332
  }
@@ -3560,16 +3351,30 @@ namespace io.flow.v0.models {
3560
3351
  export interface Duty {
3561
3352
  readonly rate: number;
3562
3353
  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;
3354
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
3570
3355
  readonly name?: string;
3571
3356
  }
3572
3357
 
3358
+ export interface EcommercePlatform {
3359
+ readonly id: string;
3360
+ readonly type: io.flow.v0.enums.EcommercePlatformType;
3361
+ readonly version?: string;
3362
+ }
3363
+
3364
+ export interface EcommercePlatformDeleted {
3365
+ readonly event_id: string;
3366
+ readonly timestamp: string;
3367
+ readonly organization: string;
3368
+ readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
3369
+ }
3370
+
3371
+ export interface EcommercePlatformUpserted {
3372
+ readonly event_id: string;
3373
+ readonly timestamp: string;
3374
+ readonly organization: string;
3375
+ readonly ecommerce_platform: io.flow.v0.models.EcommercePlatform;
3376
+ }
3377
+
3573
3378
  export interface EmailVerification {
3574
3379
  readonly email: string;
3575
3380
  }
@@ -3835,58 +3640,14 @@ namespace io.flow.v0.models {
3835
3640
 
3836
3641
  export interface Export {
3837
3642
  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;
3643
+ readonly type: io.flow.v0.unions.ExportType;
3881
3644
  readonly status: io.flow.v0.enums.ExportStatus;
3882
3645
  readonly organization_q: string;
3883
3646
  readonly created_at: string;
3884
3647
  readonly started_at?: string;
3885
3648
  readonly completed_at?: string;
3886
3649
  readonly url?: string;
3887
- readonly deliveries: ({
3888
- discriminator: 'export_delivery_email';
3889
- } & io.flow.v0.models.ExportDeliveryEmail)[];
3650
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
3890
3651
  }
3891
3652
 
3892
3653
  export interface ExportDeliveryEmail {
@@ -3894,49 +3655,7 @@ namespace io.flow.v0.models {
3894
3655
  }
3895
3656
 
3896
3657
  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;
3658
+ readonly type: io.flow.v0.unions.ExportType;
3940
3659
  readonly emails?: string[];
3941
3660
  readonly organization_q?: string;
3942
3661
  }
@@ -4028,13 +3747,7 @@ namespace io.flow.v0.models {
4028
3747
 
4029
3748
  export interface FreeShippingOrderPromotion {
4030
3749
  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;
3750
+ readonly order: io.flow.v0.unions.ExpandableOrder;
4038
3751
  readonly key: string;
4039
3752
  readonly trigger: io.flow.v0.models.OrderPromotionTrigger;
4040
3753
  readonly max?: io.flow.v0.models.Price;
@@ -4342,25 +4055,7 @@ namespace io.flow.v0.models {
4342
4055
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
4343
4056
  readonly currency: string;
4344
4057
  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)[];
4058
+ readonly fees: io.flow.v0.unions.RatecardFee[];
4364
4059
  readonly total: number;
4365
4060
  }
4366
4061
 
@@ -4443,9 +4138,7 @@ namespace io.flow.v0.models {
4443
4138
  readonly started_at?: string;
4444
4139
  readonly completed_at?: string;
4445
4140
  readonly results?: io.flow.v0.models.ImportResults;
4446
- readonly deliveries: ({
4447
- discriminator: 'export_delivery_email';
4448
- } & io.flow.v0.models.ExportDeliveryEmail)[];
4141
+ readonly deliveries: io.flow.v0.unions.ExportDelivery[];
4449
4142
  }
4450
4143
 
4451
4144
  export interface ImportForm {
@@ -4535,9 +4228,7 @@ namespace io.flow.v0.models {
4535
4228
  }
4536
4229
 
4537
4230
  export interface InputSpecificationLimitations {
4538
- readonly limitations?: ({
4539
- discriminator: 'input_specification_limitation_max';
4540
- } & io.flow.v0.models.InputSpecificationLimitationMax)[];
4231
+ readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
4541
4232
  }
4542
4233
 
4543
4234
  export interface InstallmentPlanPaymentError {
@@ -4596,31 +4287,13 @@ namespace io.flow.v0.models {
4596
4287
  readonly id: string;
4597
4288
  readonly position: number;
4598
4289
  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;
4290
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
4609
4291
  }
4610
4292
 
4611
4293
  export interface InventoryRuleForm {
4612
4294
  readonly position: number;
4613
4295
  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;
4296
+ readonly strategy: io.flow.v0.unions.InventoryStrategy;
4624
4297
  }
4625
4298
 
4626
4299
  export interface InventoryRuleVersion {
@@ -4685,25 +4358,11 @@ namespace io.flow.v0.models {
4685
4358
 
4686
4359
  export interface Invitation {
4687
4360
  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;
4361
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
4695
4362
  readonly email: string;
4696
4363
  readonly name: io.flow.v0.models.Name;
4697
4364
  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
- })[];
4365
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4707
4366
  readonly expiration: string;
4708
4367
  }
4709
4368
 
@@ -4717,15 +4376,7 @@ namespace io.flow.v0.models {
4717
4376
  readonly email: string;
4718
4377
  readonly name?: io.flow.v0.models.Name;
4719
4378
  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
- })[];
4379
+ readonly roles?: io.flow.v0.unions.FlowRole[];
4729
4380
  }
4730
4381
 
4731
4382
  export interface InvitationVersion {
@@ -4802,6 +4453,7 @@ namespace io.flow.v0.models {
4802
4453
  export interface ItemFormOverlay {
4803
4454
  readonly id: string;
4804
4455
  readonly number: string;
4456
+ readonly key: string;
4805
4457
  readonly position: number;
4806
4458
  readonly price?: io.flow.v0.models.Price;
4807
4459
  readonly categories?: string[];
@@ -5091,19 +4743,7 @@ namespace io.flow.v0.models {
5091
4743
 
5092
4744
  export interface Local {
5093
4745
  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)[];
4746
+ readonly prices: io.flow.v0.unions.LocalizedPrice[];
5107
4747
  readonly rates: io.flow.v0.models.Rate[];
5108
4748
  readonly spot_rates: {
5109
4749
  [key: string]: string;
@@ -5228,16 +4868,7 @@ namespace io.flow.v0.models {
5228
4868
  };
5229
4869
  readonly local: io.flow.v0.models.Local;
5230
4870
  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;
4871
+ readonly price_source?: io.flow.v0.unions.PriceSource;
5241
4872
  }
5242
4873
 
5243
4874
  export interface LocalizedLineItemDiscount {
@@ -5309,30 +4940,10 @@ namespace io.flow.v0.models {
5309
4940
 
5310
4941
  export interface Membership {
5311
4942
  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;
4943
+ readonly organization: io.flow.v0.unions.ExpandableOrganization;
4944
+ readonly user: io.flow.v0.unions.ExpandableUser;
5326
4945
  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
- })[];
4946
+ readonly roles: io.flow.v0.unions.FlowRole[];
5336
4947
  }
5337
4948
 
5338
4949
  export interface MembershipDeletedV2 {
@@ -5345,28 +4956,12 @@ namespace io.flow.v0.models {
5345
4956
  readonly organization: string;
5346
4957
  readonly user: string;
5347
4958
  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
- })[];
4959
+ readonly roles?: io.flow.v0.unions.FlowRole[];
5357
4960
  }
5358
4961
 
5359
4962
  export interface MembershipPutForm {
5360
4963
  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
- })[];
4964
+ readonly roles?: io.flow.v0.unions.FlowRole[];
5370
4965
  }
5371
4966
 
5372
4967
  export interface MembershipUpsertedV2 {
@@ -5503,16 +5098,7 @@ namespace io.flow.v0.models {
5503
5098
  readonly key: string;
5504
5099
  readonly method?: io.flow.v0.models.PaymentMethod;
5505
5100
  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;
5101
+ readonly details?: io.flow.v0.unions.OnlineAuthorizationDetails;
5516
5102
  readonly payment?: {
5517
5103
  [key: string]: string;
5518
5104
  };
@@ -5568,25 +5154,13 @@ namespace io.flow.v0.models {
5568
5154
  readonly id: string;
5569
5155
  readonly number: string;
5570
5156
  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;
5157
+ readonly experience?: io.flow.v0.unions.ExpandableExperience;
5578
5158
  readonly customer: io.flow.v0.models.OrderCustomer;
5579
5159
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
5580
5160
  readonly destination: io.flow.v0.models.OrderAddress;
5581
5161
  readonly expires_at: string;
5582
5162
  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)[];
5163
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5590
5164
  readonly selections: string[];
5591
5165
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5592
5166
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -5691,13 +5265,7 @@ namespace io.flow.v0.models {
5691
5265
  readonly id: string;
5692
5266
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5693
5267
  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)[];
5268
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5701
5269
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5702
5270
  readonly selections: string[];
5703
5271
  readonly total: io.flow.v0.models.LocalizedTotal;
@@ -5945,13 +5513,7 @@ namespace io.flow.v0.models {
5945
5513
  readonly selections: string[];
5946
5514
  readonly items: io.flow.v0.models.LocalizedLineItem[];
5947
5515
  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)[];
5516
+ readonly deliveries: io.flow.v0.unions.Delivery[];
5955
5517
  readonly prices: io.flow.v0.models.OrderPriceDetail[];
5956
5518
  readonly order_id?: string;
5957
5519
  readonly payments?: io.flow.v0.models.OrderPayment[];
@@ -6231,31 +5793,13 @@ namespace io.flow.v0.models {
6231
5793
  export interface PartnerCenter {
6232
5794
  readonly partner_reference: io.flow.v0.models.PartnerReference;
6233
5795
  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)[];
5796
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
6244
5797
  }
6245
5798
 
6246
5799
  export interface PartnerCenterForm {
6247
5800
  readonly partner_id: string;
6248
5801
  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)[];
5802
+ readonly fees?: io.flow.v0.unions.PartnerCenterFee[];
6259
5803
  }
6260
5804
 
6261
5805
  export interface PartnerReference {
@@ -6337,15 +5881,7 @@ namespace io.flow.v0.models {
6337
5881
  }
6338
5882
 
6339
5883
  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
- })[];
5884
+ readonly tags: io.flow.v0.unions.PaymentMethodTag[];
6349
5885
  readonly payment_method: io.flow.v0.models.PaymentMethod;
6350
5886
  readonly display_position: number;
6351
5887
  readonly content?: io.flow.v0.models.PaymentMethodRuleContent[];
@@ -6383,18 +5919,14 @@ namespace io.flow.v0.models {
6383
5919
  readonly timestamp: string;
6384
5920
  readonly organization: string;
6385
5921
  readonly id: string;
6386
- readonly payment: {
6387
- discriminator: 'payment_paypal';
6388
- } & io.flow.v0.models.PaymentPaypal;
5922
+ readonly payment: io.flow.v0.unions.Payment;
6389
5923
  }
6390
5924
 
6391
5925
  export interface PaymentVersion {
6392
5926
  readonly id: string;
6393
5927
  readonly timestamp: string;
6394
5928
  readonly type: io.flow.v0.enums.ChangeType;
6395
- readonly payment: {
6396
- discriminator: 'payment_paypal';
6397
- } & io.flow.v0.models.PaymentPaypal;
5929
+ readonly payment: io.flow.v0.unions.Payment;
6398
5930
  }
6399
5931
 
6400
5932
  export interface PaypalAuthorizationDetails {
@@ -6422,22 +5954,8 @@ namespace io.flow.v0.models {
6422
5954
 
6423
5955
  export interface PermissionCheck {
6424
5956
  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
- })[];
5957
+ readonly user?: io.flow.v0.unions.ExpandableUser;
5958
+ readonly roles: io.flow.v0.unions.FlowRole[];
6441
5959
  readonly behaviors: io.flow.v0.enums.FlowBehavior[];
6442
5960
  readonly routes: io.flow.v0.models.PermittedRoute[];
6443
5961
  }
@@ -6445,15 +5963,7 @@ namespace io.flow.v0.models {
6445
5963
  export interface PermissionError {
6446
5964
  readonly code: io.flow.v0.enums.GenericErrorCode;
6447
5965
  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
- })[];
5966
+ readonly granting_roles?: io.flow.v0.unions.FlowRole[];
6457
5967
  readonly admin_users?: io.flow.v0.models.User[];
6458
5968
  }
6459
5969
 
@@ -6720,20 +6230,8 @@ namespace io.flow.v0.models {
6720
6230
  }
6721
6231
 
6722
6232
  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)[];
6233
+ readonly applied: io.flow.v0.unions.Promotion[];
6234
+ readonly available: io.flow.v0.unions.Promotion[];
6737
6235
  }
6738
6236
 
6739
6237
  export interface Province {
@@ -6751,41 +6249,17 @@ namespace io.flow.v0.models {
6751
6249
 
6752
6250
  export interface Query {
6753
6251
  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)[];
6252
+ readonly filters: io.flow.v0.unions.QueryFilter[];
6761
6253
  }
6762
6254
 
6763
6255
  export interface QueryBuilder {
6764
6256
  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)[];
6257
+ readonly filters: io.flow.v0.unions.QueryFilter[];
6258
+ readonly available: io.flow.v0.unions.AvailableFilter[];
6779
6259
  }
6780
6260
 
6781
6261
  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)[];
6262
+ readonly filters: io.flow.v0.unions.QueryFilterForm[];
6789
6263
  }
6790
6264
 
6791
6265
  export interface QueryBuilderQueryForm {
@@ -6816,13 +6290,7 @@ namespace io.flow.v0.models {
6816
6290
  export interface Quote {
6817
6291
  readonly id: string;
6818
6292
  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)[];
6293
+ readonly deliveries: io.flow.v0.unions.Delivery[];
6826
6294
  readonly selections: io.flow.v0.models.DeliveryOptionReference[];
6827
6295
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
6828
6296
  readonly delivered_duties: io.flow.v0.enums.DeliveredDuty[];
@@ -6847,7 +6315,7 @@ namespace io.flow.v0.models {
6847
6315
  readonly number: string;
6848
6316
  readonly quantity: number;
6849
6317
  readonly shipment_estimate?: io.flow.v0.models.DatetimeRange;
6850
- readonly price?: io.flow.v0.models.MoneyWithBase;
6318
+ readonly price: io.flow.v0.models.MoneyWithBase;
6851
6319
  readonly attributes?: {
6852
6320
  [key: string]: string;
6853
6321
  };
@@ -6882,6 +6350,13 @@ namespace io.flow.v0.models {
6882
6350
  readonly rate_id: string;
6883
6351
  }
6884
6352
 
6353
+ export interface RateDeletedV3 {
6354
+ readonly event_id: string;
6355
+ readonly timestamp: string;
6356
+ readonly organization: string;
6357
+ readonly rate: io.flow.v0.models.Rate;
6358
+ }
6359
+
6885
6360
  export interface RateForm {
6886
6361
  readonly base: string;
6887
6362
  readonly target: string;
@@ -6899,6 +6374,13 @@ namespace io.flow.v0.models {
6899
6374
  readonly value: number;
6900
6375
  }
6901
6376
 
6377
+ export interface RateUpsertedV3 {
6378
+ readonly event_id: string;
6379
+ readonly timestamp: string;
6380
+ readonly organization: string;
6381
+ readonly rate: io.flow.v0.models.Rate;
6382
+ }
6383
+
6902
6384
  export interface RateVersion {
6903
6385
  readonly id: string;
6904
6386
  readonly timestamp: string;
@@ -6962,25 +6444,7 @@ namespace io.flow.v0.models {
6962
6444
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
6963
6445
  readonly currency: string;
6964
6446
  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)[];
6447
+ readonly fees: io.flow.v0.unions.RatecardFee[];
6984
6448
  readonly total: number;
6985
6449
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
6986
6450
  readonly dimensional_weight?: io.flow.v0.models.Measurement;
@@ -7012,25 +6476,7 @@ namespace io.flow.v0.models {
7012
6476
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
7013
6477
  readonly destination: io.flow.v0.models.Zone;
7014
6478
  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)[];
6479
+ readonly fees: io.flow.v0.unions.RatecardFee[];
7034
6480
  readonly origin: io.flow.v0.models.Zone;
7035
6481
  readonly service: io.flow.v0.models.RatecardServiceSummary;
7036
6482
  readonly rates: io.flow.v0.models.RatecardRate[];
@@ -7053,25 +6499,7 @@ namespace io.flow.v0.models {
7053
6499
  readonly shipment_window: io.flow.v0.models.ShipmentWindow;
7054
6500
  readonly delivered_duty: io.flow.v0.enums.DeliveredDuty;
7055
6501
  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)[];
6502
+ readonly fees: io.flow.v0.unions.RatecardFee[];
7075
6503
  readonly origin: io.flow.v0.models.Zone;
7076
6504
  readonly rounding: io.flow.v0.models.Rounding;
7077
6505
  readonly rates: io.flow.v0.models.RatecardRateForm[];
@@ -7160,9 +6588,7 @@ namespace io.flow.v0.models {
7160
6588
  export interface RedirectAuthorizationDetails {
7161
6589
  readonly id: string;
7162
6590
  readonly payment_redirect_url: string;
7163
- readonly confirmation_details?: {
7164
- discriminator: 'direct_debit';
7165
- } & io.flow.v0.models.DirectDebit;
6591
+ readonly confirmation_details?: io.flow.v0.unions.ConfirmationDetails;
7166
6592
  }
7167
6593
 
7168
6594
  export interface RedirectAuthorizationForm {
@@ -7524,15 +6950,7 @@ namespace io.flow.v0.models {
7524
6950
  readonly method: io.flow.v0.enums.PermittedHttpMethod;
7525
6951
  readonly path: string;
7526
6952
  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
- })[];
6953
+ readonly roles: io.flow.v0.unions.FlowRole[];
7536
6954
  }
7537
6955
 
7538
6956
  export interface RuleDeleted {
@@ -7564,49 +6982,7 @@ namespace io.flow.v0.models {
7564
6982
  readonly hour: number;
7565
6983
  readonly minute: number;
7566
6984
  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)[];
6985
+ readonly types: io.flow.v0.unions.ExportType[];
7610
6986
  readonly last_sent_at?: string;
7611
6987
  }
7612
6988
 
@@ -7616,49 +6992,7 @@ namespace io.flow.v0.models {
7616
6992
  readonly hour: number;
7617
6993
  readonly minute: number;
7618
6994
  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)[];
6995
+ readonly types: io.flow.v0.unions.ExportType[];
7662
6996
  }
7663
6997
 
7664
6998
  export interface ScheduledPickup {
@@ -7967,13 +7301,7 @@ namespace io.flow.v0.models {
7967
7301
  readonly id: string;
7968
7302
  readonly shipping_configuration: io.flow.v0.models.ShippingConfigurationReference;
7969
7303
  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)[];
7304
+ readonly centers: io.flow.v0.unions.ExpandableCenter[];
7977
7305
  readonly tiers: io.flow.v0.models.Tier[];
7978
7306
  readonly query: io.flow.v0.models.Query;
7979
7307
  readonly strategy: io.flow.v0.enums.LaneStrategy;
@@ -8076,6 +7404,7 @@ namespace io.flow.v0.models {
8076
7404
 
8077
7405
  export interface ShopifyCartConversionFlowOrder {
8078
7406
  readonly order: io.flow.v0.models.Order;
7407
+ readonly errors?: io.flow.v0.models.OrderError[];
8079
7408
  }
8080
7409
 
8081
7410
  export interface ShopifyCartConversionShopifyCart {
@@ -8129,16 +7458,7 @@ namespace io.flow.v0.models {
8129
7458
  readonly quantity: number;
8130
7459
  readonly price: io.flow.v0.models.ShopifyPrice;
8131
7460
  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;
7461
+ readonly price_source?: io.flow.v0.unions.PriceSource;
8142
7462
  }
8143
7463
 
8144
7464
  export interface ShopifyLocalCartItemMetadata {
@@ -8190,13 +7510,7 @@ namespace io.flow.v0.models {
8190
7510
  readonly lines: io.flow.v0.models.ShopifyLine[];
8191
7511
  readonly prices: io.flow.v0.models.ShopifyPrice[];
8192
7512
  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)[];
7513
+ readonly allocation_details: io.flow.v0.unions.AllocationDetail[];
8200
7514
  readonly merchant_of_record?: io.flow.v0.enums.OrderMerchantOfRecord;
8201
7515
  readonly merchant_of_record_entity?: io.flow.v0.models.MerchantOfRecordEntity;
8202
7516
  readonly incoterm?: io.flow.v0.enums.Incoterm;
@@ -8290,9 +7604,7 @@ namespace io.flow.v0.models {
8290
7604
  readonly range: io.flow.v0.models.DatetimeRange;
8291
7605
  readonly interval_seconds: number;
8292
7606
  readonly total: number;
8293
- readonly buckets: ({
8294
- discriminator: 'shopify_item_event_bucket';
8295
- } & io.flow.v0.models.ShopifyItemEventBucket)[];
7607
+ readonly buckets: io.flow.v0.unions.ShopifyEventBucket[];
8296
7608
  }
8297
7609
 
8298
7610
  export interface ShopifyVariantFlowMetafield {
@@ -8574,13 +7886,7 @@ namespace io.flow.v0.models {
8574
7886
  readonly name: string;
8575
7887
  readonly rate: number;
8576
7888
  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;
7889
+ readonly deminimis?: io.flow.v0.unions.Deminimis;
8584
7890
  }
8585
7891
 
8586
7892
  export interface TaxRegistration {
@@ -8666,37 +7972,13 @@ namespace io.flow.v0.models {
8666
7972
  readonly id: string;
8667
7973
  readonly position: number;
8668
7974
  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;
7975
+ readonly outcome: io.flow.v0.unions.TierRuleOutcome;
8682
7976
  }
8683
7977
 
8684
7978
  export interface TierRuleForm {
8685
7979
  readonly position?: number;
8686
7980
  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;
7981
+ readonly outcome: io.flow.v0.unions.TierRuleOutcomeForm;
8700
7982
  }
8701
7983
 
8702
7984
  export interface TierRuleVersion {
@@ -9303,6 +8585,12 @@ namespace io.flow.v0.unions {
9303
8585
  | {
9304
8586
  discriminator: 'rate_upserted';
9305
8587
  } & io.flow.v0.models.RateUpserted
8588
+ | {
8589
+ discriminator: 'rate_deleted_v3';
8590
+ } & io.flow.v0.models.RateDeletedV3
8591
+ | {
8592
+ discriminator: 'rate_upserted_v3';
8593
+ } & io.flow.v0.models.RateUpsertedV3
9306
8594
  | {
9307
8595
  discriminator: 'customer_upserted';
9308
8596
  } & io.flow.v0.models.CustomerUpserted
@@ -9579,6 +8867,12 @@ namespace io.flow.v0.unions {
9579
8867
  | {
9580
8868
  discriminator: 'organization_default_configurations_deleted';
9581
8869
  } & io.flow.v0.models.OrganizationDefaultConfigurationsDeleted
8870
+ | {
8871
+ discriminator: 'ecommerce_platform_upserted';
8872
+ } & io.flow.v0.models.EcommercePlatformUpserted
8873
+ | {
8874
+ discriminator: 'ecommerce_platform_deleted';
8875
+ } & io.flow.v0.models.EcommercePlatformDeleted
9582
8876
  | {
9583
8877
  discriminator: 'authorization_deleted_v2';
9584
8878
  } & io.flow.v0.models.AuthorizationDeletedV2
@@ -10364,6 +9658,7 @@ export type CustomerForm = io.flow.v0.models.CustomerForm;
10364
9658
  export type CustomerInvoice = io.flow.v0.models.CustomerInvoice;
10365
9659
  export type CustomerPutForm = io.flow.v0.models.CustomerPutForm;
10366
9660
  export type CustomerReference = io.flow.v0.models.CustomerReference;
9661
+ export type CustomerToken = io.flow.v0.models.CustomerToken;
10367
9662
  export type CustomerUpserted = io.flow.v0.models.CustomerUpserted;
10368
9663
  export type Cvv = io.flow.v0.models.Cvv;
10369
9664
  export type CvvCode = io.flow.v0.enums.CvvCode;
@@ -10418,6 +9713,10 @@ export type DiscountsForm = io.flow.v0.models.DiscountsForm;
10418
9713
  export type Document = io.flow.v0.unions.Document;
10419
9714
  export type Duration = io.flow.v0.models.Duration;
10420
9715
  export type Duty = io.flow.v0.models.Duty;
9716
+ export type EcommercePlatform = io.flow.v0.models.EcommercePlatform;
9717
+ export type EcommercePlatformDeleted = io.flow.v0.models.EcommercePlatformDeleted;
9718
+ export type EcommercePlatformType = io.flow.v0.enums.EcommercePlatformType;
9719
+ export type EcommercePlatformUpserted = io.flow.v0.models.EcommercePlatformUpserted;
10421
9720
  export type EconomicTitleLocation = io.flow.v0.enums.EconomicTitleLocation;
10422
9721
  export type EmailVerification = io.flow.v0.models.EmailVerification;
10423
9722
  export type Environment = io.flow.v0.enums.Environment;
@@ -10930,9 +10229,11 @@ export type QuoteSummary = io.flow.v0.models.QuoteSummary;
10930
10229
  export type QuoteVersion = io.flow.v0.models.QuoteVersion;
10931
10230
  export type Rate = io.flow.v0.models.Rate;
10932
10231
  export type RateDeleted = io.flow.v0.models.RateDeleted;
10232
+ export type RateDeletedV3 = io.flow.v0.models.RateDeletedV3;
10933
10233
  export type RateForm = io.flow.v0.models.RateForm;
10934
10234
  export type RateType = io.flow.v0.enums.RateType;
10935
10235
  export type RateUpserted = io.flow.v0.models.RateUpserted;
10236
+ export type RateUpsertedV3 = io.flow.v0.models.RateUpsertedV3;
10936
10237
  export type RateVersion = io.flow.v0.models.RateVersion;
10937
10238
  export type Ratecard = io.flow.v0.models.Ratecard;
10938
10239
  export type RatecardCarrierSummary = io.flow.v0.models.RatecardCarrierSummary;