@flowio/types 11.24.104 → 11.24.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/api.ts CHANGED
@@ -2851,136 +2851,2588 @@ declare namespace io.flow.shopify.external.v0.models {
2851
2851
  }
2852
2852
  }
2853
2853
 
2854
+ declare namespace io.flow.order.price.v0.enums {
2855
+ type OrderPriceDetailComponentKey =
2856
+ | 'adjustment'
2857
+ | 'vat_deminimis'
2858
+ | 'duty_deminimis'
2859
+ | 'duties_item_price'
2860
+ | 'duties_freight'
2861
+ | 'duties_insurance'
2862
+ | 'vat_item_price'
2863
+ | 'vat_freight'
2864
+ | 'vat_insurance'
2865
+ | 'vat_duties_item_price'
2866
+ | 'vat_duties_freight'
2867
+ | 'vat_duties_insurance'
2868
+ | 'item_price'
2869
+ | 'item_discount'
2870
+ | 'rounding'
2871
+ | 'insurance'
2872
+ | 'shipping'
2873
+ | 'shipping_discount'
2874
+ | 'order_discount'
2875
+ | 'subtotal_percent_sales_margin'
2876
+ | 'subtotal_vat_percent_sales_margin'
2877
+ | 'subtotal_duty_percent_sales_margin'
2878
+ | 'vat_subsidy'
2879
+ | 'duty_subsidy'
2880
+ | 'remote_area_surcharge'
2881
+ | 'fuel_surcharge'
2882
+ | 'emergency_situation_surcharge'
2883
+ | 'peak_surcharge'
2884
+ | 'duties_taxes_paid_surcharge'
2885
+ | 'tip';
2886
+ type OrderPriceDetailKey =
2887
+ | 'adjustment'
2888
+ | 'subtotal'
2889
+ | 'vat'
2890
+ | 'duty'
2891
+ | 'shipping'
2892
+ | 'insurance'
2893
+ | 'discount'
2894
+ | 'surcharges'
2895
+ | 'tip';
2896
+ }
2897
+
2898
+ declare namespace io.flow.order.price.v0.models {
2899
+ interface OrderPriceDetail {
2900
+ readonly key: io.flow.order.price.v0.enums.OrderPriceDetailKey;
2901
+ readonly currency: string;
2902
+ readonly amount: number;
2903
+ readonly label: string;
2904
+ readonly base: io.flow.common.v0.models.Price;
2905
+ readonly components: io.flow.order.price.v0.models.OrderPriceDetailComponent[];
2906
+ readonly name?: string;
2907
+ readonly rate?: number;
2908
+ readonly accuracy?: io.flow.price.v0.enums.PriceAccuracy;
2909
+ readonly rate_label?: string;
2910
+ }
2911
+
2912
+ interface OrderPriceDetailComponent {
2913
+ readonly key: io.flow.order.price.v0.enums.OrderPriceDetailComponentKey;
2914
+ readonly currency: string;
2915
+ readonly amount: number;
2916
+ readonly label: string;
2917
+ readonly base: io.flow.common.v0.models.Price;
2918
+ readonly name?: string;
2919
+ }
2920
+ }
2921
+
2922
+ declare namespace io.flow.common.v0.enums {
2923
+ type AttributeDataType =
2924
+ | 'boolean'
2925
+ | 'integer'
2926
+ | 'decimal'
2927
+ | 'string'
2928
+ | 'json_array';
2929
+ type AvailabilityStatus = 'enabled' | 'disabled';
2930
+ type Calendar = 'weekdays' | 'everyday';
2931
+ type Capability = 'crossdock';
2932
+ type ChangeType = 'insert' | 'update' | 'delete';
2933
+ type CurrencyLabelFormatter =
2934
+ | 'strip_trailing_zeros'
2935
+ | 'symbol_prefix'
2936
+ | 'symbol_suffix';
2937
+ type CurrencySymbolFormat = 'narrow' | 'primary';
2938
+ type DayOfWeek =
2939
+ | 'sunday'
2940
+ | 'monday'
2941
+ | 'tuesday'
2942
+ | 'wednesday'
2943
+ | 'thursday'
2944
+ | 'friday'
2945
+ | 'saturday';
2946
+ type DeliveredDuty = 'paid' | 'unpaid';
2947
+ type DiscountTarget = 'item' | 'shipping';
2948
+ type EntityIdentifierType = 'ioss' | 'voec' | 'zaz';
2949
+ type Environment = 'sandbox' | 'production';
2950
+ type ExceptionType = 'open' | 'closed';
2951
+ type GoodsSupply = 'export' | 'intra_community' | 'local';
2952
+ type HolidayCalendar = 'us_bank_holidays' | 'jewish_holidays';
2953
+ type IncludedLevyKey = 'duty' | 'vat' | 'vat_and_duty' | 'none';
2954
+ type Incoterm =
2955
+ | 'EXW'
2956
+ | 'FCA'
2957
+ | 'CPT'
2958
+ | 'CIP'
2959
+ | 'DAT'
2960
+ | 'DAP'
2961
+ | 'DDP'
2962
+ | 'FAS'
2963
+ | 'FOB'
2964
+ | 'CFR'
2965
+ | 'CIF'
2966
+ | 'DAF'
2967
+ | 'DES'
2968
+ | 'DEQ'
2969
+ | 'DDU';
2970
+ type InputSpecificationType = 'text' | 'number';
2971
+ type MarginType = 'fixed' | 'percent';
2972
+ type MeasurementSystem = 'imperial' | 'metric';
2973
+ type MerchantOfRecord = 'flow' | 'organization';
2974
+ type OrderMerchantOfRecord = 'flow' | 'organization' | 'mixed';
2975
+ type OrganizationStatus =
2976
+ | 'active'
2977
+ | 'inactive'
2978
+ | 'deactivated'
2979
+ | 'provisioned';
2980
+ type OrganizationType = 'standalone' | 'channel';
2981
+ type PriceBookStatus = 'draft' | 'published' | 'archived';
2982
+ type Role = 'admin' | 'member';
2983
+ type RoundingMethod = 'up' | 'down' | 'nearest';
2984
+ type RoundingType = 'pattern' | 'multiple';
2985
+ type ScheduleExceptionStatus = 'Open' | 'Closed';
2986
+ type SortDirection = 'ascending' | 'descending';
2987
+ type UnitOfMeasurement =
2988
+ | 'millimeter'
2989
+ | 'centimeter'
2990
+ | 'inch'
2991
+ | 'foot'
2992
+ | 'cubic_inch'
2993
+ | 'cubic_meter'
2994
+ | 'gram'
2995
+ | 'kilogram'
2996
+ | 'meter'
2997
+ | 'ounce'
2998
+ | 'pound';
2999
+ type UnitOfTime = 'year' | 'month' | 'week' | 'day' | 'hour' | 'minute';
3000
+ type UserStatus = 'pending' | 'active' | 'inactive';
3001
+ type ValueAddedService = 'Hazardous Material';
3002
+ type Visibility = 'public' | 'private';
3003
+ }
3004
+
3005
+ declare namespace io.flow.common.v0.models {
3006
+ interface Address {
3007
+ readonly text?: string;
3008
+ readonly streets?: string[];
3009
+ readonly street_number?: string;
3010
+ readonly city?: string;
3011
+ readonly province?: string;
3012
+ readonly postal?: string;
3013
+ readonly country?: string;
3014
+ readonly latitude?: string;
3015
+ readonly longitude?: string;
3016
+ }
3017
+
3018
+ interface BillingAddress {
3019
+ readonly name?: io.flow.common.v0.models.Name;
3020
+ readonly streets?: string[];
3021
+ readonly city?: string;
3022
+ readonly province?: string;
3023
+ readonly postal?: string;
3024
+ readonly country?: string;
3025
+ readonly company?: string;
3026
+ }
3027
+
3028
+ interface CatalogItemReference {
3029
+ readonly id: string;
3030
+ readonly number: string;
3031
+ }
3032
+
3033
+ interface CatalogItemSummary {
3034
+ readonly number: string;
3035
+ readonly name: string;
3036
+ readonly attributes: Record<string, string>;
3037
+ }
3038
+
3039
+ interface ChannelReference {
3040
+ readonly id: string;
3041
+ }
3042
+
3043
+ interface CheckoutReference {
3044
+ readonly id: string;
3045
+ }
3046
+
3047
+ interface Contact {
3048
+ readonly name: io.flow.common.v0.models.Name;
3049
+ readonly company?: string;
3050
+ readonly email?: string;
3051
+ readonly phone?: string;
3052
+ }
3053
+
3054
+ interface CustomerInvoice {
3055
+ readonly address?: io.flow.common.v0.models.BillingAddress;
3056
+ }
3057
+
3058
+ interface CustomerReference {
3059
+ readonly number: string;
3060
+ }
3061
+
3062
+ interface DatetimeRange {
3063
+ readonly from: string;
3064
+ readonly to: string;
3065
+ }
3066
+
3067
+ interface Dimension {
3068
+ readonly depth?: io.flow.common.v0.models.Measurement;
3069
+ readonly diameter?: io.flow.common.v0.models.Measurement;
3070
+ readonly length?: io.flow.common.v0.models.Measurement;
3071
+ readonly weight?: io.flow.common.v0.models.Measurement;
3072
+ readonly width?: io.flow.common.v0.models.Measurement;
3073
+ }
3074
+
3075
+ interface Dimensions {
3076
+ readonly product?: io.flow.common.v0.models.Dimension;
3077
+ readonly packaging?: io.flow.common.v0.models.Dimension;
3078
+ }
3079
+
3080
+ interface DiscountForm {
3081
+ readonly offer: io.flow.common.v0.unions.DiscountOffer;
3082
+ readonly target?: io.flow.common.v0.enums.DiscountTarget;
3083
+ readonly label?: string;
3084
+ }
3085
+
3086
+ interface DiscountOfferFixed {
3087
+ readonly discriminator: 'discount_offer_fixed';
3088
+ readonly money: io.flow.common.v0.models.Money;
3089
+ }
3090
+
3091
+ interface DiscountOfferPercent {
3092
+ readonly discriminator: 'discount_offer_percent';
3093
+ readonly percent: number;
3094
+ }
3095
+
3096
+ interface DiscountsForm {
3097
+ readonly discounts: io.flow.common.v0.models.DiscountForm[];
3098
+ }
3099
+
3100
+ interface Duration {
3101
+ readonly unit: io.flow.common.v0.enums.UnitOfTime;
3102
+ readonly value: number;
3103
+ }
3104
+
3105
+ interface EntityIdentifier {
3106
+ readonly name: io.flow.common.v0.enums.EntityIdentifierType;
3107
+ readonly number: string;
3108
+ readonly issuing_country?: string;
3109
+ }
3110
+
3111
+ interface Exception {
3112
+ readonly type: io.flow.common.v0.enums.ExceptionType;
3113
+ readonly datetime_range: io.flow.common.v0.models.DatetimeRange;
3114
+ }
3115
+
3116
+ interface ExperienceSummary {
3117
+ readonly id: string;
3118
+ readonly key: string;
3119
+ readonly name: string;
3120
+ readonly country?: string;
3121
+ readonly currency?: string;
3122
+ readonly language?: string;
3123
+ }
3124
+
3125
+ interface IncludedLevies {
3126
+ readonly key: io.flow.common.v0.enums.IncludedLevyKey;
3127
+ readonly label: string;
3128
+ }
3129
+
3130
+ interface InputForm {
3131
+ readonly values?: Record<string, string>;
3132
+ }
3133
+
3134
+ interface InputFormSpecification {
3135
+ readonly inputs?: io.flow.common.v0.models.InputSpecification[];
3136
+ readonly limitations?: io.flow.common.v0.models.InputSpecificationLimitations;
3137
+ }
3138
+
3139
+ interface InputSpecification {
3140
+ readonly type: io.flow.common.v0.enums.InputSpecificationType;
3141
+ readonly name: string;
3142
+ readonly display_text?: string;
3143
+ }
3144
+
3145
+ interface InputSpecificationLimitationMax {
3146
+ readonly discriminator: 'input_specification_limitation_max';
3147
+ readonly max: number;
3148
+ }
3149
+
3150
+ interface InputSpecificationLimitations {
3151
+ readonly limitations?: io.flow.common.v0.unions.InputSpecificationLimitation[];
3152
+ }
3153
+
3154
+ interface ItemReference {
3155
+ readonly number: string;
3156
+ }
3157
+
3158
+ interface LineItem {
3159
+ readonly number: string;
3160
+ readonly quantity: number;
3161
+ readonly price: io.flow.common.v0.models.Money;
3162
+ readonly attributes: Record<string, string>;
3163
+ readonly center?: string;
3164
+ readonly discount?: io.flow.common.v0.models.Money;
3165
+ }
3166
+
3167
+ interface LineItemAttributesForm {
3168
+ readonly attributes: Record<string, string>;
3169
+ }
3170
+
3171
+ interface LineItemForm {
3172
+ readonly number: string;
3173
+ readonly quantity: number;
3174
+ readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
3175
+ readonly price?: io.flow.common.v0.models.Money;
3176
+ readonly attributes?: Record<string, string>;
3177
+ readonly center?: string;
3178
+ readonly discount?: io.flow.common.v0.models.Money;
3179
+ readonly discounts?: io.flow.common.v0.models.DiscountsForm;
3180
+ }
3181
+
3182
+ interface LineItemQuantityForm {
3183
+ readonly quantity: number;
3184
+ }
3185
+
3186
+ interface LogoImageSetStatic {
3187
+ readonly discriminator: 'static';
3188
+ readonly small?: io.flow.common.v0.models.LogoImageStatic;
3189
+ readonly medium: io.flow.common.v0.models.LogoImageStatic;
3190
+ readonly large?: io.flow.common.v0.models.LogoImageStatic;
3191
+ }
3192
+
3193
+ interface LogoImageStatic {
3194
+ readonly url: string;
3195
+ readonly width: number;
3196
+ readonly height: number;
3197
+ }
3198
+
3199
+ interface LogoImageSvg {
3200
+ readonly discriminator: 'svg';
3201
+ readonly url: string;
3202
+ }
3203
+
3204
+ interface Margin {
3205
+ readonly type: io.flow.common.v0.enums.MarginType;
3206
+ readonly value: number;
3207
+ }
3208
+
3209
+ interface Measurement {
3210
+ readonly value: string;
3211
+ readonly units: io.flow.common.v0.enums.UnitOfMeasurement;
3212
+ }
3213
+
3214
+ interface MerchantOfRecordEntity {
3215
+ readonly organization: io.flow.common.v0.models.OrganizationReference;
3216
+ readonly name: string;
3217
+ readonly vat?: io.flow.common.v0.models.MerchantOfRecordEntityRegistration;
3218
+ readonly identifiers?: io.flow.common.v0.models.EntityIdentifier[];
3219
+ readonly streets: string[];
3220
+ readonly city: string;
3221
+ readonly province?: string;
3222
+ readonly postal?: string;
3223
+ readonly country: string;
3224
+ readonly phone?: string;
3225
+ readonly email?: string;
3226
+ }
3227
+
3228
+ interface MerchantOfRecordEntityRegistration {
3229
+ readonly number: string;
3230
+ readonly country: string;
3231
+ }
3232
+
3233
+ interface Money {
3234
+ readonly amount: number;
3235
+ readonly currency: string;
3236
+ }
3237
+
3238
+ interface MoneyWithBase {
3239
+ readonly currency: string;
3240
+ readonly amount: number;
3241
+ readonly base: io.flow.common.v0.models.Money;
3242
+ }
3243
+
3244
+ interface MoneyWithOptionalBase {
3245
+ readonly currency: string;
3246
+ readonly amount: number;
3247
+ readonly base?: io.flow.common.v0.models.Money;
3248
+ }
3249
+
3250
+ interface Name {
3251
+ readonly first?: string;
3252
+ readonly last?: string;
3253
+ }
3254
+
3255
+ interface OrderCustomer {
3256
+ readonly name: io.flow.common.v0.models.Name;
3257
+ readonly number?: string;
3258
+ readonly phone?: string;
3259
+ readonly email?: string;
3260
+ readonly address?: io.flow.common.v0.models.BillingAddress;
3261
+ readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
3262
+ }
3263
+
3264
+ interface OrderCustomerForm {
3265
+ readonly name?: io.flow.common.v0.models.Name;
3266
+ readonly number?: string;
3267
+ readonly phone?: string;
3268
+ readonly email?: string;
3269
+ readonly address?: io.flow.common.v0.models.BillingAddress;
3270
+ readonly invoice?: io.flow.common.v0.models.CustomerInvoice;
3271
+ }
3272
+
3273
+ interface Organization {
3274
+ readonly discriminator: 'organization';
3275
+ readonly id: string;
3276
+ readonly name: string;
3277
+ readonly environment: io.flow.common.v0.enums.Environment;
3278
+ readonly parent?: io.flow.common.v0.models.OrganizationReference;
3279
+ readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
3280
+ readonly created_at?: string;
3281
+ readonly status?: io.flow.common.v0.enums.OrganizationStatus;
3282
+ readonly type?: io.flow.common.v0.enums.OrganizationType;
3283
+ }
3284
+
3285
+ interface OrganizationDefaults {
3286
+ readonly country: string;
3287
+ readonly base_currency: string;
3288
+ readonly language: string;
3289
+ readonly locale: string;
3290
+ readonly timezone: string;
3291
+ }
3292
+
3293
+ interface OrganizationReference {
3294
+ readonly discriminator: 'organization_reference';
3295
+ readonly id: string;
3296
+ }
3297
+
3298
+ interface OrganizationSummary {
3299
+ readonly id: string;
3300
+ readonly name: string;
3301
+ readonly environment: io.flow.common.v0.enums.Environment;
3302
+ }
3303
+
3304
+ interface PartnerReference {
3305
+ readonly id: string;
3306
+ }
3307
+
3308
+ interface Price {
3309
+ readonly amount: number;
3310
+ readonly currency: string;
3311
+ readonly label: string;
3312
+ }
3313
+
3314
+ interface PriceForm {
3315
+ readonly amount: number;
3316
+ readonly currency: string;
3317
+ }
3318
+
3319
+ interface PriceSourceCatalog {
3320
+ readonly discriminator: 'catalog';
3321
+ readonly price: io.flow.common.v0.models.Money;
3322
+ }
3323
+
3324
+ interface PriceSourcePriceBook {
3325
+ readonly discriminator: 'price_book';
3326
+ readonly price: io.flow.common.v0.models.Money;
3327
+ readonly includes: io.flow.common.v0.models.IncludedLevies;
3328
+ readonly price_book_reference: io.flow.common.v0.models.PriceSourcePriceBookReference;
3329
+ }
3330
+
3331
+ interface PriceSourcePriceBookReference {
3332
+ readonly id: string;
3333
+ readonly key: string;
3334
+ }
3335
+
3336
+ interface PriceSourceProvided {
3337
+ readonly discriminator: 'provided';
3338
+ readonly price: io.flow.common.v0.models.Money;
3339
+ }
3340
+
3341
+ interface PriceWithBase {
3342
+ readonly currency: string;
3343
+ readonly amount: number;
3344
+ readonly label: string;
3345
+ readonly base?: io.flow.common.v0.models.Price;
3346
+ }
3347
+
3348
+ interface RepeatDaily {
3349
+ readonly discriminator: 'repeat_daily';
3350
+ readonly interval: number;
3351
+ }
3352
+
3353
+ interface RepeatHourly {
3354
+ readonly discriminator: 'repeat_hourly';
3355
+ readonly interval: number;
3356
+ }
3357
+
3358
+ interface RepeatMonthly {
3359
+ readonly discriminator: 'repeat_monthly';
3360
+ readonly interval: number;
3361
+ readonly days: number[];
3362
+ }
3363
+
3364
+ interface RepeatWeekly {
3365
+ readonly discriminator: 'repeat_weekly';
3366
+ readonly interval: number;
3367
+ readonly days_of_week: io.flow.common.v0.enums.DayOfWeek[];
3368
+ }
3369
+
3370
+ interface Rounding {
3371
+ readonly type: io.flow.common.v0.enums.RoundingType;
3372
+ readonly method: io.flow.common.v0.enums.RoundingMethod;
3373
+ readonly value: number;
3374
+ }
3375
+
3376
+ interface Schedule {
3377
+ readonly calendar?: io.flow.common.v0.enums.Calendar;
3378
+ readonly holiday: io.flow.common.v0.enums.HolidayCalendar;
3379
+ readonly exception: io.flow.common.v0.models.Exception[];
3380
+ readonly cutoff?: string;
3381
+ readonly min_lead_time?: number;
3382
+ readonly max_lead_time?: number;
3383
+ }
3384
+
3385
+ interface SessionReference {
3386
+ readonly id: string;
3387
+ }
3388
+
3389
+ interface User {
3390
+ readonly discriminator: 'user';
3391
+ readonly id: string;
3392
+ readonly email?: string;
3393
+ readonly name: io.flow.common.v0.models.Name;
3394
+ readonly status: io.flow.common.v0.enums.UserStatus;
3395
+ }
3396
+
3397
+ interface UserReference {
3398
+ readonly discriminator: 'user_reference';
3399
+ readonly id: string;
3400
+ }
3401
+
3402
+ interface Zone {
3403
+ readonly postals?: string[];
3404
+ readonly provinces?: string[];
3405
+ readonly country: string;
3406
+ }
3407
+ }
3408
+
3409
+ declare namespace io.flow.common.v0.unions {
3410
+ type DiscountOffer =
3411
+ | io.flow.common.v0.models.DiscountOfferFixed
3412
+ | io.flow.common.v0.models.DiscountOfferPercent;
3413
+ type ExpandableOrganization =
3414
+ | io.flow.common.v0.models.Organization
3415
+ | io.flow.common.v0.models.OrganizationReference;
3416
+ type ExpandableUser =
3417
+ | io.flow.common.v0.models.User
3418
+ | io.flow.common.v0.models.UserReference;
3419
+ type InputSpecificationLimitation =
3420
+ io.flow.common.v0.models.InputSpecificationLimitationMax;
3421
+ type LogoImage =
3422
+ | io.flow.common.v0.models.LogoImageSvg
3423
+ | io.flow.common.v0.models.LogoImageSetStatic;
3424
+ type PriceSource =
3425
+ | io.flow.common.v0.models.PriceSourcePriceBook
3426
+ | io.flow.common.v0.models.PriceSourceCatalog
3427
+ | io.flow.common.v0.models.PriceSourceProvided;
3428
+ type RepeatSchedule =
3429
+ | io.flow.common.v0.models.RepeatHourly
3430
+ | io.flow.common.v0.models.RepeatDaily
3431
+ | io.flow.common.v0.models.RepeatWeekly
3432
+ | io.flow.common.v0.models.RepeatMonthly;
3433
+ }
3434
+
2854
3435
  declare namespace io.flow.error.v0.enums {
2855
3436
  type GenericErrorCode = 'generic_error' | 'client_error' | 'server_error';
2856
3437
  }
