@flowio/types 11.19.23 → 11.19.25

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.
@@ -1923,1374 +1923,998 @@ declare namespace io.flow.experience.v0.unions {
1923
1923
  | io.flow.experience.v0.models.Discount;
1924
1924
  }
1925
1925
 
1926
- declare namespace io.flow.ratecard.v0.models {
1927
- interface CrossdockRatecardFee {
1928
- readonly discriminator: 'crossdock_ratecard_fee';
1929
- readonly amount: io.flow.common.v0.models.Money;
1930
- }
1926
+ declare namespace io.flow.error.v0.enums {
1927
+ type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
1928
+ }
1931
1929
 
1932
- interface DdpRatecardFee {
1933
- readonly discriminator: 'ddp_ratecard_fee';
1934
- readonly amount: number;
1930
+ declare namespace io.flow.error.v0.models {
1931
+ interface GenericError {
1932
+ readonly code: io.flow.error.v0.enums.GenericErrorCode;
1933
+ readonly messages: string[];
1935
1934
  }
1935
+ }
1936
1936
 
1937
- interface DimensionEstimate {
1938
- readonly id: string;
1939
- readonly q: string;
1940
- readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
1941
- readonly position: number;
1937
+ declare namespace io.flow.price.v0.enums {
1938
+ type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
1939
+ type LevyStrategy = 'minimum' | 'average' | 'maximum';
1940
+ type PriceAccuracy = 'calculated' | 'estimated_from_partial_destination';
1941
+ type PriceDetailComponentKey =
1942
+ | 'base_price'
1943
+ | 'discount'
1944
+ | 'currency_margin'
1945
+ | 'percent_item_margin'
1946
+ | 'fixed_item_margin'
1947
+ | 'duties_item_price'
1948
+ | 'duties_added_margin'
1949
+ | 'duties_rounding'
1950
+ | 'duties_deminimis'
1951
+ | 'vat_item_price'
1952
+ | 'vat_added_margin'
1953
+ | 'vat_rounding'
1954
+ | 'vat_duties_item_price'
1955
+ | 'vat_duties_added_margin'
1956
+ | 'vat_duties_rounding'
1957
+ | 'vat_deminimis'
1958
+ | 'item_price_percent_sales_margin'
1959
+ | 'margins_percent_sales_margin'
1960
+ | 'rounding_percent_sales_margin'
1961
+ | 'vat_percent_sales_margin'
1962
+ | 'vat_duty_percent_sales_margin'
1963
+ | 'duty_percent_sales_margin';
1964
+ type PriceDetailKey =
1965
+ | 'item_price'
1966
+ | 'margins'
1967
+ | 'vat'
1968
+ | 'duty'
1969
+ | 'rounding'
1970
+ | 'adjustment';
1971
+ type PricingLevySetting = 'included' | 'displayed' | 'ignored';
1972
+ }
1973
+
1974
+ declare namespace io.flow.price.v0.models {
1975
+ interface CurrencyFormat {
1976
+ readonly symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
1977
+ readonly label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
1942
1978
  }
1943
1979
 
1944
- interface DimensionEstimateForm {
1945
- readonly q: string;
1946
- readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
1947
- readonly position?: number;
1980
+ interface DeminimisPerItem {
1981
+ readonly discriminator: 'deminimis_per_item';
1982
+ readonly currency: string;
1983
+ readonly minimum?: number;
1984
+ readonly maximum?: number;
1948
1985
  }
1949
1986
 
1950
- interface DimensionEstimateVersion {
1951
- readonly id: string;
1952
- readonly timestamp: string;
1953
- readonly type: io.flow.common.v0.enums.ChangeType;
1954
- readonly dimension_estimate: io.flow.ratecard.v0.models.DimensionEstimate;
1987
+ interface DeminimisSimple {
1988
+ readonly discriminator: 'deminimis_simple';
1989
+ readonly value?: number;
1990
+ readonly currency: string;
1991
+ readonly components: io.flow.price.v0.enums.LevyComponent[];
1992
+ readonly minimum?: number;
1955
1993
  }
1956
1994
 
1957
- interface DutiesTaxesPaidSurchargeRatecardFee {
1958
- readonly discriminator: 'duties_taxes_paid_surcharge_ratecard_fee';
1959
- readonly amount: io.flow.common.v0.models.Money;
1960
- readonly starts_at?: string;
1961
- readonly ends_at?: string;
1995
+ interface Duty {
1996
+ readonly rate: number;
1997
+ readonly components: io.flow.price.v0.enums.LevyComponent[];
1998
+ readonly deminimis?: io.flow.price.v0.unions.Deminimis;
1999
+ readonly name?: string;
1962
2000
  }
1963
2001
 
1964
- interface DutiesTaxesPaidSurchargeServiceFee {
1965
- readonly discriminator: 'duties_taxes_paid_surcharge_service_fee';
1966
- readonly amount: io.flow.common.v0.models.Money;
1967
- readonly starts_at?: string;
1968
- readonly ends_at?: string;
2002
+ interface LocalPriceDetails {
2003
+ readonly base: io.flow.price.v0.models.PriceDetails;
2004
+ readonly local: io.flow.price.v0.models.PriceDetails;
2005
+ readonly discount?: io.flow.price.v0.models.PriceDetail;
2006
+ readonly local_before_discount?: io.flow.price.v0.models.PriceDetail;
1969
2007
  }
1970
2008
 
1971
- interface EmergencySituationSurchargeRatecardFee {
1972
- readonly discriminator: 'emergency_situation_surcharge_ratecard_fee';
1973
- readonly amount: io.flow.common.v0.models.Money;
2009
+ interface PriceBook {
2010
+ readonly id: string;
2011
+ readonly key: string;
2012
+ readonly currency: string;
2013
+ readonly name: string;
2014
+ readonly includes: io.flow.common.v0.models.IncludedLevies;
2015
+ readonly status: io.flow.common.v0.enums.PriceBookStatus;
1974
2016
  }
1975
2017
 
1976
- interface EmergencySituationSurchargeServiceFee {
1977
- readonly discriminator: 'emergency_situation_surcharge_service_fee';
1978
- readonly amount: io.flow.common.v0.models.Money;
1979
- readonly origin_region?: io.flow.ratecard.v0.models.RatecardRegionReference;
1980
- readonly destination_region?: io.flow.ratecard.v0.models.RatecardRegionReference;
1981
- readonly interval_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
2018
+ interface PriceBookForm {
2019
+ readonly currency: string;
2020
+ readonly name: string;
2021
+ readonly includes: io.flow.common.v0.enums.IncludedLevyKey;
2022
+ readonly status?: io.flow.common.v0.enums.PriceBookStatus;
1982
2023
  }
1983
2024
 
1984
- interface EstimatedDimensions {
1985
- readonly depth: io.flow.common.v0.models.Measurement;
1986
- readonly length: io.flow.common.v0.models.Measurement;
1987
- readonly weight: io.flow.common.v0.models.Measurement;
1988
- readonly width: io.flow.common.v0.models.Measurement;
2025
+ interface PriceBookItem {
2026
+ readonly id: string;
2027
+ readonly key: string;
2028
+ readonly price_book: io.flow.price.v0.models.PriceBookReference;
2029
+ readonly price: io.flow.common.v0.models.Price;
2030
+ readonly item_number: string;
2031
+ readonly schedule: io.flow.price.v0.models.PriceBookItemSchedule;
2032
+ readonly item_attributes?: Record<string, string>;
1989
2033
  }
1990
2034
 
1991
- interface FeeWeight {
1992
- readonly weight: number;
1993
- readonly unit: io.flow.common.v0.enums.UnitOfMeasurement;
2035
+ interface PriceBookItemForm {
2036
+ readonly price_book_key: string;
2037
+ readonly item_number: string;
2038
+ readonly amount: number;
2039
+ readonly schedule?: io.flow.price.v0.models.PriceBookItemSchedule;
2040
+ readonly item_attributes?: Record<string, string>;
1994
2041
  }
1995
2042
 
1996
- interface FuelSurchargeRatecardFee {
1997
- readonly discriminator: 'fuel_surcharge_ratecard_fee';
1998
- readonly amount: io.flow.common.v0.models.Money;
2043
+ interface PriceBookItemQueryForm {
2044
+ readonly price_book_key: string;
2045
+ readonly item_query: string;
2046
+ readonly amount: number;
2047
+ readonly schedule?: io.flow.price.v0.models.PriceBookItemSchedule;
2048
+ readonly item_attributes?: Record<string, string>;
1999
2049
  }
2000
2050
 
2001
- interface FuelSurchargeServiceFee {
2002
- readonly discriminator: 'fuel_surcharge_service_fee';
2003
- readonly percent: number;
2051
+ interface PriceBookItemSchedule {
2052
+ readonly starts_at: string;
2053
+ readonly ends_at?: string;
2004
2054
  }
2005
2055
 
2006
- interface Hop {
2007
- readonly hop_number: number;
2008
- readonly hop_estimate: io.flow.ratecard.v0.models.HopEstimate;
2056
+ interface PriceBookReference {
2057
+ readonly id: string;
2058
+ readonly key: string;
2009
2059
  }
2010
2060
 
2011
- interface HopEstimate {
2012
- readonly origin_address: io.flow.fulfillment.v0.models.ShippingAddress;
2013
- readonly destination_address: io.flow.fulfillment.v0.models.ShippingAddress;
2014
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
2015
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2016
- readonly currency: string;
2017
- readonly amount: number;
2018
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
2019
- readonly total: number;
2061
+ interface PriceCheck {
2062
+ readonly display: io.flow.price.v0.models.LocalPriceDetails;
2063
+ readonly final: io.flow.price.v0.models.LocalPriceDetails;
2020
2064
  }
2021
2065
 
2022
- interface OversizedShipmentRatecardFee {
2023
- readonly discriminator: 'oversized_shipment_ratecard_fee';
2024
- readonly weight_threshold: number;
2025
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2026
- readonly margin?: number;
2027
- readonly amount?: number;
2066
+ interface PriceDetail {
2067
+ readonly key: io.flow.price.v0.enums.PriceDetailKey;
2068
+ readonly components: io.flow.price.v0.models.PriceDetailComponent[];
2069
+ readonly amount: number;
2070
+ readonly label: string;
2071
+ readonly name?: string;
2072
+ readonly basis?: number;
2028
2073
  }
2029
2074
 
2030
- interface PeakSurchargeByWeightServiceFee {
2031
- readonly discriminator: 'peak_surcharge_by_weight_service_fee';
2032
- readonly amount: io.flow.common.v0.models.Money;
2033
- readonly weight: io.flow.ratecard.v0.models.FeeWeight;
2034
- readonly regions?: string[];
2035
- readonly starts_at?: string;
2036
- readonly ends_at?: string;
2075
+ interface PriceDetailComponent {
2076
+ readonly key: io.flow.price.v0.enums.PriceDetailComponentKey;
2077
+ readonly amount: number;
2078
+ readonly label: string;
2079
+ readonly name?: string;
2037
2080
  }
2038
2081
 
2039
- interface PeakSurchargeRatecardFee {
2040
- readonly discriminator: 'peak_surcharge_ratecard_fee';
2041
- readonly amount: io.flow.common.v0.models.Money;
2042
- readonly starts_at?: string;
2043
- readonly ends_at?: string;
2082
+ interface PriceDetails {
2083
+ readonly currency: string;
2084
+ readonly item_price: io.flow.price.v0.models.PriceDetail;
2085
+ readonly margins: io.flow.price.v0.models.PriceDetail;
2086
+ readonly vat: io.flow.price.v0.models.PriceDetail;
2087
+ readonly duty: io.flow.price.v0.models.PriceDetail;
2088
+ readonly rounding: io.flow.price.v0.models.PriceDetail;
2089
+ readonly price: io.flow.common.v0.models.Price;
2090
+ readonly total: io.flow.common.v0.models.Price;
2091
+ readonly adjustment?: io.flow.price.v0.models.PriceDetail;
2044
2092
  }
2045
2093
 
2046
- interface PeakSurchargeServiceFee {
2047
- readonly discriminator: 'peak_surcharge_service_fee';
2048
- readonly amount: io.flow.common.v0.models.Money;
2049
- readonly starts_at?: string;
2050
- readonly ends_at?: string;
2094
+ interface PriceEquation {
2095
+ readonly contracted_rate: number;
2096
+ readonly rate: number;
2097
+ readonly pricing: io.flow.price.v0.models.Pricing;
2098
+ readonly base_price: number;
2099
+ readonly discount: number;
2100
+ readonly fixed_margin: number;
2101
+ readonly percent_margin: number;
2102
+ readonly insurance: number;
2103
+ readonly freight: number;
2104
+ readonly duty?: io.flow.price.v0.models.Duty;
2105
+ readonly tax?: io.flow.price.v0.models.Tax;
2106
+ readonly percent_sales_margin: number;
2051
2107
  }
2052
2108
 
2053
- interface Ratecard {
2054
- readonly id: string;
2055
- readonly number: string;
2056
- readonly direction: io.flow.label.v0.enums.Direction;
2057
- readonly effective_at: string;
2058
- readonly origination_zones: io.flow.common.v0.models.Zone[];
2059
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
2060
- readonly published_at?: string;
2061
- readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
2109
+ interface Pricing {
2110
+ readonly vat: io.flow.price.v0.enums.PricingLevySetting;
2111
+ readonly duty: io.flow.price.v0.enums.PricingLevySetting;
2112
+ readonly rounding?: io.flow.common.v0.models.Rounding;
2062
2113
  }
2063
2114
 
2064
- interface RatecardCarrierSummary {
2065
- readonly id: string;
2115
+ interface Tax {
2066
2116
  readonly name: string;
2117
+ readonly rate: number;
2118
+ readonly components: io.flow.price.v0.enums.LevyComponent[];
2119
+ readonly deminimis?: io.flow.price.v0.unions.Deminimis;
2067
2120
  }
2121
+ }
2068
2122
 
2069
- interface RatecardEstimateFormV1 {
2070
- readonly discriminator: 'ratecard_estimate_form_v1';
2071
- readonly origin?: string;
2072
- readonly destination?: string;
2073
- readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
2074
- readonly distance_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
2075
- readonly service?: string;
2076
- readonly weight?: number;
2077
- readonly length?: number;
2078
- readonly width?: number;
2079
- readonly depth?: number;
2080
- readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
2081
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2082
- }
2123
+ declare namespace io.flow.price.v0.unions {
2124
+ type Deminimis =
2125
+ | io.flow.price.v0.models.DeminimisSimple
2126
+ | io.flow.price.v0.models.DeminimisPerItem;
2127
+ }
2083
2128
 
2084
- interface RatecardEstimateFormV2 {
2085
- readonly discriminator: 'ratecard_estimate_form_v2';
2086
- readonly origin_address: io.flow.common.v0.models.Address;
2087
- readonly destination_address: io.flow.common.v0.models.Address;
2088
- readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
2089
- readonly distance_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
2090
- readonly service?: string;
2091
- readonly weight?: number;
2092
- readonly length?: number;
2093
- readonly width?: number;
2094
- readonly depth?: number;
2095
- readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
2096
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2097
- readonly center_id?: string;
2129
+ declare namespace io.flow.reference.v0.enums {
2130
+ type PaymentMethodCapability = 'credit' | 'debit';
2131
+ type PaymentMethodType = 'card' | 'online' | 'offline';
2132
+ type PostalType = 'eircode' | 'pin' | 'postal' | 'zip';
2133
+ type ProvinceType =
2134
+ | 'area'
2135
+ | 'city'
2136
+ | 'county'
2137
+ | 'department'
2138
+ | 'dependency'
2139
+ | 'district'
2140
+ | 'do_si'
2141
+ | 'emirate'
2142
+ | 'entity'
2143
+ | 'island'
2144
+ | 'municipality'
2145
+ | 'oblast'
2146
+ | 'outlying_area'
2147
+ | 'parish'
2148
+ | 'prefecture'
2149
+ | 'province'
2150
+ | 'state'
2151
+ | 'territory'
2152
+ | 'other';
2153
+ }
2154
+
2155
+ declare namespace io.flow.reference.v0.models {
2156
+ interface Carrier {
2157
+ readonly id: string;
2158
+ readonly name: string;
2159
+ readonly tracking_url: string;
2098
2160
  }
2099
2161
 
2100
- interface RatecardEstimateSummaryForm {
2101
- readonly origin?: string;
2102
- readonly destination?: string;
2103
- readonly service?: string;
2104
- readonly center_key?: string;
2162
+ interface CarrierService {
2163
+ readonly id: string;
2164
+ readonly carrier: io.flow.reference.v0.models.Carrier;
2165
+ readonly name: string;
2105
2166
  }
2106
2167
 
2107
- interface RatecardEstimateV1 {
2108
- readonly discriminator: 'ratecard_estimate_v1';
2109
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
2110
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2111
- readonly currency: string;
2112
- readonly amount: number;
2113
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
2114
- readonly total: number;
2115
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2116
- readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
2117
- readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
2118
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2168
+ interface Country {
2169
+ readonly name: string;
2170
+ readonly iso_3166_2: string;
2171
+ readonly iso_3166_3: string;
2172
+ readonly languages: string[];
2173
+ readonly measurement_system: string;
2174
+ readonly default_currency?: string;
2175
+ readonly default_language?: string;
2176
+ readonly timezones: string[];
2177
+ readonly default_delivered_duty?: string;
2119
2178
  }
2120
2179
 
2121
- interface RatecardEstimateV2 {
2122
- readonly discriminator: 'ratecard_estimate_v2';
2123
- readonly hops: io.flow.ratecard.v0.models.Hop[];
2124
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2125
- readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
2126
- readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
2127
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2128
- readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
2180
+ interface Currency {
2181
+ readonly name: string;
2182
+ readonly iso_4217_3: string;
2183
+ readonly number_decimals: number;
2184
+ readonly symbols?: io.flow.reference.v0.models.CurrencySymbols;
2185
+ readonly default_locale?: string;
2129
2186
  }
2130
2187
 
2131
- interface RatecardEstimateV3 {
2132
- readonly discriminator: 'ratecard_estimate_v3';
2133
- readonly hops: io.flow.ratecard.v0.models.Hop[];
2134
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2135
- readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
2136
- readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
2137
- readonly line_items?: io.flow.common.v0.models.LineItemForm[];
2138
- readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
2188
+ interface CurrencySymbols {
2189
+ readonly primary: string;
2190
+ readonly narrow?: string;
2139
2191
  }
2140
2192
 
2141
- interface RatecardForm {
2142
- readonly direction: io.flow.label.v0.enums.Direction;
2143
- readonly effective_at: string;
2144
- readonly origination_zones: io.flow.common.v0.models.Zone[];
2145
- readonly service: string;
2146
- readonly number?: string;
2147
- readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
2193
+ interface Language {
2194
+ readonly name: string;
2195
+ readonly iso_639_2: string;
2148
2196
  }
2149
2197
 
2150
- interface RatecardLane {
2198
+ interface Locale {
2151
2199
  readonly id: string;
2152
- readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
2153
- readonly currency: string;
2154
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2155
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2156
- readonly destination: io.flow.common.v0.models.Zone;
2157
- readonly dim_factor: number;
2158
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
2159
- readonly origin: io.flow.common.v0.models.Zone;
2160
- readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
2161
- readonly rates: io.flow.ratecard.v0.models.RatecardRate[];
2162
- readonly rounding: io.flow.common.v0.models.Rounding;
2163
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2164
- readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2200
+ readonly name: string;
2201
+ readonly country: string;
2202
+ readonly language: string;
2203
+ readonly numbers: io.flow.reference.v0.models.LocaleNumbers;
2165
2204
  }
2166
2205
 
2167
- interface RatecardLaneForm {
2168
- readonly ratecard_id: string;
2169
- readonly currency: string;
2170
- readonly destination: io.flow.common.v0.models.Zone;
2171
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2172
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2173
- readonly dim_factor: number;
2174
- readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
2175
- readonly origin: io.flow.common.v0.models.Zone;
2176
- readonly rounding: io.flow.common.v0.models.Rounding;
2177
- readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
2178
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2179
- readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2206
+ interface LocaleNumbers {
2207
+ readonly decimal: string;
2208
+ readonly group: string;
2180
2209
  }
2181
2210
 
2182
- interface RatecardLaneImportForm {
2183
- readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
2184
- readonly service: string;
2185
- readonly currency: string;
2186
- readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
2187
- readonly origin: io.flow.common.v0.models.Zone;
2188
- readonly destination: io.flow.common.v0.models.Zone;
2189
- readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
2190
- readonly dim_factor: number;
2191
- readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2192
- readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
2193
- readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
2211
+ interface LocalizedTranslation {
2212
+ readonly locale: io.flow.reference.v0.models.Locale;
2213
+ readonly name: string;
2194
2214
  }
2195
2215
 
2196
- interface RatecardLaneVersion {
2216
+ interface PaymentMethod {
2197
2217
  readonly id: string;
2198
- readonly timestamp: string;
2199
- readonly type: io.flow.common.v0.enums.ChangeType;
2200
- readonly ratecard_lane: io.flow.ratecard.v0.models.RatecardLane;
2218
+ readonly type: io.flow.reference.v0.enums.PaymentMethodType;
2219
+ readonly name: string;
2220
+ readonly images: io.flow.reference.v0.models.PaymentMethodImages;
2221
+ readonly regions: string[];
2222
+ readonly capabilities?: io.flow.reference.v0.enums.PaymentMethodCapability[];
2201
2223
  }
2202
2224
 
2203
- interface RatecardLanesImportRequestData {
2204
- readonly id: string;
2205
- readonly source_url: string;
2206
- readonly filename?: string;
2225
+ interface PaymentMethodImage {
2226
+ readonly url: string;
2227
+ readonly width: number;
2228
+ readonly height: number;
2207
2229
  }
2208
2230
 
2209
- interface RatecardRate {
2210
- readonly id: string;
2211
- readonly amount: number;
2212
- readonly weight: number;
2231
+ interface PaymentMethodImages {
2232
+ readonly small: io.flow.reference.v0.models.PaymentMethodImage;
2233
+ readonly medium: io.flow.reference.v0.models.PaymentMethodImage;
2234
+ readonly large: io.flow.reference.v0.models.PaymentMethodImage;
2213
2235
  }
2214
2236
 
2215
- interface RatecardRateForm {
2216
- readonly amount: number;
2217
- readonly weight: number;
2237
+ interface Province {
2238
+ readonly id: string;
2239
+ readonly iso_3166_2: string;
2240
+ readonly name: string;
2241
+ readonly country: string;
2242
+ readonly province_type: io.flow.reference.v0.enums.ProvinceType;
2243
+ readonly translations?: io.flow.reference.v0.models.LocalizedTranslation[];
2218
2244
  }
2219
2245
 
2220
- interface RatecardRateVersion {
2246
+ interface Region {
2221
2247
  readonly id: string;
2222
- readonly timestamp: string;
2223
- readonly type: io.flow.common.v0.enums.ChangeType;
2224
- readonly ratecard_rate: io.flow.ratecard.v0.models.RatecardRate;
2248
+ readonly name: string;
2249
+ readonly countries: string[];
2250
+ readonly currencies: string[];
2251
+ readonly languages: string[];
2252
+ readonly measurement_systems: string[];
2253
+ readonly timezones: string[];
2225
2254
  }
2226
2255
 
2227
- interface RatecardReference {
2228
- readonly id: string;
2256
+ interface Timezone {
2257
+ readonly name: string;
2258
+ readonly description: string;
2259
+ readonly offset: number;
2229
2260
  }
2261
+ }
2230
2262
 
2231
- interface RatecardRegionReference {
2263
+ declare namespace io.flow.tracking.v0.enums {
2264
+ type TrackingStatus =
2265
+ | 'label_created'
2266
+ | 'pending'
2267
+ | 'info_received'
2268
+ | 'picked_up'
2269
+ | 'in_transit'
2270
+ | 'out_for_delivery'
2271
+ | 'attempt_fail'
2272
+ | 'delivered'
2273
+ | 'exception'
2274
+ | 'returned'
2275
+ | 'expired';
2276
+ }
2277
+
2278
+ declare namespace io.flow.tracking.v0.models {
2279
+ interface Tracking {
2232
2280
  readonly id: string;
2281
+ readonly labels: io.flow.tracking.v0.models.TrackingLabel[];
2282
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2283
+ readonly attributes: Record<string, string>;
2284
+ readonly url: string;
2285
+ readonly window?: io.flow.common.v0.models.DatetimeRange;
2286
+ readonly order_number?: string;
2233
2287
  }
2234
2288
 
2235
- interface RatecardServiceSummary {
2289
+ interface TrackingEvent {
2236
2290
  readonly id: string;
2237
- readonly name: string;
2238
- readonly carrier: io.flow.ratecard.v0.models.RatecardCarrierSummary;
2291
+ readonly address: io.flow.common.v0.models.Address;
2292
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2293
+ readonly timestamp: string;
2294
+ readonly description?: string;
2239
2295
  }
2240
2296
 
2241
- interface RatecardSummary {
2297
+ interface TrackingEventForm {
2298
+ readonly tracking_label_id: string;
2299
+ readonly timestamp: string;
2300
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2301
+ readonly description?: string;
2302
+ readonly address?: string;
2303
+ }
2304
+
2305
+ interface TrackingEventSummary {
2242
2306
  readonly id: string;
2243
- readonly number: string;
2244
- readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
2307
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2308
+ readonly timestamp: string;
2245
2309
  }
2246
2310
 
2247
- interface RatecardVersion {
2311
+ interface TrackingEventVersion {
2248
2312
  readonly id: string;
2249
2313
  readonly timestamp: string;
2250
2314
  readonly type: io.flow.common.v0.enums.ChangeType;
2251
- readonly ratecard: io.flow.ratecard.v0.models.Ratecard;
2315
+ readonly tracking_event: io.flow.tracking.v0.models.TrackingEventSummary;
2252
2316
  }
2253
2317
 
2254
- interface RemoteAreaRatecardFee {
2255
- readonly discriminator: 'remote_area_ratecard_fee';
2256
- readonly amount: io.flow.common.v0.models.Money;
2318
+ interface TrackingForm {
2319
+ readonly status?: io.flow.tracking.v0.enums.TrackingStatus;
2320
+ readonly order_number?: string;
2321
+ readonly attributes?: Record<string, string>;
2322
+ readonly window?: io.flow.common.v0.models.DatetimeRange;
2257
2323
  }
2258
2324
 
2259
- interface RemoteAreaServiceFee {
2260
- readonly discriminator: 'remote_area_service_fee';
2261
- readonly amount: io.flow.common.v0.models.Money;
2325
+ interface TrackingLabel {
2326
+ readonly id: string;
2327
+ readonly carrier: string;
2328
+ readonly carrier_tracking_number: string;
2329
+ readonly events: io.flow.tracking.v0.models.TrackingEvent[];
2330
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2331
+ readonly timestamp: string;
2332
+ readonly delivery_estimate?: string;
2333
+ readonly description?: string;
2262
2334
  }
2263
2335
 
2264
- interface ReturnPackageRatecardFee {
2265
- readonly discriminator: 'return_package_ratecard_fee';
2266
- readonly amount: number;
2336
+ interface TrackingLabelForm {
2337
+ readonly tracking_id: string;
2338
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2339
+ readonly carrier: string;
2340
+ readonly carrier_tracking_number: string;
2341
+ readonly delivery_estimate?: string;
2342
+ readonly description?: string;
2343
+ readonly timestamp?: string;
2344
+ readonly parent_id?: string;
2267
2345
  }
2268
2346
 
2269
- interface ShipmentWindow {
2270
- readonly from: number;
2271
- readonly to: number;
2347
+ interface TrackingLabelSummary {
2348
+ readonly id: string;
2349
+ readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
2350
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2351
+ readonly carrier: string;
2352
+ readonly tracking_number: string;
2272
2353
  }
2273
- }
2274
-
2275
- declare namespace io.flow.ratecard.v0.unions {
2276
- type RatecardEstimate =
2277
- | io.flow.ratecard.v0.models.RatecardEstimateV1
2278
- | io.flow.ratecard.v0.models.RatecardEstimateV2
2279
- | io.flow.ratecard.v0.models.RatecardEstimateV3;
2280
- type RatecardEstimateForm =
2281
- | io.flow.ratecard.v0.models.RatecardEstimateFormV1
2282
- | io.flow.ratecard.v0.models.RatecardEstimateFormV2;
2283
- type RatecardFee =
2284
- | io.flow.ratecard.v0.models.DdpRatecardFee
2285
- | io.flow.ratecard.v0.models.FuelSurchargeRatecardFee
2286
- | io.flow.ratecard.v0.models.OversizedShipmentRatecardFee
2287
- | io.flow.ratecard.v0.models.ReturnPackageRatecardFee
2288
- | io.flow.ratecard.v0.models.CrossdockRatecardFee
2289
- | io.flow.ratecard.v0.models.RemoteAreaRatecardFee
2290
- | io.flow.ratecard.v0.models.EmergencySituationSurchargeRatecardFee
2291
- | io.flow.ratecard.v0.models.PeakSurchargeRatecardFee
2292
- | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeRatecardFee;
2293
- type ServiceFee =
2294
- | io.flow.ratecard.v0.models.FuelSurchargeServiceFee
2295
- | io.flow.ratecard.v0.models.RemoteAreaServiceFee
2296
- | io.flow.ratecard.v0.models.EmergencySituationSurchargeServiceFee
2297
- | io.flow.ratecard.v0.models.PeakSurchargeServiceFee
2298
- | io.flow.ratecard.v0.models.PeakSurchargeByWeightServiceFee
2299
- | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeServiceFee;
2300
- }
2301
-
2302
- declare namespace io.flow.error.v0.enums {
2303
- type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
2304
- }
2305
2354
 
2306
- declare namespace io.flow.error.v0.models {
2307
- interface GenericError {
2308
- readonly code: io.flow.error.v0.enums.GenericErrorCode;
2309
- readonly messages: string[];
2355
+ interface TrackingLabelVersion {
2356
+ readonly id: string;
2357
+ readonly timestamp: string;
2358
+ readonly type: io.flow.common.v0.enums.ChangeType;
2359
+ readonly tracking_label: io.flow.tracking.v0.models.TrackingLabelSummary;
2310
2360
  }
2311
- }
2312
-
2313
- declare namespace io.flow.price.v0.enums {
2314
- type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
2315
- type LevyStrategy = 'minimum' | 'average' | 'maximum';
2316
- type PriceAccuracy = 'calculated' | 'estimated_from_partial_destination';
2317
- type PriceDetailComponentKey =
2318
- | 'base_price'
2319
- | 'discount'
2320
- | 'currency_margin'
2321
- | 'percent_item_margin'
2322
- | 'fixed_item_margin'
2323
- | 'duties_item_price'
2324
- | 'duties_added_margin'
2325
- | 'duties_rounding'
2326
- | 'duties_deminimis'
2327
- | 'vat_item_price'
2328
- | 'vat_added_margin'
2329
- | 'vat_rounding'
2330
- | 'vat_duties_item_price'
2331
- | 'vat_duties_added_margin'
2332
- | 'vat_duties_rounding'
2333
- | 'vat_deminimis'
2334
- | 'item_price_percent_sales_margin'
2335
- | 'margins_percent_sales_margin'
2336
- | 'rounding_percent_sales_margin'
2337
- | 'vat_percent_sales_margin'
2338
- | 'vat_duty_percent_sales_margin'
2339
- | 'duty_percent_sales_margin';
2340
- type PriceDetailKey =
2341
- | 'item_price'
2342
- | 'margins'
2343
- | 'vat'
2344
- | 'duty'
2345
- | 'rounding'
2346
- | 'adjustment';
2347
- type PricingLevySetting = 'included' | 'displayed' | 'ignored';
2348
- }
2349
2361
 
2350
- declare namespace io.flow.price.v0.models {
2351
- interface CurrencyFormat {
2352
- readonly symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
2353
- readonly label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
2362
+ interface TrackingSummary {
2363
+ readonly id: string;
2364
+ readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2365
+ readonly order_number?: string;
2354
2366
  }
2355
2367
 
2356
- interface DeminimisPerItem {
2357
- readonly discriminator: 'deminimis_per_item';
2358
- readonly currency: string;
2359
- readonly minimum?: number;
2360
- readonly maximum?: number;
2368
+ interface TrackingVersion {
2369
+ readonly id: string;
2370
+ readonly timestamp: string;
2371
+ readonly type: io.flow.common.v0.enums.ChangeType;
2372
+ readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
2361
2373
  }
2374
+ }
2362
2375
 
2363
- interface DeminimisSimple {
2364
- readonly discriminator: 'deminimis_simple';
2365
- readonly value?: number;
2366
- readonly currency: string;
2367
- readonly components: io.flow.price.v0.enums.LevyComponent[];
2368
- readonly minimum?: number;
2369
- }
2376
+ declare namespace io.flow.RESERVED_WORD_export.v0.enums {
2377
+ type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
2378
+ type ItemIdentifier = 'item_number' | 'sku';
2379
+ }
2370
2380
 
2371
- interface Duty {
2372
- readonly rate: number;
2373
- readonly components: io.flow.price.v0.enums.LevyComponent[];
2374
- readonly deminimis?: io.flow.price.v0.unions.Deminimis;
2375
- readonly name?: string;
2381
+ declare namespace io.flow.RESERVED_WORD_export.v0.models {
2382
+ interface AccountOrdersExportType {
2383
+ readonly discriminator: 'account_orders_export_type';
2384
+ readonly statement_id?: string;
2385
+ readonly transaction_summary_id?: string;
2386
+ readonly transaction_created_from?: string;
2387
+ readonly transaction_created_to?: string;
2388
+ readonly transaction_created_on_or_after?: string;
2389
+ readonly transaction_created_after?: string;
2390
+ readonly transaction_created_on_or_before?: string;
2391
+ readonly transaction_created_before?: string;
2392
+ readonly transaction_posted_from?: string;
2393
+ readonly transaction_posted_to?: string;
2394
+ readonly transaction_posted_on_or_after?: string;
2395
+ readonly transaction_posted_after?: string;
2396
+ readonly transaction_posted_on_or_before?: string;
2397
+ readonly transaction_posted_before?: string;
2376
2398
  }
2377
2399
 
2378
- interface LocalPriceDetails {
2379
- readonly base: io.flow.price.v0.models.PriceDetails;
2380
- readonly local: io.flow.price.v0.models.PriceDetails;
2381
- readonly discount?: io.flow.price.v0.models.PriceDetail;
2382
- readonly local_before_discount?: io.flow.price.v0.models.PriceDetail;
2400
+ interface AccountTransactionsExportType {
2401
+ readonly discriminator: 'account_transactions_export_type';
2402
+ readonly statement_id?: string;
2403
+ readonly transaction_summary_id?: string;
2404
+ readonly created_from?: string;
2405
+ readonly created_to?: string;
2406
+ readonly created_on_or_after?: string;
2407
+ readonly created_after?: string;
2408
+ readonly created_on_or_before?: string;
2409
+ readonly created_before?: string;
2410
+ readonly posted_from?: string;
2411
+ readonly posted_to?: string;
2412
+ readonly posted_on_or_after?: string;
2413
+ readonly posted_after?: string;
2414
+ readonly posted_on_or_before?: string;
2415
+ readonly posted_before?: string;
2383
2416
  }
2384
2417
 
2385
- interface PriceBook {
2386
- readonly id: string;
2387
- readonly key: string;
2388
- readonly currency: string;
2389
- readonly name: string;
2390
- readonly includes: io.flow.common.v0.models.IncludedLevies;
2391
- readonly status: io.flow.common.v0.enums.PriceBookStatus;
2418
+ interface AnalyticsExportType {
2419
+ readonly discriminator: 'analytics_export_type';
2420
+ readonly from?: string;
2421
+ readonly to?: string;
2422
+ readonly region?: string;
2423
+ readonly interval?: io.flow.common.v0.enums.UnitOfTime;
2392
2424
  }
2393
2425
 
2394
- interface PriceBookForm {
2395
- readonly currency: string;
2396
- readonly name: string;
2397
- readonly includes: io.flow.common.v0.enums.IncludedLevyKey;
2398
- readonly status?: io.flow.common.v0.enums.PriceBookStatus;
2426
+ interface CatalogItemExportType {
2427
+ readonly discriminator: 'catalog_item_export_type';
2428
+ readonly numbers?: string[];
2429
+ readonly q?: string;
2430
+ readonly sort?: string;
2399
2431
  }
2400
2432
 
2401
- interface PriceBookItem {
2402
- readonly id: string;
2403
- readonly key: string;
2404
- readonly price_book: io.flow.price.v0.models.PriceBookReference;
2405
- readonly price: io.flow.common.v0.models.Price;
2433
+ interface CsvPriceBookItemExportRowByItemNumber {
2406
2434
  readonly item_number: string;
2407
- readonly schedule: io.flow.price.v0.models.PriceBookItemSchedule;
2408
- readonly item_attributes?: Record<string, string>;
2409
- }
2410
-
2411
- interface PriceBookItemForm {
2412
2435
  readonly price_book_key: string;
2413
- readonly item_number: string;
2436
+ readonly price_book_item_key: string;
2437
+ readonly item_name: string;
2414
2438
  readonly amount: number;
2415
- readonly schedule?: io.flow.price.v0.models.PriceBookItemSchedule;
2416
2439
  readonly item_attributes?: Record<string, string>;
2440
+ readonly schedule: io.flow.price.v0.models.PriceBookItemSchedule;
2417
2441
  }
2418
2442
 
2419
- interface PriceBookItemQueryForm {
2443
+ interface CsvPriceBookItemExportRowBySku {
2444
+ readonly sku: string;
2420
2445
  readonly price_book_key: string;
2421
- readonly item_query: string;
2446
+ readonly price_book_item_key: string;
2447
+ readonly item_name: string;
2422
2448
  readonly amount: number;
2423
- readonly schedule?: io.flow.price.v0.models.PriceBookItemSchedule;
2424
2449
  readonly item_attributes?: Record<string, string>;
2450
+ readonly schedule: io.flow.price.v0.models.PriceBookItemSchedule;
2425
2451
  }
2426
2452
 
2427
- interface PriceBookItemSchedule {
2428
- readonly starts_at: string;
2429
- readonly ends_at?: string;
2430
- }
2431
-
2432
- interface PriceBookReference {
2433
- readonly id: string;
2434
- readonly key: string;
2453
+ interface ExclusionRulesExportType {
2454
+ readonly discriminator: 'exclusion_rules_export_type';
2455
+ readonly states?: io.flow.catalog.exclusion.v0.enums.ExclusionRuleState[];
2456
+ readonly sort?: string;
2435
2457
  }
2436
2458
 
2437
- interface PriceCheck {
2438
- readonly display: io.flow.price.v0.models.LocalPriceDetails;
2439
- readonly final: io.flow.price.v0.models.LocalPriceDetails;
2459
+ interface ExperienceExportType {
2460
+ readonly discriminator: 'experience_export_type';
2461
+ readonly organization_id: string;
2462
+ readonly ids?: string[];
2463
+ readonly keys?: string[];
2440
2464
  }
2441
2465
 
2442
- interface PriceDetail {
2443
- readonly key: io.flow.price.v0.enums.PriceDetailKey;
2444
- readonly components: io.flow.price.v0.models.PriceDetailComponent[];
2445
- readonly amount: number;
2446
- readonly label: string;
2447
- readonly name?: string;
2448
- readonly basis?: number;
2466
+ interface Export {
2467
+ readonly id: string;
2468
+ readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
2469
+ readonly status: io.flow.RESERVED_WORD_export.v0.enums.ExportStatus;
2470
+ readonly organization_q: string;
2471
+ readonly created_at: string;
2472
+ readonly started_at?: string;
2473
+ readonly completed_at?: string;
2474
+ readonly url?: string;
2475
+ readonly deliveries: io.flow.RESERVED_WORD_export.v0.unions.ExportDelivery[];
2449
2476
  }
2450
2477
 
2451
- interface PriceDetailComponent {
2452
- readonly key: io.flow.price.v0.enums.PriceDetailComponentKey;
2453
- readonly amount: number;
2454
- readonly label: string;
2455
- readonly name?: string;
2478
+ interface ExportDeliveryEmail {
2479
+ readonly discriminator: 'export_delivery_email';
2480
+ readonly email: string;
2456
2481
  }
2457
2482
 
2458
- interface PriceDetails {
2459
- readonly currency: string;
2460
- readonly item_price: io.flow.price.v0.models.PriceDetail;
2461
- readonly margins: io.flow.price.v0.models.PriceDetail;
2462
- readonly vat: io.flow.price.v0.models.PriceDetail;
2463
- readonly duty: io.flow.price.v0.models.PriceDetail;
2464
- readonly rounding: io.flow.price.v0.models.PriceDetail;
2465
- readonly price: io.flow.common.v0.models.Price;
2466
- readonly total: io.flow.common.v0.models.Price;
2467
- readonly adjustment?: io.flow.price.v0.models.PriceDetail;
2483
+ interface ExportForm {
2484
+ readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
2485
+ readonly emails?: string[];
2486
+ readonly organization_q?: string;
2468
2487
  }
2469
2488
 
2470
- interface PriceEquation {
2471
- readonly contracted_rate: number;
2472
- readonly rate: number;
2473
- readonly pricing: io.flow.price.v0.models.Pricing;
2474
- readonly base_price: number;
2475
- readonly discount: number;
2476
- readonly fixed_margin: number;
2477
- readonly percent_margin: number;
2478
- readonly insurance: number;
2479
- readonly freight: number;
2480
- readonly duty?: io.flow.price.v0.models.Duty;
2481
- readonly tax?: io.flow.price.v0.models.Tax;
2482
- readonly percent_sales_margin: number;
2489
+ interface ExportLocalizedItemPrices {
2490
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
2491
+ readonly experience: io.flow.common.v0.models.ExperienceSummary;
2492
+ readonly item: io.flow.common.v0.models.CatalogItemReference;
2493
+ readonly prices: io.flow.RESERVED_WORD_export.v0.models.ExportLocalizedItemPricesDetail;
2494
+ readonly status?: io.flow.catalog.v0.enums.SubcatalogItemStatus;
2495
+ readonly rates?: io.flow.currency.v0.models.Rate[];
2483
2496
  }
2484
2497
 
2485
- interface Pricing {
2486
- readonly vat: io.flow.price.v0.enums.PricingLevySetting;
2487
- readonly duty: io.flow.price.v0.enums.PricingLevySetting;
2488
- readonly rounding?: io.flow.common.v0.models.Rounding;
2498
+ interface ExportLocalizedItemPricesDetail {
2499
+ readonly item: io.flow.catalog.v0.models.LocalizedItemPrice;
2500
+ readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
2501
+ readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
2502
+ readonly price_attributes: Record<
2503
+ string,
2504
+ io.flow.common.v0.models.PriceWithBase
2505
+ >;
2489
2506
  }
2490
2507
 
2491
- interface Tax {
2492
- readonly name: string;
2493
- readonly rate: number;
2494
- readonly components: io.flow.price.v0.enums.LevyComponent[];
2495
- readonly deminimis?: io.flow.price.v0.unions.Deminimis;
2508
+ interface ExportVersion {
2509
+ readonly id: string;
2510
+ readonly timestamp: string;
2511
+ readonly type: io.flow.common.v0.enums.ChangeType;
2512
+ readonly export: io.flow.RESERVED_WORD_export.v0.models.Export;
2496
2513
  }
2497
- }
2498
-
2499
- declare namespace io.flow.price.v0.unions {
2500
- type Deminimis =
2501
- | io.flow.price.v0.models.DeminimisSimple
2502
- | io.flow.price.v0.models.DeminimisPerItem;
2503
- }
2504
-
2505
- declare namespace io.flow.reference.v0.enums {
2506
- type PaymentMethodCapability = 'credit' | 'debit';
2507
- type PaymentMethodType = 'card' | 'online' | 'offline';
2508
- type PostalType = 'eircode' | 'pin' | 'postal' | 'zip';
2509
- type ProvinceType =
2510
- | 'area'
2511
- | 'city'
2512
- | 'county'
2513
- | 'department'
2514
- | 'dependency'
2515
- | 'district'
2516
- | 'do_si'
2517
- | 'emirate'
2518
- | 'entity'
2519
- | 'island'
2520
- | 'municipality'
2521
- | 'oblast'
2522
- | 'outlying_area'
2523
- | 'parish'
2524
- | 'prefecture'
2525
- | 'province'
2526
- | 'state'
2527
- | 'territory'
2528
- | 'other';
2529
- }
2530
2514
 
2531
- declare namespace io.flow.reference.v0.models {
2532
- interface Carrier {
2533
- readonly id: string;
2534
- readonly name: string;
2535
- readonly tracking_url: string;
2515
+ interface HarmonizationHs10ExportType {
2516
+ readonly discriminator: 'harmonization_hs10_export_type';
2517
+ readonly origin?: string;
2518
+ readonly destination?: string;
2519
+ readonly numbers?: string[];
2520
+ readonly has_codes?: boolean;
2521
+ readonly has_origins?: boolean;
2522
+ readonly sort?: string;
2536
2523
  }
2537
2524
 
2538
- interface CarrierService {
2539
- readonly id: string;
2540
- readonly carrier: io.flow.reference.v0.models.Carrier;
2541
- readonly name: string;
2525
+ interface HarmonizationHs6ExportType {
2526
+ readonly discriminator: 'harmonization_hs6_export_type';
2527
+ readonly numbers?: string[];
2528
+ readonly has_codes?: boolean;
2529
+ readonly sort?: string;
2542
2530
  }
2543
2531
 
2544
- interface Country {
2545
- readonly name: string;
2546
- readonly iso_3166_2: string;
2547
- readonly iso_3166_3: string;
2548
- readonly languages: string[];
2549
- readonly measurement_system: string;
2550
- readonly default_currency?: string;
2551
- readonly default_language?: string;
2552
- readonly timezones: string[];
2553
- readonly default_delivered_duty?: string;
2532
+ interface HarmonizationOverviewExportType {
2533
+ readonly discriminator: 'harmonization_overview_export_type';
2534
+ readonly origin?: string;
2535
+ readonly destination?: string;
2536
+ readonly sort?: string;
2554
2537
  }
2555
2538
 
2556
- interface Currency {
2557
- readonly name: string;
2558
- readonly iso_4217_3: string;
2559
- readonly number_decimals: number;
2560
- readonly symbols?: io.flow.reference.v0.models.CurrencySymbols;
2561
- readonly default_locale?: string;
2539
+ interface HarmonizationTariffCodesExportType {
2540
+ readonly discriminator: 'harmonization_tariff_codes_export_type';
2541
+ readonly sort?: string;
2562
2542
  }
2563
2543
 
2564
- interface CurrencySymbols {
2565
- readonly primary: string;
2566
- readonly narrow?: string;
2544
+ interface LandedCostItem {
2545
+ readonly number: string;
2546
+ readonly origin: string;
2547
+ readonly destination: string;
2567
2548
  }
2568
2549
 
2569
- interface Language {
2570
- readonly name: string;
2571
- readonly iso_639_2: string;
2550
+ interface LocalizedItemPricesExportType {
2551
+ readonly discriminator: 'localized_item_prices_export_type';
2552
+ readonly since?: string;
2572
2553
  }
2573
2554
 
2574
- interface Locale {
2575
- readonly id: string;
2576
- readonly name: string;
2577
- readonly country: string;
2578
- readonly language: string;
2579
- readonly numbers: io.flow.reference.v0.models.LocaleNumbers;
2555
+ interface MarketingFeedsExportType {
2556
+ readonly discriminator: 'marketing_feeds_export_type';
2557
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
2558
+ readonly feed_ids: string[];
2580
2559
  }
2581
2560
 
2582
- interface LocaleNumbers {
2583
- readonly decimal: string;
2584
- readonly group: string;
2561
+ interface OrderExportType {
2562
+ readonly discriminator: 'order_export_type';
2563
+ readonly numbers?: string[];
2564
+ readonly min_hours_since_submitted_at?: number;
2565
+ readonly submitted_on_or_before?: string;
2566
+ readonly submitted_on_or_after?: string;
2567
+ readonly status?: io.flow.experience.v0.enums.OrderStatus;
2568
+ readonly has_tracking_label?: boolean;
2569
+ readonly sort?: string;
2585
2570
  }
2586
2571
 
2587
- interface LocalizedTranslation {
2588
- readonly locale: io.flow.reference.v0.models.Locale;
2589
- readonly name: string;
2572
+ interface PriceBookItemExportType {
2573
+ readonly discriminator: 'price_book_item_export_type';
2574
+ readonly price_book_key?: string;
2575
+ readonly item_numbers?: string[];
2576
+ readonly start_date?: string;
2577
+ readonly end_date?: string;
2578
+ readonly item_identifier?: io.flow.RESERVED_WORD_export.v0.enums.ItemIdentifier;
2590
2579
  }
2591
2580
 
2592
- interface PaymentMethod {
2581
+ interface ScheduledExport {
2593
2582
  readonly id: string;
2594
- readonly type: io.flow.reference.v0.enums.PaymentMethodType;
2595
- readonly name: string;
2596
- readonly images: io.flow.reference.v0.models.PaymentMethodImages;
2597
- readonly regions: string[];
2598
- readonly capabilities?: io.flow.reference.v0.enums.PaymentMethodCapability[];
2583
+ readonly user: io.flow.common.v0.models.UserReference;
2584
+ readonly organization_q: string;
2585
+ readonly hour: number;
2586
+ readonly minute: number;
2587
+ readonly timezone: string;
2588
+ readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
2589
+ readonly last_sent_at?: string;
2599
2590
  }
2600
2591
 
2601
- interface PaymentMethodImage {
2602
- readonly url: string;
2603
- readonly width: number;
2604
- readonly height: number;
2592
+ interface ScheduledExportForm {
2593
+ readonly user_id: string;
2594
+ readonly organization_q: string;
2595
+ readonly hour: number;
2596
+ readonly minute: number;
2597
+ readonly timezone: string;
2598
+ readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
2605
2599
  }
2606
2600
 
2607
- interface PaymentMethodImages {
2608
- readonly small: io.flow.reference.v0.models.PaymentMethodImage;
2609
- readonly medium: io.flow.reference.v0.models.PaymentMethodImage;
2610
- readonly large: io.flow.reference.v0.models.PaymentMethodImage;
2601
+ interface SolidusProductExportType {
2602
+ readonly discriminator: 'solidus_product_export_type';
2603
+ readonly numbers?: string[];
2604
+ readonly sort?: string;
2611
2605
  }
2612
2606
 
2613
- interface Province {
2614
- readonly id: string;
2615
- readonly iso_3166_2: string;
2616
- readonly name: string;
2617
- readonly country: string;
2618
- readonly province_type: io.flow.reference.v0.enums.ProvinceType;
2619
- readonly translations?: io.flow.reference.v0.models.LocalizedTranslation[];
2607
+ interface SolidusVariantExportType {
2608
+ readonly discriminator: 'solidus_variant_export_type';
2609
+ readonly numbers?: string[];
2610
+ readonly sort?: string;
2620
2611
  }
2621
2612
 
2622
- interface Region {
2623
- readonly id: string;
2624
- readonly name: string;
2625
- readonly countries: string[];
2626
- readonly currencies: string[];
2627
- readonly languages: string[];
2628
- readonly measurement_systems: string[];
2629
- readonly timezones: string[];
2613
+ interface UnharmonizedItemExportType {
2614
+ readonly discriminator: 'unharmonized_item_export_type';
2615
+ readonly sort?: string;
2630
2616
  }
2617
+ }
2631
2618
 
2632
- interface Timezone {
2633
- readonly name: string;
2634
- readonly description: string;
2635
- readonly offset: number;
2636
- }
2619
+ declare namespace io.flow.RESERVED_WORD_export.v0.unions {
2620
+ type ExportDelivery = io.flow.RESERVED_WORD_export.v0.models.ExportDeliveryEmail;
2621
+ type ExportType =
2622
+ | io.flow.RESERVED_WORD_export.v0.models.AccountTransactionsExportType
2623
+ | io.flow.RESERVED_WORD_export.v0.models.AccountOrdersExportType
2624
+ | io.flow.RESERVED_WORD_export.v0.models.AnalyticsExportType
2625
+ | io.flow.RESERVED_WORD_export.v0.models.CatalogItemExportType
2626
+ | io.flow.RESERVED_WORD_export.v0.models.ExperienceExportType
2627
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationOverviewExportType
2628
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs6ExportType
2629
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs10ExportType
2630
+ | io.flow.RESERVED_WORD_export.v0.models.HarmonizationTariffCodesExportType
2631
+ | io.flow.RESERVED_WORD_export.v0.models.UnharmonizedItemExportType
2632
+ | io.flow.RESERVED_WORD_export.v0.models.OrderExportType
2633
+ | io.flow.RESERVED_WORD_export.v0.models.PriceBookItemExportType
2634
+ | io.flow.RESERVED_WORD_export.v0.models.SolidusProductExportType
2635
+ | io.flow.RESERVED_WORD_export.v0.models.SolidusVariantExportType
2636
+ | io.flow.RESERVED_WORD_export.v0.models.LocalizedItemPricesExportType
2637
+ | io.flow.RESERVED_WORD_export.v0.models.MarketingFeedsExportType
2638
+ | io.flow.RESERVED_WORD_export.v0.models.ExclusionRulesExportType;
2637
2639
  }
2638
2640
 
2639
- declare namespace io.flow.tracking.v0.enums {
2640
- type TrackingStatus =
2641
- | 'label_created'
2642
- | 'pending'
2643
- | 'info_received'
2644
- | 'picked_up'
2645
- | 'in_transit'
2646
- | 'out_for_delivery'
2647
- | 'attempt_fail'
2648
- | 'delivered'
2649
- | 'exception'
2650
- | 'returned'
2651
- | 'expired';
2641
+ declare namespace io.flow.flexe.v0.enums {
2642
+ type FlexeAttachmentType =
2643
+ | 'shipping_label'
2644
+ | 'packing_slip'
2645
+ | 'packing_slip_letter';
2646
+ type FlexeNotification = 'receipt' | 'shipment';
2647
+ type FlexeShipmentType =
2648
+ | 'fulfillment_order'
2649
+ | 'retail_fulfillment_order'
2650
+ | 'carton_pick_delivery'
2651
+ | 'delivery'
2652
+ | 'container_delivery';
2653
+ type FlexeStatus = 'in_transit' | 'completed';
2652
2654
  }
2653
2655
 
2654
- declare namespace io.flow.tracking.v0.models {
2655
- interface Tracking {
2656
- readonly id: string;
2657
- readonly labels: io.flow.tracking.v0.models.TrackingLabel[];
2658
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2659
- readonly attributes: Record<string, string>;
2660
- readonly url: string;
2661
- readonly window?: io.flow.common.v0.models.DatetimeRange;
2662
- readonly order_number?: string;
2656
+ declare namespace io.flow.flexe.v0.models {
2657
+ interface BillOfLading {
2658
+ readonly type: string;
2659
+ readonly gs1us?: io.flow.flexe.v0.models.Gs1Us;
2663
2660
  }
2664
2661
 
2665
- interface TrackingEvent {
2666
- readonly id: string;
2667
- readonly address: io.flow.common.v0.models.Address;
2668
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2669
- readonly timestamp: string;
2670
- readonly description?: string;
2662
+ interface BillTo {
2663
+ readonly name: string;
2664
+ readonly address_1: string;
2665
+ readonly locality: string;
2666
+ readonly region: string;
2667
+ readonly postal_code: string;
2668
+ readonly country: string;
2669
+ readonly address_2?: string;
2670
+ readonly address_3?: string;
2671
2671
  }
2672
2672
 
2673
- interface TrackingEventForm {
2674
- readonly tracking_label_id: string;
2675
- readonly timestamp: string;
2676
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2677
- readonly description?: string;
2678
- readonly address?: string;
2673
+ interface CartonPickDeliveryDetails {
2674
+ readonly shipment_uuid?: string;
2675
+ readonly carrier?: string;
2676
+ readonly carrier_id?: string;
2679
2677
  }
2680
2678
 
2681
- interface TrackingEventSummary {
2682
- readonly id: string;
2683
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2684
- readonly timestamp: string;
2679
+ interface ContainerDeliveryDetails {
2680
+ readonly purchase_order: string;
2681
+ readonly container_number?: string;
2682
+ readonly seal_number?: string;
2683
+ readonly vendor?: string;
2684
+ readonly expected_inventory: io.flow.flexe.v0.models.InventoryDetails[];
2685
+ readonly received_inventory: io.flow.flexe.v0.models.InventoryDetails[];
2686
+ readonly damaged_inventory: io.flow.flexe.v0.models.InventoryDetails[];
2687
+ readonly quantities_by_inventory: Record<
2688
+ string,
2689
+ io.flow.flexe.v0.models.QuantityByInventory
2690
+ >;
2685
2691
  }
2686
2692
 
2687
- interface TrackingEventVersion {
2688
- readonly id: string;
2689
- readonly timestamp: string;
2690
- readonly type: io.flow.common.v0.enums.ChangeType;
2691
- readonly tracking_event: io.flow.tracking.v0.models.TrackingEventSummary;
2693
+ interface DeliveryDetails {
2694
+ readonly shipment_uuid?: string;
2695
+ readonly trailer_number?: string;
2696
+ readonly pallets: io.flow.flexe.v0.models.Pallet[];
2697
+ readonly quantities_by_inventory: Record<
2698
+ string,
2699
+ io.flow.flexe.v0.models.QuantityByInventory
2700
+ >;
2692
2701
  }
2693
2702
 
2694
- interface TrackingForm {
2695
- readonly status?: io.flow.tracking.v0.enums.TrackingStatus;
2696
- readonly order_number?: string;
2697
- readonly attributes?: Record<string, string>;
2698
- readonly window?: io.flow.common.v0.models.DatetimeRange;
2703
+ interface Error {
2704
+ readonly url: string;
2705
+ readonly client_request_id: string;
2706
+ readonly generated_at: string;
2707
+ readonly error: string;
2699
2708
  }
2700
2709
 
2701
- interface TrackingLabel {
2702
- readonly id: string;
2703
- readonly carrier: string;
2704
- readonly carrier_tracking_number: string;
2705
- readonly events: io.flow.tracking.v0.models.TrackingEvent[];
2706
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2707
- readonly timestamp: string;
2708
- readonly delivery_estimate?: string;
2709
- readonly description?: string;
2710
+ interface FlexeAttachment {
2711
+ readonly type: io.flow.flexe.v0.enums.FlexeAttachmentType;
2712
+ readonly display_name: string;
2713
+ readonly url: string;
2710
2714
  }
2711
2715
 
2712
- interface TrackingLabelForm {
2713
- readonly tracking_id: string;
2714
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2715
- readonly carrier: string;
2716
- readonly carrier_tracking_number: string;
2717
- readonly delivery_estimate?: string;
2718
- readonly description?: string;
2719
- readonly timestamp?: string;
2720
- readonly parent_id?: string;
2716
+ interface FlexeEcommerceFulfillment {
2717
+ readonly url: string;
2718
+ readonly client_request_id: string;
2719
+ readonly generated_at: string;
2720
+ readonly data: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentData;
2721
+ readonly errors: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentErrors[];
2721
2722
  }
2722
2723
 
2723
- interface TrackingLabelSummary {
2724
- readonly id: string;
2725
- readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
2726
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2727
- readonly carrier: string;
2728
- readonly tracking_number: string;
2724
+ interface FlexeEcommerceFulfillmentData {
2725
+ readonly import_id: string;
2726
+ readonly succeeded_uuids: string[];
2727
+ readonly failed_uuids: string[];
2728
+ readonly errors: string[];
2729
2729
  }
2730
2730
 
2731
- interface TrackingLabelVersion {
2732
- readonly id: string;
2733
- readonly timestamp: string;
2734
- readonly type: io.flow.common.v0.enums.ChangeType;
2735
- readonly tracking_label: io.flow.tracking.v0.models.TrackingLabelSummary;
2731
+ interface FlexeEcommerceFulfillmentErrors {
2732
+ readonly status: string;
2733
+ readonly title: string;
2734
+ readonly detail: string;
2735
+ readonly source?: string;
2736
2736
  }
2737
2737
 
2738
- interface TrackingSummary {
2739
- readonly id: string;
2740
- readonly status: io.flow.tracking.v0.enums.TrackingStatus;
2741
- readonly order_number?: string;
2738
+ interface FlexeEcommerceFulfillmentForm {
2739
+ readonly reservation_id: number;
2740
+ readonly client_request_id: string;
2741
+ readonly request: io.flow.flexe.v0.models.Orders;
2742
2742
  }
2743
2743
 
2744
- interface TrackingVersion {
2745
- readonly id: string;
2746
- readonly timestamp: string;
2747
- readonly type: io.flow.common.v0.enums.ChangeType;
2748
- readonly tracking: io.flow.tracking.v0.models.TrackingSummary;
2744
+ interface FlexeInventoryData {
2745
+ readonly sku: string;
2746
+ readonly quantity: string;
2747
+ readonly unit: string;
2749
2748
  }
2750
- }
2751
2749
 
2752
- declare namespace io.flow.RESERVED_WORD_export.v0.enums {
2753
- type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
2754
- type ItemIdentifier = 'item_number' | 'sku';
2755
- }
2750
+ interface FlexeRetailAttachment {
2751
+ readonly display_name: string;
2752
+ readonly url: string;
2753
+ }
2756
2754
 
2757
- declare namespace io.flow.RESERVED_WORD_export.v0.models {
2758
- interface AccountOrdersExportType {
2759
- readonly discriminator: 'account_orders_export_type';
2760
- readonly statement_id?: string;
2761
- readonly transaction_summary_id?: string;
2762
- readonly transaction_created_from?: string;
2763
- readonly transaction_created_to?: string;
2764
- readonly transaction_created_on_or_after?: string;
2765
- readonly transaction_created_after?: string;
2766
- readonly transaction_created_on_or_before?: string;
2767
- readonly transaction_created_before?: string;
2768
- readonly transaction_posted_from?: string;
2769
- readonly transaction_posted_to?: string;
2770
- readonly transaction_posted_on_or_after?: string;
2771
- readonly transaction_posted_after?: string;
2772
- readonly transaction_posted_on_or_before?: string;
2773
- readonly transaction_posted_before?: string;
2755
+ interface FlexeRetailFulfillment {
2756
+ readonly url: string;
2757
+ readonly client_request_id: string;
2758
+ readonly generated_at: string;
2759
+ readonly data: io.flow.flexe.v0.models.FlexeRetailFulfillmentData;
2760
+ readonly errors?: io.flow.flexe.v0.models.FlexeRetailFulfillmentErrors[];
2774
2761
  }
2775
2762
 
2776
- interface AccountTransactionsExportType {
2777
- readonly discriminator: 'account_transactions_export_type';
2778
- readonly statement_id?: string;
2779
- readonly transaction_summary_id?: string;
2780
- readonly created_from?: string;
2781
- readonly created_to?: string;
2782
- readonly created_on_or_after?: string;
2783
- readonly created_after?: string;
2784
- readonly created_on_or_before?: string;
2785
- readonly created_before?: string;
2786
- readonly posted_from?: string;
2787
- readonly posted_to?: string;
2788
- readonly posted_on_or_after?: string;
2789
- readonly posted_after?: string;
2790
- readonly posted_on_or_before?: string;
2791
- readonly posted_before?: string;
2763
+ interface FlexeRetailFulfillmentData {
2764
+ readonly id: string;
2765
+ readonly purchase_order_uuid: string;
2766
+ readonly status: string;
2792
2767
  }
2793
2768
 
2794
- interface AnalyticsExportType {
2795
- readonly discriminator: 'analytics_export_type';
2796
- readonly from?: string;
2797
- readonly to?: string;
2798
- readonly region?: string;
2799
- readonly interval?: io.flow.common.v0.enums.UnitOfTime;
2769
+ interface FlexeRetailFulfillmentErrors {
2770
+ readonly type: string;
2771
+ readonly message: string;
2800
2772
  }
2801
2773
 
2802
- interface CatalogItemExportType {
2803
- readonly discriminator: 'catalog_item_export_type';
2804
- readonly numbers?: string[];
2805
- readonly q?: string;
2806
- readonly sort?: string;
2774
+ interface FlexeRetailFulfillmentForm {
2775
+ readonly reservation_id: number;
2776
+ readonly client_request_id?: string;
2777
+ readonly request: io.flow.flexe.v0.models.RetailOrder;
2807
2778
  }
2808
2779
 
2809
- interface CsvPriceBookItemExportRowByItemNumber {
2810
- readonly item_number: string;
2811
- readonly price_book_key: string;
2812
- readonly price_book_item_key: string;
2813
- readonly item_name: string;
2814
- readonly amount: number;
2815
- readonly item_attributes?: Record<string, string>;
2816
- readonly schedule: io.flow.price.v0.models.PriceBookItemSchedule;
2780
+ interface FulfillmentOrderDetails {
2781
+ readonly shipment_uuid: string;
2782
+ readonly carrier?: string;
2783
+ readonly carrier_id?: string;
2817
2784
  }
2818
2785
 
2819
- interface CsvPriceBookItemExportRowBySku {
2820
- readonly sku: string;
2821
- readonly price_book_key: string;
2822
- readonly price_book_item_key: string;
2823
- readonly item_name: string;
2824
- readonly amount: number;
2825
- readonly item_attributes?: Record<string, string>;
2826
- readonly schedule: io.flow.price.v0.models.PriceBookItemSchedule;
2786
+ interface Gs1Us {
2787
+ readonly number: string;
2788
+ readonly ship_to?: io.flow.flexe.v0.models.Gs1UsShipTo;
2789
+ readonly bill_to?: io.flow.flexe.v0.models.BillTo;
2827
2790
  }
2828
2791
 
2829
- interface ExclusionRulesExportType {
2830
- readonly discriminator: 'exclusion_rules_export_type';
2831
- readonly states?: io.flow.catalog.exclusion.v0.enums.ExclusionRuleState[];
2832
- readonly sort?: string;
2792
+ interface Gs1UsShipTo {
2793
+ readonly cid_number?: string;
2794
+ readonly location_number?: string;
2795
+ readonly free_on_board?: boolean;
2833
2796
  }
2834
2797
 
2835
- interface ExperienceExportType {
2836
- readonly discriminator: 'experience_export_type';
2837
- readonly organization_id: string;
2838
- readonly ids?: string[];
2839
- readonly keys?: string[];
2798
+ interface Inventory {
2799
+ readonly url: string;
2800
+ readonly client_request_id: string;
2801
+ readonly generated_at: string;
2802
+ readonly data: Record<string, io.flow.flexe.v0.models.InventoryDetails>;
2840
2803
  }
2841
2804
 
2842
- interface Export {
2843
- readonly id: string;
2844
- readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
2845
- readonly status: io.flow.RESERVED_WORD_export.v0.enums.ExportStatus;
2846
- readonly organization_q: string;
2847
- readonly created_at: string;
2848
- readonly started_at?: string;
2849
- readonly completed_at?: string;
2850
- readonly url?: string;
2851
- readonly deliveries: io.flow.RESERVED_WORD_export.v0.unions.ExportDelivery[];
2805
+ interface InventoryCount {
2806
+ readonly amount: number;
2807
+ readonly unit: string;
2852
2808
  }
2853
2809
 
2854
- interface ExportDeliveryEmail {
2855
- readonly discriminator: 'export_delivery_email';
2856
- readonly email: string;
2810
+ interface InventoryData {
2811
+ readonly pallet: io.flow.flexe.v0.models.InventoryCount;
2812
+ readonly carton?: io.flow.flexe.v0.models.InventoryCount;
2813
+ readonly each?: io.flow.flexe.v0.models.InventoryCount;
2857
2814
  }
2858
2815
 
2859
- interface ExportForm {
2860
- readonly type: io.flow.RESERVED_WORD_export.v0.unions.ExportType;
2861
- readonly emails?: string[];
2862
- readonly organization_q?: string;
2816
+ interface InventoryDetails {
2817
+ readonly key: Record<string, io.flow.flexe.v0.models.Sku>;
2863
2818
  }
2864
2819
 
2865
- interface ExportLocalizedItemPrices {
2866
- readonly organization: io.flow.common.v0.models.OrganizationReference;
2867
- readonly experience: io.flow.common.v0.models.ExperienceSummary;
2868
- readonly item: io.flow.common.v0.models.CatalogItemReference;
2869
- readonly prices: io.flow.RESERVED_WORD_export.v0.models.ExportLocalizedItemPricesDetail;
2870
- readonly status?: io.flow.catalog.v0.enums.SubcatalogItemStatus;
2871
- readonly rates?: io.flow.currency.v0.models.Rate[];
2820
+ interface LadingQuantity {
2821
+ readonly num_pallets: number;
2872
2822
  }
2873
2823
 
2874
- interface ExportLocalizedItemPricesDetail {
2875
- readonly item: io.flow.catalog.v0.models.LocalizedItemPrice;
2876
- readonly vat?: io.flow.catalog.v0.models.LocalizedItemVat;
2877
- readonly duty?: io.flow.catalog.v0.models.LocalizedItemDuty;
2878
- readonly price_attributes: Record<
2879
- string,
2880
- io.flow.common.v0.models.PriceWithBase
2881
- >;
2824
+ interface Order {
2825
+ readonly shipment_uuid: string;
2826
+ readonly purchase_order: string;
2827
+ readonly carrier: string;
2828
+ readonly service_type: string;
2829
+ readonly carrier_assigned_id: string;
2830
+ readonly name: string;
2831
+ readonly address_1: string;
2832
+ readonly address_2?: string;
2833
+ readonly address_3?: string;
2834
+ readonly city: string;
2835
+ readonly state: string;
2836
+ readonly postal_code: string;
2837
+ readonly phone?: string;
2838
+ readonly instructions?: string;
2839
+ readonly inventory_data: io.flow.flexe.v0.models.FlexeInventoryData[];
2840
+ readonly attachments: io.flow.flexe.v0.models.FlexeAttachment[];
2882
2841
  }
2883
2842
 
2884
- interface ExportVersion {
2885
- readonly id: string;
2886
- readonly timestamp: string;
2887
- readonly type: io.flow.common.v0.enums.ChangeType;
2888
- readonly export: io.flow.RESERVED_WORD_export.v0.models.Export;
2843
+ interface Orders {
2844
+ readonly orders: io.flow.flexe.v0.models.Order[];
2889
2845
  }
2890
2846
 
2891
- interface HarmonizationHs10ExportType {
2892
- readonly discriminator: 'harmonization_hs10_export_type';
2893
- readonly origin?: string;
2894
- readonly destination?: string;
2895
- readonly numbers?: string[];
2896
- readonly has_codes?: boolean;
2897
- readonly has_origins?: boolean;
2898
- readonly sort?: string;
2847
+ interface Pallet {
2848
+ readonly pallet_id: string;
2849
+ readonly sku: string;
2850
+ readonly quantity: number;
2851
+ readonly packaging: string;
2899
2852
  }
2900
2853
 
2901
- interface HarmonizationHs6ExportType {
2902
- readonly discriminator: 'harmonization_hs6_export_type';
2903
- readonly numbers?: string[];
2904
- readonly has_codes?: boolean;
2905
- readonly sort?: string;
2854
+ interface PurchaseOrder {
2855
+ readonly retail_fulfillment_order_id: string;
2856
+ readonly bill_of_lading_number: string;
2857
+ readonly purchase_order_uuid: string;
2858
+ readonly pickup_window_start: string;
2859
+ readonly pickup_window_end: string;
2860
+ readonly tags: string[];
2906
2861
  }
2907
2862
 
2908
- interface HarmonizationOverviewExportType {
2909
- readonly discriminator: 'harmonization_overview_export_type';
2910
- readonly origin?: string;
2911
- readonly destination?: string;
2912
- readonly sort?: string;
2863
+ interface QuantityByInventory {
2864
+ readonly received: io.flow.flexe.v0.models.InventoryData;
2865
+ readonly expected?: io.flow.flexe.v0.models.InventoryData;
2866
+ readonly damaged?: io.flow.flexe.v0.models.InventoryData;
2913
2867
  }
2914
2868
 
2915
- interface HarmonizationTariffCodesExportType {
2916
- readonly discriminator: 'harmonization_tariff_codes_export_type';
2917
- readonly sort?: string;
2869
+ interface ReceiptNotification {
2870
+ readonly shipment_id: string;
2871
+ readonly shipment_type: io.flow.flexe.v0.enums.FlexeShipmentType;
2872
+ readonly reservation_id: string;
2873
+ readonly status: io.flow.flexe.v0.enums.FlexeStatus;
2874
+ readonly delivery_details?: io.flow.flexe.v0.models.DeliveryDetails;
2875
+ readonly container_delivery_details?: io.flow.flexe.v0.models.ContainerDeliveryDetails;
2918
2876
  }
2919
2877
 
2920
- interface LandedCostItem {
2921
- readonly number: string;
2922
- readonly origin: string;
2923
- readonly destination: string;
2878
+ interface RetailFulfillmentOrderDetails {
2879
+ readonly master_bill_of_lading_number: string;
2880
+ readonly scac: string;
2881
+ readonly pro_number: string;
2882
+ readonly purchase_orders: io.flow.flexe.v0.models.PurchaseOrder[];
2883
+ readonly lading_quantity: io.flow.flexe.v0.models.LadingQuantity;
2924
2884
  }
2925
2885
 
2926
- interface LocalizedItemPricesExportType {
2927
- readonly discriminator: 'localized_item_prices_export_type';
2928
- readonly since?: string;
2886
+ interface RetailInventoryData {
2887
+ readonly sku: string;
2888
+ readonly quantity: number;
2889
+ readonly unit: string;
2890
+ readonly attachments?: io.flow.flexe.v0.models.FlexeRetailAttachment[];
2929
2891
  }
2930
2892
 
2931
- interface MarketingFeedsExportType {
2932
- readonly discriminator: 'marketing_feeds_export_type';
2933
- readonly organization: io.flow.common.v0.models.OrganizationReference;
2934
- readonly feed_ids: string[];
2893
+ interface RetailOrder {
2894
+ readonly order: io.flow.flexe.v0.models.RetailOrderData;
2935
2895
  }
2936
2896
 
2937
- interface OrderExportType {
2938
- readonly discriminator: 'order_export_type';
2939
- readonly numbers?: string[];
2940
- readonly min_hours_since_submitted_at?: number;
2941
- readonly submitted_on_or_before?: string;
2942
- readonly submitted_on_or_after?: string;
2943
- readonly status?: io.flow.experience.v0.enums.OrderStatus;
2944
- readonly has_tracking_label?: boolean;
2945
- readonly sort?: string;
2897
+ interface RetailOrderData {
2898
+ readonly purchase_order_uuid: string;
2899
+ readonly bill_of_lading: io.flow.flexe.v0.models.BillOfLading;
2900
+ readonly inventory_data: io.flow.flexe.v0.models.RetailInventoryData[];
2901
+ readonly ship_within: io.flow.flexe.v0.models.ShipWithin;
2902
+ readonly ship_to: io.flow.flexe.v0.models.ShipTo;
2903
+ readonly build_by?: string;
2904
+ readonly instrunctions?: string;
2905
+ readonly routing_details_id?: string;
2906
+ readonly destination_type?: string;
2946
2907
  }
2947
2908
 
2948
- interface PriceBookItemExportType {
2949
- readonly discriminator: 'price_book_item_export_type';
2950
- readonly price_book_key?: string;
2951
- readonly item_numbers?: string[];
2952
- readonly start_date?: string;
2953
- readonly end_date?: string;
2954
- readonly item_identifier?: io.flow.RESERVED_WORD_export.v0.enums.ItemIdentifier;
2955
- }
2956
-
2957
- interface ScheduledExport {
2958
- readonly id: string;
2959
- readonly user: io.flow.common.v0.models.UserReference;
2960
- readonly organization_q: string;
2961
- readonly hour: number;
2962
- readonly minute: number;
2963
- readonly timezone: string;
2964
- readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
2965
- readonly last_sent_at?: string;
2966
- }
2967
-
2968
- interface ScheduledExportForm {
2969
- readonly user_id: string;
2970
- readonly organization_q: string;
2971
- readonly hour: number;
2972
- readonly minute: number;
2973
- readonly timezone: string;
2974
- readonly types: io.flow.RESERVED_WORD_export.v0.unions.ExportType[];
2975
- }
2976
-
2977
- interface SolidusProductExportType {
2978
- readonly discriminator: 'solidus_product_export_type';
2979
- readonly numbers?: string[];
2980
- readonly sort?: string;
2981
- }
2982
-
2983
- interface SolidusVariantExportType {
2984
- readonly discriminator: 'solidus_variant_export_type';
2985
- readonly numbers?: string[];
2986
- readonly sort?: string;
2987
- }
2988
-
2989
- interface UnharmonizedItemExportType {
2990
- readonly discriminator: 'unharmonized_item_export_type';
2991
- readonly sort?: string;
2992
- }
2993
- }
2994
-
2995
- declare namespace io.flow.RESERVED_WORD_export.v0.unions {
2996
- type ExportDelivery = io.flow.RESERVED_WORD_export.v0.models.ExportDeliveryEmail;
2997
- type ExportType =
2998
- | io.flow.RESERVED_WORD_export.v0.models.AccountTransactionsExportType
2999
- | io.flow.RESERVED_WORD_export.v0.models.AccountOrdersExportType
3000
- | io.flow.RESERVED_WORD_export.v0.models.AnalyticsExportType
3001
- | io.flow.RESERVED_WORD_export.v0.models.CatalogItemExportType
3002
- | io.flow.RESERVED_WORD_export.v0.models.ExperienceExportType
3003
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationOverviewExportType
3004
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs6ExportType
3005
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationHs10ExportType
3006
- | io.flow.RESERVED_WORD_export.v0.models.HarmonizationTariffCodesExportType
3007
- | io.flow.RESERVED_WORD_export.v0.models.UnharmonizedItemExportType
3008
- | io.flow.RESERVED_WORD_export.v0.models.OrderExportType
3009
- | io.flow.RESERVED_WORD_export.v0.models.PriceBookItemExportType
3010
- | io.flow.RESERVED_WORD_export.v0.models.SolidusProductExportType
3011
- | io.flow.RESERVED_WORD_export.v0.models.SolidusVariantExportType
3012
- | io.flow.RESERVED_WORD_export.v0.models.LocalizedItemPricesExportType
3013
- | io.flow.RESERVED_WORD_export.v0.models.MarketingFeedsExportType
3014
- | io.flow.RESERVED_WORD_export.v0.models.ExclusionRulesExportType;
3015
- }
3016
-
3017
- declare namespace io.flow.flexe.v0.enums {
3018
- type FlexeAttachmentType =
3019
- | 'shipping_label'
3020
- | 'packing_slip'
3021
- | 'packing_slip_letter';
3022
- type FlexeNotification = 'receipt' | 'shipment';
3023
- type FlexeShipmentType =
3024
- | 'fulfillment_order'
3025
- | 'retail_fulfillment_order'
3026
- | 'carton_pick_delivery'
3027
- | 'delivery'
3028
- | 'container_delivery';
3029
- type FlexeStatus = 'in_transit' | 'completed';
3030
- }
3031
-
3032
- declare namespace io.flow.flexe.v0.models {
3033
- interface BillOfLading {
3034
- readonly type: string;
3035
- readonly gs1us?: io.flow.flexe.v0.models.Gs1Us;
3036
- }
3037
-
3038
- interface BillTo {
3039
- readonly name: string;
3040
- readonly address_1: string;
3041
- readonly locality: string;
3042
- readonly region: string;
3043
- readonly postal_code: string;
3044
- readonly country: string;
3045
- readonly address_2?: string;
3046
- readonly address_3?: string;
3047
- }
3048
-
3049
- interface CartonPickDeliveryDetails {
3050
- readonly shipment_uuid?: string;
3051
- readonly carrier?: string;
3052
- readonly carrier_id?: string;
3053
- }
3054
-
3055
- interface ContainerDeliveryDetails {
3056
- readonly purchase_order: string;
3057
- readonly container_number?: string;
3058
- readonly seal_number?: string;
3059
- readonly vendor?: string;
3060
- readonly expected_inventory: io.flow.flexe.v0.models.InventoryDetails[];
3061
- readonly received_inventory: io.flow.flexe.v0.models.InventoryDetails[];
3062
- readonly damaged_inventory: io.flow.flexe.v0.models.InventoryDetails[];
3063
- readonly quantities_by_inventory: Record<
3064
- string,
3065
- io.flow.flexe.v0.models.QuantityByInventory
3066
- >;
3067
- }
3068
-
3069
- interface DeliveryDetails {
3070
- readonly shipment_uuid?: string;
3071
- readonly trailer_number?: string;
3072
- readonly pallets: io.flow.flexe.v0.models.Pallet[];
3073
- readonly quantities_by_inventory: Record<
3074
- string,
3075
- io.flow.flexe.v0.models.QuantityByInventory
3076
- >;
3077
- }
3078
-
3079
- interface Error {
3080
- readonly url: string;
3081
- readonly client_request_id: string;
3082
- readonly generated_at: string;
3083
- readonly error: string;
3084
- }
3085
-
3086
- interface FlexeAttachment {
3087
- readonly type: io.flow.flexe.v0.enums.FlexeAttachmentType;
3088
- readonly display_name: string;
3089
- readonly url: string;
3090
- }
3091
-
3092
- interface FlexeEcommerceFulfillment {
3093
- readonly url: string;
3094
- readonly client_request_id: string;
3095
- readonly generated_at: string;
3096
- readonly data: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentData;
3097
- readonly errors: io.flow.flexe.v0.models.FlexeEcommerceFulfillmentErrors[];
3098
- }
3099
-
3100
- interface FlexeEcommerceFulfillmentData {
3101
- readonly import_id: string;
3102
- readonly succeeded_uuids: string[];
3103
- readonly failed_uuids: string[];
3104
- readonly errors: string[];
3105
- }
3106
-
3107
- interface FlexeEcommerceFulfillmentErrors {
3108
- readonly status: string;
3109
- readonly title: string;
3110
- readonly detail: string;
3111
- readonly source?: string;
3112
- }
3113
-
3114
- interface FlexeEcommerceFulfillmentForm {
3115
- readonly reservation_id: number;
3116
- readonly client_request_id: string;
3117
- readonly request: io.flow.flexe.v0.models.Orders;
3118
- }
3119
-
3120
- interface FlexeInventoryData {
3121
- readonly sku: string;
3122
- readonly quantity: string;
3123
- readonly unit: string;
3124
- }
3125
-
3126
- interface FlexeRetailAttachment {
3127
- readonly display_name: string;
3128
- readonly url: string;
3129
- }
3130
-
3131
- interface FlexeRetailFulfillment {
3132
- readonly url: string;
3133
- readonly client_request_id: string;
3134
- readonly generated_at: string;
3135
- readonly data: io.flow.flexe.v0.models.FlexeRetailFulfillmentData;
3136
- readonly errors?: io.flow.flexe.v0.models.FlexeRetailFulfillmentErrors[];
3137
- }
3138
-
3139
- interface FlexeRetailFulfillmentData {
3140
- readonly id: string;
3141
- readonly purchase_order_uuid: string;
3142
- readonly status: string;
3143
- }
3144
-
3145
- interface FlexeRetailFulfillmentErrors {
3146
- readonly type: string;
3147
- readonly message: string;
3148
- }
3149
-
3150
- interface FlexeRetailFulfillmentForm {
3151
- readonly reservation_id: number;
3152
- readonly client_request_id?: string;
3153
- readonly request: io.flow.flexe.v0.models.RetailOrder;
3154
- }
3155
-
3156
- interface FulfillmentOrderDetails {
3157
- readonly shipment_uuid: string;
3158
- readonly carrier?: string;
3159
- readonly carrier_id?: string;
3160
- }
3161
-
3162
- interface Gs1Us {
3163
- readonly number: string;
3164
- readonly ship_to?: io.flow.flexe.v0.models.Gs1UsShipTo;
3165
- readonly bill_to?: io.flow.flexe.v0.models.BillTo;
3166
- }
3167
-
3168
- interface Gs1UsShipTo {
3169
- readonly cid_number?: string;
3170
- readonly location_number?: string;
3171
- readonly free_on_board?: boolean;
3172
- }
3173
-
3174
- interface Inventory {
3175
- readonly url: string;
3176
- readonly client_request_id: string;
3177
- readonly generated_at: string;
3178
- readonly data: Record<string, io.flow.flexe.v0.models.InventoryDetails>;
3179
- }
3180
-
3181
- interface InventoryCount {
3182
- readonly amount: number;
3183
- readonly unit: string;
3184
- }
3185
-
3186
- interface InventoryData {
3187
- readonly pallet: io.flow.flexe.v0.models.InventoryCount;
3188
- readonly carton?: io.flow.flexe.v0.models.InventoryCount;
3189
- readonly each?: io.flow.flexe.v0.models.InventoryCount;
3190
- }
3191
-
3192
- interface InventoryDetails {
3193
- readonly key: Record<string, io.flow.flexe.v0.models.Sku>;
3194
- }
3195
-
3196
- interface LadingQuantity {
3197
- readonly num_pallets: number;
3198
- }
3199
-
3200
- interface Order {
3201
- readonly shipment_uuid: string;
3202
- readonly purchase_order: string;
3203
- readonly carrier: string;
3204
- readonly service_type: string;
3205
- readonly carrier_assigned_id: string;
3206
- readonly name: string;
3207
- readonly address_1: string;
3208
- readonly address_2?: string;
3209
- readonly address_3?: string;
3210
- readonly city: string;
3211
- readonly state: string;
3212
- readonly postal_code: string;
3213
- readonly phone?: string;
3214
- readonly instructions?: string;
3215
- readonly inventory_data: io.flow.flexe.v0.models.FlexeInventoryData[];
3216
- readonly attachments: io.flow.flexe.v0.models.FlexeAttachment[];
3217
- }
3218
-
3219
- interface Orders {
3220
- readonly orders: io.flow.flexe.v0.models.Order[];
3221
- }
3222
-
3223
- interface Pallet {
3224
- readonly pallet_id: string;
3225
- readonly sku: string;
3226
- readonly quantity: number;
3227
- readonly packaging: string;
3228
- }
3229
-
3230
- interface PurchaseOrder {
3231
- readonly retail_fulfillment_order_id: string;
3232
- readonly bill_of_lading_number: string;
3233
- readonly purchase_order_uuid: string;
3234
- readonly pickup_window_start: string;
3235
- readonly pickup_window_end: string;
3236
- readonly tags: string[];
3237
- }
3238
-
3239
- interface QuantityByInventory {
3240
- readonly received: io.flow.flexe.v0.models.InventoryData;
3241
- readonly expected?: io.flow.flexe.v0.models.InventoryData;
3242
- readonly damaged?: io.flow.flexe.v0.models.InventoryData;
3243
- }
3244
-
3245
- interface ReceiptNotification {
3246
- readonly shipment_id: string;
3247
- readonly shipment_type: io.flow.flexe.v0.enums.FlexeShipmentType;
3248
- readonly reservation_id: string;
3249
- readonly status: io.flow.flexe.v0.enums.FlexeStatus;
3250
- readonly delivery_details?: io.flow.flexe.v0.models.DeliveryDetails;
3251
- readonly container_delivery_details?: io.flow.flexe.v0.models.ContainerDeliveryDetails;
3252
- }
3253
-
3254
- interface RetailFulfillmentOrderDetails {
3255
- readonly master_bill_of_lading_number: string;
3256
- readonly scac: string;
3257
- readonly pro_number: string;
3258
- readonly purchase_orders: io.flow.flexe.v0.models.PurchaseOrder[];
3259
- readonly lading_quantity: io.flow.flexe.v0.models.LadingQuantity;
3260
- }
3261
-
3262
- interface RetailInventoryData {
3263
- readonly sku: string;
3264
- readonly quantity: number;
3265
- readonly unit: string;
3266
- readonly attachments?: io.flow.flexe.v0.models.FlexeRetailAttachment[];
3267
- }
3268
-
3269
- interface RetailOrder {
3270
- readonly order: io.flow.flexe.v0.models.RetailOrderData;
3271
- }
3272
-
3273
- interface RetailOrderData {
3274
- readonly purchase_order_uuid: string;
3275
- readonly bill_of_lading: io.flow.flexe.v0.models.BillOfLading;
3276
- readonly inventory_data: io.flow.flexe.v0.models.RetailInventoryData[];
3277
- readonly ship_within: io.flow.flexe.v0.models.ShipWithin;
3278
- readonly ship_to: io.flow.flexe.v0.models.ShipTo;
3279
- readonly build_by?: string;
3280
- readonly instrunctions?: string;
3281
- readonly routing_details_id?: string;
3282
- readonly destination_type?: string;
3283
- }
3284
-
3285
- interface ShipTo {
3286
- readonly name: string;
3287
- readonly address_1: string;
3288
- readonly locality: string;
3289
- readonly region: string;
3290
- readonly postal_code: string;
3291
- readonly country: string;
3292
- readonly address_2?: string;
3293
- readonly address_3?: string;
2909
+ interface ShipTo {
2910
+ readonly name: string;
2911
+ readonly address_1: string;
2912
+ readonly locality: string;
2913
+ readonly region: string;
2914
+ readonly postal_code: string;
2915
+ readonly country: string;
2916
+ readonly address_2?: string;
2917
+ readonly address_3?: string;
3294
2918
  }
3295
2919
 
3296
2920
  interface ShipWithin {
@@ -9001,580 +8625,1035 @@ declare namespace io.flow.payment.gateway.v0.models {
9001
8625
  readonly payment_id: string;
9002
8626
  }
9003
8627
 
9004
- interface ActionUseSdkStripeV3 {
9005
- readonly type: 'use_sdk_stripe_v3';
9006
- readonly expires_at?: string;
9007
- readonly client_secret: string;
9008
- readonly publishable_key: string;
8628
+ interface ActionUseSdkStripeV3 {
8629
+ readonly type: 'use_sdk_stripe_v3';
8630
+ readonly expires_at?: string;
8631
+ readonly client_secret: string;
8632
+ readonly publishable_key: string;
8633
+ }
8634
+
8635
+ interface ActionWait {
8636
+ readonly type: 'wait';
8637
+ readonly expires_at?: string;
8638
+ }
8639
+
8640
+ interface AdyenV3ChallengeToken {
8641
+ readonly type: 'token';
8642
+ readonly challenge_token: string;
8643
+ }
8644
+
8645
+ interface AdyenV3FingerprintToken {
8646
+ readonly type: 'fingerprint';
8647
+ readonly fingerprint_token: string;
8648
+ }
8649
+
8650
+ interface AuthorizationActionResultAdyenV3 {
8651
+ readonly type: 'adyen_v3';
8652
+ readonly result: any /*object*/;
8653
+ }
8654
+
8655
+ interface AuthorizationActionResultAdyenV4 {
8656
+ readonly type: 'adyen_v4';
8657
+ readonly result: any /*object*/;
8658
+ }
8659
+
8660
+ interface DeviceDetailsBrowser {
8661
+ readonly type: 'browser';
8662
+ readonly user_agent: string;
8663
+ readonly origin: string;
8664
+ readonly accept_language: string;
8665
+ readonly ip?: string;
8666
+ }
8667
+
8668
+ interface DeviceFingerprintDetailsBrowser {
8669
+ readonly type: 'browser';
8670
+ readonly accept?: string;
8671
+ readonly java_enabled: boolean;
8672
+ readonly color_depth: number;
8673
+ readonly screen_height: number;
8674
+ readonly screen_width: number;
8675
+ readonly time_zone_offset: number;
8676
+ }
8677
+
8678
+ interface OrderDetails {
8679
+ readonly line_items: io.flow.payment.gateway.v0.models.PaymentOrderDetailsLineItem[];
8680
+ readonly shipping?: io.flow.payment.gateway.v0.models.Shipping;
8681
+ readonly discounts?: io.flow.payment.gateway.v0.models.PaymentDiscount[];
8682
+ readonly tax?: io.flow.payment.gateway.v0.models.PaymentTax;
8683
+ readonly duty?: io.flow.payment.gateway.v0.models.PaymentDuty;
8684
+ }
8685
+
8686
+ interface OrderInformationDetails {
8687
+ readonly type: 'details';
8688
+ readonly order_details: io.flow.payment.gateway.v0.models.OrderDetails;
8689
+ readonly billing_address?: io.flow.payment.gateway.v0.models.PaymentAddress;
8690
+ readonly shipping_address?: io.flow.payment.gateway.v0.models.PaymentAddress;
8691
+ }
8692
+
8693
+ interface OrderInformationFlow {
8694
+ readonly type: 'flow';
8695
+ readonly order_number: string;
8696
+ readonly billing_address?: io.flow.payment.gateway.v0.models.PaymentAddress;
8697
+ }
8698
+
8699
+ interface PaymentAddress {
8700
+ readonly contact: io.flow.common.v0.models.Contact;
8701
+ readonly location: io.flow.common.v0.models.Address;
8702
+ }
8703
+
8704
+ interface PaymentAuthorization {
8705
+ readonly id: string;
8706
+ readonly payment_method_summary: io.flow.payment.gateway.v0.unions.PaymentMethodSummary;
8707
+ readonly captures: io.flow.payment.gateway.v0.models.PaymentCapture[];
8708
+ readonly refunds: io.flow.payment.gateway.v0.models.PaymentRefund[];
8709
+ readonly reversals: io.flow.payment.gateway.v0.models.PaymentReversal[];
8710
+ readonly created_at: string;
8711
+ readonly updated_at: string;
8712
+ readonly status: io.flow.payment.gateway.v0.models.PaymentAuthorizationStatus;
8713
+ readonly amount: number;
8714
+ readonly currency: string;
8715
+ }
8716
+
8717
+ interface PaymentAuthorizationStatus {
8718
+ readonly status: io.flow.payment.v0.enums.AuthorizationStatus;
8719
+ readonly reason?: io.flow.payment.v0.enums.AuthorizationDeclineCode;
8720
+ }
8721
+
8722
+ interface PaymentCapture {
8723
+ readonly id: string;
8724
+ readonly amount: number;
8725
+ readonly currency: string;
8726
+ readonly created_at: string;
8727
+ readonly updated_at: string;
8728
+ readonly status: io.flow.payment.gateway.v0.models.PaymentCaptureStatus;
8729
+ }
8730
+
8731
+ interface PaymentCaptureForm {
8732
+ readonly amount?: number;
8733
+ readonly currency?: string;
8734
+ }
8735
+
8736
+ interface PaymentCaptureOptionAutomaticImmediate {
8737
+ readonly type: 'automatic_immediate';
8738
+ readonly placeholder?: string;
8739
+ }
8740
+
8741
+ interface PaymentCaptureOptionManual {
8742
+ readonly type: 'manual';
8743
+ readonly placeholder?: string;
8744
+ }
8745
+
8746
+ interface PaymentCaptureStatus {
8747
+ readonly status: io.flow.payment.v0.enums.CaptureStatus;
8748
+ readonly reason?: io.flow.payment.v0.enums.CaptureDeclineCode;
8749
+ }
8750
+
8751
+ interface PaymentDiscount {
8752
+ readonly amount: number;
8753
+ readonly name?: string;
8754
+ readonly code?: string;
8755
+ }
8756
+
8757
+ interface PaymentDuty {
8758
+ readonly amount: number;
8759
+ readonly name?: string;
8760
+ }
8761
+
8762
+ interface PaymentFailure {
8763
+ readonly authorization_id?: string;
8764
+ readonly failure_code: io.flow.payment.gateway.v0.enums.PaymentFailureCode;
8765
+ readonly failure_message: string;
8766
+ }
8767
+
8768
+ interface PaymentInformation {
8769
+ readonly amount_refundable?: number;
8770
+ readonly amount_refunded?: number;
8771
+ readonly refundable_before?: string;
8772
+ readonly amount_capturable?: number;
8773
+ readonly amount_captured?: number;
8774
+ readonly capturable_before?: string;
8775
+ readonly authorizations: io.flow.payment.gateway.v0.models.PaymentAuthorization[];
8776
+ }
8777
+
8778
+ interface PaymentMethodBrand {
8779
+ readonly id: string;
8780
+ readonly name: string;
8781
+ readonly images: io.flow.reference.v0.models.PaymentMethodImages;
8782
+ }
8783
+
8784
+ interface PaymentMethodCardNumberCipher {
8785
+ readonly type: 'cipher';
8786
+ readonly cipher: string;
8787
+ }
8788
+
8789
+ interface PaymentMethodCardNumberCleartext {
8790
+ readonly type: 'cleartext';
8791
+ readonly number: string;
8792
+ }
8793
+
8794
+ interface PaymentMethodCardPciDetails {
8795
+ readonly type: 'card_pci_details';
8796
+ readonly card_number: io.flow.payment.gateway.v0.unions.CardNumber;
8797
+ readonly expiration_month: number;
8798
+ readonly expiration_year: number;
8799
+ readonly name: string;
8800
+ }
8801
+
8802
+ interface PaymentMethodCardToken {
8803
+ readonly type: 'token';
8804
+ readonly token: string;
8805
+ }
8806
+
8807
+ interface PaymentMethodDataAuthorizeApplepay {
8808
+ readonly type: 'authorize_applepay';
8809
+ readonly token: string;
8810
+ }
8811
+
8812
+ interface PaymentMethodDataAuthorizeCard {
8813
+ readonly type: 'authorize_card';
8814
+ readonly card_data: io.flow.payment.gateway.v0.unions.PaymentMethodCard;
8815
+ readonly device_fingerprint_details: io.flow.payment.gateway.v0.unions.DeviceFingerprintDetails;
8816
+ readonly cvv?: string;
8817
+ }
8818
+
8819
+ interface PaymentMethodDataAuthorizeGooglepay {
8820
+ readonly type: 'authorize_googlepay';
8821
+ readonly payment_data: any /*object*/;
8822
+ }
8823
+
8824
+ interface PaymentMethodDataAuthorizePaypal {
8825
+ readonly type: 'authorize_paypal';
8826
+ readonly payment_id: string;
8827
+ readonly payer_id: string;
8828
+ }
8829
+
8830
+ interface PaymentMethodDataCompleteAuthorizationCard {
8831
+ readonly type: 'complete_authorization_card';
8832
+ readonly action_result: io.flow.payment.gateway.v0.unions.CardAuthorizationActionResult;
8833
+ }
8834
+
8835
+ interface PaymentMethodDataInitAfterpay {
8836
+ readonly type: 'init_afterpay';
8837
+ readonly placeholder?: string;
8838
+ }
8839
+
8840
+ interface PaymentMethodDataInitApplepay {
8841
+ readonly type: 'init_applepay';
8842
+ readonly placeholder?: string;
8843
+ }
8844
+
8845
+ interface PaymentMethodDataInitGooglepay {
8846
+ readonly type: 'init_googlepay';
8847
+ readonly placeholder?: string;
8848
+ }
8849
+
8850
+ interface PaymentMethodDataInitIdeal {
8851
+ readonly type: 'init_ideal';
8852
+ readonly issuer?: string;
8853
+ }
8854
+
8855
+ interface PaymentMethodDataInitKlarna {
8856
+ readonly type: 'init_klarna';
8857
+ readonly placeholder?: string;
8858
+ }
8859
+
8860
+ interface PaymentMethodDataInitPaypal {
8861
+ readonly type: 'init_paypal';
8862
+ readonly placeholder?: string;
8863
+ }
8864
+
8865
+ interface PaymentMethodDataValidateApplepay {
8866
+ readonly type: 'validate_applepay';
8867
+ readonly validation_url: string;
9009
8868
  }
9010
8869
 
9011
- interface ActionWait {
9012
- readonly type: 'wait';
9013
- readonly expires_at?: string;
8870
+ interface PaymentMethodSummaryAfterpay {
8871
+ readonly type: 'afterpay';
8872
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9014
8873
  }
9015
8874
 
9016
- interface AdyenV3ChallengeToken {
9017
- readonly type: 'token';
9018
- readonly challenge_token: string;
8875
+ interface PaymentMethodSummaryApplepay {
8876
+ readonly type: 'applepay';
8877
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9019
8878
  }
9020
8879
 
9021
- interface AdyenV3FingerprintToken {
9022
- readonly type: 'fingerprint';
9023
- readonly fingerprint_token: string;
8880
+ interface PaymentMethodSummaryCard {
8881
+ readonly type: 'card';
8882
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
8883
+ readonly last_four: string;
8884
+ readonly card_type: io.flow.payment.v0.enums.CardType;
8885
+ readonly id: string;
9024
8886
  }
9025
8887
 
9026
- interface AuthorizationActionResultAdyenV3 {
9027
- readonly type: 'adyen_v3';
9028
- readonly result: any /*object*/;
8888
+ interface PaymentMethodSummaryGooglepay {
8889
+ readonly type: 'googlepay';
8890
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9029
8891
  }
9030
8892
 
9031
- interface AuthorizationActionResultAdyenV4 {
9032
- readonly type: 'adyen_v4';
9033
- readonly result: any /*object*/;
8893
+ interface PaymentMethodSummaryIdeal {
8894
+ readonly type: 'ideal';
8895
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
8896
+ readonly issuer: string;
9034
8897
  }
9035
8898
 
9036
- interface DeviceDetailsBrowser {
9037
- readonly type: 'browser';
9038
- readonly user_agent: string;
9039
- readonly origin: string;
9040
- readonly accept_language: string;
9041
- readonly ip?: string;
8899
+ interface PaymentMethodSummaryKlarna {
8900
+ readonly type: 'klarna';
8901
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9042
8902
  }
9043
8903
 
9044
- interface DeviceFingerprintDetailsBrowser {
9045
- readonly type: 'browser';
9046
- readonly accept?: string;
9047
- readonly java_enabled: boolean;
9048
- readonly color_depth: number;
9049
- readonly screen_height: number;
9050
- readonly screen_width: number;
9051
- readonly time_zone_offset: number;
8904
+ interface PaymentMethodSummaryPaypal {
8905
+ readonly type: 'paypal';
8906
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9052
8907
  }
9053
8908
 
9054
- interface OrderDetails {
9055
- readonly line_items: io.flow.payment.gateway.v0.models.PaymentOrderDetailsLineItem[];
9056
- readonly shipping?: io.flow.payment.gateway.v0.models.Shipping;
9057
- readonly discounts?: io.flow.payment.gateway.v0.models.PaymentDiscount[];
8909
+ interface PaymentOrderDetailsLineItem {
8910
+ readonly id: string;
8911
+ readonly description: string;
8912
+ readonly quantity: number;
8913
+ readonly amount: number;
9058
8914
  readonly tax?: io.flow.payment.gateway.v0.models.PaymentTax;
9059
8915
  readonly duty?: io.flow.payment.gateway.v0.models.PaymentDuty;
8916
+ readonly product_url?: string;
8917
+ readonly image_url?: string;
8918
+ readonly category?: string;
8919
+ readonly discounts?: io.flow.payment.gateway.v0.models.PaymentDiscount[];
9060
8920
  }
9061
8921
 
9062
- interface OrderInformationDetails {
9063
- readonly type: 'details';
9064
- readonly order_details: io.flow.payment.gateway.v0.models.OrderDetails;
9065
- readonly billing_address?: io.flow.payment.gateway.v0.models.PaymentAddress;
9066
- readonly shipping_address?: io.flow.payment.gateway.v0.models.PaymentAddress;
8922
+ interface PaymentPaymentMethod {
8923
+ readonly id: string;
8924
+ readonly name: string;
8925
+ readonly type: io.flow.payment.gateway.v0.enums.PaymentType;
8926
+ readonly brands: io.flow.payment.gateway.v0.models.PaymentMethodBrand[];
8927
+ readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
8928
+ readonly images: io.flow.reference.v0.models.PaymentMethodImages;
8929
+ readonly possible_actions: io.flow.payment.gateway.v0.enums.PaymentActionType[];
9067
8930
  }
9068
8931
 
9069
- interface OrderInformationFlow {
9070
- readonly type: 'flow';
9071
- readonly order_number: string;
9072
- readonly billing_address?: io.flow.payment.gateway.v0.models.PaymentAddress;
8932
+ interface PaymentRefund {
8933
+ readonly id: string;
8934
+ readonly amount: number;
8935
+ readonly currency: string;
8936
+ readonly created_at: string;
8937
+ readonly updated_at: string;
8938
+ readonly status: io.flow.payment.gateway.v0.models.PaymentRefundStatus;
9073
8939
  }
9074
8940
 
9075
- interface PaymentAddress {
9076
- readonly contact: io.flow.common.v0.models.Contact;
9077
- readonly location: io.flow.common.v0.models.Address;
8941
+ interface PaymentRefundForm {
8942
+ readonly amount?: number;
8943
+ readonly currency?: string;
9078
8944
  }
9079
8945
 
9080
- interface PaymentAuthorization {
8946
+ interface PaymentRefundStatus {
8947
+ readonly status: io.flow.payment.v0.enums.RefundStatus;
8948
+ readonly reason?: io.flow.payment.v0.enums.RefundDeclineCode;
8949
+ }
8950
+
8951
+ interface PaymentRequest {
9081
8952
  readonly id: string;
9082
- readonly payment_method_summary: io.flow.payment.gateway.v0.unions.PaymentMethodSummary;
9083
- readonly captures: io.flow.payment.gateway.v0.models.PaymentCapture[];
9084
- readonly refunds: io.flow.payment.gateway.v0.models.PaymentRefund[];
9085
- readonly reversals: io.flow.payment.gateway.v0.models.PaymentReversal[];
8953
+ readonly status: io.flow.payment.gateway.v0.enums.PaymentStatus;
9086
8954
  readonly created_at: string;
9087
8955
  readonly updated_at: string;
9088
- readonly status: io.flow.payment.gateway.v0.models.PaymentAuthorizationStatus;
8956
+ readonly available_payment_methods: io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
8957
+ readonly last_payment_failure?: io.flow.payment.gateway.v0.models.PaymentFailure;
8958
+ readonly next_action?: io.flow.payment.gateway.v0.unions.Action;
8959
+ readonly amount: number;
8960
+ readonly currency: string;
8961
+ readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
8962
+ readonly device_details: io.flow.payment.gateway.v0.unions.DeviceDetails;
8963
+ readonly locale?: string;
8964
+ readonly return_url: string;
8965
+ readonly attributes?: Record<string, string>;
8966
+ readonly reference?: string;
8967
+ readonly payment_information: io.flow.payment.gateway.v0.models.PaymentInformation;
8968
+ readonly supported_actions: io.flow.payment.gateway.v0.enums.PaymentActionType[];
8969
+ readonly payment_capture_option?: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
8970
+ }
8971
+
8972
+ interface PaymentRequestForm {
9089
8973
  readonly amount: number;
9090
8974
  readonly currency: string;
8975
+ readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
8976
+ readonly device_details: io.flow.payment.gateway.v0.unions.DeviceDetails;
8977
+ readonly locale?: string;
8978
+ readonly return_url: string;
8979
+ readonly attributes?: Record<string, string>;
8980
+ readonly reference?: string;
8981
+ readonly payment_method_data?: io.flow.payment.gateway.v0.unions.PaymentMethodData;
8982
+ readonly supported_actions?: io.flow.payment.gateway.v0.enums.PaymentActionType[];
8983
+ readonly payment_capture_option?: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
9091
8984
  }
9092
8985
 
9093
- interface PaymentAuthorizationStatus {
9094
- readonly status: io.flow.payment.v0.enums.AuthorizationStatus;
9095
- readonly reason?: io.flow.payment.v0.enums.AuthorizationDeclineCode;
8986
+ interface PaymentRequestReference {
8987
+ readonly id: string;
8988
+ readonly reference?: string;
9096
8989
  }
9097
8990
 
9098
- interface PaymentCapture {
8991
+ interface PaymentReversal {
9099
8992
  readonly id: string;
9100
8993
  readonly amount: number;
9101
8994
  readonly currency: string;
9102
8995
  readonly created_at: string;
9103
8996
  readonly updated_at: string;
9104
- readonly status: io.flow.payment.gateway.v0.models.PaymentCaptureStatus;
8997
+ readonly status: io.flow.payment.gateway.v0.models.PaymentReversalStatus;
9105
8998
  }
9106
8999
 
9107
- interface PaymentCaptureForm {
9000
+ interface PaymentReversalForm {
9108
9001
  readonly amount?: number;
9109
9002
  readonly currency?: string;
9110
9003
  }
9111
9004
 
9112
- interface PaymentCaptureOptionAutomaticImmediate {
9113
- readonly type: 'automatic_immediate';
9114
- readonly placeholder?: string;
9005
+ interface PaymentReversalStatus {
9006
+ readonly status: io.flow.payment.v0.enums.ReversalStatus;
9007
+ readonly reason?: io.flow.payment.v0.enums.ReversalErrorCode;
9115
9008
  }
9116
9009
 
9117
- interface PaymentCaptureOptionManual {
9118
- readonly type: 'manual';
9119
- readonly placeholder?: string;
9010
+ interface PaymentTax {
9011
+ readonly amount: number;
9012
+ readonly name?: string;
9120
9013
  }
9121
9014
 
9122
- interface PaymentCaptureStatus {
9123
- readonly status: io.flow.payment.v0.enums.CaptureStatus;
9124
- readonly reason?: io.flow.payment.v0.enums.CaptureDeclineCode;
9015
+ interface Shipping {
9016
+ readonly description: string;
9017
+ readonly amount: number;
9018
+ readonly tax?: io.flow.payment.gateway.v0.models.PaymentTax;
9019
+ readonly duty?: io.flow.payment.gateway.v0.models.PaymentDuty;
9020
+ readonly discounts?: io.flow.payment.gateway.v0.models.PaymentDiscount[];
9125
9021
  }
9022
+ }
9126
9023
 
9127
- interface PaymentDiscount {
9128
- readonly amount: number;
9129
- readonly name?: string;
9130
- readonly code?: string;
9024
+ declare namespace io.flow.payment.gateway.v0.unions {
9025
+ type Action =
9026
+ | io.flow.payment.gateway.v0.models.ActionRedirect
9027
+ | io.flow.payment.gateway.v0.models.ActionUseSdkKlarnaV1
9028
+ | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCreateSession
9029
+ | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCompleteValidation
9030
+ | io.flow.payment.gateway.v0.models.ActionUseSdkGooglepay
9031
+ | io.flow.payment.gateway.v0.models.ActionUseSdkPaypal
9032
+ | io.flow.payment.gateway.v0.models.ActionUseSdkStripeV3
9033
+ | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV3
9034
+ | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV4
9035
+ | io.flow.payment.gateway.v0.models.ActionExecuteScript
9036
+ | io.flow.payment.gateway.v0.models.ActionDisplayInlineWindow
9037
+ | io.flow.payment.gateway.v0.models.ActionWait;
9038
+ type CardAuthorizationActionResult =
9039
+ | io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV3
9040
+ | io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV4;
9041
+ type CardNumber =
9042
+ | io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCleartext
9043
+ | io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCipher;
9044
+ type DeviceDetails = io.flow.payment.gateway.v0.models.DeviceDetailsBrowser;
9045
+ type DeviceFingerprintDetails = io.flow.payment.gateway.v0.models.DeviceFingerprintDetailsBrowser;
9046
+ type OrderInformation =
9047
+ | io.flow.payment.gateway.v0.models.OrderInformationFlow
9048
+ | io.flow.payment.gateway.v0.models.OrderInformationDetails;
9049
+ type PaymentCaptureOption =
9050
+ | io.flow.payment.gateway.v0.models.PaymentCaptureOptionAutomaticImmediate
9051
+ | io.flow.payment.gateway.v0.models.PaymentCaptureOptionManual;
9052
+ type PaymentMethodCard =
9053
+ | io.flow.payment.gateway.v0.models.PaymentMethodCardPciDetails
9054
+ | io.flow.payment.gateway.v0.models.PaymentMethodCardToken;
9055
+ type PaymentMethodData =
9056
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataInitKlarna
9057
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataInitAfterpay
9058
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataInitApplepay
9059
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataInitGooglepay
9060
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataInitPaypal
9061
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataInitIdeal
9062
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataValidateApplepay
9063
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeCard
9064
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeGooglepay
9065
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeApplepay
9066
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizePaypal
9067
+ | io.flow.payment.gateway.v0.models.PaymentMethodDataCompleteAuthorizationCard;
9068
+ type PaymentMethodSummary =
9069
+ | io.flow.payment.gateway.v0.models.PaymentMethodSummaryCard
9070
+ | io.flow.payment.gateway.v0.models.PaymentMethodSummaryKlarna
9071
+ | io.flow.payment.gateway.v0.models.PaymentMethodSummaryAfterpay
9072
+ | io.flow.payment.gateway.v0.models.PaymentMethodSummaryApplepay
9073
+ | io.flow.payment.gateway.v0.models.PaymentMethodSummaryGooglepay
9074
+ | io.flow.payment.gateway.v0.models.PaymentMethodSummaryPaypal
9075
+ | io.flow.payment.gateway.v0.models.PaymentMethodSummaryIdeal;
9076
+ type SdkAdyenV3AuthenticationToken =
9077
+ | io.flow.payment.gateway.v0.models.AdyenV3FingerprintToken
9078
+ | io.flow.payment.gateway.v0.models.AdyenV3ChallengeToken;
9079
+ }
9080
+
9081
+ declare namespace io.flow.order.management.event.v0.models {
9082
+ interface FulfillmentItemAllocationDetails {
9083
+ readonly item_number: string;
9084
+ readonly line_number: number;
9085
+ readonly levies: io.flow.common.v0.models.PriceWithBase;
9086
+ readonly total: io.flow.common.v0.models.PriceWithBase;
9131
9087
  }
9132
9088
 
9133
- interface PaymentDuty {
9134
- readonly amount: number;
9135
- readonly name?: string;
9089
+ interface OrderPlaced {
9090
+ readonly discriminator: 'order_placed';
9091
+ readonly event_id: string;
9092
+ readonly timestamp: string;
9093
+ readonly organization: string;
9094
+ readonly order_number: string;
9095
+ readonly order: io.flow.experience.v0.models.Order;
9096
+ readonly allocation: io.flow.experience.v0.models.AllocationV2;
9136
9097
  }
9137
9098
 
9138
- interface PaymentFailure {
9139
- readonly authorization_id?: string;
9140
- readonly failure_code: io.flow.payment.gateway.v0.enums.PaymentFailureCode;
9141
- readonly failure_message: string;
9099
+ interface OrderPlacedV2 {
9100
+ readonly discriminator: 'order_placed_v2';
9101
+ readonly event_id: string;
9102
+ readonly timestamp: string;
9103
+ readonly organization: string;
9104
+ readonly order_placed: io.flow.order.management.v0.models.OrderPlacedDetails;
9142
9105
  }
9143
9106
 
9144
- interface PaymentInformation {
9145
- readonly amount_refundable?: number;
9146
- readonly amount_refunded?: number;
9147
- readonly refundable_before?: string;
9148
- readonly amount_capturable?: number;
9149
- readonly amount_captured?: number;
9150
- readonly capturable_before?: string;
9151
- readonly authorizations: io.flow.payment.gateway.v0.models.PaymentAuthorization[];
9107
+ interface ReadyToFulfill {
9108
+ readonly discriminator: 'ready_to_fulfill';
9109
+ readonly event_id: string;
9110
+ readonly timestamp: string;
9111
+ readonly organization: string;
9112
+ readonly order_number: string;
9113
+ readonly order: io.flow.experience.v0.models.Order;
9114
+ readonly fulfillments?: io.flow.order.management.v0.models.Fulfillment[];
9115
+ readonly fulfillment_item_allocation_details?: io.flow.order.management.event.v0.models.FulfillmentItemAllocationDetails[];
9152
9116
  }
9153
9117
 
9154
- interface PaymentMethodBrand {
9118
+ interface ReadyToFulfillDetails {
9155
9119
  readonly id: string;
9156
- readonly name: string;
9157
- readonly images: io.flow.reference.v0.models.PaymentMethodImages;
9120
+ readonly order_number: string;
9121
+ readonly order: io.flow.experience.v0.models.Order;
9122
+ readonly fulfillments?: io.flow.order.management.v0.models.Fulfillment[];
9123
+ readonly fulfillment_item_allocation_details?: io.flow.order.management.event.v0.models.FulfillmentItemAllocationDetails[];
9158
9124
  }
9159
9125
 
9160
- interface PaymentMethodCardNumberCipher {
9161
- readonly type: 'cipher';
9162
- readonly cipher: string;
9126
+ interface ReadyToFulfillV2 {
9127
+ readonly discriminator: 'ready_to_fulfill_v2';
9128
+ readonly event_id: string;
9129
+ readonly timestamp: string;
9130
+ readonly organization: string;
9131
+ readonly ready_to_fulfill: io.flow.order.management.event.v0.models.ReadyToFulfillDetails;
9163
9132
  }
9133
+ }
9164
9134
 
9165
- interface PaymentMethodCardNumberCleartext {
9166
- readonly type: 'cleartext';
9167
- readonly number: string;
9168
- }
9135
+ declare namespace io.flow.order.management.event.v0.unions {
9136
+ type OrderManagementEvent =
9137
+ | io.flow.order.management.event.v0.models.OrderPlaced
9138
+ | io.flow.order.management.event.v0.models.OrderPlacedV2
9139
+ | io.flow.order.management.event.v0.models.ReadyToFulfill
9140
+ | io.flow.order.management.event.v0.models.ReadyToFulfillV2;
9141
+ }
9169
9142
 
9170
- interface PaymentMethodCardPciDetails {
9171
- readonly type: 'card_pci_details';
9172
- readonly card_number: io.flow.payment.gateway.v0.unions.CardNumber;
9173
- readonly expiration_month: number;
9174
- readonly expiration_year: number;
9175
- readonly name: string;
9143
+ declare namespace io.flow.ftp.v0.enums {
9144
+ type FtpFileSource = 'flow' | 'organization';
9145
+ }
9146
+
9147
+ declare namespace io.flow.ftp.v0.models {
9148
+ interface FtpAccount {
9149
+ readonly server: io.flow.ftp.v0.models.FtpServer;
9150
+ readonly user: io.flow.ftp.v0.models.FtpUser;
9176
9151
  }
9177
9152
 
9178
- interface PaymentMethodCardToken {
9179
- readonly type: 'token';
9180
- readonly token: string;
9153
+ interface FtpFile {
9154
+ readonly id: string;
9155
+ readonly source: io.flow.ftp.v0.enums.FtpFileSource;
9156
+ readonly name: string;
9157
+ readonly directory: string;
9158
+ readonly url: string;
9159
+ readonly created_at: string;
9181
9160
  }
9182
9161
 
9183
- interface PaymentMethodDataAuthorizeApplepay {
9184
- readonly type: 'authorize_applepay';
9185
- readonly token: string;
9162
+ interface FtpFileForm {
9163
+ readonly url: string;
9164
+ readonly directory: string;
9165
+ readonly name?: string;
9186
9166
  }
9187
9167
 
9188
- interface PaymentMethodDataAuthorizeCard {
9189
- readonly type: 'authorize_card';
9190
- readonly card_data: io.flow.payment.gateway.v0.unions.PaymentMethodCard;
9191
- readonly device_fingerprint_details: io.flow.payment.gateway.v0.unions.DeviceFingerprintDetails;
9192
- readonly cvv?: string;
9168
+ interface FtpFolder {
9169
+ readonly id: string;
9170
+ readonly path: string;
9171
+ readonly webhook: boolean;
9172
+ readonly description?: string;
9193
9173
  }
9194
9174
 
9195
- interface PaymentMethodDataAuthorizeGooglepay {
9196
- readonly type: 'authorize_googlepay';
9197
- readonly payment_data: any /*object*/;
9175
+ interface FtpFolderForm {
9176
+ readonly path: string;
9177
+ readonly webhook: boolean;
9178
+ readonly description?: string;
9198
9179
  }
9199
9180
 
9200
- interface PaymentMethodDataAuthorizePaypal {
9201
- readonly type: 'authorize_paypal';
9202
- readonly payment_id: string;
9203
- readonly payer_id: string;
9181
+ interface FtpOrganizationSettings {
9182
+ readonly enabled: boolean;
9183
+ readonly emails: string[];
9184
+ readonly account?: io.flow.ftp.v0.models.FtpAccount;
9204
9185
  }
9205
9186
 
9206
- interface PaymentMethodDataCompleteAuthorizationCard {
9207
- readonly type: 'complete_authorization_card';
9208
- readonly action_result: io.flow.payment.gateway.v0.unions.CardAuthorizationActionResult;
9187
+ interface FtpOrganizationSettingsForm {
9188
+ readonly enabled: boolean;
9189
+ readonly emails: string[];
9209
9190
  }
9210
9191
 
9211
- interface PaymentMethodDataInitAfterpay {
9212
- readonly type: 'init_afterpay';
9213
- readonly placeholder?: string;
9192
+ interface FtpServer {
9193
+ readonly hostname: string;
9214
9194
  }
9215
9195
 
9216
- interface PaymentMethodDataInitApplepay {
9217
- readonly type: 'init_applepay';
9218
- readonly placeholder?: string;
9196
+ interface FtpUser {
9197
+ readonly username: string;
9198
+ readonly password?: string;
9219
9199
  }
9200
+ }
9220
9201
 
9221
- interface PaymentMethodDataInitGooglepay {
9222
- readonly type: 'init_googlepay';
9223
- readonly placeholder?: string;
9202
+ declare namespace io.flow.ratecard.v0.models {
9203
+ interface CrossdockRatecardFee {
9204
+ readonly discriminator: 'crossdock_ratecard_fee';
9205
+ readonly amount: io.flow.common.v0.models.Money;
9224
9206
  }
9225
9207
 
9226
- interface PaymentMethodDataInitIdeal {
9227
- readonly type: 'init_ideal';
9228
- readonly issuer?: string;
9208
+ interface DdpRatecardFee {
9209
+ readonly discriminator: 'ddp_ratecard_fee';
9210
+ readonly amount: number;
9229
9211
  }
9230
9212
 
9231
- interface PaymentMethodDataInitKlarna {
9232
- readonly type: 'init_klarna';
9233
- readonly placeholder?: string;
9213
+ interface DimensionEstimate {
9214
+ readonly id: string;
9215
+ readonly q: string;
9216
+ readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
9217
+ readonly position: number;
9234
9218
  }
9235
9219
 
9236
- interface PaymentMethodDataInitPaypal {
9237
- readonly type: 'init_paypal';
9238
- readonly placeholder?: string;
9220
+ interface DimensionEstimateForm {
9221
+ readonly q: string;
9222
+ readonly dimensions: io.flow.ratecard.v0.models.EstimatedDimensions;
9223
+ readonly position?: number;
9239
9224
  }
9240
9225
 
9241
- interface PaymentMethodDataValidateApplepay {
9242
- readonly type: 'validate_applepay';
9243
- readonly validation_url: string;
9226
+ interface DimensionEstimateVersion {
9227
+ readonly id: string;
9228
+ readonly timestamp: string;
9229
+ readonly type: io.flow.common.v0.enums.ChangeType;
9230
+ readonly dimension_estimate: io.flow.ratecard.v0.models.DimensionEstimate;
9244
9231
  }
9245
9232
 
9246
- interface PaymentMethodSummaryAfterpay {
9247
- readonly type: 'afterpay';
9248
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9233
+ interface DutiesTaxesPaidSurchargeRatecardFee {
9234
+ readonly discriminator: 'duties_taxes_paid_surcharge_ratecard_fee';
9235
+ readonly amount: io.flow.common.v0.models.Money;
9236
+ readonly starts_at?: string;
9237
+ readonly ends_at?: string;
9249
9238
  }
9250
9239
 
9251
- interface PaymentMethodSummaryApplepay {
9252
- readonly type: 'applepay';
9253
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9240
+ interface DutiesTaxesPaidSurchargeServiceFee {
9241
+ readonly discriminator: 'duties_taxes_paid_surcharge_service_fee';
9242
+ readonly amount: io.flow.common.v0.models.Money;
9243
+ readonly starts_at?: string;
9244
+ readonly ends_at?: string;
9254
9245
  }
9255
9246
 
9256
- interface PaymentMethodSummaryCard {
9257
- readonly type: 'card';
9258
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9259
- readonly last_four: string;
9260
- readonly card_type: io.flow.payment.v0.enums.CardType;
9261
- readonly id: string;
9247
+ interface EmergencySituationSurchargeRatecardFee {
9248
+ readonly discriminator: 'emergency_situation_surcharge_ratecard_fee';
9249
+ readonly amount: io.flow.common.v0.models.Money;
9262
9250
  }
9263
9251
 
9264
- interface PaymentMethodSummaryGooglepay {
9265
- readonly type: 'googlepay';
9266
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9252
+ interface EmergencySituationSurchargeServiceFee {
9253
+ readonly discriminator: 'emergency_situation_surcharge_service_fee';
9254
+ readonly amount: io.flow.common.v0.models.Money;
9255
+ readonly origin_region?: io.flow.ratecard.v0.models.RatecardRegionReference;
9256
+ readonly destination_region?: io.flow.ratecard.v0.models.RatecardRegionReference;
9257
+ readonly interval_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
9267
9258
  }
9268
9259
 
9269
- interface PaymentMethodSummaryIdeal {
9270
- readonly type: 'ideal';
9271
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9272
- readonly issuer: string;
9260
+ interface EstimatedDimensions {
9261
+ readonly depth: io.flow.common.v0.models.Measurement;
9262
+ readonly length: io.flow.common.v0.models.Measurement;
9263
+ readonly weight: io.flow.common.v0.models.Measurement;
9264
+ readonly width: io.flow.common.v0.models.Measurement;
9273
9265
  }
9274
9266
 
9275
- interface PaymentMethodSummaryKlarna {
9276
- readonly type: 'klarna';
9277
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9267
+ interface FeeWeight {
9268
+ readonly weight: number;
9269
+ readonly unit: io.flow.common.v0.enums.UnitOfMeasurement;
9278
9270
  }
9279
9271
 
9280
- interface PaymentMethodSummaryPaypal {
9281
- readonly type: 'paypal';
9282
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9272
+ interface FuelSurchargeRatecardFee {
9273
+ readonly discriminator: 'fuel_surcharge_ratecard_fee';
9274
+ readonly amount: io.flow.common.v0.models.Money;
9283
9275
  }
9284
9276
 
9285
- interface PaymentOrderDetailsLineItem {
9286
- readonly id: string;
9287
- readonly description: string;
9288
- readonly quantity: number;
9289
- readonly amount: number;
9290
- readonly tax?: io.flow.payment.gateway.v0.models.PaymentTax;
9291
- readonly duty?: io.flow.payment.gateway.v0.models.PaymentDuty;
9292
- readonly product_url?: string;
9293
- readonly image_url?: string;
9294
- readonly category?: string;
9295
- readonly discounts?: io.flow.payment.gateway.v0.models.PaymentDiscount[];
9277
+ interface FuelSurchargeServiceFee {
9278
+ readonly discriminator: 'fuel_surcharge_service_fee';
9279
+ readonly percent: number;
9296
9280
  }
9297
9281
 
9298
- interface PaymentPaymentMethod {
9299
- readonly id: string;
9300
- readonly name: string;
9301
- readonly type: io.flow.payment.gateway.v0.enums.PaymentType;
9302
- readonly brands: io.flow.payment.gateway.v0.models.PaymentMethodBrand[];
9303
- readonly merchant_of_record: io.flow.common.v0.enums.MerchantOfRecord;
9304
- readonly images: io.flow.reference.v0.models.PaymentMethodImages;
9305
- readonly possible_actions: io.flow.payment.gateway.v0.enums.PaymentActionType[];
9282
+ interface Hop {
9283
+ readonly hop_number: number;
9284
+ readonly hop_estimate: io.flow.ratecard.v0.models.HopEstimate;
9306
9285
  }
9307
9286
 
9308
- interface PaymentRefund {
9309
- readonly id: string;
9310
- readonly amount: number;
9287
+ interface HopEstimate {
9288
+ readonly origin_address: io.flow.fulfillment.v0.models.ShippingAddress;
9289
+ readonly destination_address: io.flow.fulfillment.v0.models.ShippingAddress;
9290
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
9291
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
9311
9292
  readonly currency: string;
9312
- readonly created_at: string;
9313
- readonly updated_at: string;
9314
- readonly status: io.flow.payment.gateway.v0.models.PaymentRefundStatus;
9293
+ readonly amount: number;
9294
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
9295
+ readonly total: number;
9315
9296
  }
9316
9297
 
9317
- interface PaymentRefundForm {
9298
+ interface OversizedShipmentRatecardFee {
9299
+ readonly discriminator: 'oversized_shipment_ratecard_fee';
9300
+ readonly weight_threshold: number;
9301
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
9302
+ readonly margin?: number;
9318
9303
  readonly amount?: number;
9319
- readonly currency?: string;
9320
9304
  }
9321
9305
 
9322
- interface PaymentRefundStatus {
9323
- readonly status: io.flow.payment.v0.enums.RefundStatus;
9324
- readonly reason?: io.flow.payment.v0.enums.RefundDeclineCode;
9306
+ interface PeakSurchargeByWeightServiceFee {
9307
+ readonly discriminator: 'peak_surcharge_by_weight_service_fee';
9308
+ readonly amount: io.flow.common.v0.models.Money;
9309
+ readonly weight: io.flow.ratecard.v0.models.FeeWeight;
9310
+ readonly regions?: string[];
9311
+ readonly starts_at?: string;
9312
+ readonly ends_at?: string;
9325
9313
  }
9326
9314
 
9327
- interface PaymentRequest {
9328
- readonly id: string;
9329
- readonly status: io.flow.payment.gateway.v0.enums.PaymentStatus;
9330
- readonly created_at: string;
9331
- readonly updated_at: string;
9332
- readonly available_payment_methods: io.flow.payment.gateway.v0.models.PaymentPaymentMethod[];
9333
- readonly last_payment_failure?: io.flow.payment.gateway.v0.models.PaymentFailure;
9334
- readonly next_action?: io.flow.payment.gateway.v0.unions.Action;
9335
- readonly amount: number;
9336
- readonly currency: string;
9337
- readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
9338
- readonly device_details: io.flow.payment.gateway.v0.unions.DeviceDetails;
9339
- readonly locale?: string;
9340
- readonly return_url: string;
9341
- readonly attributes?: Record<string, string>;
9342
- readonly reference?: string;
9343
- readonly payment_information: io.flow.payment.gateway.v0.models.PaymentInformation;
9344
- readonly supported_actions: io.flow.payment.gateway.v0.enums.PaymentActionType[];
9345
- readonly payment_capture_option?: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
9315
+ interface PeakSurchargeRatecardFee {
9316
+ readonly discriminator: 'peak_surcharge_ratecard_fee';
9317
+ readonly amount: io.flow.common.v0.models.Money;
9318
+ readonly starts_at?: string;
9319
+ readonly ends_at?: string;
9346
9320
  }
9347
9321
 
9348
- interface PaymentRequestForm {
9349
- readonly amount: number;
9350
- readonly currency: string;
9351
- readonly order_information: io.flow.payment.gateway.v0.unions.OrderInformation;
9352
- readonly device_details: io.flow.payment.gateway.v0.unions.DeviceDetails;
9353
- readonly locale?: string;
9354
- readonly return_url: string;
9355
- readonly attributes?: Record<string, string>;
9356
- readonly reference?: string;
9357
- readonly payment_method_data?: io.flow.payment.gateway.v0.unions.PaymentMethodData;
9358
- readonly supported_actions?: io.flow.payment.gateway.v0.enums.PaymentActionType[];
9359
- readonly payment_capture_option?: io.flow.payment.gateway.v0.unions.PaymentCaptureOption;
9322
+ interface PeakSurchargeServiceFee {
9323
+ readonly discriminator: 'peak_surcharge_service_fee';
9324
+ readonly amount: io.flow.common.v0.models.Money;
9325
+ readonly starts_at?: string;
9326
+ readonly ends_at?: string;
9360
9327
  }
9361
9328
 
9362
- interface PaymentRequestReference {
9329
+ interface Ratecard {
9363
9330
  readonly id: string;
9364
- readonly reference?: string;
9331
+ readonly number: string;
9332
+ readonly direction: io.flow.label.v0.enums.Direction;
9333
+ readonly effective_at: string;
9334
+ readonly origination_zones: io.flow.common.v0.models.Zone[];
9335
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
9336
+ readonly published_at?: string;
9337
+ readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
9365
9338
  }
9366
9339
 
9367
- interface PaymentReversal {
9340
+ interface RatecardCarrierSummary {
9368
9341
  readonly id: string;
9369
- readonly amount: number;
9370
- readonly currency: string;
9371
- readonly created_at: string;
9372
- readonly updated_at: string;
9373
- readonly status: io.flow.payment.gateway.v0.models.PaymentReversalStatus;
9342
+ readonly name: string;
9374
9343
  }
9375
9344
 
9376
- interface PaymentReversalForm {
9377
- readonly amount?: number;
9378
- readonly currency?: string;
9345
+ interface RatecardEstimateForm {
9346
+ readonly origin_address: io.flow.common.v0.models.Address;
9347
+ readonly destination_address: io.flow.common.v0.models.Address;
9348
+ readonly weight_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
9349
+ readonly distance_unit?: io.flow.common.v0.enums.UnitOfMeasurement;
9350
+ readonly service?: string;
9351
+ readonly weight?: number;
9352
+ readonly length?: number;
9353
+ readonly width?: number;
9354
+ readonly depth?: number;
9355
+ readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
9356
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
9357
+ readonly center_id?: string;
9379
9358
  }
9380
9359
 
9381
- interface PaymentReversalStatus {
9382
- readonly status: io.flow.payment.v0.enums.ReversalStatus;
9383
- readonly reason?: io.flow.payment.v0.enums.ReversalErrorCode;
9360
+ interface RatecardEstimateSummaryForm {
9361
+ readonly origin?: string;
9362
+ readonly destination?: string;
9363
+ readonly service?: string;
9364
+ readonly center_key?: string;
9384
9365
  }
9385
9366
 
9386
- interface PaymentTax {
9367
+ interface RatecardEstimateV1 {
9368
+ readonly discriminator: 'ratecard_estimate_v1';
9369
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
9370
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
9371
+ readonly currency: string;
9387
9372
  readonly amount: number;
9388
- readonly name?: string;
9373
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
9374
+ readonly total: number;
9375
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
9376
+ readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
9377
+ readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
9378
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
9389
9379
  }
9390
9380
 
9391
- interface Shipping {
9392
- readonly description: string;
9393
- readonly amount: number;
9394
- readonly tax?: io.flow.payment.gateway.v0.models.PaymentTax;
9395
- readonly duty?: io.flow.payment.gateway.v0.models.PaymentDuty;
9396
- readonly discounts?: io.flow.payment.gateway.v0.models.PaymentDiscount[];
9381
+ interface RatecardEstimateV2 {
9382
+ readonly discriminator: 'ratecard_estimate_v2';
9383
+ readonly hops: io.flow.ratecard.v0.models.Hop[];
9384
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
9385
+ readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
9386
+ readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
9387
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
9388
+ readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
9397
9389
  }
9398
- }
9399
9390
 
9400
- declare namespace io.flow.payment.gateway.v0.unions {
9401
- type Action =
9402
- | io.flow.payment.gateway.v0.models.ActionRedirect
9403
- | io.flow.payment.gateway.v0.models.ActionUseSdkKlarnaV1
9404
- | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCreateSession
9405
- | io.flow.payment.gateway.v0.models.ActionUseSdkApplepayJsCompleteValidation
9406
- | io.flow.payment.gateway.v0.models.ActionUseSdkGooglepay
9407
- | io.flow.payment.gateway.v0.models.ActionUseSdkPaypal
9408
- | io.flow.payment.gateway.v0.models.ActionUseSdkStripeV3
9409
- | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV3
9410
- | io.flow.payment.gateway.v0.models.ActionUseSdkAdyenV4
9411
- | io.flow.payment.gateway.v0.models.ActionExecuteScript
9412
- | io.flow.payment.gateway.v0.models.ActionDisplayInlineWindow
9413
- | io.flow.payment.gateway.v0.models.ActionWait;
9414
- type CardAuthorizationActionResult =
9415
- | io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV3
9416
- | io.flow.payment.gateway.v0.models.AuthorizationActionResultAdyenV4;
9417
- type CardNumber =
9418
- | io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCleartext
9419
- | io.flow.payment.gateway.v0.models.PaymentMethodCardNumberCipher;
9420
- type DeviceDetails = io.flow.payment.gateway.v0.models.DeviceDetailsBrowser;
9421
- type DeviceFingerprintDetails = io.flow.payment.gateway.v0.models.DeviceFingerprintDetailsBrowser;
9422
- type OrderInformation =
9423
- | io.flow.payment.gateway.v0.models.OrderInformationFlow
9424
- | io.flow.payment.gateway.v0.models.OrderInformationDetails;
9425
- type PaymentCaptureOption =
9426
- | io.flow.payment.gateway.v0.models.PaymentCaptureOptionAutomaticImmediate
9427
- | io.flow.payment.gateway.v0.models.PaymentCaptureOptionManual;
9428
- type PaymentMethodCard =
9429
- | io.flow.payment.gateway.v0.models.PaymentMethodCardPciDetails
9430
- | io.flow.payment.gateway.v0.models.PaymentMethodCardToken;
9431
- type PaymentMethodData =
9432
- | io.flow.payment.gateway.v0.models.PaymentMethodDataInitKlarna
9433
- | io.flow.payment.gateway.v0.models.PaymentMethodDataInitAfterpay
9434
- | io.flow.payment.gateway.v0.models.PaymentMethodDataInitApplepay
9435
- | io.flow.payment.gateway.v0.models.PaymentMethodDataInitGooglepay
9436
- | io.flow.payment.gateway.v0.models.PaymentMethodDataInitPaypal
9437
- | io.flow.payment.gateway.v0.models.PaymentMethodDataInitIdeal
9438
- | io.flow.payment.gateway.v0.models.PaymentMethodDataValidateApplepay
9439
- | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeCard
9440
- | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeGooglepay
9441
- | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizeApplepay
9442
- | io.flow.payment.gateway.v0.models.PaymentMethodDataAuthorizePaypal
9443
- | io.flow.payment.gateway.v0.models.PaymentMethodDataCompleteAuthorizationCard;
9444
- type PaymentMethodSummary =
9445
- | io.flow.payment.gateway.v0.models.PaymentMethodSummaryCard
9446
- | io.flow.payment.gateway.v0.models.PaymentMethodSummaryKlarna
9447
- | io.flow.payment.gateway.v0.models.PaymentMethodSummaryAfterpay
9448
- | io.flow.payment.gateway.v0.models.PaymentMethodSummaryApplepay
9449
- | io.flow.payment.gateway.v0.models.PaymentMethodSummaryGooglepay
9450
- | io.flow.payment.gateway.v0.models.PaymentMethodSummaryPaypal
9451
- | io.flow.payment.gateway.v0.models.PaymentMethodSummaryIdeal;
9452
- type SdkAdyenV3AuthenticationToken =
9453
- | io.flow.payment.gateway.v0.models.AdyenV3FingerprintToken
9454
- | io.flow.payment.gateway.v0.models.AdyenV3ChallengeToken;
9455
- }
9391
+ interface RatecardEstimateV3 {
9392
+ readonly discriminator: 'ratecard_estimate_v3';
9393
+ readonly hops: io.flow.ratecard.v0.models.Hop[];
9394
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
9395
+ readonly dimensional_weight?: io.flow.common.v0.models.Measurement;
9396
+ readonly gravitational_weight?: io.flow.common.v0.models.Measurement;
9397
+ readonly line_items?: io.flow.common.v0.models.LineItemForm[];
9398
+ readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
9399
+ }
9456
9400
 
9457
- declare namespace io.flow.order.management.event.v0.models {
9458
- interface FulfillmentItemAllocationDetails {
9459
- readonly item_number: string;
9460
- readonly line_number: number;
9461
- readonly levies: io.flow.common.v0.models.PriceWithBase;
9462
- readonly total: io.flow.common.v0.models.PriceWithBase;
9401
+ interface RatecardForm {
9402
+ readonly direction: io.flow.label.v0.enums.Direction;
9403
+ readonly effective_at: string;
9404
+ readonly origination_zones: io.flow.common.v0.models.Zone[];
9405
+ readonly service: string;
9406
+ readonly number?: string;
9407
+ readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
9408
+ }
9409
+
9410
+ interface RatecardLane {
9411
+ readonly id: string;
9412
+ readonly ratecard: io.flow.ratecard.v0.models.RatecardSummary;
9413
+ readonly currency: string;
9414
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
9415
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
9416
+ readonly destination: io.flow.common.v0.models.Zone;
9417
+ readonly dim_factor: number;
9418
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
9419
+ readonly origin: io.flow.common.v0.models.Zone;
9420
+ readonly service: io.flow.ratecard.v0.models.RatecardServiceSummary;
9421
+ readonly rates: io.flow.ratecard.v0.models.RatecardRate[];
9422
+ readonly rounding: io.flow.common.v0.models.Rounding;
9423
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
9424
+ readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
9425
+ }
9426
+
9427
+ interface RatecardLaneForm {
9428
+ readonly ratecard_id: string;
9429
+ readonly currency: string;
9430
+ readonly destination: io.flow.common.v0.models.Zone;
9431
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
9432
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
9433
+ readonly dim_factor: number;
9434
+ readonly fees: io.flow.ratecard.v0.unions.RatecardFee[];
9435
+ readonly origin: io.flow.common.v0.models.Zone;
9436
+ readonly rounding: io.flow.common.v0.models.Rounding;
9437
+ readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
9438
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
9439
+ readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
9440
+ }
9441
+
9442
+ interface RatecardLaneImportForm {
9443
+ readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
9444
+ readonly service: string;
9445
+ readonly currency: string;
9446
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
9447
+ readonly origin: io.flow.common.v0.models.Zone;
9448
+ readonly destination: io.flow.common.v0.models.Zone;
9449
+ readonly shipment_window: io.flow.ratecard.v0.models.ShipmentWindow;
9450
+ readonly dim_factor: number;
9451
+ readonly weight_unit: io.flow.common.v0.enums.UnitOfMeasurement;
9452
+ readonly distance_unit: io.flow.common.v0.enums.UnitOfMeasurement;
9453
+ readonly rates: io.flow.ratecard.v0.models.RatecardRateForm[];
9463
9454
  }
9464
9455
 
9465
- interface OrderPlaced {
9466
- readonly discriminator: 'order_placed';
9467
- readonly event_id: string;
9456
+ interface RatecardLaneVersion {
9457
+ readonly id: string;
9468
9458
  readonly timestamp: string;
9469
- readonly organization: string;
9470
- readonly order_number: string;
9471
- readonly order: io.flow.experience.v0.models.Order;
9472
- readonly allocation: io.flow.experience.v0.models.AllocationV2;
9459
+ readonly type: io.flow.common.v0.enums.ChangeType;
9460
+ readonly ratecard_lane: io.flow.ratecard.v0.models.RatecardLane;
9473
9461
  }
9474
9462
 
9475
- interface OrderPlacedV2 {
9476
- readonly discriminator: 'order_placed_v2';
9477
- readonly event_id: string;
9478
- readonly timestamp: string;
9479
- readonly organization: string;
9480
- readonly order_placed: io.flow.order.management.v0.models.OrderPlacedDetails;
9463
+ interface RatecardLanesImportRequestData {
9464
+ readonly id: string;
9465
+ readonly source_url: string;
9466
+ readonly filename?: string;
9481
9467
  }
9482
9468
 
9483
- interface ReadyToFulfill {
9484
- readonly discriminator: 'ready_to_fulfill';
9485
- readonly event_id: string;
9469
+ interface RatecardRate {
9470
+ readonly id: string;
9471
+ readonly amount: number;
9472
+ readonly weight: number;
9473
+ }
9474
+
9475
+ interface RatecardRateForm {
9476
+ readonly amount: number;
9477
+ readonly weight: number;
9478
+ }
9479
+
9480
+ interface RatecardRateVersion {
9481
+ readonly id: string;
9486
9482
  readonly timestamp: string;
9487
- readonly organization: string;
9488
- readonly order_number: string;
9489
- readonly order: io.flow.experience.v0.models.Order;
9490
- readonly fulfillments?: io.flow.order.management.v0.models.Fulfillment[];
9491
- readonly fulfillment_item_allocation_details?: io.flow.order.management.event.v0.models.FulfillmentItemAllocationDetails[];
9483
+ readonly type: io.flow.common.v0.enums.ChangeType;
9484
+ readonly ratecard_rate: io.flow.ratecard.v0.models.RatecardRate;
9492
9485
  }
9493
9486
 
9494
- interface ReadyToFulfillDetails {
9487
+ interface RatecardReference {
9495
9488
  readonly id: string;
9496
- readonly order_number: string;
9497
- readonly order: io.flow.experience.v0.models.Order;
9498
- readonly fulfillments?: io.flow.order.management.v0.models.Fulfillment[];
9499
- readonly fulfillment_item_allocation_details?: io.flow.order.management.event.v0.models.FulfillmentItemAllocationDetails[];
9500
9489
  }
9501
9490
 
9502
- interface ReadyToFulfillV2 {
9503
- readonly discriminator: 'ready_to_fulfill_v2';
9504
- readonly event_id: string;
9491
+ interface RatecardRegionReference {
9492
+ readonly id: string;
9493
+ }
9494
+
9495
+ interface RatecardServiceSummary {
9496
+ readonly id: string;
9497
+ readonly name: string;
9498
+ readonly carrier: io.flow.ratecard.v0.models.RatecardCarrierSummary;
9499
+ }
9500
+
9501
+ interface RatecardSummary {
9502
+ readonly id: string;
9503
+ readonly number: string;
9504
+ readonly ratecard_owner: io.flow.fulfillment.v0.enums.RatecardOwner;
9505
+ }
9506
+
9507
+ interface RatecardVersion {
9508
+ readonly id: string;
9505
9509
  readonly timestamp: string;
9506
- readonly organization: string;
9507
- readonly ready_to_fulfill: io.flow.order.management.event.v0.models.ReadyToFulfillDetails;
9510
+ readonly type: io.flow.common.v0.enums.ChangeType;
9511
+ readonly ratecard: io.flow.ratecard.v0.models.Ratecard;
9508
9512
  }
9509
- }
9510
9513
 
9511
- declare namespace io.flow.order.management.event.v0.unions {
9512
- type OrderManagementEvent =
9513
- | io.flow.order.management.event.v0.models.OrderPlaced
9514
- | io.flow.order.management.event.v0.models.OrderPlacedV2
9515
- | io.flow.order.management.event.v0.models.ReadyToFulfill
9516
- | io.flow.order.management.event.v0.models.ReadyToFulfillV2;
9514
+ interface RemoteAreaRatecardFee {
9515
+ readonly discriminator: 'remote_area_ratecard_fee';
9516
+ readonly amount: io.flow.common.v0.models.Money;
9517
+ }
9518
+
9519
+ interface RemoteAreaServiceFee {
9520
+ readonly discriminator: 'remote_area_service_fee';
9521
+ readonly amount: io.flow.common.v0.models.Money;
9522
+ }
9523
+
9524
+ interface ReturnPackageRatecardFee {
9525
+ readonly discriminator: 'return_package_ratecard_fee';
9526
+ readonly amount: number;
9527
+ }
9528
+
9529
+ interface ShipmentWindow {
9530
+ readonly from: number;
9531
+ readonly to: number;
9532
+ }
9517
9533
  }
9518
9534
 
9519
- declare namespace io.flow.ftp.v0.enums {
9520
- type FtpFileSource = 'flow' | 'organization';
9535
+ declare namespace io.flow.ratecard.v0.unions {
9536
+ type RatecardEstimate =
9537
+ | io.flow.ratecard.v0.models.RatecardEstimateV1
9538
+ | io.flow.ratecard.v0.models.RatecardEstimateV2
9539
+ | io.flow.ratecard.v0.models.RatecardEstimateV3;
9540
+ type RatecardFee =
9541
+ | io.flow.ratecard.v0.models.DdpRatecardFee
9542
+ | io.flow.ratecard.v0.models.FuelSurchargeRatecardFee
9543
+ | io.flow.ratecard.v0.models.OversizedShipmentRatecardFee
9544
+ | io.flow.ratecard.v0.models.ReturnPackageRatecardFee
9545
+ | io.flow.ratecard.v0.models.CrossdockRatecardFee
9546
+ | io.flow.ratecard.v0.models.RemoteAreaRatecardFee
9547
+ | io.flow.ratecard.v0.models.EmergencySituationSurchargeRatecardFee
9548
+ | io.flow.ratecard.v0.models.PeakSurchargeRatecardFee
9549
+ | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeRatecardFee;
9550
+ type ServiceFee =
9551
+ | io.flow.ratecard.v0.models.FuelSurchargeServiceFee
9552
+ | io.flow.ratecard.v0.models.RemoteAreaServiceFee
9553
+ | io.flow.ratecard.v0.models.EmergencySituationSurchargeServiceFee
9554
+ | io.flow.ratecard.v0.models.PeakSurchargeServiceFee
9555
+ | io.flow.ratecard.v0.models.PeakSurchargeByWeightServiceFee
9556
+ | io.flow.ratecard.v0.models.DutiesTaxesPaidSurchargeServiceFee;
9521
9557
  }
9522
9558
 
9523
- declare namespace io.flow.ftp.v0.models {
9524
- interface FtpAccount {
9525
- readonly server: io.flow.ftp.v0.models.FtpServer;
9526
- readonly user: io.flow.ftp.v0.models.FtpUser;
9559
+ declare namespace io.flow.token.v0.models {
9560
+ interface ChannelToken {
9561
+ readonly discriminator: 'channel_token';
9562
+ readonly id: string;
9563
+ readonly channel: io.flow.common.v0.models.ChannelReference;
9564
+ readonly user: io.flow.common.v0.models.UserReference;
9565
+ readonly partial: string;
9566
+ readonly created_at: string;
9567
+ readonly description?: string;
9527
9568
  }
9528
9569
 
9529
- interface FtpFile {
9570
+ interface ChannelTokenReference {
9571
+ readonly discriminator: 'channel_token_reference';
9530
9572
  readonly id: string;
9531
- readonly source: io.flow.ftp.v0.enums.FtpFileSource;
9532
- readonly name: string;
9533
- readonly directory: string;
9534
- readonly url: string;
9573
+ readonly channel: io.flow.common.v0.models.ChannelReference;
9574
+ readonly user: io.flow.common.v0.models.UserReference;
9575
+ }
9576
+
9577
+ interface Cleartext {
9578
+ readonly value: string;
9579
+ }
9580
+
9581
+ interface OrganizationToken {
9582
+ readonly discriminator: 'organization_token';
9583
+ readonly id: string;
9584
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
9585
+ readonly user: io.flow.common.v0.models.UserReference;
9586
+ readonly environment: io.flow.common.v0.enums.Environment;
9587
+ readonly partial: string;
9535
9588
  readonly created_at: string;
9589
+ readonly description?: string;
9536
9590
  }
9537
9591
 
9538
- interface FtpFileForm {
9539
- readonly url: string;
9540
- readonly directory: string;
9541
- readonly name?: string;
9592
+ interface OrganizationTokenForm {
9593
+ readonly environment: io.flow.common.v0.enums.Environment;
9594
+ readonly description?: string;
9542
9595
  }
9543
9596
 
9544
- interface FtpFolder {
9597
+ interface OrganizationTokenReference {
9598
+ readonly discriminator: 'organization_token_reference';
9545
9599
  readonly id: string;
9546
- readonly path: string;
9547
- readonly webhook: boolean;
9600
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
9601
+ readonly environment: io.flow.common.v0.enums.Environment;
9602
+ readonly user: io.flow.common.v0.models.UserReference;
9603
+ }
9604
+
9605
+ interface PartnerToken {
9606
+ readonly discriminator: 'partner_token';
9607
+ readonly id: string;
9608
+ readonly partner: io.flow.token.v0.models.TokenPartnerReference;
9609
+ readonly user: io.flow.common.v0.models.UserReference;
9610
+ readonly environment: io.flow.common.v0.enums.Environment;
9611
+ readonly partial: string;
9612
+ readonly created_at: string;
9548
9613
  readonly description?: string;
9549
9614
  }
9550
9615
 
9551
- interface FtpFolderForm {
9552
- readonly path: string;
9553
- readonly webhook: boolean;
9616
+ interface PartnerTokenForm {
9617
+ readonly environment: io.flow.common.v0.enums.Environment;
9554
9618
  readonly description?: string;
9555
9619
  }
9556
9620
 
9557
- interface FtpOrganizationSettings {
9558
- readonly enabled: boolean;
9559
- readonly emails: string[];
9560
- readonly account?: io.flow.ftp.v0.models.FtpAccount;
9621
+ interface PartnerTokenReference {
9622
+ readonly discriminator: 'partner_token_reference';
9623
+ readonly id: string;
9624
+ readonly partner: io.flow.token.v0.models.TokenPartnerReference;
9625
+ readonly environment: io.flow.common.v0.enums.Environment;
9626
+ readonly user: io.flow.common.v0.models.UserReference;
9561
9627
  }
9562
9628
 
9563
- interface FtpOrganizationSettingsForm {
9564
- readonly enabled: boolean;
9565
- readonly emails: string[];
9629
+ interface TokenAuthenticationForm {
9630
+ readonly token: string;
9566
9631
  }
9567
9632
 
9568
- interface FtpServer {
9569
- readonly hostname: string;
9633
+ interface TokenPartnerReference {
9634
+ readonly id: string;
9570
9635
  }
9571
9636
 
9572
- interface FtpUser {
9573
- readonly username: string;
9574
- readonly password?: string;
9637
+ interface TokenValidation {
9638
+ readonly status: string;
9639
+ }
9640
+
9641
+ interface TokenValidationForm {
9642
+ readonly token: string;
9575
9643
  }
9576
9644
  }
9577
9645
 
9646
+ declare namespace io.flow.token.v0.unions {
9647
+ type Token =
9648
+ | io.flow.token.v0.models.ChannelToken
9649
+ | io.flow.token.v0.models.OrganizationToken
9650
+ | io.flow.token.v0.models.PartnerToken;
9651
+ type TokenReference =
9652
+ | io.flow.token.v0.models.ChannelTokenReference
9653
+ | io.flow.token.v0.models.OrganizationTokenReference
9654
+ | io.flow.token.v0.models.PartnerTokenReference;
9655
+ }
9656
+
9578
9657
  declare namespace io.flow.catalog.exclusion.v0.enums {
9579
9658
  type ExclusionRuleState = 'current' | 'deleting' | 'updating';
9580
9659
  }
@@ -12078,10 +12157,7 @@ declare namespace io.flow.internal.v0.enums {
12078
12157
  | 'manual'
12079
12158
  | 'orders'
12080
12159
  | 'all';
12081
- type BillingStatementBatchFileKey =
12082
- | 'archive'
12083
- | 'summary'
12084
- | 'label_transactions';
12160
+ type BillingStatementBatchFileKey = 'archive' | 'summary';
12085
12161
  type BillingStatementReviewStatus = 'approved' | 'pending';
12086
12162
  type BillingTransactionStatus = 'pending' | 'posted';
12087
12163
  type BillingTransactionType =
@@ -12097,6 +12173,12 @@ declare namespace io.flow.internal.v0.enums {
12097
12173
  | 'tax_remittance'
12098
12174
  | 'fully_subsidized_order'
12099
12175
  | 'credit_payment';
12176
+ type BlazeCheckoutEvent =
12177
+ | 'begin_checkout'
12178
+ | 'select_promotion'
12179
+ | 'add_shipping_info'
12180
+ | 'add_payment_info'
12181
+ | 'purchase';
12100
12182
  type BlazeCheckoutStep = 'customer_info' | 'delivery' | 'payment';
12101
12183
  type BrowserBundleErrorCode = 'generic_error' | 'country_invalid';
12102
12184
  type CarrierLabelGenerationMethod = 'direct' | 'easypost';
@@ -12394,7 +12476,14 @@ declare namespace io.flow.internal.v0.enums {
12394
12476
  type DeliveredDutyOptionMessageType = 'warning' | 'notification';
12395
12477
  type DeminimisAdjustmentType = 'none' | 'duty' | 'vat' | 'vat_and_duty';
12396
12478
  type DiscountRequestOrderEntitlementKey = 'subtotal';
12479
+ type DisputeCategory = 'friendly_fraud' | 'true_fraud' | 'processing_error';
12397
12480
  type DisputeEvidence = 'proof_of_delivery' | 'proof_of_fulfillment' | 'other';
12481
+ type DisputeImportStatus = 'new' | 'processing' | 'completed' | 'failed';
12482
+ type DisputeImportType = 'adyen_dispute';
12483
+ type DisputeLiability = 'flow' | 'organization';
12484
+ type DisputeProcessor = 'adyen' | 'paypal';
12485
+ type DisputeStatus = 'pending' | 'won' | 'lost' | 'expired';
12486
+ type DisputeType = 'chargeback';
12398
12487
  type DutyCompoundExpressionType = 'sum' | 'max' | 'min';
12399
12488
  type DutyExemptItemTypes =
12400
12489
  | 'gift_card'
@@ -13807,6 +13896,23 @@ declare namespace io.flow.internal.v0.models {
13807
13896
  readonly tax?: number;
13808
13897
  }
13809
13898
 
13899
+ interface BlazeCheckoutEventMessage {
13900
+ readonly discriminator: 'checkout_event';
13901
+ readonly event_type: io.flow.internal.v0.enums.BlazeCheckoutEvent;
13902
+ readonly affiliation: string;
13903
+ readonly order_number: string;
13904
+ readonly lines: io.flow.internal.v0.models.BlazeCheckoutLine[];
13905
+ readonly country: string;
13906
+ readonly language: string;
13907
+ readonly geo_currency: string;
13908
+ readonly currency: string;
13909
+ readonly promotions?: string[];
13910
+ readonly duty?: number;
13911
+ readonly tax?: number;
13912
+ readonly shipping?: number;
13913
+ readonly revenue?: number;
13914
+ }
13915
+
13810
13916
  interface BlazeCheckoutItem {
13811
13917
  readonly attributes: Record<string, string>;
13812
13918
  readonly item_number: string;
@@ -13831,6 +13937,10 @@ declare namespace io.flow.internal.v0.models {
13831
13937
  readonly step: io.flow.internal.v0.enums.BlazeCheckoutStep;
13832
13938
  }
13833
13939
 
13940
+ interface BlazeExitCheckoutConfirmationMessage {
13941
+ readonly discriminator: 'exit_checkout_confirmation';
13942
+ }
13943
+
13834
13944
  interface BlazeExitCheckoutMessage {
13835
13945
  readonly discriminator: 'exit_checkout';
13836
13946
  }
@@ -14054,6 +14164,13 @@ declare namespace io.flow.internal.v0.models {
14054
14164
  readonly name: string;
14055
14165
  }
14056
14166
 
14167
+ interface Channel {
14168
+ readonly id: string;
14169
+ readonly name: string;
14170
+ readonly environment: io.flow.common.v0.enums.Environment;
14171
+ readonly organization_id_prefix?: string;
14172
+ }
14173
+
14057
14174
  interface ChannelCurrencySetting {
14058
14175
  readonly id: string;
14059
14176
  readonly channel_id: string;
@@ -14083,6 +14200,12 @@ declare namespace io.flow.internal.v0.models {
14083
14200
  readonly channel_currency_setting: io.flow.internal.v0.models.ChannelCurrencySetting;
14084
14201
  }
14085
14202
 
14203
+ interface ChannelForm {
14204
+ readonly name: string;
14205
+ readonly environment: io.flow.common.v0.enums.Environment;
14206
+ readonly organization_id_prefix?: string;
14207
+ }
14208
+
14086
14209
  interface ChannelServiceFee {
14087
14210
  readonly tiers: io.flow.internal.v0.models.ChannelServiceFeeTier[];
14088
14211
  }
@@ -14092,6 +14215,11 @@ declare namespace io.flow.internal.v0.models {
14092
14215
  readonly amount: number;
14093
14216
  }
14094
14217
 
14218
+ interface ChannelTokenForm {
14219
+ readonly channel_id: string;
14220
+ readonly description?: string;
14221
+ }
14222
+
14095
14223
  interface ChannelTransaction {
14096
14224
  readonly id: string;
14097
14225
  readonly organization_id: string;
@@ -16711,6 +16839,54 @@ declare namespace io.flow.internal.v0.models {
16711
16839
  readonly order_entitlement_forms: io.flow.internal.v0.models.DiscountRequestOrderEntitlementForm[];
16712
16840
  }
16713
16841
 
16842
+ interface Dispute {
16843
+ readonly id: string;
16844
+ readonly processor: io.flow.internal.v0.enums.DisputeProcessor;
16845
+ readonly key: string;
16846
+ readonly total: io.flow.common.v0.models.Money;
16847
+ readonly type: io.flow.internal.v0.enums.DisputeType;
16848
+ readonly category: io.flow.internal.v0.enums.DisputeCategory;
16849
+ readonly reason: string;
16850
+ readonly status: io.flow.internal.v0.enums.DisputeStatus;
16851
+ readonly liability?: io.flow.internal.v0.enums.DisputeLiability;
16852
+ readonly details: io.flow.internal.v0.unions.DisputeDetails;
16853
+ readonly expires_at?: string;
16854
+ readonly created_at: string;
16855
+ }
16856
+
16857
+ interface DisputeDetailsAdyen {
16858
+ readonly discriminator: 'adyen';
16859
+ readonly psp_reference: string;
16860
+ readonly dispute_psp_reference: string;
16861
+ }
16862
+
16863
+ interface DisputeDetailsPaypal {
16864
+ readonly discriminator: 'paypal';
16865
+ readonly placeholder?: string;
16866
+ }
16867
+
16868
+ interface DisputeImport {
16869
+ readonly id: string;
16870
+ readonly type: io.flow.internal.v0.enums.DisputeImportType;
16871
+ readonly status: io.flow.internal.v0.enums.DisputeImportStatus;
16872
+ readonly url: string;
16873
+ readonly errors?: io.flow.internal.v0.models.DisputeImportErrors;
16874
+ readonly created_at: string;
16875
+ }
16876
+
16877
+ interface DisputeImportError {
16878
+ readonly message: string;
16879
+ }
16880
+
16881
+ interface DisputeImportErrors {
16882
+ readonly count: number;
16883
+ }
16884
+
16885
+ interface DisputeImportForm {
16886
+ readonly url: string;
16887
+ readonly type: io.flow.internal.v0.enums.DisputeImportType;
16888
+ }
16889
+
16714
16890
  interface DutiedItemsExport {
16715
16891
  readonly discriminator: 'dutied_items_export';
16716
16892
  readonly event_id: string;
@@ -19116,6 +19292,14 @@ declare namespace io.flow.internal.v0.models {
19116
19292
  readonly region: string;
19117
19293
  }
19118
19294
 
19295
+ interface LevyRateSummary {
19296
+ readonly id: string;
19297
+ readonly number: string;
19298
+ readonly destination: io.flow.common.v0.models.Address;
19299
+ readonly items: io.flow.harmonization.v0.models.HarmonizedLandedCostItem[];
19300
+ readonly tax_registration?: io.flow.harmonization.v0.models.TaxRegistration;
19301
+ }
19302
+
19119
19303
  interface Liability {
19120
19304
  readonly delivery_key: string;
19121
19305
  readonly tax_jurisdiction: string;
@@ -22474,8 +22658,10 @@ declare namespace io.flow.internal.v0.unions {
22474
22658
  type BlazeProviderMessage =
22475
22659
  | io.flow.internal.v0.models.BlazeCheckoutCompleteMessage
22476
22660
  | io.flow.internal.v0.models.BlazeCheckoutProgressMessage
22661
+ | io.flow.internal.v0.models.BlazeCheckoutEventMessage
22477
22662
  | io.flow.internal.v0.models.BlazeStartCheckoutMessage
22478
22663
  | io.flow.internal.v0.models.BlazeExitCheckoutMessage
22664
+ | io.flow.internal.v0.models.BlazeExitCheckoutConfirmationMessage
22479
22665
  | io.flow.internal.v0.models.BlazeRedirectConfirmationMessage
22480
22666
  | io.flow.internal.v0.models.BlazeSynInitializeMessage
22481
22667
  | io.flow.internal.v0.models.BlazeApplepayAvailabilityRequest
@@ -22806,6 +22992,9 @@ declare namespace io.flow.internal.v0.unions {
22806
22992
  | io.flow.internal.v0.models.ContentLabel
22807
22993
  | io.flow.internal.v0.models.Load;
22808
22994
  type DiscountRequestOfferForm = io.flow.internal.v0.models.DiscountRequestOfferFixedAmountForm;
22995
+ type DisputeDetails =
22996
+ | io.flow.internal.v0.models.DisputeDetailsAdyen
22997
+ | io.flow.internal.v0.models.DisputeDetailsPaypal;
22809
22998
  type DutyExpression =
22810
22999
  | io.flow.internal.v0.models.DutyCompoundExpression
22811
23000
  | io.flow.internal.v0.models.DutySimpleExpression;
@@ -23379,11 +23568,14 @@ export type BlazeAddToCartMessage = io.flow.internal.v0.models.BlazeAddToCartMes
23379
23568
  export type BlazeApplepayAvailabilityRequest = io.flow.internal.v0.models.BlazeApplepayAvailabilityRequest;
23380
23569
  export type BlazeApplepayAvailabilityResponse = io.flow.internal.v0.models.BlazeApplepayAvailabilityResponse;
23381
23570
  export type BlazeCheckoutCompleteMessage = io.flow.internal.v0.models.BlazeCheckoutCompleteMessage;
23571
+ export type BlazeCheckoutEvent = io.flow.internal.v0.enums.BlazeCheckoutEvent;
23572
+ export type BlazeCheckoutEventMessage = io.flow.internal.v0.models.BlazeCheckoutEventMessage;
23382
23573
  export type BlazeCheckoutItem = io.flow.internal.v0.models.BlazeCheckoutItem;
23383
23574
  export type BlazeCheckoutLine = io.flow.internal.v0.models.BlazeCheckoutLine;
23384
23575
  export type BlazeCheckoutProgressMessage = io.flow.internal.v0.models.BlazeCheckoutProgressMessage;
23385
23576
  export type BlazeCheckoutStep = io.flow.internal.v0.enums.BlazeCheckoutStep;
23386
23577
  export type BlazeConsumerMessage = io.flow.internal.v0.unions.BlazeConsumerMessage;
23578
+ export type BlazeExitCheckoutConfirmationMessage = io.flow.internal.v0.models.BlazeExitCheckoutConfirmationMessage;
23387
23579
  export type BlazeExitCheckoutMessage = io.flow.internal.v0.models.BlazeExitCheckoutMessage;
23388
23580
  export type BlazeInitializeMessage = io.flow.internal.v0.models.BlazeInitializeMessage;
23389
23581
  export type BlazePaymentAuthCompleteMessage = io.flow.internal.v0.models.BlazePaymentAuthCompleteMessage;
@@ -23428,12 +23620,15 @@ export type CatalogItemRegionAvailabilitiesData = io.flow.internal.v0.models.Cat
23428
23620
  export type CatalogItemRegionAvailabilitiesPublished = io.flow.internal.v0.models.CatalogItemRegionAvailabilitiesPublished;
23429
23621
  export type CenterQueryBuilder = io.flow.internal.v0.models.CenterQueryBuilder;
23430
23622
  export type ChangeSettingsIndexTask = io.flow.internal.v0.models.ChangeSettingsIndexTask;
23623
+ export type Channel = io.flow.internal.v0.models.Channel;
23431
23624
  export type ChannelCurrencySetting = io.flow.internal.v0.models.ChannelCurrencySetting;
23432
23625
  export type ChannelCurrencySettingDeleted = io.flow.internal.v0.models.ChannelCurrencySettingDeleted;
23433
23626
  export type ChannelCurrencySettingForm = io.flow.internal.v0.models.ChannelCurrencySettingForm;
23434
23627
  export type ChannelCurrencySettingUpserted = io.flow.internal.v0.models.ChannelCurrencySettingUpserted;
23628
+ export type ChannelForm = io.flow.internal.v0.models.ChannelForm;
23435
23629
  export type ChannelServiceFee = io.flow.internal.v0.models.ChannelServiceFee;
23436
23630
  export type ChannelServiceFeeTier = io.flow.internal.v0.models.ChannelServiceFeeTier;
23631
+ export type ChannelTokenForm = io.flow.internal.v0.models.ChannelTokenForm;
23437
23632
  export type ChannelTransaction = io.flow.internal.v0.models.ChannelTransaction;
23438
23633
  export type ChannelTransactionDeleted = io.flow.internal.v0.models.ChannelTransactionDeleted;
23439
23634
  export type ChannelTransactionUpserted = io.flow.internal.v0.models.ChannelTransactionUpserted;
@@ -24037,7 +24232,22 @@ export type DiscountRequestOfferForm = io.flow.internal.v0.unions.DiscountReques
24037
24232
  export type DiscountRequestOrderEntitlementForm = io.flow.internal.v0.models.DiscountRequestOrderEntitlementForm;
24038
24233
  export type DiscountRequestOrderEntitlementKey = io.flow.internal.v0.enums.DiscountRequestOrderEntitlementKey;
24039
24234
  export type DiscountRequestOrderForm = io.flow.internal.v0.models.DiscountRequestOrderForm;
24235
+ export type Dispute = io.flow.internal.v0.models.Dispute;
24236
+ export type DisputeCategory = io.flow.internal.v0.enums.DisputeCategory;
24237
+ export type DisputeDetails = io.flow.internal.v0.unions.DisputeDetails;
24238
+ export type DisputeDetailsAdyen = io.flow.internal.v0.models.DisputeDetailsAdyen;
24239
+ export type DisputeDetailsPaypal = io.flow.internal.v0.models.DisputeDetailsPaypal;
24040
24240
  export type DisputeEvidence = io.flow.internal.v0.enums.DisputeEvidence;
24241
+ export type DisputeImport = io.flow.internal.v0.models.DisputeImport;
24242
+ export type DisputeImportError = io.flow.internal.v0.models.DisputeImportError;
24243
+ export type DisputeImportErrors = io.flow.internal.v0.models.DisputeImportErrors;
24244
+ export type DisputeImportForm = io.flow.internal.v0.models.DisputeImportForm;
24245
+ export type DisputeImportStatus = io.flow.internal.v0.enums.DisputeImportStatus;
24246
+ export type DisputeImportType = io.flow.internal.v0.enums.DisputeImportType;
24247
+ export type DisputeLiability = io.flow.internal.v0.enums.DisputeLiability;
24248
+ export type DisputeProcessor = io.flow.internal.v0.enums.DisputeProcessor;
24249
+ export type DisputeStatus = io.flow.internal.v0.enums.DisputeStatus;
24250
+ export type DisputeType = io.flow.internal.v0.enums.DisputeType;
24041
24251
  export type DutiedItemsExport = io.flow.internal.v0.models.DutiedItemsExport;
24042
24252
  export type Duties = io.flow.internal.v0.models.Duties;
24043
24253
  export type DutyCompoundExpression = io.flow.internal.v0.models.DutyCompoundExpression;
@@ -24378,6 +24588,7 @@ export type LabeledContent = io.flow.internal.v0.models.LabeledContent;
24378
24588
  export type LabelsPrediction = io.flow.internal.v0.models.LabelsPrediction;
24379
24589
  export type LandedCostItem = io.flow.internal.v0.models.LandedCostItem;
24380
24590
  export type Landmark = io.flow.internal.v0.models.Landmark;
24591
+ export type LevyRateSummary = io.flow.internal.v0.models.LevyRateSummary;
24381
24592
  export type Liability = io.flow.internal.v0.models.Liability;
24382
24593
  export type LiabilityItem = io.flow.internal.v0.models.LiabilityItem;
24383
24594
  export type LiabilityMoney = io.flow.internal.v0.models.LiabilityMoney;