@flowio/types 11.24.14 → 11.24.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-internal.d.ts +151 -126
- package/dist/api.d.ts +22 -555
- package/package.json +2 -2
- package/src/api-internal.ts +223 -186
- package/src/api.ts +34 -727
package/src/api.ts
CHANGED
|
@@ -2002,726 +2002,6 @@ declare namespace io.flow.shopify.external.v0.models {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
2004
2004
|
|
|
2005
|
-
declare namespace io.flow.channel.internal.v0.enums {
|
|
2006
|
-
type ChannelCurrencyCapability =
|
|
2007
|
-
| 'payment_authorizations'
|
|
2008
|
-
| 'settlement_currency';
|
|
2009
|
-
type ChannelOrderAcceptanceRejectionReason =
|
|
2010
|
-
| 'unsupported_origin_country'
|
|
2011
|
-
| 'unsupported_destination_country'
|
|
2012
|
-
| 'domestic_order'
|
|
2013
|
-
| 'order_contains_gift_card';
|
|
2014
|
-
type ChannelOrderAcceptanceStatus = 'accepted' | 'rejected' | 'review';
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
declare namespace io.flow.channel.internal.v0.models {
|
|
2018
|
-
interface Channel {
|
|
2019
|
-
readonly id: string;
|
|
2020
|
-
readonly name: string;
|
|
2021
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2022
|
-
readonly organization_id_prefix?: string;
|
|
2023
|
-
}
|
|
2024
|
-
|
|
2025
|
-
interface ChannelCurrency {
|
|
2026
|
-
readonly id: string;
|
|
2027
|
-
readonly currency: string;
|
|
2028
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
2029
|
-
readonly capabilities: io.flow.channel.internal.v0.enums.ChannelCurrencyCapability[];
|
|
2030
|
-
}
|
|
2031
|
-
|
|
2032
|
-
interface ChannelCurrencyForm {
|
|
2033
|
-
readonly currency: string;
|
|
2034
|
-
readonly channel_id: string;
|
|
2035
|
-
readonly capabilities: io.flow.channel.internal.v0.enums.ChannelCurrencyCapability[];
|
|
2036
|
-
}
|
|
2037
|
-
|
|
2038
|
-
interface ChannelForm {
|
|
2039
|
-
readonly name: string;
|
|
2040
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2041
|
-
readonly organization_id_prefix?: string;
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
interface ChannelMembership {
|
|
2045
|
-
readonly id: string;
|
|
2046
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
2047
|
-
readonly user: io.flow.common.v0.unions.ExpandableUser;
|
|
2048
|
-
readonly role?: io.flow.common.v0.enums.Role;
|
|
2049
|
-
}
|
|
2050
|
-
|
|
2051
|
-
interface ChannelMembershipForm {
|
|
2052
|
-
readonly channel_id: string;
|
|
2053
|
-
readonly user_id: string;
|
|
2054
|
-
readonly role?: io.flow.common.v0.enums.Role;
|
|
2055
|
-
}
|
|
2056
|
-
|
|
2057
|
-
interface ChannelMembershipPutForm {
|
|
2058
|
-
readonly role?: io.flow.common.v0.enums.Role;
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
interface ChannelOrderAcceptance {
|
|
2062
|
-
readonly id: string;
|
|
2063
|
-
readonly organization_id: string;
|
|
2064
|
-
readonly order_number: string;
|
|
2065
|
-
readonly channel_id: string;
|
|
2066
|
-
readonly external_order_reference: string;
|
|
2067
|
-
readonly payment_request_id?: string;
|
|
2068
|
-
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
2069
|
-
readonly reasons: io.flow.channel.internal.v0.models.ChannelOrderAcceptanceReason[];
|
|
2070
|
-
}
|
|
2071
|
-
|
|
2072
|
-
interface ChannelOrderAcceptanceForm {
|
|
2073
|
-
readonly status: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceStatus;
|
|
2074
|
-
}
|
|
2075
|
-
|
|
2076
|
-
interface ChannelOrderAcceptanceReason {
|
|
2077
|
-
readonly description: string;
|
|
2078
|
-
readonly rejection_reason?: io.flow.channel.internal.v0.enums.ChannelOrderAcceptanceRejectionReason;
|
|
2079
|
-
}
|
|
2080
|
-
}
|
|
2081
|
-
|
|
2082
|
-
declare namespace io.flow.common.v0.enums {
|
|
2083
|
-
type AttributeDataType =
|
|
2084
|
-
| 'boolean'
|
|
2085
|
-
| 'integer'
|
|
2086
|
-
| 'decimal'
|
|
2087
|
-
| 'string'
|
|
2088
|
-
| 'json_array';
|
|
2089
|
-
type AvailabilityStatus = 'enabled' | 'disabled';
|
|
2090
|
-
type Calendar = 'weekdays' | 'everyday';
|
|
2091
|
-
type Capability = 'crossdock';
|
|
2092
|
-
type ChangeType = 'insert' | 'update' | 'delete';
|
|
2093
|
-
type CurrencyLabelFormatter =
|
|
2094
|
-
| 'strip_trailing_zeros'
|
|
2095
|
-
| 'symbol_prefix'
|
|
2096
|
-
| 'symbol_suffix';
|
|
2097
|
-
type CurrencySymbolFormat = 'narrow' | 'primary';
|
|
2098
|
-
type DayOfWeek =
|
|
2099
|
-
| 'sunday'
|
|
2100
|
-
| 'monday'
|
|
2101
|
-
| 'tuesday'
|
|
2102
|
-
| 'wednesday'
|
|
2103
|
-
| 'thursday'
|
|
2104
|
-
| 'friday'
|
|
2105
|
-
| 'saturday';
|
|
2106
|
-
type DeliveredDuty = 'paid' | 'unpaid';
|
|
2107
|
-
type DiscountTarget = 'item' | 'shipping';
|
|
2108
|
-
type EntityIdentifierType = 'ioss' | 'voec';
|
|
2109
|
-
type Environment = 'sandbox' | 'production';
|
|
2110
|
-
type ExceptionType = 'open' | 'closed';
|
|
2111
|
-
type GoodsSupply = 'export' | 'intra_community' | 'local';
|
|
2112
|
-
type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
|
|
2113
|
-
type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
|
|
2114
|
-
type Incoterm =
|
|
2115
|
-
| 'EXW'
|
|
2116
|
-
| 'FCA'
|
|
2117
|
-
| 'CPT'
|
|
2118
|
-
| 'CIP'
|
|
2119
|
-
| 'DAT'
|
|
2120
|
-
| 'DAP'
|
|
2121
|
-
| 'DDP'
|
|
2122
|
-
| 'FAS'
|
|
2123
|
-
| 'FOB'
|
|
2124
|
-
| 'CFR'
|
|
2125
|
-
| 'CIF'
|
|
2126
|
-
| 'DAF'
|
|
2127
|
-
| 'DES'
|
|
2128
|
-
| 'DEQ'
|
|
2129
|
-
| 'DDU';
|
|
2130
|
-
type InputSpecificationType = 'text' | 'number';
|
|
2131
|
-
type MarginType = 'fixed' | 'percent';
|
|
2132
|
-
type MeasurementSystem = 'imperial' | 'metric';
|
|
2133
|
-
type MerchantOfRecord = 'flow' | 'organization';
|
|
2134
|
-
type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
|
|
2135
|
-
type OrganizationStatus =
|
|
2136
|
-
| 'active'
|
|
2137
|
-
| 'inactive'
|
|
2138
|
-
| 'deactivated'
|
|
2139
|
-
| 'provisioned';
|
|
2140
|
-
type PriceBookStatus = 'draft' | 'published' | 'archived';
|
|
2141
|
-
type Role = 'admin' | 'member';
|
|
2142
|
-
type RoundingMethod = 'up' | 'down' | 'nearest';
|
|
2143
|
-
type RoundingType = 'pattern' | 'multiple';
|
|
2144
|
-
type ScheduleExceptionStatus = 'Open' | 'Closed';
|
|
2145
|
-
type SortDirection = 'ascending' | 'descending';
|
|
2146
|
-
type UnitOfMeasurement =
|
|
2147
|
-
| 'millimeter'
|
|
2148
|
-
| 'centimeter'
|
|
2149
|
-
| 'inch'
|
|
2150
|
-
| 'foot'
|
|
2151
|
-
| 'cubic_inch'
|
|
2152
|
-
| 'cubic_meter'
|
|
2153
|
-
| 'gram'
|
|
2154
|
-
| 'kilogram'
|
|
2155
|
-
| 'meter'
|
|
2156
|
-
| 'ounce'
|
|
2157
|
-
| 'pound';
|
|
2158
|
-
type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
|
|
2159
|
-
type UserStatus = 'pending' | 'active' | 'inactive';
|
|
2160
|
-
type ValueAddedService = 'Hazardous Material';
|
|
2161
|
-
type Visibility = 'public' | 'private';
|
|
2162
|
-
}
|
|
2163
|
-
|
|
2164
|
-
declare namespace io.flow.common.v0.models {
|
|
2165
|
-
interface Address {
|
|
2166
|
-
readonly text?: string;
|
|
2167
|
-
readonly streets?: string[];
|
|
2168
|
-
readonly street_number?: string;
|
|
2169
|
-
readonly city?: string;
|
|
2170
|
-
readonly province?: string;
|
|
2171
|
-
readonly postal?: string;
|
|
2172
|
-
readonly country?: string;
|
|
2173
|
-
readonly latitude?: string;
|
|
2174
|
-
readonly longitude?: string;
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
interface BillingAddress {
|
|
2178
|
-
readonly name?: io.flow.common.v0.models.Name;
|
|
2179
|
-
readonly streets?: string[];
|
|
2180
|
-
readonly city?: string;
|
|
2181
|
-
readonly province?: string;
|
|
2182
|
-
readonly postal?: string;
|
|
2183
|
-
readonly country?: string;
|
|
2184
|
-
readonly company?: string;
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
interface CatalogItemReference {
|
|
2188
|
-
readonly id: string;
|
|
2189
|
-
readonly number: string;
|
|
2190
|
-
}
|
|
2191
|
-
|
|
2192
|
-
interface CatalogItemSummary {
|
|
2193
|
-
readonly number: string;
|
|
2194
|
-
readonly name: string;
|
|
2195
|
-
readonly attributes: Record<string, string>;
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
interface ChannelReference {
|
|
2199
|
-
readonly id: string;
|
|
2200
|
-
}
|
|
2201
|
-
|
|
2202
|
-
interface CheckoutReference {
|
|
2203
|
-
readonly id: string;
|
|
2204
|
-
}
|
|
2205
|
-
|
|
2206
|
-
interface Contact {
|
|
2207
|
-
readonly name: io.flow.common.v0.models.Name;
|
|
2208
|
-
readonly company?: string;
|
|
2209
|
-
readonly email?: string;
|
|
2210
|
-
readonly phone?: string;
|
|
2211
|
-
}
|
|
2212
|
-
|
|
2213
|
-
interface CustomerInvoice {
|
|
2214
|
-
readonly address?: io.flow.common.v0.models.BillingAddress;
|
|
2215
|
-
}
|
|
2216
|
-
|
|
2217
|
-
interface CustomerReference {
|
|
2218
|
-
readonly number: string;
|
|
2219
|
-
}
|
|
2220
|
-
|
|
2221
|
-
interface DatetimeRange {
|
|
2222
|
-
readonly from: string;
|
|
2223
|
-
readonly to: string;
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
interface Dimension {
|
|
2227
|
-
readonly depth?: io.flow.common.v0.models.Measurement;
|
|
2228
|
-
readonly diameter?: io.flow.common.v0.models.Measurement;
|
|
2229
|
-
readonly length?: io.flow.common.v0.models.Measurement;
|
|
2230
|
-
readonly weight?: io.flow.common.v0.models.Measurement;
|
|
2231
|
-
readonly width?: io.flow.common.v0.models.Measurement;
|
|
2232
|
-
}
|
|
2233
|
-
|
|
2234
|
-
interface Dimensions {
|
|
2235
|
-
readonly product?: io.flow.common.v0.models.Dimension;
|
|
2236
|
-
readonly packaging?: io.flow.common.v0.models.Dimension;
|
|
2237
|
-
}
|
|
2238
|
-
|
|
2239
|
-
interface DiscountForm {
|
|
2240
|
-
readonly offer: io.flow.common.v0.unions.DiscountOffer;
|
|
2241
|
-
readonly target?: io.flow.common.v0.enums.DiscountTarget;
|
|
2242
|
-
readonly label?: string;
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
interface DiscountOfferFixed {
|
|
2246
|
-
readonly discriminator: 'discount_offer_fixed';
|
|
2247
|
-
readonly money: io.flow.common.v0.models.Money;
|
|
2248
|
-
}
|
|
2249
|
-
|
|
2250
|
-
interface DiscountOfferPercent {
|
|
2251
|
-
readonly discriminator: 'discount_offer_percent';
|
|
2252
|
-
readonly percent: number;
|
|
2253
|
-
}
|
|
2254
|
-
|
|
2255
|
-
interface DiscountsForm {
|
|
2256
|
-
readonly discounts: io.flow.common.v0.models.DiscountForm[];
|
|
2257
|
-
}
|
|
2258
|
-
|
|
2259
|
-
interface Duration {
|
|
2260
|
-
readonly unit: io.flow.common.v0.enums.UnitOfTime;
|
|
2261
|
-
readonly value: number;
|
|
2262
|
-
}
|
|
2263
|
-
|
|
2264
|
-
interface EntityIdentifier {
|
|
2265
|
-
readonly name: io.flow.common.v0.enums.EntityIdentifierType;
|
|
2266
|
-
readonly number: string;
|
|
2267
|
-
readonly issuing_country?: string;
|
|
2268
|
-
}
|
|
2269
|
-
|
|
2270
|
-
interface Exception {
|
|
2271
|
-
readonly type: io.flow.common.v0.enums.ExceptionType;
|
|
2272
|
-
readonly datetime_range: io.flow.common.v0.models.DatetimeRange;
|
|
2273
|
-
}
|
|
2274
|
-
|
|
2275
|
-
interface ExperienceSummary {
|
|
2276
|
-
readonly id: string;
|
|
2277
|
-
readonly key: string;
|
|
2278
|
-
readonly name: string;
|
|
2279
|
-
readonly country?: string;
|
|
2280
|
-
readonly currency?: string;
|
|
2281
|
-
readonly language?: string;
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
interface IncludedLevies {
|
|
2285
|
-
readonly key: io.flow.common.v0.enums.IncludedLevyKey;
|
|
2286
|
-
readonly label: string;
|
|
2287
|
-
}
|
|
2288
|
-
|
|
2289
|
-
interface InputForm {
|
|
2290
|
-
readonly values?: Record<string, string>;
|
|
2291
|
-
}
|
|
2292
|
-
|
|
2293
|
-
interface InputFormSpecification {
|
|
2294
|
-
readonly inputs?: io.flow.common.v0.models.InputSpecification[];
|
|
2295
|
-
readonly limitations?: io.flow.common.v0.models.InputSpecificationLimitations;
|
|
2296
|
-
}
|
|
2297
|
-
|
|
2298
|
-
interface InputSpecification {
|
|
2299
|
-
readonly type: io.flow.common.v0.enums.InputSpecificationType;
|
|
2300
|
-
readonly name: string;
|
|
2301
|
-
readonly display_text?: string;
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
interface InputSpecificationLimitationMax {
|
|
2305
|
-
readonly discriminator: 'input_specification_limitation_max';
|
|
2306
|
-
readonly max: number;
|
|
2307
|
-
}
|
|
2308
|
-
|
|
2309
|
-
interface InputSpecificationLimitations {
|
|
2310
|
-
readonly limitations?: io.flow.common.v0.unions.InputSpecificationLimitation[];
|
|
2311
|
-
}
|
|
2312
|
-
|
|
2313
|
-
interface ItemReference {
|
|
2314
|
-
readonly number: string;
|
|
2315
|
-
}
|
|
2316
|
-
|
|
2317
|
-
interface LineItem {
|
|
2318
|
-
readonly number: string;
|
|
2319
|
-
readonly quantity: number;
|
|
2320
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
2321
|
-
readonly attributes: Record<string, string>;
|
|
2322
|
-
readonly center?: string;
|
|
2323
|
-
readonly discount?: io.flow.common.v0.models.Money;
|
|
2324
|
-
}
|
|
2325
|
-
|
|
2326
|
-
interface LineItemAttributesForm {
|
|
2327
|
-
readonly attributes: Record<string, string>;
|
|
2328
|
-
}
|
|
2329
|
-
|
|
2330
|
-
interface LineItemForm {
|
|
2331
|
-
readonly number: string;
|
|
2332
|
-
readonly quantity: number;
|
|
2333
|
-
readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
|
|
2334
|
-
readonly price?: io.flow.common.v0.models.Money;
|
|
2335
|
-
readonly attributes?: Record<string, string>;
|
|
2336
|
-
readonly center?: string;
|
|
2337
|
-
readonly discount?: io.flow.common.v0.models.Money;
|
|
2338
|
-
readonly discounts?: io.flow.common.v0.models.DiscountsForm;
|
|
2339
|
-
}
|
|
2340
|
-
|
|
2341
|
-
interface LineItemQuantityForm {
|
|
2342
|
-
readonly quantity: number;
|
|
2343
|
-
}
|
|
2344
|
-
|
|
2345
|
-
interface Margin {
|
|
2346
|
-
readonly type: io.flow.common.v0.enums.MarginType;
|
|
2347
|
-
readonly value: number;
|
|
2348
|
-
}
|
|
2349
|
-
|
|
2350
|
-
interface Measurement {
|
|
2351
|
-
readonly value: string;
|
|
2352
|
-
readonly units: io.flow.common.v0.enums.UnitOfMeasurement;
|
|
2353
|
-
}
|
|
2354
|
-
|
|
2355
|
-
interface MerchantOfRecordEntity {
|
|
2356
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2357
|
-
readonly name: string;
|
|
2358
|
-
readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
|
|
2359
|
-
readonly identifiers?: io.flow.common.v0.models.EntityIdentifier[];
|
|
2360
|
-
readonly streets: string[];
|
|
2361
|
-
readonly city: string;
|
|
2362
|
-
readonly province?: string;
|
|
2363
|
-
readonly postal?: string;
|
|
2364
|
-
readonly country: string;
|
|
2365
|
-
readonly phone?: string;
|
|
2366
|
-
readonly email?: string;
|
|
2367
|
-
}
|
|
2368
|
-
|
|
2369
|
-
interface MerchantOfRecordEntityRegistration {
|
|
2370
|
-
readonly number: string;
|
|
2371
|
-
readonly country: string;
|
|
2372
|
-
}
|
|
2373
|
-
|
|
2374
|
-
interface Money {
|
|
2375
|
-
readonly amount: number;
|
|
2376
|
-
readonly currency: string;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
interface MoneyWithBase {
|
|
2380
|
-
readonly currency: string;
|
|
2381
|
-
readonly amount: number;
|
|
2382
|
-
readonly base: io.flow.common.v0.models.Money;
|
|
2383
|
-
}
|
|
2384
|
-
|
|
2385
|
-
interface MoneyWithOptionalBase {
|
|
2386
|
-
readonly currency: string;
|
|
2387
|
-
readonly amount: number;
|
|
2388
|
-
readonly base?: io.flow.common.v0.models.Money;
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
interface Name {
|
|
2392
|
-
readonly first?: string;
|
|
2393
|
-
readonly last?: string;
|
|
2394
|
-
}
|
|
2395
|
-
|
|
2396
|
-
interface OrderCustomer {
|
|
2397
|
-
readonly name: io.flow.common.v0.models.Name;
|
|
2398
|
-
readonly number?: string;
|
|
2399
|
-
readonly phone?: string;
|
|
2400
|
-
readonly email?: string;
|
|
2401
|
-
readonly address?: io.flow.common.v0.models.BillingAddress;
|
|
2402
|
-
readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
|
|
2403
|
-
}
|
|
2404
|
-
|
|
2405
|
-
interface OrderCustomerForm {
|
|
2406
|
-
readonly name?: io.flow.common.v0.models.Name;
|
|
2407
|
-
readonly number?: string;
|
|
2408
|
-
readonly phone?: string;
|
|
2409
|
-
readonly email?: string;
|
|
2410
|
-
readonly address?: io.flow.common.v0.models.BillingAddress;
|
|
2411
|
-
readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
interface Organization {
|
|
2415
|
-
readonly discriminator: 'organization';
|
|
2416
|
-
readonly id: string;
|
|
2417
|
-
readonly name: string;
|
|
2418
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2419
|
-
readonly parent?: io.flow.common.v0.models.OrganizationReference;
|
|
2420
|
-
readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
|
|
2421
|
-
readonly created_at?: string;
|
|
2422
|
-
readonly status?: io.flow.common.v0.enums.OrganizationStatus;
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
interface OrganizationDefaults {
|
|
2426
|
-
readonly country: string;
|
|
2427
|
-
readonly base_currency: string;
|
|
2428
|
-
readonly language: string;
|
|
2429
|
-
readonly locale: string;
|
|
2430
|
-
readonly timezone: string;
|
|
2431
|
-
}
|
|
2432
|
-
|
|
2433
|
-
interface OrganizationReference {
|
|
2434
|
-
readonly discriminator: 'organization_reference';
|
|
2435
|
-
readonly id: string;
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
interface OrganizationSummary {
|
|
2439
|
-
readonly id: string;
|
|
2440
|
-
readonly name: string;
|
|
2441
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
interface PartnerReference {
|
|
2445
|
-
readonly id: string;
|
|
2446
|
-
}
|
|
2447
|
-
|
|
2448
|
-
interface Price {
|
|
2449
|
-
readonly amount: number;
|
|
2450
|
-
readonly currency: string;
|
|
2451
|
-
readonly label: string;
|
|
2452
|
-
}
|
|
2453
|
-
|
|
2454
|
-
interface PriceForm {
|
|
2455
|
-
readonly amount: number;
|
|
2456
|
-
readonly currency: string;
|
|
2457
|
-
}
|
|
2458
|
-
|
|
2459
|
-
interface PriceSourceCatalog {
|
|
2460
|
-
readonly discriminator: 'catalog';
|
|
2461
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
2462
|
-
}
|
|
2463
|
-
|
|
2464
|
-
interface PriceSourcePriceBook {
|
|
2465
|
-
readonly discriminator: 'price_book';
|
|
2466
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
2467
|
-
readonly includes: io.flow.common.v0.models.IncludedLevies;
|
|
2468
|
-
readonly price_book_reference: io.flow.common.v0.models.PriceSourcePriceBookReference;
|
|
2469
|
-
}
|
|
2470
|
-
|
|
2471
|
-
interface PriceSourcePriceBookReference {
|
|
2472
|
-
readonly id: string;
|
|
2473
|
-
readonly key: string;
|
|
2474
|
-
}
|
|
2475
|
-
|
|
2476
|
-
interface PriceSourceProvided {
|
|
2477
|
-
readonly discriminator: 'provided';
|
|
2478
|
-
readonly price: io.flow.common.v0.models.Money;
|
|
2479
|
-
}
|
|
2480
|
-
|
|
2481
|
-
interface PriceWithBase {
|
|
2482
|
-
readonly currency: string;
|
|
2483
|
-
readonly amount: number;
|
|
2484
|
-
readonly label: string;
|
|
2485
|
-
readonly base?: io.flow.common.v0.models.Price;
|
|
2486
|
-
}
|
|
2487
|
-
|
|
2488
|
-
interface RepeatDaily {
|
|
2489
|
-
readonly discriminator: 'repeat_daily';
|
|
2490
|
-
readonly interval: number;
|
|
2491
|
-
}
|
|
2492
|
-
|
|
2493
|
-
interface RepeatHourly {
|
|
2494
|
-
readonly discriminator: 'repeat_hourly';
|
|
2495
|
-
readonly interval: number;
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
interface RepeatMonthly {
|
|
2499
|
-
readonly discriminator: 'repeat_monthly';
|
|
2500
|
-
readonly interval: number;
|
|
2501
|
-
readonly days: number[];
|
|
2502
|
-
}
|
|
2503
|
-
|
|
2504
|
-
interface RepeatWeekly {
|
|
2505
|
-
readonly discriminator: 'repeat_weekly';
|
|
2506
|
-
readonly interval: number;
|
|
2507
|
-
readonly days_of_week: io.flow.common.v0.enums.DayOfWeek[];
|
|
2508
|
-
}
|
|
2509
|
-
|
|
2510
|
-
interface Rounding {
|
|
2511
|
-
readonly type: io.flow.common.v0.enums.RoundingType;
|
|
2512
|
-
readonly method: io.flow.common.v0.enums.RoundingMethod;
|
|
2513
|
-
readonly value: number;
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
interface Schedule {
|
|
2517
|
-
readonly calendar?: io.flow.common.v0.enums.Calendar;
|
|
2518
|
-
readonly holiday: io.flow.common.v0.enums.HolidayCalendar;
|
|
2519
|
-
readonly exception: io.flow.common.v0.models.Exception[];
|
|
2520
|
-
readonly cutoff?: string;
|
|
2521
|
-
readonly min_lead_time?: number;
|
|
2522
|
-
readonly max_lead_time?: number;
|
|
2523
|
-
}
|
|
2524
|
-
|
|
2525
|
-
interface SessionReference {
|
|
2526
|
-
readonly id: string;
|
|
2527
|
-
}
|
|
2528
|
-
|
|
2529
|
-
interface User {
|
|
2530
|
-
readonly discriminator: 'user';
|
|
2531
|
-
readonly id: string;
|
|
2532
|
-
readonly email?: string;
|
|
2533
|
-
readonly name: io.flow.common.v0.models.Name;
|
|
2534
|
-
readonly status: io.flow.common.v0.enums.UserStatus;
|
|
2535
|
-
}
|
|
2536
|
-
|
|
2537
|
-
interface UserReference {
|
|
2538
|
-
readonly discriminator: 'user_reference';
|
|
2539
|
-
readonly id: string;
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
interface Zone {
|
|
2543
|
-
readonly postals?: string[];
|
|
2544
|
-
readonly provinces?: string[];
|
|
2545
|
-
readonly country: string;
|
|
2546
|
-
}
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
declare namespace io.flow.common.v0.unions {
|
|
2550
|
-
type DiscountOffer =
|
|
2551
|
-
| io.flow.common.v0.models.DiscountOfferFixed
|
|
2552
|
-
| io.flow.common.v0.models.DiscountOfferPercent;
|
|
2553
|
-
type ExpandableOrganization =
|
|
2554
|
-
| io.flow.common.v0.models.Organization
|
|
2555
|
-
| io.flow.common.v0.models.OrganizationReference;
|
|
2556
|
-
type ExpandableUser =
|
|
2557
|
-
| io.flow.common.v0.models.User
|
|
2558
|
-
| io.flow.common.v0.models.UserReference;
|
|
2559
|
-
type InputSpecificationLimitation =
|
|
2560
|
-
io.flow.common.v0.models.InputSpecificationLimitationMax;
|
|
2561
|
-
type PriceSource =
|
|
2562
|
-
| io.flow.common.v0.models.PriceSourcePriceBook
|
|
2563
|
-
| io.flow.common.v0.models.PriceSourceCatalog
|
|
2564
|
-
| io.flow.common.v0.models.PriceSourceProvided;
|
|
2565
|
-
type RepeatSchedule =
|
|
2566
|
-
| io.flow.common.v0.models.RepeatHourly
|
|
2567
|
-
| io.flow.common.v0.models.RepeatDaily
|
|
2568
|
-
| io.flow.common.v0.models.RepeatWeekly
|
|
2569
|
-
| io.flow.common.v0.models.RepeatMonthly;
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
declare namespace io.flow.token.v0.models {
|
|
2573
|
-
interface ChannelToken {
|
|
2574
|
-
readonly discriminator: 'channel_token';
|
|
2575
|
-
readonly id: string;
|
|
2576
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
2577
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2578
|
-
readonly partial: string;
|
|
2579
|
-
readonly cleartext?: string;
|
|
2580
|
-
readonly created_at: string;
|
|
2581
|
-
readonly description?: string;
|
|
2582
|
-
}
|
|
2583
|
-
|
|
2584
|
-
interface ChannelTokenForm {
|
|
2585
|
-
readonly channel_id: string;
|
|
2586
|
-
readonly description?: string;
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
|
-
interface ChannelTokenReference {
|
|
2590
|
-
readonly discriminator: 'channel_token_reference';
|
|
2591
|
-
readonly id: string;
|
|
2592
|
-
readonly channel: io.flow.common.v0.models.ChannelReference;
|
|
2593
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
interface Cleartext {
|
|
2597
|
-
readonly value: string;
|
|
2598
|
-
}
|
|
2599
|
-
|
|
2600
|
-
interface OrganizationToken {
|
|
2601
|
-
readonly discriminator: 'organization_token';
|
|
2602
|
-
readonly id: string;
|
|
2603
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2604
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2605
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2606
|
-
readonly partial: string;
|
|
2607
|
-
readonly created_at: string;
|
|
2608
|
-
readonly description?: string;
|
|
2609
|
-
}
|
|
2610
|
-
|
|
2611
|
-
interface OrganizationTokenForm {
|
|
2612
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2613
|
-
readonly description?: string;
|
|
2614
|
-
}
|
|
2615
|
-
|
|
2616
|
-
interface OrganizationTokenFormV2 {
|
|
2617
|
-
readonly organization_id: string;
|
|
2618
|
-
readonly description?: string;
|
|
2619
|
-
}
|
|
2620
|
-
|
|
2621
|
-
interface OrganizationTokenReference {
|
|
2622
|
-
readonly discriminator: 'organization_token_reference';
|
|
2623
|
-
readonly id: string;
|
|
2624
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2625
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2626
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2627
|
-
}
|
|
2628
|
-
|
|
2629
|
-
interface OrganizationTokenV2 {
|
|
2630
|
-
readonly discriminator: 'organization_token_v2';
|
|
2631
|
-
readonly id: string;
|
|
2632
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2633
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2634
|
-
readonly partial: string;
|
|
2635
|
-
readonly cleartext?: string;
|
|
2636
|
-
readonly created_at: string;
|
|
2637
|
-
readonly description?: string;
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
|
-
interface OrganizationTokenV2Reference {
|
|
2641
|
-
readonly discriminator: 'organization_token_v2_reference';
|
|
2642
|
-
readonly id: string;
|
|
2643
|
-
readonly organization: io.flow.common.v0.models.OrganizationReference;
|
|
2644
|
-
}
|
|
2645
|
-
|
|
2646
|
-
interface PartnerToken {
|
|
2647
|
-
readonly discriminator: 'partner_token';
|
|
2648
|
-
readonly id: string;
|
|
2649
|
-
readonly partner: io.flow.token.v0.models.TokenPartnerReference;
|
|
2650
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2651
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2652
|
-
readonly partial: string;
|
|
2653
|
-
readonly created_at: string;
|
|
2654
|
-
readonly description?: string;
|
|
2655
|
-
}
|
|
2656
|
-
|
|
2657
|
-
interface PartnerTokenForm {
|
|
2658
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2659
|
-
readonly description?: string;
|
|
2660
|
-
}
|
|
2661
|
-
|
|
2662
|
-
interface PartnerTokenReference {
|
|
2663
|
-
readonly discriminator: 'partner_token_reference';
|
|
2664
|
-
readonly id: string;
|
|
2665
|
-
readonly partner: io.flow.token.v0.models.TokenPartnerReference;
|
|
2666
|
-
readonly environment: io.flow.common.v0.enums.Environment;
|
|
2667
|
-
readonly user: io.flow.common.v0.models.UserReference;
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
interface TokenAuthenticationForm {
|
|
2671
|
-
readonly token: string;
|
|
2672
|
-
}
|
|
2673
|
-
|
|
2674
|
-
interface TokenPartnerReference {
|
|
2675
|
-
readonly id: string;
|
|
2676
|
-
}
|
|
2677
|
-
|
|
2678
|
-
interface TokenRbacAuthenticationForm {
|
|
2679
|
-
readonly token: string;
|
|
2680
|
-
readonly method: string;
|
|
2681
|
-
readonly path_pattern: string;
|
|
2682
|
-
readonly path: string;
|
|
2683
|
-
}
|
|
2684
|
-
|
|
2685
|
-
interface TokenValidation {
|
|
2686
|
-
readonly status: string;
|
|
2687
|
-
}
|
|
2688
|
-
|
|
2689
|
-
interface TokenValidationForm {
|
|
2690
|
-
readonly token: string;
|
|
2691
|
-
}
|
|
2692
|
-
}
|
|
2693
|
-
|
|
2694
|
-
declare namespace io.flow.token.v0.unions {
|
|
2695
|
-
type Token =
|
|
2696
|
-
| io.flow.token.v0.models.ChannelToken
|
|
2697
|
-
| io.flow.token.v0.models.OrganizationToken
|
|
2698
|
-
| io.flow.token.v0.models.OrganizationTokenV2
|
|
2699
|
-
| io.flow.token.v0.models.PartnerToken;
|
|
2700
|
-
type TokenReference =
|
|
2701
|
-
| io.flow.token.v0.models.ChannelTokenReference
|
|
2702
|
-
| io.flow.token.v0.models.OrganizationTokenReference
|
|
2703
|
-
| io.flow.token.v0.models.OrganizationTokenV2Reference
|
|
2704
|
-
| io.flow.token.v0.models.PartnerTokenReference;
|
|
2705
|
-
}
|
|
2706
|
-
|
|
2707
|
-
declare namespace io.flow.error.v0.enums {
|
|
2708
|
-
type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
|
|
2709
|
-
}
|
|
2710
|
-
|
|
2711
|
-
declare namespace io.flow.error.v0.models {
|
|
2712
|
-
interface GenericError {
|
|
2713
|
-
readonly code: io.flow.error.v0.enums.GenericErrorCode;
|
|
2714
|
-
readonly messages: string[];
|
|
2715
|
-
}
|
|
2716
|
-
}
|
|
2717
|
-
|
|
2718
|
-
declare namespace io.flow.token.internal.v0.models {
|
|
2719
|
-
interface ChannelTokenForm {
|
|
2720
|
-
readonly channel_id: string;
|
|
2721
|
-
readonly description?: string;
|
|
2722
|
-
}
|
|
2723
|
-
}
|
|
2724
|
-
|
|
2725
2005
|
declare namespace io.flow.apple.pay.v0.enums {
|
|
2726
2006
|
type ApplePayContactField =
|
|
2727
2007
|
| 'email'
|
|
@@ -2933,6 +2213,9 @@ declare namespace io.flow.v0.enums {
|
|
|
2933
2213
|
| 'crossdock'
|
|
2934
2214
|
| 'commercial_invoice';
|
|
2935
2215
|
type ChangeType = 'insert' | 'update' | 'delete';
|
|
2216
|
+
type ChannelCurrencyCapability =
|
|
2217
|
+
| 'payment_authorizations'
|
|
2218
|
+
| 'settlement_currency';
|
|
2936
2219
|
type ConsumerInvoiceCustomerType =
|
|
2937
2220
|
| 'business_eu_verified'
|
|
2938
2221
|
| 'business_non_verified'
|
|
@@ -3193,11 +2476,12 @@ declare namespace io.flow.v0.enums {
|
|
|
3193
2476
|
type ExportStatus = 'created' | 'processing' | 'completed' | 'failed';
|
|
3194
2477
|
type ExporterOfRecord = 'flow' | 'organization';
|
|
3195
2478
|
type FeeDeductionType =
|
|
2479
|
+
| 'duty_guarantee'
|
|
3196
2480
|
| 'mor'
|
|
2481
|
+
| 'fraud'
|
|
3197
2482
|
| 'fx'
|
|
3198
2483
|
| 'processing'
|
|
3199
2484
|
| 'rate_lock'
|
|
3200
|
-
| 'duty_guarantee'
|
|
3201
2485
|
| 'transfer';
|
|
3202
2486
|
type FlowBehavior = 'view_consumer_data';
|
|
3203
2487
|
type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can';
|
|
@@ -3684,8 +2968,13 @@ declare namespace io.flow.v0.enums {
|
|
|
3684
2968
|
| 'dispute'
|
|
3685
2969
|
| 'adjustment'
|
|
3686
2970
|
| 'shipping_label'
|
|
3687
|
-
| '
|
|
3688
|
-
| '
|
|
2971
|
+
| 'platform_fee'
|
|
2972
|
+
| 'other_adjustment'
|
|
2973
|
+
| 'tax_adjustment'
|
|
2974
|
+
| 'channel'
|
|
2975
|
+
| 'order'
|
|
2976
|
+
| 'virtual_card_capture'
|
|
2977
|
+
| 'virtual_card_refund';
|
|
3689
2978
|
type UnitOfMeasurement =
|
|
3690
2979
|
| 'millimeter'
|
|
3691
2980
|
| 'centimeter'
|
|
@@ -4991,6 +4280,13 @@ declare namespace io.flow.v0.models {
|
|
|
4991
4280
|
readonly center: io.flow.v0.models.Center;
|
|
4992
4281
|
}
|
|
4993
4282
|
|
|
4283
|
+
interface Channel {
|
|
4284
|
+
readonly id: string;
|
|
4285
|
+
readonly name: string;
|
|
4286
|
+
readonly environment: io.flow.v0.enums.Environment;
|
|
4287
|
+
readonly organization_id_prefix?: string;
|
|
4288
|
+
}
|
|
4289
|
+
|
|
4994
4290
|
interface ChannelAuthorization {
|
|
4995
4291
|
readonly placeholder?: string;
|
|
4996
4292
|
}
|
|
@@ -4999,6 +4295,13 @@ declare namespace io.flow.v0.models {
|
|
|
4999
4295
|
readonly channel_id: string;
|
|
5000
4296
|
}
|
|
5001
4297
|
|
|
4298
|
+
interface ChannelCurrency {
|
|
4299
|
+
readonly id: string;
|
|
4300
|
+
readonly currency: string;
|
|
4301
|
+
readonly channel: io.flow.v0.models.ChannelReference;
|
|
4302
|
+
readonly capabilities: io.flow.v0.enums.ChannelCurrencyCapability[];
|
|
4303
|
+
}
|
|
4304
|
+
|
|
5002
4305
|
interface ChannelCurrencyDeleted {
|
|
5003
4306
|
readonly discriminator: 'channel_currency_deleted';
|
|
5004
4307
|
readonly event_id: string;
|
|
@@ -5010,7 +4313,7 @@ declare namespace io.flow.v0.models {
|
|
|
5010
4313
|
readonly discriminator: 'channel_currency_upserted';
|
|
5011
4314
|
readonly event_id: string;
|
|
5012
4315
|
readonly timestamp: string;
|
|
5013
|
-
readonly channel_currency: io.flow.
|
|
4316
|
+
readonly channel_currency: io.flow.v0.models.ChannelCurrency;
|
|
5014
4317
|
}
|
|
5015
4318
|
|
|
5016
4319
|
interface ChannelDeleted {
|
|
@@ -5104,7 +4407,7 @@ declare namespace io.flow.v0.models {
|
|
|
5104
4407
|
readonly discriminator: 'channel_upserted';
|
|
5105
4408
|
readonly event_id: string;
|
|
5106
4409
|
readonly timestamp: string;
|
|
5107
|
-
readonly channel: io.flow.
|
|
4410
|
+
readonly channel: io.flow.v0.models.Channel;
|
|
5108
4411
|
}
|
|
5109
4412
|
|
|
5110
4413
|
interface ChannelViesRegistration {
|
|
@@ -8251,7 +7554,7 @@ declare namespace io.flow.v0.models {
|
|
|
8251
7554
|
interface OnboardingMerchantTime {
|
|
8252
7555
|
readonly hour_of_day: string;
|
|
8253
7556
|
readonly minute_of_hour: string;
|
|
8254
|
-
readonly timezone
|
|
7557
|
+
readonly timezone?: string;
|
|
8255
7558
|
}
|
|
8256
7559
|
|
|
8257
7560
|
interface OnlineAuthorization {
|
|
@@ -12655,7 +11958,7 @@ declare namespace io.flow.v0.models {
|
|
|
12655
11958
|
interface Transaction {
|
|
12656
11959
|
readonly id: string;
|
|
12657
11960
|
readonly external_transaction_id?: string;
|
|
12658
|
-
readonly order
|
|
11961
|
+
readonly order?: io.flow.v0.models.BillingChannelOrderReference;
|
|
12659
11962
|
readonly statement?: io.flow.v0.models.BillingChannelStatementReference;
|
|
12660
11963
|
readonly payment_request?: io.flow.v0.models.BillingChannelPaymentRequestReference;
|
|
12661
11964
|
readonly currency: string;
|
|
@@ -13710,9 +13013,13 @@ export type CenterSummary = io.flow.v0.models.CenterSummary;
|
|
|
13710
13013
|
export type CenterUpserted = io.flow.v0.models.CenterUpserted;
|
|
13711
13014
|
export type CenterVersion = io.flow.v0.models.CenterVersion;
|
|
13712
13015
|
export type ChangeType = io.flow.v0.enums.ChangeType;
|
|
13016
|
+
export type Channel = io.flow.v0.models.Channel;
|
|
13713
13017
|
export type ChannelAuthorization = io.flow.v0.models.ChannelAuthorization;
|
|
13714
13018
|
export type ChannelAuthorizationForm =
|
|
13715
13019
|
io.flow.v0.models.ChannelAuthorizationForm;
|
|
13020
|
+
export type ChannelCurrency = io.flow.v0.models.ChannelCurrency;
|
|
13021
|
+
export type ChannelCurrencyCapability =
|
|
13022
|
+
io.flow.v0.enums.ChannelCurrencyCapability;
|
|
13716
13023
|
export type ChannelCurrencyDeleted = io.flow.v0.models.ChannelCurrencyDeleted;
|
|
13717
13024
|
export type ChannelCurrencyUpserted = io.flow.v0.models.ChannelCurrencyUpserted;
|
|
13718
13025
|
export type ChannelDeleted = io.flow.v0.models.ChannelDeleted;
|