2857
3438
 
2858
- declare namespace io.flow.error.v0.models {
2859
- interface GenericError {
2860
- readonly code: io.flow.error.v0.enums.GenericErrorCode;
3439
+ declare namespace io.flow.error.v0.models {
3440
+ interface GenericError {
3441
+ readonly code: io.flow.error.v0.enums.GenericErrorCode;
3442
+ readonly messages: string[];
3443
+ }
3444
+ }
3445
+
3446
+ declare namespace io.flow.price.v0.enums {
3447
+ type LevyComponent = 'goods' | 'duty' | 'insurance' | 'freight' | 'vat';
3448
+ type LevyStrategy = 'minimum' | 'average' | 'maximum';
3449
+ type PriceAccuracy = 'calculated' | 'estimated_from_partial_destination';
3450
+ type PriceDetailComponentKey =
3451
+ | 'base_price'
3452
+ | 'discount'
3453
+ | 'currency_margin'
3454
+ | 'percent_item_margin'
3455
+ | 'fixed_item_margin'
3456
+ | 'duties_item_price'
3457
+ | 'duties_added_margin'
3458
+ | 'duties_rounding'
3459
+ | 'duties_deminimis'
3460
+ | 'vat_item_price'
3461
+ | 'vat_added_margin'
3462
+ | 'vat_rounding'
3463
+ | 'vat_duties_item_price'
3464
+ | 'vat_duties_added_margin'
3465
+ | 'vat_duties_rounding'
3466
+ | 'vat_deminimis'
3467
+ | 'item_price_percent_sales_margin'
3468
+ | 'margins_percent_sales_margin'
3469
+ | 'rounding_percent_sales_margin'
3470
+ | 'vat_percent_sales_margin'
3471
+ | 'vat_duty_percent_sales_margin'
3472
+ | 'duty_percent_sales_margin';
3473
+ type PriceDetailKey =
3474
+ | 'item_price'
3475
+ | 'margins'
3476
+ | 'vat'
3477
+ | 'duty'
3478
+ | 'rounding'
3479
+ | 'adjustment';
3480
+ type PricingLevySetting = 'included' | 'displayed' | 'ignored';
3481
+ }
3482
+
3483
+ declare namespace io.flow.price.v0.models {
3484
+ interface CurrencyFormat {
3485
+ readonly symbol: io.flow.common.v0.enums.CurrencySymbolFormat;
3486
+ readonly label_formatters: io.flow.common.v0.enums.CurrencyLabelFormatter[];
3487
+ }
3488
+
3489
+ interface DeminimisPerItem {
3490
+ readonly discriminator: 'deminimis_per_item';
3491
+ readonly currency: string;
3492
+ readonly minimum?: number;
3493
+ readonly maximum?: number;
3494
+ }
3495
+
3496
+ interface DeminimisSimple {
3497
+ readonly discriminator: 'deminimis_simple';
3498
+ readonly value?: number;
3499
+ readonly currency: string;
3500
+ readonly components: io.flow.price.v0.enums.LevyComponent[];
3501
+ readonly minimum?: number;
3502
+ }
3503
+
3504
+ interface Duty {
3505
+ readonly rate: number;
3506
+ readonly components: io.flow.price.v0.enums.LevyComponent[];
3507
+ readonly deminimis?: io.flow.price.v0.unions.Deminimis;
3508
+ readonly name?: string;
3509
+ }
3510
+
3511
+ interface LocalPriceDetails {
3512
+ readonly base: io.flow.price.v0.models.PriceDetails;
3513
+ readonly local: io.flow.price.v0.models.PriceDetails;
3514
+ readonly discount?: io.flow.price.v0.models.PriceDetail;
3515
+ readonly local_before_discount?: io.flow.price.v0.models.PriceDetail;
3516
+ }
3517
+
3518
+ interface PriceBook {
3519
+ readonly id: string;
3520
+ readonly key: string;
3521
+ readonly currency: string;
3522
+ readonly name: string;
3523
+ readonly includes: io.flow.common.v0.models.IncludedLevies;
3524
+ readonly status: io.flow.common.v0.enums.PriceBookStatus;
3525
+ }
3526
+
3527
+ interface PriceBookForm {
3528
+ readonly currency: string;
3529
+ readonly name: string;
3530
+ readonly includes: io.flow.common.v0.enums.IncludedLevyKey;
3531
+ readonly status?: io.flow.common.v0.enums.PriceBookStatus;
3532
+ }
3533
+
3534
+ interface PriceBookItem {
3535
+ readonly id: string;
3536
+ readonly key: string;
3537
+ readonly price_book: io.flow.price.v0.models.PriceBookReference;
3538
+ readonly price: io.flow.common.v0.models.Price;
3539
+ readonly item_number: string;
3540
+ readonly schedule: io.flow.price.v0.models.PriceBookItemSchedule;
3541
+ readonly item_attributes?: Record<string, string>;
3542
+ }
3543
+
3544
+ interface PriceBookItemForm {
3545
+ readonly price_book_key: string;
3546
+ readonly item_number: string;
3547
+ readonly amount: number;
3548
+ readonly schedule?: io.flow.price.v0.models.PriceBookItemSchedule;
3549
+ readonly item_attributes?: Record<string, string>;
3550
+ }
3551
+
3552
+ interface PriceBookItemQueryForm {
3553
+ readonly price_book_key: string;
3554
+ readonly item_query: string;
3555
+ readonly amount: number;
3556
+ readonly schedule?: io.flow.price.v0.models.PriceBookItemSchedule;
3557
+ readonly item_attributes?: Record<string, string>;
3558
+ }
3559
+
3560
+ interface PriceBookItemSchedule {
3561
+ readonly starts_at: string;
3562
+ readonly ends_at?: string;
3563
+ }
3564
+
3565
+ interface PriceBookReference {
3566
+ readonly id: string;
3567
+ readonly key: string;
3568
+ }
3569
+
3570
+ interface PriceCheck {
3571
+ readonly display: io.flow.price.v0.models.LocalPriceDetails;
3572
+ readonly final: io.flow.price.v0.models.LocalPriceDetails;
3573
+ }
3574
+
3575
+ interface PriceDetail {
3576
+ readonly key: io.flow.price.v0.enums.PriceDetailKey;
3577
+ readonly components: io.flow.price.v0.models.PriceDetailComponent[];
3578
+ readonly amount: number;
3579
+ readonly label: string;
3580
+ readonly name?: string;
3581
+ readonly basis?: number;
3582
+ }
3583
+
3584
+ interface PriceDetailComponent {
3585
+ readonly key: io.flow.price.v0.enums.PriceDetailComponentKey;
3586
+ readonly amount: number;
3587
+ readonly label: string;
3588
+ readonly name?: string;
3589
+ }
3590
+
3591
+ interface PriceDetails {
3592
+ readonly currency: string;
3593
+ readonly item_price: io.flow.price.v0.models.PriceDetail;
3594
+ readonly margins: io.flow.price.v0.models.PriceDetail;
3595
+ readonly vat: io.flow.price.v0.models.PriceDetail;
3596
+ readonly duty: io.flow.price.v0.models.PriceDetail;
3597
+ readonly rounding: io.flow.price.v0.models.PriceDetail;
3598
+ readonly price: io.flow.common.v0.models.Price;
3599
+ readonly total: io.flow.common.v0.models.Price;
3600
+ readonly adjustment?: io.flow.price.v0.models.PriceDetail;
3601
+ }
3602
+
3603
+ interface PriceEquation {
3604
+ readonly contracted_rate: number;
3605
+ readonly rate: number;
3606
+ readonly pricing: io.flow.price.v0.models.Pricing;
3607
+ readonly base_price: number;
3608
+ readonly discount: number;
3609
+ readonly fixed_margin: number;
3610
+ readonly percent_margin: number;
3611
+ readonly insurance: number;
3612
+ readonly freight: number;
3613
+ readonly duty?: io.flow.price.v0.models.Duty;
3614
+ readonly tax?: io.flow.price.v0.models.Tax;
3615
+ readonly percent_sales_margin: number;
3616
+ }
3617
+
3618
+ interface Pricing {
3619
+ readonly vat: io.flow.price.v0.enums.PricingLevySetting;
3620
+ readonly duty: io.flow.price.v0.enums.PricingLevySetting;
3621
+ readonly rounding?: io.flow.common.v0.models.Rounding;
3622
+ }
3623
+
3624
+ interface Tax {
3625
+ readonly name: string;
3626
+ readonly rate: number;
3627
+ readonly components: io.flow.price.v0.enums.LevyComponent[];
3628
+ readonly deminimis?: io.flow.price.v0.unions.Deminimis;
3629
+ }
3630
+ }
3631
+
3632
+ declare namespace io.flow.price.v0.unions {
3633
+ type Deminimis =
3634
+ | io.flow.price.v0.models.DeminimisSimple
3635
+ | io.flow.price.v0.models.DeminimisPerItem;
3636
+ }
3637
+
3638
+ declare namespace io.flow.reference.v0.enums {
3639
+ type PaymentMethodCapability = 'credit' | 'debit';
3640
+ type PaymentMethodType = 'card' | 'online' | 'offline';
3641
+ type PostalType = 'eircode' | 'pin' | 'postal' | 'zip';
3642
+ type ProvinceType =
3643
+ | 'area'
3644
+ | 'city'
3645
+ | 'county'
3646
+ | 'department'
3647
+ | 'dependency'
3648
+ | 'district'
3649
+ | 'do_si'
3650
+ | 'emirate'
3651
+ | 'entity'
3652
+ | 'island'
3653
+ | 'municipality'
3654
+ | 'oblast'
3655
+ | 'outlying_area'
3656
+ | 'parish'
3657
+ | 'prefecture'
3658
+ | 'province'
3659
+ | 'state'
3660
+ | 'territory'
3661
+ | 'other';
3662
+ }
3663
+
3664
+ declare namespace io.flow.reference.v0.models {
3665
+ interface Carrier {
3666
+ readonly id: string;
3667
+ readonly name: string;
3668
+ readonly tracking_url: string;
3669
+ }
3670
+
3671
+ interface CarrierService {
3672
+ readonly id: string;
3673
+ readonly carrier: io.flow.reference.v0.models.Carrier;
3674
+ readonly name: string;
3675
+ }
3676
+
3677
+ interface Country {
3678
+ readonly name: string;
3679
+ readonly iso_3166_2: string;
3680
+ readonly iso_3166_3: string;
3681
+ readonly languages: string[];
3682
+ readonly measurement_system: string;
3683
+ readonly default_currency?: string;
3684
+ readonly default_language?: string;
3685
+ readonly timezones: string[];
3686
+ readonly default_delivered_duty?: string;
3687
+ }
3688
+
3689
+ interface Currency {
3690
+ readonly name: string;
3691
+ readonly iso_4217_3: string;
3692
+ readonly number_decimals: number;
3693
+ readonly symbols?: io.flow.reference.v0.models.CurrencySymbols;
3694
+ readonly default_locale?: string;
3695
+ }
3696
+
3697
+ interface CurrencySymbols {
3698
+ readonly primary: string;
3699
+ readonly narrow?: string;
3700
+ }
3701
+
3702
+ interface Language {
3703
+ readonly name: string;
3704
+ readonly iso_639_2: string;
3705
+ }
3706
+
3707
+ interface Locale {
3708
+ readonly id: string;
3709
+ readonly name: string;
3710
+ readonly country: string;
3711
+ readonly language: string;
3712
+ readonly numbers: io.flow.reference.v0.models.LocaleNumbers;
3713
+ }
3714
+
3715
+ interface LocaleNumbers {
3716
+ readonly decimal: string;
3717
+ readonly group: string;
3718
+ }
3719
+
3720
+ interface LocalizedTranslation {
3721
+ readonly locale: io.flow.reference.v0.models.Locale;
3722
+ readonly name: string;
3723
+ }
3724
+
3725
+ interface PaymentMethod {
3726
+ readonly id: string;
3727
+ readonly type: io.flow.reference.v0.enums.PaymentMethodType;
3728
+ readonly name: string;
3729
+ readonly images: io.flow.reference.v0.models.PaymentMethodImages;
3730
+ readonly regions: string[];
3731
+ readonly capabilities?: io.flow.reference.v0.enums.PaymentMethodCapability[];
3732
+ }
3733
+
3734
+ interface PaymentMethodImage {
3735
+ readonly url: string;
3736
+ readonly width: number;
3737
+ readonly height: number;
3738
+ }
3739
+
3740
+ interface PaymentMethodImages {
3741
+ readonly small: io.flow.reference.v0.models.PaymentMethodImage;
3742
+ readonly medium: io.flow.reference.v0.models.PaymentMethodImage;
3743
+ readonly large: io.flow.reference.v0.models.PaymentMethodImage;
3744
+ }
3745
+
3746
+ interface Province {
3747
+ readonly id: string;
3748
+ readonly iso_3166_2: string;
3749
+ readonly name: string;
3750
+ readonly country: string;
3751
+ readonly province_type: io.flow.reference.v0.enums.ProvinceType;
3752
+ readonly translations?: io.flow.reference.v0.models.LocalizedTranslation[];
3753
+ }
3754
+
3755
+ interface Region {
3756
+ readonly id: string;
3757
+ readonly name: string;
3758
+ readonly countries: string[];
3759
+ readonly currencies: string[];
3760
+ readonly languages: string[];
3761
+ readonly measurement_systems: string[];
3762
+ readonly timezones: string[];
3763
+ }
3764
+
3765
+ interface Timezone {
3766
+ readonly name: string;
3767
+ readonly description: string;
3768
+ readonly offset: number;
3769
+ }
3770
+ }
3771
+
3772
+ declare namespace io.flow.ben.test.internal.v0.models {
3773
+ interface GenerateLoadMultipleOrgs {
3774
+ readonly discriminator: 'generate_load_multiple_orgs';
3775
+ readonly organization_ids: string[];
3776
+ readonly num_events: number;
3777
+ }
3778
+
3779
+ interface GenerateLoadSingleOrg {
3780
+ readonly discriminator: 'generate_load_single_org';
3781
+ readonly organization_id: string;
3782
+ readonly num_events: number;
3783
+ }
3784
+
3785
+ interface SvitlanaTest {
3786
+ readonly name: string;
3787
+ }
3788
+
3789
+ interface Test {
3790
+ readonly id: string;
3791
+ readonly name: string;
3792
+ }
3793
+
3794
+ interface TestForm {
3795
+ readonly name: string;
3796
+ }
3797
+ }
3798
+
3799
+ declare namespace io.flow.ben.test.internal.v0.unions {
3800
+ type GenerateLoad =
3801
+ | io.flow.ben.test.internal.v0.models.GenerateLoadSingleOrg
3802
+ | io.flow.ben.test.internal.v0.models.GenerateLoadMultipleOrgs;
3803
+ }
3804
+
3805
+ declare namespace io.flow.fulfillment.v0.enums {
3806
+ type CenterCapability =
3807
+ | 'international'
3808
+ | 'domestic'
3809
+ | 'crossdock'
3810
+ | 'commercial_invoice';
3811
+ type DeliveryOptionCostDetailComponentKey =
3812
+ | 'ratecard_base_cost'
3813
+ | 'ratecard_ddp_fee'
3814
+ | 'ratecard_fuel_surcharge'
3815
+ | 'ratecard_oversized_shipment_fee'
3816
+ | 'ratecard_rural_shipment_fee'
3817
+ | 'ratecard_emergency_situation_surcharge_fee'
3818
+ | 'ratecard_peak_surcharge_fee'
3819
+ | 'ratecard_duties_taxes_paid_surcharge_fee'
3820
+ | 'center_commercial_invoice_fee'
3821
+ | 'center_inbound_carton_fee'
3822
+ | 'center_outbound_carton_fee';
3823
+ type DeliveryOptionCostDetailSource = 'center' | 'ratecard';
3824
+ type DeliveryWindowComponentSource =
3825
+ | 'flow'
3826
+ | 'organization'
3827
+ | 'carrier'
3828
+ | 'center'
3829
+ | 'mixed';
3830
+ type DeliveryWindowLocation = 'center' | 'crossdock' | 'customer';
3831
+ type FulfillmentRouting = 'fulfilled_from_center' | 'fulfillment_service';
3832
+ type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
3833
+ type LaneDirection = 'outbound' | 'return';
3834
+ type LanePreselectPreference = 'lowest_cost' | 'default_tier';
3835
+ type LaneStrategy = 'oldest' | 'fastest' | 'lowest_cost' | 'highest_priority';
3836
+ type PhysicalDeliverySpecialSerivce =
3837
+ | 'cold_storage'
3838
+ | 'hazardous'
3839
+ | 'perishable';
3840
+ type PreferredServiceSelectionStrategy =
3841
+ | 'calculated_rate'
3842
+ | 'flat_rate'
3843
+ | 'custom_rate';
3844
+ type QuoteErrorCode =
3845
+ | 'generic_error'
3846
+ | 'items_not_available'
3847
+ | 'shipping_unavailable';
3848
+ type RatecardOwner = 'flow' | 'organization';
3849
+ type ShipmentIntegrationType = 'direct' | 'information' | 'preadvice';
3850
+ type ShippingConfigurationType = 'default' | 'variant';
3851
+ type Strategy = 'range' | 'from' | 'to';
3852
+ type SurchargeResponsibleParty = 'organization' | 'customer';
3853
+ type TierAvailability = 'always' | 'backup';
3854
+ type TierEstimateType = 'calculated' | 'custom';
3855
+ type TierStrategy = 'fastest' | 'lowest_cost';
3856
+ type ZeroAmountIndicator = 'zero' | 'free';
3857
+ }
3858
+
3859
+ declare namespace io.flow.fulfillment.v0.models {
3860
+ interface AmountMargin {
3861
+ readonly discriminator: 'amount_margin';
3862
+ readonly margin: io.flow.common.v0.models.Price;
3863
+ }
3864
+
3865
+ interface AmountMarginForm {
3866
+ readonly discriminator: 'amount_margin_form';
3867
+ readonly margin: io.flow.common.v0.models.Money;
3868
+ }
3869
+
3870
+ interface AtCost {
3871
+ readonly discriminator: 'at_cost';
3872
+ readonly ignore?: string;
3873
+ }
3874
+
3875
+ interface AvailableService {
3876
+ readonly service: string;
3877
+ readonly scheduled_pickups?: io.flow.fulfillment.v0.models.ScheduledPickup[];
3878
+ readonly lead_days?: io.flow.fulfillment.v0.models.NumberRange;
3879
+ }
3880
+
3881
+ interface CarrierReference {
3882
+ readonly id: string;
3883
+ }
3884
+
3885
+ interface Center {
3886
+ readonly discriminator: 'center';
3887
+ readonly id: string;
3888
+ readonly key: string;
3889
+ readonly address: io.flow.fulfillment.v0.models.ShippingAddress;
3890
+ readonly packaging: io.flow.fulfillment.v0.models.Packaging[];
3891
+ readonly name: string;
3892
+ readonly services: io.flow.fulfillment.v0.models.AvailableService[];
3893
+ readonly schedule: io.flow.common.v0.models.Schedule;
3894
+ readonly timezone: string;
3895
+ readonly capabilities?: io.flow.fulfillment.v0.enums.CenterCapability[];
3896
+ readonly partner_center?: io.flow.fulfillment.v0.models.PartnerCenter;
3897
+ }
3898
+
3899
+ interface CenterForm {
3900
+ readonly address: io.flow.fulfillment.v0.models.ShippingAddress;
3901
+ readonly packaging: io.flow.fulfillment.v0.models.Packaging[];
3902
+ readonly name: string;
3903
+ readonly services: io.flow.fulfillment.v0.models.AvailableService[];
3904
+ readonly schedule: io.flow.common.v0.models.Schedule;
3905
+ readonly timezone?: string;
3906
+ readonly key?: string;
3907
+ readonly capabilities?: io.flow.fulfillment.v0.enums.CenterCapability[];
3908
+ readonly partner_center_form?: io.flow.fulfillment.v0.models.PartnerCenterForm;
3909
+ }
3910
+
3911
+ interface CenterQuery {
3912
+ readonly q: string;
3913
+ }
3914
+
3915
+ interface CenterReference {
3916
+ readonly discriminator: 'center_reference';
3917
+ readonly organization_id: string;
3918
+ readonly center_key: string;
3919
+ }
3920
+
3921
+ interface CenterSummary {
3922
+ readonly id: string;
3923
+ readonly key: string;
3924
+ readonly address?: io.flow.fulfillment.v0.models.ShippingAddress;
3925
+ }
3926
+
3927
+ interface CenterVersion {
3928
+ readonly id: string;
3929
+ readonly timestamp: string;
3930
+ readonly type: io.flow.common.v0.enums.ChangeType;
3931
+ readonly center: io.flow.fulfillment.v0.models.Center;
3932
+ }
3933
+
3934
+ interface CommercialInvoiceFee {
3935
+ readonly discriminator: 'commercial_invoice_fee';
3936
+ readonly amount: io.flow.common.v0.models.Money;
3937
+ }
3938
+
3939
+ interface CountryAvailability {
3940
+ readonly status: io.flow.fulfillment.v0.enums.ItemAvailabilityStatus;
3941
+ readonly countries: string[];
3942
+ }
3943
+
3944
+ interface CountryShippingPricing {
3945
+ readonly pricing: io.flow.fulfillment.v0.models.ItemShippingPricing;
3946
+ readonly countries: string[];
3947
+ }
3948
+
3949
+ interface DeliveryItem {
3950
+ readonly id?: string;
3951
+ readonly number: string;
3952
+ readonly quantity: number;
3953
+ readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
3954
+ readonly price?: io.flow.common.v0.models.MoneyWithOptionalBase;
3955
+ readonly attributes?: Record<string, string>;
3956
+ readonly center?: string;
3957
+ readonly line_number?: number;
3958
+ }
3959
+
3960
+ interface DeliveryOption {
3961
+ readonly id: string;
3962
+ readonly cost: io.flow.fulfillment.v0.models.PriceWithBaseAndDetails;
3963
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
3964
+ readonly price: io.flow.fulfillment.v0.models.PriceWithBaseAndDetails;
3965
+ readonly service: io.flow.fulfillment.v0.models.ServiceSummary;
3966
+ readonly tier: io.flow.fulfillment.v0.models.TierSummary;
3967
+ readonly window: io.flow.fulfillment.v0.models.DeliveryWindow;
3968
+ readonly rule_outcome?: io.flow.fulfillment.v0.unions.TierRuleOutcome;
3969
+ readonly weight?: io.flow.fulfillment.v0.models.OptionWeightEstimates;
3970
+ readonly send_to?: io.flow.fulfillment.v0.models.ShippingAddress;
3971
+ readonly surcharge?: io.flow.fulfillment.v0.models.PriceWithBaseAndDetails;
3972
+ readonly ratecard_owner?: io.flow.fulfillment.v0.enums.RatecardOwner;
3973
+ }
3974
+
3975
+ interface DeliveryOptionCostComponent {
3976
+ readonly key: io.flow.fulfillment.v0.enums.DeliveryOptionCostDetailComponentKey;
3977
+ readonly currency: string;
3978
+ readonly amount: number;
3979
+ readonly label: string;
3980
+ readonly base?: io.flow.common.v0.models.Price;
3981
+ }
3982
+
3983
+ interface DeliveryOptionCostDetail {
3984
+ readonly source: io.flow.fulfillment.v0.enums.DeliveryOptionCostDetailSource;
3985
+ readonly ratecard_id?: string;
3986
+ readonly currency: string;
3987
+ readonly amount: number;
3988
+ readonly label: string;
3989
+ readonly base?: io.flow.common.v0.models.Price;
3990
+ readonly components: io.flow.fulfillment.v0.models.DeliveryOptionCostComponent[];
3991
+ }
3992
+
3993
+ interface DeliveryOptionForm {
3994
+ readonly delivery: string;
3995
+ readonly items: io.flow.fulfillment.v0.models.QuoteLineItemForm[];
3996
+ readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
3997
+ }
3998
+
3999
+ interface DeliveryOptionReference {
4000
+ readonly id: string;
4001
+ }
4002
+
4003
+ interface DeliveryOptionSummary {
4004
+ readonly id: string;
4005
+ readonly cost: io.flow.common.v0.models.Price;
4006
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
4007
+ readonly price: io.flow.common.v0.models.Price;
4008
+ readonly service: io.flow.fulfillment.v0.models.ServiceReference;
4009
+ readonly tier: io.flow.fulfillment.v0.models.TierReference;
4010
+ readonly window: io.flow.common.v0.models.DatetimeRange;
4011
+ }
4012
+
4013
+ interface DeliveryOptionVersion {
4014
+ readonly id: string;
4015
+ readonly timestamp: string;
4016
+ readonly type: io.flow.common.v0.enums.ChangeType;
4017
+ readonly delivery_option: io.flow.fulfillment.v0.models.DeliveryOptionSummary;
4018
+ }
4019
+
4020
+ interface DeliverySummary {
4021
+ readonly id: string;
4022
+ readonly items: io.flow.common.v0.models.LineItemForm[];
4023
+ }
4024
+
4025
+ interface DeliveryVersion {
4026
+ readonly id: string;
4027
+ readonly timestamp: string;
4028
+ readonly type: io.flow.common.v0.enums.ChangeType;
4029
+ readonly delivery: io.flow.fulfillment.v0.models.DeliverySummary;
4030
+ }
4031
+
4032
+ interface DeliveryWindow {
4033
+ readonly from: string;
4034
+ readonly to: string;
4035
+ readonly timezone?: string;
4036
+ readonly label?: string;
4037
+ readonly min_days?: number;
4038
+ readonly max_days?: number;
4039
+ }
4040
+
4041
+ interface DeliveryWindowComponent {
4042
+ readonly from: string;
4043
+ readonly to: string;
4044
+ readonly source: io.flow.fulfillment.v0.enums.DeliveryWindowComponentSource;
4045
+ }
4046
+
4047
+ interface DeliveryWindowComponents {
4048
+ readonly shipment_estimate: io.flow.fulfillment.v0.models.DeliveryWindowComponent;
4049
+ readonly transit_estimate: io.flow.fulfillment.v0.models.DeliveryWindowComponent;
4050
+ }
4051
+
4052
+ interface DeliveryWindowComponentsV2 {
4053
+ readonly processing_estimates: io.flow.fulfillment.v0.models.ProcessingEstimate[];
4054
+ readonly transit_estimates: io.flow.fulfillment.v0.models.TransitEstimate[];
4055
+ }
4056
+
4057
+ interface DeliveryWindowSummary {
4058
+ readonly country: string;
4059
+ readonly delivery_window: io.flow.fulfillment.v0.models.DeliveryWindow;
4060
+ }
4061
+
4062
+ interface DigitalDelivery {
4063
+ readonly discriminator: 'digital_delivery';
4064
+ readonly id: string;
4065
+ readonly key?: string;
4066
+ readonly items: io.flow.fulfillment.v0.models.DeliveryItem[];
4067
+ readonly prices?: io.flow.order.price.v0.models.OrderPriceDetail[];
4068
+ readonly total?: io.flow.catalog.v0.models.LocalizedTotal;
4069
+ }
4070
+
4071
+ interface EstimatedWindow {
4072
+ readonly from: number;
4073
+ readonly to: number;
4074
+ readonly unit: io.flow.common.v0.enums.UnitOfTime;
4075
+ }
4076
+
4077
+ interface FlatRate {
4078
+ readonly discriminator: 'flat_rate';
4079
+ readonly price: io.flow.common.v0.models.Price;
4080
+ readonly zero_amount_indicator?: io.flow.fulfillment.v0.enums.ZeroAmountIndicator;
4081
+ }
4082
+
4083
+ interface FlatRateForm {
4084
+ readonly discriminator: 'flat_rate_form';
4085
+ readonly price: io.flow.common.v0.models.Money;
4086
+ readonly zero_amount_indicator?: io.flow.fulfillment.v0.enums.ZeroAmountIndicator;
4087
+ }
4088
+
4089
+ interface FulfillmentExperienceReference {
4090
+ readonly id: string;
4091
+ readonly currency: string;
4092
+ }
4093
+
4094
+ interface InboundCartonFee {
4095
+ readonly discriminator: 'inbound_carton_fee';
4096
+ readonly amount: io.flow.common.v0.models.Money;
4097
+ }
4098
+
4099
+ interface ItemShippingPricing {
4100
+ readonly min: io.flow.common.v0.models.Price;
4101
+ readonly max?: io.flow.common.v0.models.Price;
4102
+ }
4103
+
4104
+ interface NumberRange {
4105
+ readonly min: number;
4106
+ readonly max: number;
4107
+ }
4108
+
4109
+ interface OptionWeightEstimates {
4110
+ readonly gravitational: io.flow.common.v0.models.Measurement;
4111
+ readonly dimensional: io.flow.common.v0.models.Measurement;
4112
+ }
4113
+
4114
+ interface OutboundCartonFee {
4115
+ readonly discriminator: 'outbound_carton_fee';
4116
+ readonly amount: io.flow.common.v0.models.Money;
4117
+ }
4118
+
4119
+ interface Packaging {
4120
+ readonly dimensions: io.flow.common.v0.models.Dimensions;
4121
+ readonly name?: string;
4122
+ readonly number?: string;
4123
+ }
4124
+
4125
+ interface PartnerCenter {
4126
+ readonly partner_reference: io.flow.common.v0.models.PartnerReference;
4127
+ readonly number?: string;
4128
+ readonly fees?: io.flow.fulfillment.v0.unions.PartnerCenterFee[];
4129
+ }
4130
+
4131
+ interface PartnerCenterForm {
4132
+ readonly partner_id: string;
4133
+ readonly number?: string;
4134
+ readonly fees?: io.flow.fulfillment.v0.unions.PartnerCenterFee[];
4135
+ }
4136
+
4137
+ interface PercentMargin {
4138
+ readonly discriminator: 'percent_margin';
4139
+ readonly percentage: number;
4140
+ }
4141
+
4142
+ interface PhysicalDelivery {
4143
+ readonly discriminator: 'physical_delivery';
4144
+ readonly id: string;
4145
+ readonly key?: string;
4146
+ readonly center?: io.flow.fulfillment.v0.models.CenterSummary;
4147
+ readonly fulfillment_routing?: io.flow.fulfillment.v0.enums.FulfillmentRouting;
4148
+ readonly ship_from_country?: string;
4149
+ readonly items: io.flow.fulfillment.v0.models.DeliveryItem[];
4150
+ readonly options: io.flow.fulfillment.v0.models.DeliveryOption[];
4151
+ readonly special_services?: io.flow.fulfillment.v0.enums.PhysicalDeliverySpecialSerivce[];
4152
+ readonly prices?: io.flow.order.price.v0.models.OrderPriceDetail[];
4153
+ readonly total?: io.flow.catalog.v0.models.LocalizedTotal;
4154
+ readonly goods_supply?: io.flow.common.v0.enums.GoodsSupply;
4155
+ readonly merchant_of_record_flow_entity?: io.flow.merchant.of.record.v0.enums.FlowEntity;
4156
+ readonly preferred_service?: io.flow.fulfillment.v0.models.PhysicalDeliveryPreferredService;
4157
+ }
4158
+
4159
+ interface PhysicalDeliveryPreferredService {
4160
+ readonly id: string;
4161
+ readonly selection_stratey: io.flow.fulfillment.v0.enums.PreferredServiceSelectionStrategy;
4162
+ }
4163
+
4164
+ interface PriceWithBaseAndDetails {
4165
+ readonly currency: string;
4166
+ readonly amount: number;
4167
+ readonly label: string;
4168
+ readonly base?: io.flow.common.v0.models.Price;
4169
+ readonly details?: io.flow.fulfillment.v0.models.DeliveryOptionCostDetail[];
4170
+ }
4171
+
4172
+ interface ProcessingEstimate {
4173
+ readonly location: io.flow.fulfillment.v0.enums.DeliveryWindowLocation;
4174
+ readonly min_date: string;
4175
+ readonly max_date: string;
4176
+ readonly source: io.flow.fulfillment.v0.enums.DeliveryWindowComponentSource;
4177
+ }
4178
+
4179
+ interface Quote {
4180
+ readonly id: string;
4181
+ readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
4182
+ readonly deliveries: io.flow.fulfillment.v0.unions.Delivery[];
4183
+ readonly selections: io.flow.fulfillment.v0.models.DeliveryOptionReference[];
4184
+ readonly delivered_duty: io.flow.common.v0.enums.DeliveredDuty;
4185
+ readonly delivered_duties: io.flow.common.v0.enums.DeliveredDuty[];
4186
+ }
4187
+
4188
+ interface QuoteError {
4189
+ readonly code: io.flow.fulfillment.v0.enums.QuoteErrorCode;
4190
+ readonly messages: string[];
4191
+ readonly item_numbers?: string[];
4192
+ }
4193
+
4194
+ interface QuoteForm {
4195
+ readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
4196
+ readonly experience: string;
4197
+ readonly items: io.flow.fulfillment.v0.models.QuoteLineItemForm[];
4198
+ readonly delivered_duty?: io.flow.common.v0.enums.DeliveredDuty;
4199
+ readonly delivered_duties?: io.flow.common.v0.enums.DeliveredDuty[];
4200
+ readonly direction?: io.flow.fulfillment.v0.enums.LaneDirection;
4201
+ }
4202
+
4203
+ interface QuoteLineItemForm {
4204
+ readonly number: string;
4205
+ readonly quantity: number;
4206
+ readonly shipment_estimate?: io.flow.common.v0.models.DatetimeRange;
4207
+ readonly price: io.flow.common.v0.models.MoneyWithBase;
4208
+ readonly attributes?: Record<string, string>;
4209
+ readonly center?: string;
4210
+ }
4211
+
4212
+ interface QuoteSummary {
4213
+ readonly id: string;
4214
+ readonly destination: io.flow.fulfillment.v0.models.ShippingAddress;
4215
+ }
4216
+
4217
+ interface QuoteVersion {
4218
+ readonly id: string;
4219
+ readonly timestamp: string;
4220
+ readonly type: io.flow.common.v0.enums.ChangeType;
4221
+ readonly quote: io.flow.fulfillment.v0.models.QuoteSummary;
4222
+ }
4223
+
4224
+ interface ScheduledPickup {
4225
+ readonly day_of_week: io.flow.common.v0.enums.DayOfWeek;
4226
+ readonly hour_of_day: string;
4227
+ readonly minute_of_hour: string;
4228
+ }
4229
+
4230
+ interface ServiceReference {
4231
+ readonly id: string;
4232
+ }
4233
+
4234
+ interface ServiceSummary {
4235
+ readonly discriminator: 'service_summary';
4236
+ readonly id: string;
4237
+ readonly carrier: io.flow.fulfillment.v0.models.CarrierReference;
4238
+ readonly name: string;
4239
+ readonly center_code?: string;
4240
+ }
4241
+
4242
+ interface ServiceUnknown {
4243
+ readonly discriminator: 'service_unknown';
4244
+ readonly name: string;
4245
+ }
4246
+
4247
+ interface ShippingAddress {
4248
+ readonly contact: io.flow.common.v0.models.Contact;
4249
+ readonly location: io.flow.common.v0.models.Address;
4250
+ readonly center_key?: string;
4251
+ readonly center_reference?: io.flow.fulfillment.v0.models.CenterReference;
4252
+ readonly service?: io.flow.fulfillment.v0.models.ServiceSummary;
4253
+ }
4254
+
4255
+ interface ShippingConfiguration {
4256
+ readonly id: string;
4257
+ readonly name: string;
4258
+ readonly key: string;
4259
+ readonly type: io.flow.fulfillment.v0.enums.ShippingConfigurationType;
4260
+ readonly shipping_lanes: io.flow.fulfillment.v0.models.ShippingLane[];
4261
+ }
4262
+
4263
+ interface ShippingConfigurationCopy {
4264
+ readonly original: io.flow.fulfillment.v0.models.ShippingConfigurationReference;
4265
+ readonly new: io.flow.fulfillment.v0.models.ShippingConfigurationReference;
4266
+ }
4267
+
4268
+ interface ShippingConfigurationCopyForm {
4269
+ readonly name: string;
4270
+ }
4271
+
4272
+ interface ShippingConfigurationForm {
4273
+ readonly name: string;
4274
+ }
4275
+
4276
+ interface ShippingConfigurationItemAvailability {
4277
+ readonly id: string;
4278
+ readonly item: io.flow.common.v0.models.ItemReference;
4279
+ readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfigurationSummary;
4280
+ readonly availabilities: io.flow.fulfillment.v0.models.CountryAvailability[];
4281
+ }
4282
+
4283
+ interface ShippingConfigurationItemShippingPricing {
4284
+ readonly id: string;
4285
+ readonly item: io.flow.common.v0.models.ItemReference;
4286
+ readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfigurationSummary;
4287
+ readonly country_shipping_pricings: io.flow.fulfillment.v0.models.CountryShippingPricing[];
4288
+ }
4289
+
4290
+ interface ShippingConfigurationReference {
4291
+ readonly key: string;
4292
+ }
4293
+
4294
+ interface ShippingConfigurationSummary {
4295
+ readonly id: string;
4296
+ readonly name: string;
4297
+ readonly key: string;
4298
+ readonly type: io.flow.fulfillment.v0.enums.ShippingConfigurationType;
4299
+ }
4300
+
4301
+ interface ShippingConfigurationVersion {
4302
+ readonly id: string;
4303
+ readonly timestamp: string;
4304
+ readonly type: io.flow.common.v0.enums.ChangeType;
4305
+ readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfiguration;
4306
+ }
4307
+
4308
+ interface ShippingLane {
4309
+ readonly id: string;
4310
+ readonly shipping_configuration: io.flow.fulfillment.v0.models.ShippingConfigurationReference;
4311
+ readonly region: string;
4312
+ readonly centers: io.flow.fulfillment.v0.unions.ExpandableCenter[];
4313
+ readonly tiers: io.flow.fulfillment.v0.models.Tier[];
4314
+ readonly query: io.flow.query.builder.v0.models.Query;
4315
+ readonly strategy: io.flow.fulfillment.v0.enums.LaneStrategy;
4316
+ readonly direction?: io.flow.fulfillment.v0.enums.LaneDirection;
4317
+ readonly preference?: io.flow.fulfillment.v0.enums.LanePreselectPreference;
4318
+ }
4319
+
4320
+ interface ShippingLaneDefaultTier {
4321
+ readonly id: string;
4322
+ readonly tier: io.flow.fulfillment.v0.models.TierReference;
4323
+ }
4324
+
4325
+ interface ShippingLaneDefaultTierForm {
4326
+ readonly tier_id: string;
4327
+ }
4328
+
4329
+ interface ShippingLaneForm {
4330
+ readonly from: string;
4331
+ readonly to: string;
4332
+ readonly strategy?: io.flow.fulfillment.v0.enums.LaneStrategy;
4333
+ readonly direction?: io.flow.fulfillment.v0.enums.LaneDirection;
4334
+ readonly preference?: io.flow.fulfillment.v0.enums.LanePreselectPreference;
4335
+ }
4336
+
4337
+ interface ShippingLaneSummary {
4338
+ readonly shipping_lane_id: string;
4339
+ readonly region: string;
4340
+ readonly centers: io.flow.fulfillment.v0.unions.ExpandableCenter[];
4341
+ }
4342
+
4343
+ interface ShippingLaneVersion {
4344
+ readonly id: string;
4345
+ readonly timestamp: string;
4346
+ readonly type: io.flow.common.v0.enums.ChangeType;
4347
+ readonly shipping_lane: io.flow.fulfillment.v0.models.ShippingLane;
4348
+ }
4349
+
4350
+ interface SurchargeResponsiblePartyDisplay {
4351
+ readonly name: string;
4352
+ readonly responsible_party: io.flow.fulfillment.v0.enums.SurchargeResponsibleParty;
4353
+ }
4354
+
4355
+ interface SurchargeSetting {
4356
+ readonly key: io.flow.fulfillment.v0.enums.DeliveryOptionCostDetailComponentKey;
4357
+ readonly responsible_party: io.flow.fulfillment.v0.enums.SurchargeResponsibleParty;
4358
+ }
4359
+
4360
+ interface SurchargeSettingDisplay {
4361
+ readonly name: string;
4362
+ readonly description: string;
4363
+ readonly key: io.flow.fulfillment.v0.enums.DeliveryOptionCostDetailComponentKey;
4364
+ readonly available: io.flow.fulfillment.v0.models.SurchargeResponsiblePartyDisplay[];
4365
+ }
4366
+
4367
+ interface Tier {
4368
+ readonly id: string;
4369
+ readonly direction: io.flow.fulfillment.v0.enums.LaneDirection;
4370
+ readonly integration: io.flow.fulfillment.v0.enums.ShipmentIntegrationType;
4371
+ readonly name: string;
4372
+ readonly message?: string;
4373
+ readonly rules: io.flow.fulfillment.v0.models.TierRule[];
4374
+ readonly services: io.flow.reference.v0.models.CarrierService[];
4375
+ readonly strategy: io.flow.fulfillment.v0.enums.TierStrategy;
4376
+ readonly visibility: io.flow.common.v0.enums.Visibility;
4377
+ readonly currency: string;
4378
+ readonly description?: string;
4379
+ readonly display?: io.flow.fulfillment.v0.models.TierDisplay;
4380
+ readonly shipping_lane?: string;
4381
+ readonly surcharge_settings?: io.flow.fulfillment.v0.models.SurchargeSetting[];
4382
+ readonly lane?: io.flow.fulfillment.v0.models.ShippingLaneSummary;
4383
+ readonly settings?: io.flow.fulfillment.v0.models.TierSettings;
4384
+ }
4385
+
4386
+ interface TierDisplay {
4387
+ readonly estimate: io.flow.fulfillment.v0.models.TierEstimate;
4388
+ }
4389
+
4390
+ interface TierDisplayForm {
4391
+ readonly estimate?: io.flow.fulfillment.v0.models.TierEstimate;
4392
+ }
4393
+
4394
+ interface TierEstimate {
4395
+ readonly type: io.flow.fulfillment.v0.enums.TierEstimateType;
4396
+ readonly label?: string;
4397
+ }
4398
+
4399
+ interface TierForm {
4400
+ readonly currency: string;
4401
+ readonly integration: io.flow.fulfillment.v0.enums.ShipmentIntegrationType;
4402
+ readonly name: string;
4403
+ readonly message?: string;
4404
+ readonly rules: io.flow.fulfillment.v0.models.TierRuleForm[];
4405
+ readonly services: string[];
4406
+ readonly strategy: io.flow.fulfillment.v0.enums.TierStrategy;
4407
+ readonly visibility: io.flow.common.v0.enums.Visibility;
4408
+ readonly description?: string;
4409
+ readonly direction?: io.flow.fulfillment.v0.enums.LaneDirection;
4410
+ readonly display?: io.flow.fulfillment.v0.models.TierDisplayForm;
4411
+ readonly shipping_lane: string;
4412
+ readonly surcharge_settings?: io.flow.fulfillment.v0.models.SurchargeSetting[];
4413
+ readonly settings?: io.flow.fulfillment.v0.models.TierSettings;
4414
+ }
4415
+
4416
+ interface TierReference {
4417
+ readonly id: string;
4418
+ }
4419
+
4420
+ interface TierRule {
4421
+ readonly id: string;
4422
+ readonly position: number;
4423
+ readonly query: string;
4424
+ readonly outcome: io.flow.fulfillment.v0.unions.TierRuleOutcome;
4425
+ }
4426
+
4427
+ interface TierRuleForm {
4428
+ readonly position?: number;
4429
+ readonly query: string;
4430
+ readonly outcome: io.flow.fulfillment.v0.unions.TierRuleOutcomeForm;
4431
+ }
4432
+
4433
+ interface TierRuleVersion {
4434
+ readonly id: string;
4435
+ readonly timestamp: string;
4436
+ readonly type: io.flow.common.v0.enums.ChangeType;
4437
+ readonly tier_rule: io.flow.fulfillment.v0.models.TierRule;
4438
+ }
4439
+
4440
+ interface TierSettings {
4441
+ readonly availability: io.flow.fulfillment.v0.enums.TierAvailability;
4442
+ }
4443
+
4444
+ interface TierSummary {
4445
+ readonly id: string;
4446
+ readonly experience?: io.flow.fulfillment.v0.models.FulfillmentExperienceReference;
4447
+ readonly integration: io.flow.fulfillment.v0.enums.ShipmentIntegrationType;
4448
+ readonly name: string;
4449
+ readonly services: string[];
4450
+ readonly strategy: io.flow.fulfillment.v0.enums.TierStrategy;
4451
+ readonly visibility: io.flow.common.v0.enums.Visibility;
4452
+ readonly currency: string;
4453
+ readonly display?: io.flow.fulfillment.v0.models.TierDisplay;
4454
+ readonly message?: string;
4455
+ readonly settings?: io.flow.fulfillment.v0.models.TierSettings;
4456
+ }
4457
+
4458
+ interface TierVersion {
4459
+ readonly id: string;
4460
+ readonly timestamp: string;
4461
+ readonly type: io.flow.common.v0.enums.ChangeType;
4462
+ readonly tier: io.flow.fulfillment.v0.models.TierSummary;
4463
+ }
4464
+
4465
+ interface TransitEstimate {
4466
+ readonly origin: io.flow.fulfillment.v0.enums.DeliveryWindowLocation;
4467
+ readonly destination: io.flow.fulfillment.v0.enums.DeliveryWindowLocation;
4468
+ readonly min_date: string;
4469
+ readonly max_date: string;
4470
+ readonly source: io.flow.fulfillment.v0.enums.DeliveryWindowComponentSource;
4471
+ }
4472
+ }
4473
+
4474
+ declare namespace io.flow.fulfillment.v0.unions {
4475
+ type Delivery =
4476
+ | io.flow.fulfillment.v0.models.DigitalDelivery
4477
+ | io.flow.fulfillment.v0.models.PhysicalDelivery;
4478
+ type ExpandableCenter =
4479
+ | io.flow.fulfillment.v0.models.Center
4480
+ | io.flow.fulfillment.v0.models.CenterReference;
4481
+ type PartnerCenterFee =
4482
+ | io.flow.fulfillment.v0.models.CommercialInvoiceFee
4483
+ | io.flow.fulfillment.v0.models.InboundCartonFee
4484
+ | io.flow.fulfillment.v0.models.OutboundCartonFee;
4485
+ type ServiceDescription =
4486
+ | io.flow.fulfillment.v0.models.ServiceSummary
4487
+ | io.flow.fulfillment.v0.models.ServiceUnknown;
4488
+ type TierRuleOutcome =
4489
+ | io.flow.fulfillment.v0.models.AmountMargin
4490
+ | io.flow.fulfillment.v0.models.AtCost
4491
+ | io.flow.fulfillment.v0.models.FlatRate
4492
+ | io.flow.fulfillment.v0.models.PercentMargin;
4493
+ type TierRuleOutcomeForm =
4494
+ | io.flow.fulfillment.v0.models.AmountMarginForm
4495
+ | io.flow.fulfillment.v0.models.FlatRateForm
4496
+ | io.flow.fulfillment.v0.models.AtCost
4497
+ | io.flow.fulfillment.v0.models.PercentMargin;
4498
+ }
4499
+
4500
+ declare namespace io.flow.apple.pay.v0.enums {
4501
+ type ApplePayContactField =
4502
+ | 'email'
4503
+ | 'name'
4504
+ | 'phone'
4505
+ | 'postalAddress'
4506
+ | 'phoneticName';
4507
+ type ApplePayLineItemType = 'final' | 'pending';
4508
+ type ApplePayMerchantCapability =
4509
+ | 'supports3DS'
4510
+ | 'supportsCredit'
4511
+ | 'supportsDebit'
4512
+ | 'supportsEMV';
4513
+ type ApplePayShippingType =
4514
+ | 'shipping'
4515
+ | 'delivery'
4516
+ | 'storePickup'
4517
+ | 'servicePickup';
4518
+ type ApplePaySupportedNetworks =
4519
+ | 'amex'
4520
+ | 'chinaUnionPay'
4521
+ | 'discover'
4522
+ | 'jcb'
4523
+ | 'masterCard'
4524
+ | 'privateLabel'
4525
+ | 'visa';
4526
+ }
4527
+
4528
+ declare namespace io.flow.apple.pay.v0.models {
4529
+ interface ApplePayLineItem {
4530
+ readonly label: string;
4531
+ readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
4532
+ readonly amount: string;
4533
+ }
4534
+
4535
+ interface ApplePayPaymentContact {
4536
+ readonly email_address?: string;
4537
+ readonly family_name?: string;
4538
+ readonly given_name?: string;
4539
+ readonly phone_number?: string;
4540
+ readonly phonetic_familyName?: string;
4541
+ readonly phonetic_givenName?: string;
4542
+ readonly address_lines?: string[];
4543
+ readonly locality?: string;
4544
+ readonly sub_locality?: string;
4545
+ readonly administrative_area?: string;
4546
+ readonly sub_administrative_area?: string;
4547
+ readonly postal_code?: string;
4548
+ readonly country?: string;
4549
+ readonly country_code?: string;
4550
+ }
4551
+
4552
+ interface ApplePayPaymentData {
4553
+ readonly applicationPrimaryAccountNumber: string;
4554
+ readonly applicationExpirationDate: string;
4555
+ readonly currencyCode: string;
4556
+ readonly transactionAmount: number;
4557
+ readonly cardholderName?: string;
4558
+ readonly deviceManufacturerIdentifier: string;
4559
+ readonly paymentDataType: string;
4560
+ readonly paymentData: any /*object*/;
4561
+ }
4562
+
4563
+ interface ApplePayPaymentInfo {
4564
+ readonly total: io.flow.apple.pay.v0.models.ApplePayLineItem;
4565
+ readonly line_items?: io.flow.apple.pay.v0.models.ApplePayLineItem[];
4566
+ readonly country_code: string;
4567
+ readonly currency_code: string;
4568
+ readonly merchant_capabilities: io.flow.apple.pay.v0.enums.ApplePayMerchantCapability[];
4569
+ readonly shipping_methods?: io.flow.apple.pay.v0.models.ApplePayShippingMethod[];
4570
+ readonly shipping_type?: io.flow.apple.pay.v0.enums.ApplePayShippingType;
4571
+ readonly supported_countries?: string[];
4572
+ readonly supported_networks: io.flow.apple.pay.v0.enums.ApplePaySupportedNetworks[];
4573
+ readonly required_billingContactFields?: io.flow.apple.pay.v0.enums.ApplePayContactField[];
4574
+ readonly required_shippingContactFields?: io.flow.apple.pay.v0.enums.ApplePayContactField[];
4575
+ readonly billing_contact?: io.flow.apple.pay.v0.models.ApplePayPaymentContact;
4576
+ readonly shipping_contact?: io.flow.apple.pay.v0.models.ApplePayPaymentContact;
4577
+ readonly application_data?: string;
4578
+ }
4579
+
4580
+ interface ApplePayShippingMethod {
4581
+ readonly label: string;
4582
+ readonly detail: string;
4583
+ readonly amount: string;
4584
+ readonly identifier: string;
4585
+ }
4586
+ }
4587
+
4588
+ declare namespace io.flow.merchant.of.record.v0.enums {
4589
+ type EconomicTitleLocation = 'high_seas' | 'origination' | 'destination';
4590
+ type FlowEntity = 'flow-usa' | 'flow-irl' | 'flow-can' | 'ge-usa';
4591
+ }
4592
+
4593
+ declare namespace io.flow.currency.v0.models {
4594
+ interface Rate {
4595
+ readonly id: string;
4596
+ readonly base: string;
4597
+ readonly target: string;
4598
+ readonly effective_at: string;
4599
+ readonly value: number;
4600
+ }
4601
+
4602
+ interface RateForm {
4603
+ readonly base: string;
4604
+ readonly target: string;
4605
+ readonly effective_at: string;
4606
+ }
4607
+
4608
+ interface RateVersion {
4609
+ readonly id: string;
4610
+ readonly timestamp: string;
4611
+ readonly type: io.flow.common.v0.enums.ChangeType;
4612
+ readonly rate: io.flow.currency.v0.models.Rate;
4613
+ }
4614
+ }
4615
+
4616
+ declare namespace io.flow.organization.v0.enums {
4617
+ type CountryPickerSource = 'experience' | 'destination';
4618
+ type EcommercePlatformType =
4619
+ | 'commercetools'
4620
+ | 'custom'
4621
+ | 'hybris'
4622
+ | 'magento'
4623
+ | 'shopify'
4624
+ | 'shopify_markets'
4625
+ | 'sfcc'
4626
+ | 'solidus'
4627
+ | 'workarea';
4628
+ type InvitationErrorCode = 'expired' | 'invalid_email';
4629
+ }
4630
+
4631
+ declare namespace io.flow.organization.v0.models {
4632
+ interface CountryPicker {
4633
+ readonly id: string;
4634
+ readonly source: io.flow.organization.v0.enums.CountryPickerSource;
4635
+ }
4636
+
4637
+ interface CountryPickerForm {
4638
+ readonly source: io.flow.organization.v0.enums.CountryPickerSource;
4639
+ }
4640
+
4641
+ interface EcommercePlatform {
4642
+ readonly id: string;
4643
+ readonly type: io.flow.organization.v0.enums.EcommercePlatformType;
4644
+ readonly version?: string;
4645
+ }
4646
+
4647
+ interface EcommercePlatformForm {
4648
+ readonly type: io.flow.organization.v0.enums.EcommercePlatformType;
4649
+ readonly version?: string;
4650
+ }
4651
+
4652
+ interface Invitation {
4653
+ readonly id: string;
4654
+ readonly organization: io.flow.common.v0.unions.ExpandableOrganization;
4655
+ readonly email: string;
4656
+ readonly name: io.flow.common.v0.models.Name;
4657
+ readonly role?: io.flow.common.v0.enums.Role;
4658
+ readonly roles?: io.flow.permission.v0.enums.FlowRole[];
4659
+ readonly expiration: string;
4660
+ }
4661
+
4662
+ interface InvitationError {
4663
+ readonly code: io.flow.organization.v0.enums.InvitationErrorCode;
4664
+ readonly messages: string[];
4665
+ }
4666
+
4667
+ interface InvitationForm {
4668
+ readonly organization: string;
4669
+ readonly email: string;
4670
+ readonly name?: io.flow.common.v0.models.Name;
4671
+ readonly role?: io.flow.common.v0.enums.Role;
4672
+ readonly roles?: io.flow.permission.v0.enums.FlowRole[];
4673
+ }
4674
+
4675
+ interface InvitationVersion {
4676
+ readonly id: string;
4677
+ readonly timestamp: string;
4678
+ readonly type: io.flow.common.v0.enums.ChangeType;
4679
+ readonly invitation: io.flow.organization.v0.models.Invitation;
4680
+ }
4681
+
4682
+ interface Membership {
4683
+ readonly id: string;
4684
+ readonly organization: io.flow.common.v0.unions.ExpandableOrganization;
4685
+ readonly user: io.flow.common.v0.unions.ExpandableUser;
4686
+ readonly role?: io.flow.common.v0.enums.Role;
4687
+ readonly roles: io.flow.permission.v0.enums.FlowRole[];
4688
+ }
4689
+
4690
+ interface MembershipForm {
4691
+ readonly organization: string;
4692
+ readonly user: string;
4693
+ readonly role?: io.flow.common.v0.enums.Role;
4694
+ readonly roles?: io.flow.permission.v0.enums.FlowRole[];
4695
+ }
4696
+
4697
+ interface MembershipPutForm {
4698
+ readonly role?: io.flow.common.v0.enums.Role;
4699
+ readonly roles?: io.flow.permission.v0.enums.FlowRole[];
4700
+ }
4701
+
4702
+ interface MembershipVersion {
4703
+ readonly id: string;
4704
+ readonly timestamp: string;
4705
+ readonly type: io.flow.common.v0.enums.ChangeType;
4706
+ readonly membership: io.flow.organization.v0.models.Membership;
4707
+ }
4708
+
4709
+ interface OrganizationAuthorization {
4710
+ readonly role?: io.flow.common.v0.enums.Role;
4711
+ readonly environment: io.flow.common.v0.enums.Environment;
4712
+ }
4713
+
4714
+ interface OrganizationAuthorizationForm {
4715
+ readonly organization: string;
4716
+ readonly environment: io.flow.common.v0.enums.Environment;
4717
+ }
4718
+
4719
+ interface OrganizationConfigurationReference {
4720
+ readonly id: string;
4721
+ }
4722
+
4723
+ interface OrganizationDefaultConfigurations {
4724
+ readonly id: string;
4725
+ readonly checkout_configuration: io.flow.organization.v0.models.OrganizationConfigurationReference;
4726
+ }
4727
+
4728
+ interface OrganizationDefaultConfigurationsForm {
4729
+ readonly id: string;
4730
+ }
4731
+
4732
+ interface OrganizationForm {
4733
+ readonly id?: string;
4734
+ readonly name?: string;
4735
+ readonly environment: io.flow.common.v0.enums.Environment;
4736
+ readonly parent_id?: string;
4737
+ readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
4738
+ readonly status?: io.flow.common.v0.enums.OrganizationStatus;
4739
+ readonly type?: io.flow.common.v0.enums.OrganizationType;
4740
+ }
4741
+
4742
+ interface OrganizationPutForm {
4743
+ readonly name?: string;
4744
+ readonly environment?: io.flow.common.v0.enums.Environment;
4745
+ readonly parent_id?: string;
4746
+ readonly defaults?: io.flow.common.v0.models.OrganizationDefaults;
4747
+ readonly status?: io.flow.common.v0.enums.OrganizationStatus;
4748
+ }
4749
+
4750
+ interface OrganizationVersion {
4751
+ readonly id: string;
4752
+ readonly timestamp: string;
4753
+ readonly type: io.flow.common.v0.enums.ChangeType;
4754
+ readonly organization: io.flow.common.v0.models.Organization;
4755
+ }
4756
+
4757
+ interface RegionSetting {
4758
+ readonly id: string;
4759
+ readonly region: string;
4760
+ readonly status: io.flow.common.v0.enums.AvailabilityStatus;
4761
+ }
4762
+
4763
+ interface RegionSettingForm {
4764
+ readonly status: io.flow.common.v0.enums.AvailabilityStatus;
4765
+ }
4766
+ }
4767
+
4768
+ declare namespace io.flow.catalog.v0.enums {
4769
+ type AdjustmentReasonKey = 'duty_deminimis' | 'vat_deminimis';
4770
+ type AttributeIntent =
4771
+ | 'brand'
4772
+ | 'color'
4773
+ | 'countries_of_origin'
4774
+ | 'product_id'
4775
+ | 'fulfillment_method'
4776
+ | 'hazardous'
4777
+ | 'price'
4778
+ | 'size'
4779
+ | 'sku'
4780
+ | 'taxability'
4781
+ | 'consumer_url'
4782
+ | 'gtin'
4783
+ | 'mpn'
4784
+ | 'facet'
4785
+ | 'eccn'
4786
+ | 'returnable'
4787
+ | 'searchable'
4788
+ | 'barcode'
4789
+ | 'min_days_to_ship'
4790
+ | 'max_days_to_ship'
4791
+ | 'commercial_invoice_item_number'
4792
+ | 'include_in_product_feeds';
4793
+ type FulfillmentMethodType = 'fulfillment_method';
4794
+ type FulfillmentMethodValue = 'digital' | 'physical';
4795
+ type ImageTag = 'thumbnail' | 'checkout';
4796
+ type ReturnItemStatus = 'returnable' | 'non-returnable';
4797
+ type SubcatalogItemStatus = 'excluded' | 'included' | 'restricted';
4798
+ type TaxabilityType = 'tax_rule';
4799
+ type TaxabilityValue = 'exempt';
4800
+ type UpdatePolicy = 'auto' | 'queue' | 'discard';
4801
+ }
4802
+
4803
+ declare namespace io.flow.catalog.v0.models {
4804
+ interface AdjustmentReason {
4805
+ readonly key: io.flow.catalog.v0.enums.AdjustmentReasonKey;
4806
+ readonly label: string;
4807
+ }
4808
+
4809
+ interface Attribute {
4810
+ readonly id: string;
4811
+ readonly key: string;
4812
+ readonly options: io.flow.catalog.v0.models.Options;
4813
+ readonly label?: string;
4814
+ readonly intent?: io.flow.catalog.v0.enums.AttributeIntent;
4815
+ readonly type?: io.flow.common.v0.enums.AttributeDataType;
4816
+ readonly position?: number;
4817
+ }
4818
+
4819
+ interface AttributeForm {
4820
+ readonly key: string;
4821
+ readonly options: io.flow.catalog.v0.models.Options;
4822
+ readonly label?: string;
4823
+ readonly intent?: io.flow.catalog.v0.enums.AttributeIntent;
4824
+ readonly type?: io.flow.common.v0.enums.AttributeDataType;
4825
+ readonly position?: number;
4826
+ }
4827
+
4828
+ interface AttributeVersion {
4829
+ readonly id: string;
4830
+ readonly timestamp: string;
4831
+ readonly type: io.flow.common.v0.enums.ChangeType;
4832
+ readonly attribute: io.flow.catalog.v0.models.Attribute;
4833
+ }
4834
+
4835
+ interface Catalog {
4836
+ readonly id: string;
4837
+ }
4838
+
4839
+ interface CatalogReference {
4840
+ readonly id: string;
4841
+ }
4842
+
4843
+ interface CatalogStatistics {
4844
+ readonly id: string;
4845
+ readonly items: number;
4846
+ readonly categories: number;
4847
+ }
4848
+
4849
+ interface CatalogVersion {
4850
+ readonly id: string;
4851
+ readonly timestamp: string;
4852
+ readonly type: io.flow.common.v0.enums.ChangeType;
4853
+ readonly catalog: io.flow.catalog.v0.models.Catalog;
4854
+ }
4855
+
4856
+ interface FlowItemIndexMetadata {
4857
+ readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
4858
+ }
4859
+
4860
+ interface Image {
4861
+ readonly url: string;
4862
+ readonly tags: io.flow.catalog.v0.enums.ImageTag[];
4863
+ readonly attributes?: Record<string, string>;
4864
+ }
4865
+
4866
+ interface ImageForm {
4867
+ readonly url: string;
4868
+ readonly tags?: io.flow.catalog.v0.enums.ImageTag[];
4869
+ readonly attributes?: Record<string, string>;
4870
+ }
4871
+
4872
+ interface Item {
4873
+ readonly id: string;
4874
+ readonly number: string;
4875
+ readonly locale: string;
4876
+ readonly name: string;
4877
+ readonly price: io.flow.common.v0.models.Price;
4878
+ readonly categories: string[];
4879
+ readonly description?: string;
4880
+ readonly attributes: Record<string, string>;
4881
+ readonly dimensions: io.flow.common.v0.models.Dimensions;
4882
+ readonly images: io.flow.catalog.v0.models.Image[];
4883
+ readonly local?: io.flow.catalog.v0.models.Local;
4884
+ readonly created_at?: string;
4885
+ readonly updated_at?: string;
4886
+ readonly deleted_at?: string;
4887
+ }
4888
+
4889
+ interface ItemAttributesPatchForm {
4890
+ readonly attributes: Record<string, string>;
4891
+ }
4892
+
4893
+ interface ItemForm {
4894
+ readonly number: string;
4895
+ readonly locale: string;
4896
+ readonly name: string;
4897
+ readonly currency: string;
4898
+ readonly price: number;
4899
+ readonly categories?: string[];
4900
+ readonly description?: string;
4901
+ readonly attributes?: Record<string, string>;
4902
+ readonly dimensions?: io.flow.common.v0.models.Dimensions;
4903
+ readonly images?: io.flow.catalog.v0.models.ImageForm[];
4904
+ readonly deleted_at?: string;
4905
+ }
4906
+
4907
+ interface ItemFormOverlay {
4908
+ readonly id: string;
4909
+ readonly number: string;
4910
+ readonly key: string;
4911
+ readonly position: number;
4912
+ readonly price?: io.flow.common.v0.models.Price;
4913
+ readonly categories?: string[];
4914
+ readonly description?: string;
4915
+ readonly attributes?: Record<string, string>;
4916
+ readonly dimensions?: io.flow.common.v0.models.Dimensions;
4917
+ readonly images?: io.flow.catalog.v0.models.ImageForm[];
4918
+ readonly deleted_at?: string;
4919
+ }
4920
+
4921
+ interface ItemFormOverlayForm {
4922
+ readonly number: string;
4923
+ readonly price?: number;
4924
+ readonly currency?: string;
4925
+ readonly position?: number;
4926
+ readonly categories?: string[];
4927
+ readonly description?: string;
4928
+ readonly attributes?: Record<string, string>;
4929
+ readonly dimensions?: io.flow.common.v0.models.Dimensions;
4930
+ readonly images?: io.flow.catalog.v0.models.ImageForm[];
4931
+ readonly deleted_at?: string;
4932
+ }
4933
+
4934
+ interface ItemPriceUpdateForm {
4935
+ readonly number: string;
4936
+ readonly currency?: string;
4937
+ readonly price: number;
4938
+ readonly attributes: Record<string, string>;
4939
+ }
4940
+
4941
+ interface ItemPriceUpdatePutForm {
4942
+ readonly currency?: string;
4943
+ readonly price: number;
4944
+ readonly attributes: Record<string, string>;
4945
+ }
4946
+
4947
+ interface ItemStatistics {
4948
+ readonly items: number;
4949
+ readonly categories: number;
4950
+ }
4951
+
4952
+ interface ItemVersion {
4953
+ readonly id: string;
4954
+ readonly timestamp: string;
4955
+ readonly type: io.flow.common.v0.enums.ChangeType;
4956
+ readonly item: io.flow.catalog.v0.models.Item;
4957
+ }
4958
+
4959
+ interface Local {
4960
+ readonly experience: io.flow.common.v0.models.ExperienceSummary;
4961
+ readonly prices: io.flow.catalog.v0.unions.LocalizedPrice[];
4962
+ readonly rates: io.flow.currency.v0.models.Rate[];
4963
+ readonly spot_rates: any /*object*/[];
4964
+ readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
4965
+ readonly attributes?: Record<string, string>;
4966
+ readonly price_attributes?: Record<
4967
+ string,
4968
+ io.flow.common.v0.models.PriceWithBase
4969
+ >;
4970
+ }
4971
+
4972
+ interface LocalizedAdjustment {
4973
+ readonly currency: string;
4974
+ readonly amount: number;
4975
+ readonly label: string;
4976
+ readonly base: io.flow.common.v0.models.Price;
4977
+ readonly reason: io.flow.catalog.v0.models.AdjustmentReason;
4978
+ }
4979
+
4980
+ interface LocalizedItemDuty {
4981
+ readonly key: 'localized_item_duty';
4982
+ readonly currency: string;
4983
+ readonly amount: number;
4984
+ readonly label: string;
4985
+ readonly base: io.flow.common.v0.models.Price;
4986
+ readonly adjustment?: io.flow.catalog.v0.models.LocalizedAdjustment;
4987
+ readonly basis?: io.flow.common.v0.models.MoneyWithBase;
4988
+ }
4989
+
4990
+ interface LocalizedItemPrice {
4991
+ readonly key: 'localized_item_price';
4992
+ readonly currency: string;
4993
+ readonly amount: number;
4994
+ readonly label: string;
4995
+ readonly base: io.flow.common.v0.models.Price;
4996
+ readonly includes?: io.flow.common.v0.models.IncludedLevies;
4997
+ }
4998
+
4999
+ interface LocalizedItemVat {
5000
+ readonly key: 'localized_item_vat';
5001
+ readonly currency: string;
5002
+ readonly amount: number;
5003
+ readonly label: string;
5004
+ readonly base: io.flow.common.v0.models.Price;
5005
+ readonly name: string;
5006
+ readonly adjustment?: io.flow.catalog.v0.models.LocalizedAdjustment;
5007
+ readonly accuracy?: io.flow.price.v0.enums.PriceAccuracy;
5008
+ readonly basis?: io.flow.common.v0.models.MoneyWithBase;
5009
+ }
5010
+
5011
+ interface LocalizedTotal {
5012
+ readonly key: 'localized_total';
5013
+ readonly currency: string;
5014
+ readonly amount: number;
5015
+ readonly label: string;
5016
+ readonly base: io.flow.common.v0.models.Price;
5017
+ }
5018
+
5019
+ interface Options {
5020
+ readonly required: boolean;
5021
+ readonly show_in_catalog: boolean;
5022
+ readonly show_in_harmonization: boolean;
5023
+ }
5024
+
5025
+ interface Subcatalog {
5026
+ readonly discriminator: 'subcatalog';
5027
+ readonly id: string;
5028
+ readonly catalog: io.flow.catalog.v0.models.Catalog;
5029
+ readonly settings: io.flow.catalog.v0.models.SubcatalogSettings;
5030
+ }
5031
+
5032
+ interface SubcatalogForm {
5033
+ readonly settings?: io.flow.catalog.v0.models.SubcatalogSettingsForm;
5034
+ }
5035
+
5036
+ interface SubcatalogItem {
5037
+ readonly id: string;
5038
+ readonly item: io.flow.catalog.v0.models.Item;
5039
+ readonly status: io.flow.catalog.v0.enums.SubcatalogItemStatus;
5040
+ }
5041
+
5042
+ interface SubcatalogItemVersion {
5043
+ readonly id: string;
5044
+ readonly timestamp: string;
5045
+ readonly type: io.flow.common.v0.enums.ChangeType;
5046
+ readonly subcatalog_item: io.flow.catalog.v0.models.SubcatalogItem;
5047
+ }
5048
+
5049
+ interface SubcatalogReference {
5050
+ readonly discriminator: 'subcatalog_reference';
5051
+ readonly id: string;
5052
+ }
5053
+
5054
+ interface SubcatalogSettings {
5055
+ readonly update_policy: io.flow.catalog.v0.enums.UpdatePolicy;
5056
+ }
5057
+
5058
+ interface SubcatalogSettingsForm {
5059
+ readonly update_policy?: io.flow.catalog.v0.enums.UpdatePolicy;
5060
+ }
5061
+
5062
+ interface SubcatalogStatistics {
5063
+ readonly excluded: io.flow.catalog.v0.models.ItemStatistics;
5064
+ readonly included: io.flow.catalog.v0.models.ItemStatistics;
5065
+ readonly restricted: io.flow.catalog.v0.models.ItemStatistics;
5066
+ readonly queue: io.flow.catalog.v0.models.ItemStatistics;
5067
+ readonly catalog: io.flow.catalog.v0.models.CatalogStatistics;
5068
+ }
5069
+
5070
+ interface SubcatalogVersion {
5071
+ readonly id: string;
5072
+ readonly timestamp: string;
5073
+ readonly type: io.flow.common.v0.enums.ChangeType;
5074
+ readonly subcatalog: io.flow.catalog.v0.models.Subcatalog;
5075
+ }
5076
+ }
5077
+
5078
+ declare namespace io.flow.catalog.v0.unions {
5079
+ type ExpandableSubcatalog =
5080
+ | io.flow.catalog.v0.models.Subcatalog
5081
+ | io.flow.catalog.v0.models.SubcatalogReference;
5082
+ type LocalizedPrice =
5083
+ | io.flow.catalog.v0.models.LocalizedItemPrice
5084
+ | io.flow.catalog.v0.models.LocalizedItemVat
5085
+ | io.flow.catalog.v0.models.LocalizedItemDuty
5086
+ | io.flow.catalog.v0.models.LocalizedTotal;
5087
+ }
5088
+
5089
+ declare namespace io.flow.inventory.v0.enums {
5090
+ type Aggregate = 'maximum' | 'minimum';
5091
+ type InventoryStatus = 'has_inventory' | 'no_inventory';
5092
+ type UpdateType = 'change' | 'set';
5093
+ }
5094
+
5095
+ declare namespace io.flow.inventory.v0.models {
5096
+ interface ExternalApiTimeoutReservationError {
5097
+ readonly code: 'external_api_timeout';
5098
+ readonly messages: string[];
5099
+ }
5100
+
5101
+ interface GenericReservationError {
5102
+ readonly code: 'generic_reservation_error';
2861
5103
  readonly messages: string[];
2862
5104
  }
2863
- }
2864
5105
 
2865
- declare namespace io.flow.ben.test.internal.v0.models {
2866
- interface GenerateLoadMultipleOrgs {
2867
- readonly discriminator: 'generate_load_multiple_orgs';
2868
- readonly organization_ids: string[];
2869
- readonly num_events: number;
5106
+ interface InventoryBackorder {
5107
+ readonly discriminator: 'inventory_backorder';
5108
+ readonly quantity: number;
2870
5109
  }
2871
5110
 
2872
- interface GenerateLoadSingleOrg {
2873
- readonly discriminator: 'generate_load_single_org';
2874
- readonly organization_id: string;
2875
- readonly num_events: number;
5111
+ interface InventoryCenterReference {
5112
+ readonly key: string;
2876
5113
  }
2877
5114
 
2878
- interface SvitlanaTest {
2879
- readonly name: string;
5115
+ interface InventoryCheckResponse {
5116
+ readonly items: io.flow.inventory.v0.models.InventoryCheckResponseItem[];
2880
5117
  }
2881
5118
 
2882
- interface Test {
5119
+ interface InventoryCheckResponseItem {
5120
+ readonly number: string;
5121
+ readonly quantity: number;
5122
+ readonly inventory_status: io.flow.inventory.v0.enums.InventoryStatus;
5123
+ }
5124
+
5125
+ interface InventoryExperienceReference {
5126
+ readonly key: string;
5127
+ }
5128
+
5129
+ interface InventoryFollowEcommercePlatform {
5130
+ readonly discriminator: 'inventory_follow_ecommerce_platform';
5131
+ readonly quantity: number;
5132
+ }
5133
+
5134
+ interface InventoryItemReference {
5135
+ readonly number: string;
5136
+ }
5137
+
5138
+ interface InventoryRequest {
5139
+ readonly items: io.flow.inventory.v0.models.InventoryRequestItem[];
5140
+ }
5141
+
5142
+ interface InventoryRequestItem {
5143
+ readonly number: string;
5144
+ readonly quantity: number;
5145
+ }
5146
+
5147
+ interface InventoryRule {
2883
5148
  readonly id: string;
2884
- readonly name: string;
5149
+ readonly position: number;
5150
+ readonly query: string;
5151
+ readonly strategy: io.flow.inventory.v0.unions.InventoryStrategy;
2885
5152
  }
2886
5153
 
2887
- interface TestForm {
2888
- readonly name: string;
5154
+ interface InventoryRuleForm {
5155
+ readonly position: number;
5156
+ readonly query: string;
5157
+ readonly strategy: io.flow.inventory.v0.unions.InventoryStrategy;
5158
+ }
5159
+
5160
+ interface InventoryRuleVersion {
5161
+ readonly id: string;
5162
+ readonly timestamp: string;
5163
+ readonly type: io.flow.common.v0.enums.ChangeType;
5164
+ readonly inventory_rule: io.flow.inventory.v0.models.InventoryRule;
5165
+ }
5166
+
5167
+ interface InventorySnapshot {
5168
+ readonly id: string;
5169
+ readonly available: number;
5170
+ readonly center: io.flow.inventory.v0.models.InventoryCenterReference;
5171
+ readonly item: io.flow.inventory.v0.models.InventoryItemReference;
5172
+ readonly quantity: number;
5173
+ }
5174
+
5175
+ interface InventorySnapshotVersion {
5176
+ readonly id: string;
5177
+ readonly timestamp: string;
5178
+ readonly type: io.flow.common.v0.enums.ChangeType;
5179
+ readonly inventory_snapshot: io.flow.inventory.v0.models.InventorySnapshot;
5180
+ }
5181
+
5182
+ interface InventoryStock {
5183
+ readonly discriminator: 'inventory_stock';
5184
+ readonly quantity: number;
5185
+ }
5186
+
5187
+ interface InventoryUnlimited {
5188
+ readonly discriminator: 'inventory_unlimited';
5189
+ readonly placeholder?: string;
5190
+ }
5191
+
5192
+ interface InventoryUpdate {
5193
+ readonly id: string;
5194
+ readonly idempotency_key: string;
5195
+ readonly center: io.flow.inventory.v0.models.InventoryCenterReference;
5196
+ readonly item: io.flow.inventory.v0.models.InventoryItemReference;
5197
+ readonly notes: any /*object*/;
5198
+ readonly quantity: number;
5199
+ readonly type: io.flow.inventory.v0.enums.UpdateType;
5200
+ }
5201
+
5202
+ interface InventoryUpdateForm {
5203
+ readonly center: string;
5204
+ readonly idempotency_key: string;
5205
+ readonly item_number: string;
5206
+ readonly quantity: number;
5207
+ readonly type: io.flow.inventory.v0.enums.UpdateType;
5208
+ readonly notes?: any /*object*/;
5209
+ }
5210
+
5211
+ interface InventoryUpdateVersion {
5212
+ readonly id: string;
5213
+ readonly timestamp: string;
5214
+ readonly type: io.flow.common.v0.enums.ChangeType;
5215
+ readonly inventory_update: io.flow.inventory.v0.models.InventoryUpdate;
5216
+ }
5217
+
5218
+ interface NoInventoryReservationError {
5219
+ readonly code: 'no_inventory';
5220
+ readonly messages: string[];
5221
+ readonly items: io.flow.inventory.v0.models.NoInventoryReservationErrorItem[];
5222
+ }
5223
+
5224
+ interface NoInventoryReservationErrorItem {
5225
+ readonly number: string;
5226
+ readonly requested_quantity: number;
5227
+ readonly available_quantity: number;
5228
+ }
5229
+
5230
+ interface PfsInventoryCheckResponse {
5231
+ readonly items: Record<
5232
+ string,
5233
+ io.flow.inventory.v0.models.PfsInventoryCheckResponseItem
5234
+ >;
5235
+ }
5236
+
5237
+ interface PfsInventoryCheckResponseItem {
5238
+ readonly number: string;
5239
+ readonly ats: number;
5240
+ readonly in_stock: boolean;
5241
+ }
5242
+
5243
+ interface PfsInventoryStatus {
5244
+ readonly status: string;
5245
+ }
5246
+
5247
+ interface Reservation {
5248
+ readonly id: string;
5249
+ readonly key: string;
5250
+ readonly order?: io.flow.inventory.v0.models.ReservationOrderReference;
5251
+ readonly items: io.flow.inventory.v0.models.ReservationItem[];
5252
+ readonly reserved_until?: string;
5253
+ }
5254
+
5255
+ interface ReservationForm {
5256
+ readonly order_number?: string;
5257
+ readonly items: io.flow.inventory.v0.models.ReservationItemForm[];
5258
+ }
5259
+
5260
+ interface ReservationItem {
5261
+ readonly item: io.flow.inventory.v0.models.ReservationItemReference;
5262
+ readonly quantity: number;
5263
+ }
5264
+
5265
+ interface ReservationItemForm {
5266
+ readonly item_number: string;
5267
+ readonly quantity: number;
5268
+ }
5269
+
5270
+ interface ReservationItemReference {
5271
+ readonly number: string;
5272
+ }
5273
+
5274
+ interface ReservationOrderReference {
5275
+ readonly number: string;
2889
5276
  }
2890
5277
  }
2891
5278
 
2892
- declare namespace io.flow.ben.test.internal.v0.unions {
2893
- type GenerateLoad =
2894
- | io.flow.ben.test.internal.v0.models.GenerateLoadSingleOrg
2895
- | io.flow.ben.test.internal.v0.models.GenerateLoadMultipleOrgs;
5279
+ declare namespace io.flow.inventory.v0.unions {
5280
+ type InventoryStrategy =
5281
+ | io.flow.inventory.v0.models.InventoryBackorder
5282
+ | io.flow.inventory.v0.models.InventoryStock
5283
+ | io.flow.inventory.v0.models.InventoryUnlimited
5284
+ | io.flow.inventory.v0.models.InventoryFollowEcommercePlatform;
5285
+ type ReservationError =
5286
+ | io.flow.inventory.v0.models.NoInventoryReservationError
5287
+ | io.flow.inventory.v0.models.ExternalApiTimeoutReservationError
5288
+ | io.flow.inventory.v0.models.GenericReservationError;
2896
5289
  }
2897
5290
 
2898
- declare namespace io.flow.apple.pay.v0.enums {
2899
- type ApplePayContactField =
2900
- | 'email'
2901
- | 'name'
2902
- | 'phone'
2903
- | 'postalAddress'
2904
- | 'phoneticName';
2905
- type ApplePayLineItemType = 'final' | 'pending';
2906
- type ApplePayMerchantCapability =
2907
- | 'supports3DS'
2908
- | 'supportsCredit'
2909
- | 'supportsDebit'
2910
- | 'supportsEMV';
2911
- type ApplePayShippingType =
2912
- | 'shipping'
2913
- | 'delivery'
2914
- | 'storePickup'
2915
- | 'servicePickup';
2916
- type ApplePaySupportedNetworks =
2917
- | 'amex'
2918
- | 'chinaUnionPay'
2919
- | 'discover'
2920
- | 'jcb'
2921
- | 'masterCard'
2922
- | 'privateLabel'
2923
- | 'visa';
5291
+ declare namespace io.flow.permission.v0.enums {
5292
+ type AuthenticationTechnique =
5293
+ | 'anonymous'
5294
+ | 'session'
5295
+ | 'token'
5296
+ | 'partner_token'
5297
+ | 'user';
5298
+ type FlowBehavior = 'view_consumer_data';
5299
+ type FlowRole =
5300
+ | 'organization_admin'
5301
+ | 'organization_merchant'
5302
+ | 'organization_customer_service'
5303
+ | 'organization_fulfillment'
5304
+ | 'organization_marketing'
5305
+ | 'organization_finance'
5306
+ | 'organization_classification'
5307
+ | 'flow_operations'
5308
+ | 'channel_admin'
5309
+ | 'channel_organization_admin';
5310
+ type PermittedHttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
5311
+ }
5312
+
5313
+ declare namespace io.flow.permission.v0.models {
5314
+ interface BehaviorAudit {
5315
+ readonly behavior: io.flow.permission.v0.enums.FlowBehavior;
5316
+ readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
5317
+ readonly roles: io.flow.permission.v0.enums.FlowRole[];
5318
+ }
5319
+
5320
+ interface PermissionAudit {
5321
+ readonly routes: io.flow.permission.v0.models.RouteAudit[];
5322
+ readonly behaviors: io.flow.permission.v0.models.BehaviorAudit[];
5323
+ }
5324
+
5325
+ interface PermissionCheck {
5326
+ readonly authentication_technique: io.flow.permission.v0.enums.AuthenticationTechnique;
5327
+ readonly user?: io.flow.common.v0.unions.ExpandableUser;
5328
+ readonly roles: io.flow.permission.v0.enums.FlowRole[];
5329
+ readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
5330
+ readonly routes: io.flow.permission.v0.models.PermittedRoute[];
5331
+ }
5332
+
5333
+ interface PermittedRoute {
5334
+ readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
5335
+ readonly path: string;
5336
+ }
5337
+
5338
+ interface RouteAudit {
5339
+ readonly method: io.flow.permission.v0.enums.PermittedHttpMethod;
5340
+ readonly path: string;
5341
+ readonly authentication_techniques: io.flow.permission.v0.enums.AuthenticationTechnique[];
5342
+ readonly roles: io.flow.permission.v0.enums.FlowRole[];
5343
+ }
5344
+
5345
+ interface SimplePermissionCheck {
5346
+ readonly behaviors: io.flow.permission.v0.enums.FlowBehavior[];
5347
+ }
5348
+ }
5349
+
5350
+ declare namespace io.flow.query.builder.v0.enums {
5351
+ type AvailableFilterFormat =
5352
+ | 'boolean'
5353
+ | 'date'
5354
+ | 'money'
5355
+ | 'decimal'
5356
+ | 'string'
5357
+ | 'unit_of_length'
5358
+ | 'unit_of_mass';
2924
5359
  }
2925
5360
 
2926
- declare namespace io.flow.apple.pay.v0.models {
2927
- interface ApplePayLineItem {
2928
- readonly label: string;
2929
- readonly type: io.flow.apple.pay.v0.enums.ApplePayLineItemType;
2930
- readonly amount: string;
5361
+ declare namespace io.flow.query.builder.v0.models {
5362
+ interface AvailableFilterStructured {
5363
+ readonly discriminator: 'structured';
5364
+ readonly field: string;
5365
+ readonly operators: string[];
5366
+ readonly format: io.flow.query.builder.v0.enums.AvailableFilterFormat;
5367
+ readonly valid_values?: string[];
5368
+ readonly placeholder?: string;
5369
+ }
5370
+
5371
+ interface AvailableFilterUnstructured {
5372
+ readonly discriminator: 'unstructured';
5373
+ readonly placeholder?: string;
5374
+ }
5375
+
5376
+ interface Query {
5377
+ readonly q: string;
5378
+ readonly filters: io.flow.query.builder.v0.unions.QueryFilter[];
2931
5379
  }
2932
5380
 
2933
- interface ApplePayPaymentContact {
2934
- readonly email_address?: string;
2935
- readonly family_name?: string;
2936
- readonly given_name?: string;
2937
- readonly phone_number?: string;
2938
- readonly phonetic_familyName?: string;
2939
- readonly phonetic_givenName?: string;
2940
- readonly address_lines?: string[];
2941
- readonly locality?: string;
2942
- readonly sub_locality?: string;
2943
- readonly administrative_area?: string;
2944
- readonly sub_administrative_area?: string;
2945
- readonly postal_code?: string;
2946
- readonly country?: string;
2947
- readonly country_code?: string;
5381
+ interface QueryBuilder {
5382
+ readonly q: string;
5383
+ readonly filters: io.flow.query.builder.v0.unions.QueryFilter[];
5384
+ readonly available: io.flow.query.builder.v0.unions.AvailableFilter[];
2948
5385
  }
2949
5386
 
2950
- interface ApplePayPaymentData {
2951
- readonly applicationPrimaryAccountNumber: string;
2952
- readonly applicationExpirationDate: string;
2953
- readonly currencyCode: string;
2954
- readonly transactionAmount: number;
2955
- readonly cardholderName?: string;
2956
- readonly deviceManufacturerIdentifier: string;
2957
- readonly paymentDataType: string;
2958
- readonly paymentData: any /*object*/;
5387
+ interface QueryBuilderFilterForm {
5388
+ readonly discriminator: 'filter';
5389
+ readonly filters: io.flow.query.builder.v0.unions.QueryFilterForm[];
2959
5390
  }
2960
5391
 
2961
- interface ApplePayPaymentInfo {
2962
- readonly total: io.flow.apple.pay.v0.models.ApplePayLineItem;
2963
- readonly line_items?: io.flow.apple.pay.v0.models.ApplePayLineItem[];
2964
- readonly country_code: string;
2965
- readonly currency_code: string;
2966
- readonly merchant_capabilities: io.flow.apple.pay.v0.enums.ApplePayMerchantCapability[];
2967
- readonly shipping_methods?: io.flow.apple.pay.v0.models.ApplePayShippingMethod[];
2968
- readonly shipping_type?: io.flow.apple.pay.v0.enums.ApplePayShippingType;
2969
- readonly supported_countries?: string[];
2970
- readonly supported_networks: io.flow.apple.pay.v0.enums.ApplePaySupportedNetworks[];
2971
- readonly required_billingContactFields?: io.flow.apple.pay.v0.enums.ApplePayContactField[];
2972
- readonly required_shippingContactFields?: io.flow.apple.pay.v0.enums.ApplePayContactField[];
2973
- readonly billing_contact?: io.flow.apple.pay.v0.models.ApplePayPaymentContact;
2974
- readonly shipping_contact?: io.flow.apple.pay.v0.models.ApplePayPaymentContact;
2975
- readonly application_data?: string;
5392
+ interface QueryBuilderQueryForm {
5393
+ readonly discriminator: 'query';
5394
+ readonly q: string;
2976
5395
  }
2977
5396
 
2978
- interface ApplePayShippingMethod {
2979
- readonly label: string;
2980
- readonly detail: string;
2981
- readonly amount: string;
2982
- readonly identifier: string;
5397
+ interface QueryFilterStructured {
5398
+ readonly discriminator: 'structured';
5399
+ readonly q: string;
5400
+ readonly field: string;
5401
+ readonly operator: string;
5402
+ readonly values: string[];
2983
5403
  }
5404
+
5405
+ interface QueryFilterStructuredForm {
5406
+ readonly discriminator: 'structured';
5407
+ readonly field: string;
5408
+ readonly operator: string;
5409
+ readonly values: string[];
5410
+ }
5411
+
5412
+ interface QueryFilterUnstructured {
5413
+ readonly discriminator: 'unstructured';
5414
+ readonly q: string;
5415
+ }
5416
+
5417
+ interface QueryFilterUnstructuredForm {
5418
+ readonly discriminator: 'unstructured';
5419
+ readonly q: string;
5420
+ }
5421
+ }
5422
+
5423
+ declare namespace io.flow.query.builder.v0.unions {
5424
+ type AvailableFilter =
5425
+ | io.flow.query.builder.v0.models.AvailableFilterStructured
5426
+ | io.flow.query.builder.v0.models.AvailableFilterUnstructured;
5427
+ type QueryBuilderForm =
5428
+ | io.flow.query.builder.v0.models.QueryBuilderFilterForm
5429
+ | io.flow.query.builder.v0.models.QueryBuilderQueryForm;
5430
+ type QueryFilter =
5431
+ | io.flow.query.builder.v0.models.QueryFilterStructured
5432
+ | io.flow.query.builder.v0.models.QueryFilterUnstructured;
5433
+ type QueryFilterForm =
5434
+ | io.flow.query.builder.v0.models.QueryFilterStructuredForm
5435
+ | io.flow.query.builder.v0.models.QueryFilterUnstructuredForm;
2984
5436
  }
2985
5437
 
2986
5438
  declare namespace io.flow.v0.enums {
@@ -3004,7 +5456,6 @@ declare namespace io.flow.v0.enums {
3004
5456
  | 'not_checked'
3005
5457
  | 'not_matched';
3006
5458
  type AdjustmentReasonKey = 'duty_deminimis' | 'vat_deminimis';
3007
- type Aggregate = 'maximum' | 'minimum';
3008
5459
  type AttributeDataType =
3009
5460
  | 'boolean'
3010
5461
  | 'integer'
@@ -3194,7 +5645,7 @@ declare namespace io.flow.v0.enums {
3194
5645
  | 'solidus'
3195
5646
  | 'workarea';
3196
5647
  type EconomicTitleLocation = 'high_seas' | 'origination' | 'destination';
3197
- type EntityIdentifierType = 'ioss' | 'voec';
5648
+ type EntityIdentifierType = 'ioss' | 'voec' | 'zaz';
3198
5649
  type Environment = 'sandbox' | 'production';
3199
5650
  type EventType =
3200
5651
  | 'test_upserted'
@@ -3484,7 +5935,6 @@ declare namespace io.flow.v0.enums {
3484
5935
  | 'fullscreen'
3485
5936
  | 'responsive';
3486
5937
  type InputSpecificationType = 'text' | 'number';
3487
- type InventoryStatus = 'has_inventory' | 'no_inventory';
3488
5938
  type InvitationErrorCode = 'expired' | 'invalid_email';
3489
5939
  type ItemAvailabilityStatus = 'available' | 'low' | 'out_of_stock';
3490
5940
  type ItemIdentifier = 'item_number' | 'sku';
@@ -3661,6 +6111,11 @@ declare namespace io.flow.v0.enums {
3661
6111
  | 'deactivated'
3662
6112
  | 'provisioned';
3663
6113
  type OrganizationType = 'standalone' | 'channel';
6114
+ type OriginLocationSource =
6115
+ | 'public_hub_code'
6116
+ | 'merchant_hub_code_override'
6117
+ | 'shopify'
6118
+ | 'fallback_location';
3664
6119
  type PackageDimensionsSource =
3665
6120
  | 'provided'
3666
6121
  | 'item_dimensions_estimated'
@@ -4060,7 +6515,6 @@ declare namespace io.flow.v0.enums {
4060
6515
  type UnitOfVolume = 'cubic_inch' | 'cubic_meter';
4061
6516
  type UnitOfWeight = 'gram' | 'kilogram' | 'ounce' | 'pound';
4062
6517
  type UpdatePolicy = 'auto' | 'queue' | 'discard';
4063
- type UpdateType = 'change' | 'set';
4064
6518
  type UserStatus = 'pending' | 'active' | 'inactive';
4065
6519
  type ValueAddedService = 'Hazardous Material';
4066
6520
  type Visibility = 'public' | 'private';
@@ -4980,6 +7434,7 @@ declare namespace io.flow.v0.models {
4980
7434
  readonly origin?: io.flow.v0.models.ShippingAddress;
4981
7435
  readonly direction?: io.flow.v0.enums.Direction;
4982
7436
  readonly reference_id?: string;
7437
+ readonly origin_location_source?: io.flow.v0.enums.OriginLocationSource;
4983
7438
  readonly hub_code?: string;
4984
7439
  }
4985
7440
 
@@ -6615,6 +9070,7 @@ declare namespace io.flow.v0.models {
6615
9070
  readonly service?: string;
6616
9071
  readonly shipment_recipient?: io.flow.v0.enums.ShipmentRecipient;
6617
9072
  readonly package_dimensions_source?: io.flow.v0.enums.PackageDimensionsSource;
9073
+ readonly origin_location_source?: io.flow.v0.enums.OriginLocationSource;
6618
9074
  readonly reference_id?: string;
6619
9075
  }
6620
9076
 
@@ -7398,11 +9854,6 @@ declare namespace io.flow.v0.models {
7398
9854
  readonly export: io.flow.v0.models.Export;
7399
9855
  }
7400
9856
 
7401
- interface ExternalApiTimeoutReservationError {
7402
- readonly code: 'external_api_timeout';
7403
- readonly messages: string[];
7404
- }
7405
-
7406
9857
  interface FeeDeduction {
7407
9858
  readonly type: io.flow.v0.enums.FeeDeductionType;
7408
9859
  readonly amount: number;
@@ -7715,11 +10166,6 @@ declare namespace io.flow.v0.models {
7715
10166
  readonly messages: string[];
7716
10167
  }
7717
10168
 
7718
- interface GenericReservationError {
7719
- readonly code: 'generic_reservation_error';
7720
- readonly messages: string[];
7721
- }
7722
-
7723
10169
  interface GeoForm {
7724
10170
  readonly country: string;
7725
10171
  readonly currency: string;
@@ -8108,118 +10554,6 @@ declare namespace io.flow.v0.models {
8108
10554
  readonly limitations?: io.flow.v0.unions.InputSpecificationLimitation[];
8109
10555
  }
8110
10556
 
8111
- interface InventoryBackorder {
8112
- readonly discriminator: 'inventory_backorder';
8113
- readonly quantity: number;
8114
- }
8115
-
8116
- interface InventoryCenterReference {
8117
- readonly key: string;
8118
- }
8119
-
8120
- interface InventoryCheckResponse {
8121
- readonly items: io.flow.v0.models.InventoryCheckResponseItem[];
8122
- }
8123
-
8124
- interface InventoryCheckResponseItem {
8125
- readonly number: string;
8126
- readonly quantity: number;
8127
- readonly inventory_status: io.flow.v0.enums.InventoryStatus;
8128
- }
8129
-
8130
- interface InventoryExperienceReference {
8131
- readonly key: string;
8132
- }
8133
-
8134
- interface InventoryFollowEcommercePlatform {
8135
- readonly discriminator: 'inventory_follow_ecommerce_platform';
8136
- readonly quantity: number;
8137
- }
8138
-
8139
- interface InventoryItemReference {
8140
- readonly number: string;
8141
- }
8142
-
8143
- interface InventoryRequest {
8144
- readonly items: io.flow.v0.models.InventoryRequestItem[];
8145
- }
8146
-
8147
- interface InventoryRequestItem {
8148
- readonly number: string;
8149
- readonly quantity: number;
8150
- }
8151
-
8152
- interface InventoryRule {
8153
- readonly id: string;
8154
- readonly position: number;
8155
- readonly query: string;
8156
- readonly strategy: io.flow.v0.unions.InventoryStrategy;
8157
- }
8158
-
8159
- interface InventoryRuleForm {
8160
- readonly position: number;
8161
- readonly query: string;
8162
- readonly strategy: io.flow.v0.unions.InventoryStrategy;
8163
- }
8164
-
8165
- interface InventoryRuleVersion {
8166
- readonly id: string;
8167
- readonly timestamp: string;
8168
- readonly type: io.flow.v0.enums.ChangeType;
8169
- readonly inventory_rule: io.flow.v0.models.InventoryRule;
8170
- }
8171
-
8172
- interface InventorySnapshot {
8173
- readonly id: string;
8174
- readonly available: number;
8175
- readonly center: io.flow.v0.models.InventoryCenterReference;
8176
- readonly item: io.flow.v0.models.InventoryItemReference;
8177
- readonly quantity: number;
8178
- }
8179
-
8180
- interface InventorySnapshotVersion {
8181
- readonly id: string;
8182
- readonly timestamp: string;
8183
- readonly type: io.flow.v0.enums.ChangeType;
8184
- readonly inventory_snapshot: io.flow.v0.models.InventorySnapshot;
8185
- }
8186
-
8187
- interface InventoryStock {
8188
- readonly discriminator: 'inventory_stock';
8189
- readonly quantity: number;
8190
- }
8191
-
8192
- interface InventoryUnlimited {
8193
- readonly discriminator: 'inventory_unlimited';
8194
- readonly placeholder?: string;
8195
- }
8196
-
8197
- interface InventoryUpdate {
8198
- readonly id: string;
8199
- readonly idempotency_key: string;
8200
- readonly center: io.flow.v0.models.InventoryCenterReference;
8201
- readonly item: io.flow.v0.models.InventoryItemReference;
8202
- readonly notes: any /*object*/;
8203
- readonly quantity: number;
8204
- readonly type: io.flow.v0.enums.UpdateType;
8205
- }
8206
-
8207
- interface InventoryUpdateForm {
8208
- readonly center: string;
8209
- readonly idempotency_key: string;
8210
- readonly item_number: string;
8211
- readonly quantity: number;
8212
- readonly type: io.flow.v0.enums.UpdateType;
8213
- readonly notes?: any /*object*/;
8214
- }
8215
-
8216
- interface InventoryUpdateVersion {
8217
- readonly id: string;
8218
- readonly timestamp: string;
8219
- readonly type: io.flow.v0.enums.ChangeType;
8220
- readonly inventory_update: io.flow.v0.models.InventoryUpdate;
8221
- }
8222
-
8223
10557
  interface Invitation {
8224
10558
  readonly id: string;
8225
10559
  readonly organization: io.flow.v0.unions.ExpandableOrganization;
@@ -9249,18 +11583,6 @@ declare namespace io.flow.v0.models {
9249
11583
  readonly last?: string;
9250
11584
  }
9251
11585
 
9252
- interface NoInventoryReservationError {
9253
- readonly code: 'no_inventory';
9254
- readonly messages: string[];
9255
- readonly items: io.flow.v0.models.NoInventoryReservationErrorItem[];
9256
- }
9257
-
9258
- interface NoInventoryReservationErrorItem {
9259
- readonly number: string;
9260
- readonly requested_quantity: number;
9261
- readonly available_quantity: number;
9262
- }
9263
-
9264
11586
  interface NotificationDeletedV2 {
9265
11587
  readonly discriminator: 'notification_deleted_v2';
9266
11588
  readonly event_id: string;
@@ -11253,23 +13575,6 @@ declare namespace io.flow.v0.models {
11253
13575
  readonly path: string;
11254
13576
  }
11255
13577
 
11256
- interface PfsInventoryCheckResponse {
11257
- readonly items: Record<
11258
- string,
11259
- io.flow.v0.models.PfsInventoryCheckResponseItem
11260
- >;
11261
- }
11262
-
11263
- interface PfsInventoryCheckResponseItem {
11264
- readonly number: string;
11265
- readonly ats: number;
11266
- readonly in_stock: boolean;
11267
- }
11268
-
11269
- interface PfsInventoryStatus {
11270
- readonly status: string;
11271
- }
11272
-
11273
13578
  interface PhysicalDelivery {
11274
13579
  readonly discriminator: 'physical_delivery';
11275
13580
  readonly id: string;
@@ -12227,37 +14532,6 @@ declare namespace io.flow.v0.models {
12227
14532
  readonly days_of_week: io.flow.v0.enums.DayOfWeek[];
12228
14533
  }
12229
14534
 
12230
- interface Reservation {
12231
- readonly id: string;
12232
- readonly key: string;
12233
- readonly order?: io.flow.v0.models.ReservationOrderReference;
12234
- readonly items: io.flow.v0.models.ReservationItem[];
12235
- readonly reserved_until?: string;
12236
- }
12237
-
12238
- interface ReservationForm {
12239
- readonly order_number?: string;
12240
- readonly items: io.flow.v0.models.ReservationItemForm[];
12241
- }
12242
-
12243
- interface ReservationItem {
12244
- readonly item: io.flow.v0.models.ReservationItemReference;
12245
- readonly quantity: number;
12246
- }
12247
-
12248
- interface ReservationItemForm {
12249
- readonly item_number: string;
12250
- readonly quantity: number;
12251
- }
12252
-
12253
- interface ReservationItemReference {
12254
- readonly number: string;
12255
- }
12256
-
12257
- interface ReservationOrderReference {
12258
- readonly number: string;
12259
- }
12260
-
12261
14535
  interface Return {
12262
14536
  readonly id: string;
12263
14537
  readonly key: string;
@@ -12503,7 +14777,7 @@ declare namespace io.flow.v0.models {
12503
14777
  readonly event_id: string;
12504
14778
  readonly timestamp: string;
12505
14779
  readonly organization_id: string;
12506
- readonly rule: io.flow.v0.models.InventoryRule;
14780
+ readonly rule: io.flow.inventory.v0.models.InventoryRule;
12507
14781
  }
12508
14782
 
12509
14783
  interface Schedule {
@@ -13763,6 +16037,11 @@ declare namespace io.flow.v0.models {
13763
16037
  readonly eci?: string;
13764
16038
  readonly liability_sift?: boolean;
13765
16039
  readonly version?: string;
16040
+ readonly authenticated?: boolean;
16041
+ readonly authenticated_result?: string;
16042
+ readonly offered?: boolean;
16043
+ readonly offered_result?: string;
16044
+ readonly sca_exemption?: string;
13766
16045
  }
13767
16046
 
13768
16047
  interface ThreedsChallengeActionDetails {
@@ -14883,11 +17162,6 @@ declare namespace io.flow.v0.unions {
14883
17162
  io.flow.v0.models.BrowserInlineActionConfiguration;
14884
17163
  type InputSpecificationLimitation =
14885
17164
  io.flow.v0.models.InputSpecificationLimitationMax;
14886
- type InventoryStrategy =
14887
- | io.flow.v0.models.InventoryBackorder
14888
- | io.flow.v0.models.InventoryStock
14889
- | io.flow.v0.models.InventoryUnlimited
14890
- | io.flow.v0.models.InventoryFollowEcommercePlatform;
14891
17165
  type KnowYourBusiness = io.flow.v0.models.KnowYourBusinessUsa;
14892
17166
  type KnowYourBusinessForm = io.flow.v0.models.KnowYourBusinessUsaForm;
14893
17167
  type LabelSurchargeDetail =
@@ -15062,10 +17336,6 @@ declare namespace io.flow.v0.unions {
15062
17336
  | io.flow.v0.models.RepeatDaily
15063
17337
  | io.flow.v0.models.RepeatWeekly
15064
17338
  | io.flow.v0.models.RepeatMonthly;
15065
- type ReservationError =
15066
- | io.flow.v0.models.NoInventoryReservationError
15067
- | io.flow.v0.models.ExternalApiTimeoutReservationError
15068
- | io.flow.v0.models.GenericReservationError;
15069
17339
  type ReturnSource =
15070
17340
  | io.flow.v0.models.ReturnSourceFlow
15071
17341
  | io.flow.v0.models.ReturnSourceExternalVendor;
@@ -15222,7 +17492,6 @@ export type AdyenNativeActionDetails =
15222
17492
  export type AdyenNativeData = io.flow.v0.unions.AdyenNativeData;
15223
17493
  export type AdyenV3ChallengeToken = io.flow.v0.models.AdyenV3ChallengeToken;
15224
17494
  export type AdyenV3FingerprintToken = io.flow.v0.models.AdyenV3FingerprintToken;
15225
- export type Aggregate = io.flow.v0.enums.Aggregate;
15226
17495
  export type Allocation = io.flow.v0.models.Allocation;
15227
17496
  export type AllocationComponent = io.flow.v0.unions.AllocationComponent;
15228
17497
  export type AllocationDeletedV2 = io.flow.v0.models.AllocationDeletedV2;
@@ -15882,8 +18151,6 @@ export type ExportStatus = io.flow.v0.enums.ExportStatus;
15882
18151
  export type ExportType = io.flow.v0.unions.ExportType;
15883
18152
  export type ExportVersion = io.flow.v0.models.ExportVersion;
15884
18153
  export type ExporterOfRecord = io.flow.v0.enums.ExporterOfRecord;
15885
- export type ExternalApiTimeoutReservationError =
15886
- io.flow.v0.models.ExternalApiTimeoutReservationError;
15887
18154
  export type FeeDeduction = io.flow.v0.models.FeeDeduction;
15888
18155
  export type FeeDeductionType = io.flow.v0.enums.FeeDeductionType;
15889
18156
  export type FeeWeight = io.flow.v0.models.FeeWeight;
@@ -15970,7 +18237,6 @@ export type GatewayAuthenticationDataForm =
15970
18237
  export type GenerateLoad = io.flow.v0.models.GenerateLoad;
15971
18238
  export type GenericError = io.flow.v0.models.GenericError;
15972
18239
  export type GenericErrorCode = io.flow.v0.enums.GenericErrorCode;
15973
- export type GenericReservationError = io.flow.v0.models.GenericReservationError;
15974
18240
  export type GeoForm = io.flow.v0.models.GeoForm;
15975
18241
  export type GoodsSupply = io.flow.v0.enums.GoodsSupply;
15976
18242
  export type GooglePayAuthorizationPayload =
@@ -16051,32 +18317,6 @@ export type InputSpecificationLimitationMax =
16051
18317
  export type InputSpecificationLimitations =
16052
18318
  io.flow.v0.models.InputSpecificationLimitations;
16053
18319
  export type InputSpecificationType = io.flow.v0.enums.InputSpecificationType;
16054
- export type InventoryBackorder = io.flow.v0.models.InventoryBackorder;
16055
- export type InventoryCenterReference =
16056
- io.flow.v0.models.InventoryCenterReference;
16057
- export type InventoryCheckResponse = io.flow.v0.models.InventoryCheckResponse;
16058
- export type InventoryCheckResponseItem =
16059
- io.flow.v0.models.InventoryCheckResponseItem;
16060
- export type InventoryExperienceReference =
16061
- io.flow.v0.models.InventoryExperienceReference;
16062
- export type InventoryFollowEcommercePlatform =
16063
- io.flow.v0.models.InventoryFollowEcommercePlatform;
16064
- export type InventoryItemReference = io.flow.v0.models.InventoryItemReference;
16065
- export type InventoryRequest = io.flow.v0.models.InventoryRequest;
16066
- export type InventoryRequestItem = io.flow.v0.models.InventoryRequestItem;
16067
- export type InventoryRule = io.flow.v0.models.InventoryRule;
16068
- export type InventoryRuleForm = io.flow.v0.models.InventoryRuleForm;
16069
- export type InventoryRuleVersion = io.flow.v0.models.InventoryRuleVersion;
16070
- export type InventorySnapshot = io.flow.v0.models.InventorySnapshot;
16071
- export type InventorySnapshotVersion =
16072
- io.flow.v0.models.InventorySnapshotVersion;
16073
- export type InventoryStatus = io.flow.v0.enums.InventoryStatus;
16074
- export type InventoryStock = io.flow.v0.models.InventoryStock;
16075
- export type InventoryStrategy = io.flow.v0.unions.InventoryStrategy;
16076
- export type InventoryUnlimited = io.flow.v0.models.InventoryUnlimited;
16077
- export type InventoryUpdate = io.flow.v0.models.InventoryUpdate;
16078
- export type InventoryUpdateForm = io.flow.v0.models.InventoryUpdateForm;
16079
- export type InventoryUpdateVersion = io.flow.v0.models.InventoryUpdateVersion;
16080
18320
  export type Invitation = io.flow.v0.models.Invitation;
16081
18321
  export type InvitationError = io.flow.v0.models.InvitationError;
16082
18322
  export type InvitationErrorCode = io.flow.v0.enums.InvitationErrorCode;
@@ -16273,10 +18513,6 @@ export type MonthlyAverage = io.flow.v0.models.MonthlyAverage;
16273
18513
  export type MonthlyAverageVolume = io.flow.v0.models.MonthlyAverageVolume;
16274
18514
  export type Name = io.flow.v0.models.Name;
16275
18515
  export type NameForm = io.flow.v0.models.NameForm;
16276
- export type NoInventoryReservationError =
16277
- io.flow.v0.models.NoInventoryReservationError;
16278
- export type NoInventoryReservationErrorItem =
16279
- io.flow.v0.models.NoInventoryReservationErrorItem;
16280
18516
  export type NotificationDeletedV2 = io.flow.v0.models.NotificationDeletedV2;
16281
18517
  export type NotificationUpsertedV2 = io.flow.v0.models.NotificationUpsertedV2;
16282
18518
  export type NumberRange = io.flow.v0.models.NumberRange;
@@ -16498,6 +18734,7 @@ export type OrganizationType = io.flow.v0.enums.OrganizationType;
16498
18734
  export type OrganizationUpserted = io.flow.v0.models.OrganizationUpserted;
16499
18735
  export type OrganizationUpsertedV2 = io.flow.v0.models.OrganizationUpsertedV2;
16500
18736
  export type OrganizationVersion = io.flow.v0.models.OrganizationVersion;
18737
+ export type OriginLocationSource = io.flow.v0.enums.OriginLocationSource;
16501
18738
  export type OriginalPrices = io.flow.v0.models.OriginalPrices;
16502
18739
  export type OutboundCartonFee = io.flow.v0.models.OutboundCartonFee;
16503
18740
  export type OversizePieceSurchargeRatecardFee =
@@ -16767,11 +19004,6 @@ export type PermissionAudit = io.flow.v0.models.PermissionAudit;
16767
19004
  export type PermissionCheck = io.flow.v0.models.PermissionCheck;
16768
19005
  export type PermittedHttpMethod = io.flow.v0.enums.PermittedHttpMethod;
16769
19006
  export type PermittedRoute = io.flow.v0.models.PermittedRoute;
16770
- export type PfsInventoryCheckResponse =
16771
- io.flow.v0.models.PfsInventoryCheckResponse;
16772
- export type PfsInventoryCheckResponseItem =
16773
- io.flow.v0.models.PfsInventoryCheckResponseItem;
16774
- export type PfsInventoryStatus = io.flow.v0.models.PfsInventoryStatus;
16775
19007
  export type PhysicalDelivery = io.flow.v0.models.PhysicalDelivery;
16776
19008
  export type PhysicalDeliveryPreferredService =
16777
19009
  io.flow.v0.models.PhysicalDeliveryPreferredService;
@@ -16938,15 +19170,6 @@ export type RepeatHourly = io.flow.v0.models.RepeatHourly;
16938
19170
  export type RepeatMonthly = io.flow.v0.models.RepeatMonthly;
16939
19171
  export type RepeatSchedule = io.flow.v0.unions.RepeatSchedule;
16940
19172
  export type RepeatWeekly = io.flow.v0.models.RepeatWeekly;
16941
- export type Reservation = io.flow.v0.models.Reservation;
16942
- export type ReservationError = io.flow.v0.unions.ReservationError;
16943
- export type ReservationForm = io.flow.v0.models.ReservationForm;
16944
- export type ReservationItem = io.flow.v0.models.ReservationItem;
16945
- export type ReservationItemForm = io.flow.v0.models.ReservationItemForm;
16946
- export type ReservationItemReference =
16947
- io.flow.v0.models.ReservationItemReference;
16948
- export type ReservationOrderReference =
16949
- io.flow.v0.models.ReservationOrderReference;
16950
19173
  export type RestrictedReviewStatus = io.flow.v0.enums.RestrictedReviewStatus;
16951
19174
  export type Return = io.flow.v0.models.Return;
16952
19175
  export type ReturnDeleted = io.flow.v0.models.ReturnDeleted;
@@ -17399,7 +19622,6 @@ export type UnitOfTime = io.flow.v0.enums.UnitOfTime;
17399
19622
  export type UnitOfVolume = io.flow.v0.enums.UnitOfVolume;
17400
19623
  export type UnitOfWeight = io.flow.v0.enums.UnitOfWeight;
17401
19624
  export type UpdatePolicy = io.flow.v0.enums.UpdatePolicy;
17402
- export type UpdateType = io.flow.v0.enums.UpdateType;
17403
19625
  export type Upload = io.flow.v0.models.Upload;
17404
19626
  export type User = io.flow.v0.models.User;
17405
19627
  export type UserForm = io.flow.v0.models.UserForm;