@flowio/api-factories 0.0.95 → 0.0.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api.js +2285 -390
- package/dist/esm/api.js +2251 -318
- package/dist/types/api.d.ts +0 -37
- package/package.json +2 -2
- package/src/api.ts +2656 -353
package/src/api.ts
CHANGED
|
@@ -145,163 +145,2701 @@ const factories = {
|
|
|
145
145
|
return f();
|
|
146
146
|
},
|
|
147
147
|
|
|
148
|
+
'io.flow.catalog.v0.enums.adjustment_reason_key': (): io.flow.catalog.v0.enums.AdjustmentReasonKey => faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']),
|
|
149
|
+
|
|
150
|
+
'io.flow.catalog.v0.enums.attribute_intent': (): io.flow.catalog.v0.enums.AttributeIntent => faker.helpers.arrayElement([
|
|
151
|
+
'brand',
|
|
152
|
+
'color',
|
|
153
|
+
'countries_of_origin',
|
|
154
|
+
'product_id',
|
|
155
|
+
'fulfillment_method',
|
|
156
|
+
'hazardous',
|
|
157
|
+
'price',
|
|
158
|
+
'size',
|
|
159
|
+
'sku',
|
|
160
|
+
'taxability',
|
|
161
|
+
'consumer_url',
|
|
162
|
+
'gtin',
|
|
163
|
+
'mpn',
|
|
164
|
+
'facet',
|
|
165
|
+
'eccn',
|
|
166
|
+
'returnable',
|
|
167
|
+
'searchable',
|
|
168
|
+
'barcode',
|
|
169
|
+
'min_days_to_ship',
|
|
170
|
+
'max_days_to_ship',
|
|
171
|
+
'commercial_invoice_item_number',
|
|
172
|
+
'include_in_product_feeds',
|
|
173
|
+
]),
|
|
174
|
+
|
|
175
|
+
'io.flow.catalog.v0.enums.fulfillment_method_type': (): io.flow.catalog.v0.enums.FulfillmentMethodType => faker.helpers.arrayElement(['fulfillment_method']),
|
|
176
|
+
'io.flow.catalog.v0.enums.fulfillment_method_value': (): io.flow.catalog.v0.enums.FulfillmentMethodValue => faker.helpers.arrayElement(['digital', 'physical']),
|
|
177
|
+
'io.flow.catalog.v0.enums.image_tag': (): io.flow.catalog.v0.enums.ImageTag => faker.helpers.arrayElement(['thumbnail', 'checkout']),
|
|
178
|
+
'io.flow.catalog.v0.enums.return_item_status': (): io.flow.catalog.v0.enums.ReturnItemStatus => faker.helpers.arrayElement(['returnable', 'non-returnable']),
|
|
179
|
+
'io.flow.catalog.v0.enums.subcatalog_item_status': (): io.flow.catalog.v0.enums.SubcatalogItemStatus => faker.helpers.arrayElement(['excluded', 'included', 'restricted']),
|
|
180
|
+
'io.flow.catalog.v0.enums.taxability_type': (): io.flow.catalog.v0.enums.TaxabilityType => faker.helpers.arrayElement(['tax_rule']),
|
|
181
|
+
'io.flow.catalog.v0.enums.taxability_value': (): io.flow.catalog.v0.enums.TaxabilityValue => faker.helpers.arrayElement(['exempt']),
|
|
182
|
+
'io.flow.catalog.v0.enums.update_policy': (): io.flow.catalog.v0.enums.UpdatePolicy => faker.helpers.arrayElement(['auto', 'queue', 'discard']),
|
|
183
|
+
|
|
184
|
+
'io.flow.catalog.v0.models.adjustment_reason': (): io.flow.catalog.v0.models.AdjustmentReason => ({
|
|
185
|
+
key: factories['io.flow.catalog.v0.enums.adjustment_reason_key'](),
|
|
186
|
+
label: factories.string(),
|
|
187
|
+
}),
|
|
188
|
+
|
|
189
|
+
'io.flow.catalog.v0.models.attribute': (): io.flow.catalog.v0.models.Attribute => ({
|
|
190
|
+
id: factories.string(),
|
|
191
|
+
key: factories.string(),
|
|
192
|
+
options: factories['io.flow.catalog.v0.models.options'](),
|
|
193
|
+
label: factories.string(),
|
|
194
|
+
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
195
|
+
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
196
|
+
position: factories.long(),
|
|
197
|
+
}),
|
|
198
|
+
|
|
199
|
+
'io.flow.catalog.v0.models.attribute_form': (): io.flow.catalog.v0.models.AttributeForm => ({
|
|
200
|
+
key: factories.string(),
|
|
201
|
+
options: factories['io.flow.catalog.v0.models.options'](),
|
|
202
|
+
label: factories.string(),
|
|
203
|
+
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
204
|
+
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
205
|
+
position: factories.long(),
|
|
206
|
+
}),
|
|
207
|
+
|
|
208
|
+
'io.flow.catalog.v0.models.attribute_version': (): io.flow.catalog.v0.models.AttributeVersion => ({
|
|
209
|
+
id: factories.string(),
|
|
210
|
+
timestamp: factories.date_time_iso_8601(),
|
|
211
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
212
|
+
attribute: factories['io.flow.catalog.v0.models.attribute'](),
|
|
213
|
+
}),
|
|
214
|
+
|
|
215
|
+
'io.flow.catalog.v0.models.catalog': (): io.flow.catalog.v0.models.Catalog => ({
|
|
216
|
+
id: factories.string(),
|
|
217
|
+
}),
|
|
218
|
+
|
|
219
|
+
'io.flow.catalog.v0.models.catalog_reference': (): io.flow.catalog.v0.models.CatalogReference => ({
|
|
220
|
+
id: factories.string(),
|
|
221
|
+
}),
|
|
222
|
+
|
|
223
|
+
'io.flow.catalog.v0.models.catalog_statistics': (): io.flow.catalog.v0.models.CatalogStatistics => ({
|
|
224
|
+
id: factories.string(),
|
|
225
|
+
items: factories.long(),
|
|
226
|
+
categories: factories.long(),
|
|
227
|
+
}),
|
|
228
|
+
|
|
229
|
+
'io.flow.catalog.v0.models.catalog_version': (): io.flow.catalog.v0.models.CatalogVersion => ({
|
|
230
|
+
id: factories.string(),
|
|
231
|
+
timestamp: factories.date_time_iso_8601(),
|
|
232
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
233
|
+
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
234
|
+
}),
|
|
235
|
+
|
|
236
|
+
'io.flow.catalog.v0.models.flow_item_index_metadata': (): io.flow.catalog.v0.models.FlowItemIndexMetadata => ({
|
|
237
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
238
|
+
}),
|
|
239
|
+
|
|
240
|
+
'io.flow.catalog.v0.models.image': (): io.flow.catalog.v0.models.Image => ({
|
|
241
|
+
url: factories.string(),
|
|
242
|
+
tags: arrayOf(() => factories['io.flow.catalog.v0.enums.image_tag']()),
|
|
243
|
+
attributes: objectOf(() => factories.string()),
|
|
244
|
+
}),
|
|
245
|
+
|
|
246
|
+
'io.flow.catalog.v0.models.image_form': (): io.flow.catalog.v0.models.ImageForm => ({
|
|
247
|
+
url: factories.string(),
|
|
248
|
+
tags: arrayOf(() => factories['io.flow.catalog.v0.enums.image_tag']()),
|
|
249
|
+
attributes: objectOf(() => factories.string()),
|
|
250
|
+
}),
|
|
251
|
+
|
|
252
|
+
'io.flow.catalog.v0.models.item': (): io.flow.catalog.v0.models.Item => ({
|
|
253
|
+
id: factories.string(),
|
|
254
|
+
number: factories.string(),
|
|
255
|
+
locale: factories.string(),
|
|
256
|
+
name: factories.string(),
|
|
257
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
258
|
+
categories: arrayOf(() => factories.string()),
|
|
259
|
+
description: factories.string(),
|
|
260
|
+
attributes: objectOf(() => factories.string()),
|
|
261
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
262
|
+
images: arrayOf(() => factories['io.flow.catalog.v0.models.image']()),
|
|
263
|
+
local: factories['io.flow.catalog.v0.models.local'](),
|
|
264
|
+
created_at: factories.date_time_iso_8601(),
|
|
265
|
+
updated_at: factories.date_time_iso_8601(),
|
|
266
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
267
|
+
}),
|
|
268
|
+
|
|
269
|
+
'io.flow.catalog.v0.models.item_attributes_patch_form': (): io.flow.catalog.v0.models.ItemAttributesPatchForm => ({
|
|
270
|
+
attributes: objectOf(() => factories.string()),
|
|
271
|
+
}),
|
|
272
|
+
|
|
273
|
+
'io.flow.catalog.v0.models.item_form': (): io.flow.catalog.v0.models.ItemForm => ({
|
|
274
|
+
number: factories.string(),
|
|
275
|
+
locale: factories.string(),
|
|
276
|
+
name: factories.string(),
|
|
277
|
+
currency: factories.string(),
|
|
278
|
+
price: factories.double(),
|
|
279
|
+
categories: arrayOf(() => factories.string()),
|
|
280
|
+
description: factories.string(),
|
|
281
|
+
attributes: objectOf(() => factories.string()),
|
|
282
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
283
|
+
images: arrayOf(() => factories['io.flow.catalog.v0.models.image_form']()),
|
|
284
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
285
|
+
}),
|
|
286
|
+
|
|
287
|
+
'io.flow.catalog.v0.models.item_form_overlay': (): io.flow.catalog.v0.models.ItemFormOverlay => ({
|
|
288
|
+
id: factories.string(),
|
|
289
|
+
number: factories.string(),
|
|
290
|
+
key: factories.string(),
|
|
291
|
+
position: factories.long(),
|
|
292
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
293
|
+
categories: arrayOf(() => factories.string()),
|
|
294
|
+
description: factories.string(),
|
|
295
|
+
attributes: objectOf(() => factories.string()),
|
|
296
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
297
|
+
images: arrayOf(() => factories['io.flow.catalog.v0.models.image_form']()),
|
|
298
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
299
|
+
}),
|
|
300
|
+
|
|
301
|
+
'io.flow.catalog.v0.models.item_form_overlay_form': (): io.flow.catalog.v0.models.ItemFormOverlayForm => ({
|
|
302
|
+
number: factories.string(),
|
|
303
|
+
price: factories.double(),
|
|
304
|
+
currency: factories.string(),
|
|
305
|
+
position: factories.long(),
|
|
306
|
+
categories: arrayOf(() => factories.string()),
|
|
307
|
+
description: factories.string(),
|
|
308
|
+
attributes: objectOf(() => factories.string()),
|
|
309
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
310
|
+
images: arrayOf(() => factories['io.flow.catalog.v0.models.image_form']()),
|
|
311
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
312
|
+
}),
|
|
313
|
+
|
|
314
|
+
'io.flow.catalog.v0.models.item_price_update_form': (): io.flow.catalog.v0.models.ItemPriceUpdateForm => ({
|
|
315
|
+
number: factories.string(),
|
|
316
|
+
currency: factories.string(),
|
|
317
|
+
price: factories.decimal(),
|
|
318
|
+
attributes: objectOf(() => factories.string()),
|
|
319
|
+
}),
|
|
320
|
+
|
|
321
|
+
'io.flow.catalog.v0.models.item_price_update_put_form': (): io.flow.catalog.v0.models.ItemPriceUpdatePutForm => ({
|
|
322
|
+
currency: factories.string(),
|
|
323
|
+
price: factories.decimal(),
|
|
324
|
+
attributes: objectOf(() => factories.string()),
|
|
325
|
+
}),
|
|
326
|
+
|
|
327
|
+
'io.flow.catalog.v0.models.item_statistics': (): io.flow.catalog.v0.models.ItemStatistics => ({
|
|
328
|
+
items: factories.long(),
|
|
329
|
+
categories: factories.long(),
|
|
330
|
+
}),
|
|
331
|
+
|
|
332
|
+
'io.flow.catalog.v0.models.item_version': (): io.flow.catalog.v0.models.ItemVersion => ({
|
|
333
|
+
id: factories.string(),
|
|
334
|
+
timestamp: factories.date_time_iso_8601(),
|
|
335
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
336
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
337
|
+
}),
|
|
338
|
+
|
|
339
|
+
'io.flow.catalog.v0.models.local': (): io.flow.catalog.v0.models.Local => ({
|
|
340
|
+
experience: factories['io.flow.common.v0.models.experience_summary'](),
|
|
341
|
+
prices: arrayOf(() => factories['io.flow.catalog.v0.unions.localized_price']()),
|
|
342
|
+
rates: arrayOf(() => factories['io.flow.currency.v0.models.rate']()),
|
|
343
|
+
spot_rates: arrayOf(() => factories.object()),
|
|
344
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
345
|
+
attributes: objectOf(() => factories.string()),
|
|
346
|
+
price_attributes: objectOf(() => factories['io.flow.common.v0.models.price_with_base']()),
|
|
347
|
+
}),
|
|
348
|
+
|
|
349
|
+
'io.flow.catalog.v0.models.localized_adjustment': (): io.flow.catalog.v0.models.LocalizedAdjustment => ({
|
|
350
|
+
currency: factories.string(),
|
|
351
|
+
amount: factories.double(),
|
|
352
|
+
label: factories.string(),
|
|
353
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
354
|
+
reason: factories['io.flow.catalog.v0.models.adjustment_reason'](),
|
|
355
|
+
}),
|
|
356
|
+
|
|
357
|
+
'io.flow.catalog.v0.models.localized_item_duty': (): io.flow.catalog.v0.models.LocalizedItemDuty => ({
|
|
358
|
+
key: 'localized_item_duty',
|
|
359
|
+
currency: factories.string(),
|
|
360
|
+
amount: factories.double(),
|
|
361
|
+
label: factories.string(),
|
|
362
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
363
|
+
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
364
|
+
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
365
|
+
}),
|
|
366
|
+
|
|
367
|
+
'io.flow.catalog.v0.models.localized_item_price': (): io.flow.catalog.v0.models.LocalizedItemPrice => ({
|
|
368
|
+
key: 'localized_item_price',
|
|
369
|
+
currency: factories.string(),
|
|
370
|
+
amount: factories.double(),
|
|
371
|
+
label: factories.string(),
|
|
372
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
373
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
374
|
+
}),
|
|
375
|
+
|
|
376
|
+
'io.flow.catalog.v0.models.localized_item_vat': (): io.flow.catalog.v0.models.LocalizedItemVat => ({
|
|
377
|
+
key: 'localized_item_vat',
|
|
378
|
+
currency: factories.string(),
|
|
379
|
+
amount: factories.double(),
|
|
380
|
+
label: factories.string(),
|
|
381
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
382
|
+
name: factories.string(),
|
|
383
|
+
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
384
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
385
|
+
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
386
|
+
}),
|
|
387
|
+
|
|
388
|
+
'io.flow.catalog.v0.models.localized_total': (): io.flow.catalog.v0.models.LocalizedTotal => ({
|
|
389
|
+
key: 'localized_total',
|
|
390
|
+
currency: factories.string(),
|
|
391
|
+
amount: factories.double(),
|
|
392
|
+
label: factories.string(),
|
|
393
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
394
|
+
}),
|
|
395
|
+
|
|
396
|
+
'io.flow.catalog.v0.models.options': (): io.flow.catalog.v0.models.Options => ({
|
|
397
|
+
required: factories.boolean(),
|
|
398
|
+
show_in_catalog: factories.boolean(),
|
|
399
|
+
show_in_harmonization: factories.boolean(),
|
|
400
|
+
}),
|
|
401
|
+
|
|
402
|
+
'io.flow.catalog.v0.models.subcatalog': (): io.flow.catalog.v0.models.Subcatalog => ({
|
|
403
|
+
discriminator: 'subcatalog',
|
|
404
|
+
id: factories.string(),
|
|
405
|
+
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
406
|
+
settings: factories['io.flow.catalog.v0.models.subcatalog_settings'](),
|
|
407
|
+
}),
|
|
408
|
+
|
|
409
|
+
'io.flow.catalog.v0.models.subcatalog_form': (): io.flow.catalog.v0.models.SubcatalogForm => ({
|
|
410
|
+
settings: factories['io.flow.catalog.v0.models.subcatalog_settings_form'](),
|
|
411
|
+
}),
|
|
412
|
+
|
|
413
|
+
'io.flow.catalog.v0.models.subcatalog_item': (): io.flow.catalog.v0.models.SubcatalogItem => ({
|
|
414
|
+
id: factories.string(),
|
|
415
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
416
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
417
|
+
}),
|
|
418
|
+
|
|
419
|
+
'io.flow.catalog.v0.models.subcatalog_item_version': (): io.flow.catalog.v0.models.SubcatalogItemVersion => ({
|
|
420
|
+
id: factories.string(),
|
|
421
|
+
timestamp: factories.date_time_iso_8601(),
|
|
422
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
423
|
+
subcatalog_item: factories['io.flow.catalog.v0.models.subcatalog_item'](),
|
|
424
|
+
}),
|
|
425
|
+
|
|
426
|
+
'io.flow.catalog.v0.models.subcatalog_reference': (): io.flow.catalog.v0.models.SubcatalogReference => ({
|
|
427
|
+
discriminator: 'subcatalog_reference',
|
|
428
|
+
id: factories.string(),
|
|
429
|
+
}),
|
|
430
|
+
|
|
431
|
+
'io.flow.catalog.v0.models.subcatalog_settings': (): io.flow.catalog.v0.models.SubcatalogSettings => ({
|
|
432
|
+
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
433
|
+
}),
|
|
434
|
+
|
|
435
|
+
'io.flow.catalog.v0.models.subcatalog_settings_form': (): io.flow.catalog.v0.models.SubcatalogSettingsForm => ({
|
|
436
|
+
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
437
|
+
}),
|
|
438
|
+
|
|
439
|
+
'io.flow.catalog.v0.models.subcatalog_statistics': (): io.flow.catalog.v0.models.SubcatalogStatistics => ({
|
|
440
|
+
excluded: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
441
|
+
included: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
442
|
+
restricted: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
443
|
+
queue: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
444
|
+
catalog: factories['io.flow.catalog.v0.models.catalog_statistics'](),
|
|
445
|
+
}),
|
|
446
|
+
|
|
447
|
+
'io.flow.catalog.v0.models.subcatalog_version': (): io.flow.catalog.v0.models.SubcatalogVersion => ({
|
|
448
|
+
id: factories.string(),
|
|
449
|
+
timestamp: factories.date_time_iso_8601(),
|
|
450
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
451
|
+
subcatalog: factories['io.flow.catalog.v0.models.subcatalog'](),
|
|
452
|
+
}),
|
|
453
|
+
|
|
454
|
+
'io.flow.catalog.v0.unions.expandable_subcatalog': (): io.flow.catalog.v0.unions.ExpandableSubcatalog => {
|
|
455
|
+
const f = faker.helpers.arrayElement([
|
|
456
|
+
() => factories['io.flow.catalog.v0.models.subcatalog'](),
|
|
457
|
+
() => factories['io.flow.catalog.v0.models.subcatalog_reference'](),
|
|
458
|
+
]);
|
|
459
|
+
|
|
460
|
+
return f();
|
|
461
|
+
},
|
|
462
|
+
|
|
463
|
+
'io.flow.catalog.v0.unions.localized_price': (): io.flow.catalog.v0.unions.LocalizedPrice => {
|
|
464
|
+
const f = faker.helpers.arrayElement([
|
|
465
|
+
() => factories['io.flow.catalog.v0.models.localized_item_price'](),
|
|
466
|
+
() => factories['io.flow.catalog.v0.models.localized_item_vat'](),
|
|
467
|
+
() => factories['io.flow.catalog.v0.models.localized_item_duty'](),
|
|
468
|
+
() => factories['io.flow.catalog.v0.models.localized_total'](),
|
|
469
|
+
]);
|
|
470
|
+
|
|
471
|
+
return f();
|
|
472
|
+
},
|
|
473
|
+
|
|
474
|
+
'io.flow.common.v0.enums.attribute_data_type': (): io.flow.common.v0.enums.AttributeDataType => faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']),
|
|
475
|
+
'io.flow.common.v0.enums.availability_status': (): io.flow.common.v0.enums.AvailabilityStatus => faker.helpers.arrayElement(['enabled', 'disabled']),
|
|
476
|
+
'io.flow.common.v0.enums.calendar': (): io.flow.common.v0.enums.Calendar => faker.helpers.arrayElement(['weekdays', 'everyday']),
|
|
477
|
+
'io.flow.common.v0.enums.capability': (): io.flow.common.v0.enums.Capability => faker.helpers.arrayElement(['crossdock']),
|
|
478
|
+
'io.flow.common.v0.enums.change_type': (): io.flow.common.v0.enums.ChangeType => faker.helpers.arrayElement(['insert', 'update', 'delete']),
|
|
479
|
+
'io.flow.common.v0.enums.currency_label_formatter': (): io.flow.common.v0.enums.CurrencyLabelFormatter => faker.helpers.arrayElement(['strip_trailing_zeros', 'symbol_prefix', 'symbol_suffix']),
|
|
480
|
+
'io.flow.common.v0.enums.currency_symbol_format': (): io.flow.common.v0.enums.CurrencySymbolFormat => faker.helpers.arrayElement(['narrow', 'primary']),
|
|
481
|
+
|
|
482
|
+
'io.flow.common.v0.enums.day_of_week': (): io.flow.common.v0.enums.DayOfWeek => faker.helpers.arrayElement([
|
|
483
|
+
'sunday',
|
|
484
|
+
'monday',
|
|
485
|
+
'tuesday',
|
|
486
|
+
'wednesday',
|
|
487
|
+
'thursday',
|
|
488
|
+
'friday',
|
|
489
|
+
'saturday',
|
|
490
|
+
]),
|
|
491
|
+
|
|
492
|
+
'io.flow.common.v0.enums.delivered_duty': (): io.flow.common.v0.enums.DeliveredDuty => faker.helpers.arrayElement(['paid', 'unpaid']),
|
|
493
|
+
'io.flow.common.v0.enums.discount_target': (): io.flow.common.v0.enums.DiscountTarget => faker.helpers.arrayElement(['item', 'shipping']),
|
|
494
|
+
'io.flow.common.v0.enums.entity_identifier_type': (): io.flow.common.v0.enums.EntityIdentifierType => faker.helpers.arrayElement(['ioss', 'voec', 'zaz']),
|
|
495
|
+
'io.flow.common.v0.enums.environment': (): io.flow.common.v0.enums.Environment => faker.helpers.arrayElement(['sandbox', 'production']),
|
|
496
|
+
'io.flow.common.v0.enums.exception_type': (): io.flow.common.v0.enums.ExceptionType => faker.helpers.arrayElement(['open', 'closed']),
|
|
497
|
+
'io.flow.common.v0.enums.goods_supply': (): io.flow.common.v0.enums.GoodsSupply => faker.helpers.arrayElement(['export', 'intra_community', 'local']),
|
|
498
|
+
'io.flow.common.v0.enums.holiday_calendar': (): io.flow.common.v0.enums.HolidayCalendar => faker.helpers.arrayElement(['us_bank_holidays', 'jewish_holidays']),
|
|
499
|
+
'io.flow.common.v0.enums.included_levy_key': (): io.flow.common.v0.enums.IncludedLevyKey => faker.helpers.arrayElement(['duty', 'vat', 'vat_and_duty', 'none']),
|
|
500
|
+
|
|
501
|
+
'io.flow.common.v0.enums.incoterm': (): io.flow.common.v0.enums.Incoterm => faker.helpers.arrayElement([
|
|
502
|
+
'EXW',
|
|
503
|
+
'FCA',
|
|
504
|
+
'CPT',
|
|
505
|
+
'CIP',
|
|
506
|
+
'DAT',
|
|
507
|
+
'DAP',
|
|
508
|
+
'DDP',
|
|
509
|
+
'FAS',
|
|
510
|
+
'FOB',
|
|
511
|
+
'CFR',
|
|
512
|
+
'CIF',
|
|
513
|
+
'DAF',
|
|
514
|
+
'DES',
|
|
515
|
+
'DEQ',
|
|
516
|
+
'DDU',
|
|
517
|
+
]),
|
|
518
|
+
|
|
519
|
+
'io.flow.common.v0.enums.input_specification_type': (): io.flow.common.v0.enums.InputSpecificationType => faker.helpers.arrayElement(['text', 'number']),
|
|
520
|
+
'io.flow.common.v0.enums.margin_type': (): io.flow.common.v0.enums.MarginType => faker.helpers.arrayElement(['fixed', 'percent']),
|
|
521
|
+
'io.flow.common.v0.enums.measurement_system': (): io.flow.common.v0.enums.MeasurementSystem => faker.helpers.arrayElement(['imperial', 'metric']),
|
|
522
|
+
'io.flow.common.v0.enums.merchant_of_record': (): io.flow.common.v0.enums.MerchantOfRecord => faker.helpers.arrayElement(['flow', 'organization']),
|
|
523
|
+
'io.flow.common.v0.enums.order_merchant_of_record': (): io.flow.common.v0.enums.OrderMerchantOfRecord => faker.helpers.arrayElement(['flow', 'organization', 'mixed']),
|
|
524
|
+
'io.flow.common.v0.enums.organization_status': (): io.flow.common.v0.enums.OrganizationStatus => faker.helpers.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']),
|
|
525
|
+
'io.flow.common.v0.enums.organization_type': (): io.flow.common.v0.enums.OrganizationType => faker.helpers.arrayElement(['standalone', 'channel']),
|
|
526
|
+
'io.flow.common.v0.enums.price_book_status': (): io.flow.common.v0.enums.PriceBookStatus => faker.helpers.arrayElement(['draft', 'published', 'archived']),
|
|
527
|
+
'io.flow.common.v0.enums.role': (): io.flow.common.v0.enums.Role => faker.helpers.arrayElement(['admin', 'member']),
|
|
528
|
+
'io.flow.common.v0.enums.rounding_method': (): io.flow.common.v0.enums.RoundingMethod => faker.helpers.arrayElement(['up', 'down', 'nearest']),
|
|
529
|
+
'io.flow.common.v0.enums.rounding_type': (): io.flow.common.v0.enums.RoundingType => faker.helpers.arrayElement(['pattern', 'multiple']),
|
|
530
|
+
'io.flow.common.v0.enums.schedule_exception_status': (): io.flow.common.v0.enums.ScheduleExceptionStatus => faker.helpers.arrayElement(['Open', 'Closed']),
|
|
531
|
+
'io.flow.common.v0.enums.sort_direction': (): io.flow.common.v0.enums.SortDirection => faker.helpers.arrayElement(['ascending', 'descending']),
|
|
532
|
+
|
|
533
|
+
'io.flow.common.v0.enums.unit_of_measurement': (): io.flow.common.v0.enums.UnitOfMeasurement => faker.helpers.arrayElement([
|
|
534
|
+
'millimeter',
|
|
535
|
+
'centimeter',
|
|
536
|
+
'inch',
|
|
537
|
+
'foot',
|
|
538
|
+
'cubic_inch',
|
|
539
|
+
'cubic_meter',
|
|
540
|
+
'gram',
|
|
541
|
+
'kilogram',
|
|
542
|
+
'meter',
|
|
543
|
+
'ounce',
|
|
544
|
+
'pound',
|
|
545
|
+
]),
|
|
546
|
+
|
|
547
|
+
'io.flow.common.v0.enums.unit_of_time': (): io.flow.common.v0.enums.UnitOfTime => faker.helpers.arrayElement(['year', 'month', 'week', 'day', 'hour', 'minute']),
|
|
548
|
+
'io.flow.common.v0.enums.user_status': (): io.flow.common.v0.enums.UserStatus => faker.helpers.arrayElement(['pending', 'active', 'inactive']),
|
|
549
|
+
'io.flow.common.v0.enums.value_added_service': (): io.flow.common.v0.enums.ValueAddedService => faker.helpers.arrayElement(['Hazardous Material']),
|
|
550
|
+
'io.flow.common.v0.enums.visibility': (): io.flow.common.v0.enums.Visibility => faker.helpers.arrayElement(['public', 'private']),
|
|
551
|
+
|
|
552
|
+
'io.flow.common.v0.models.address': (): io.flow.common.v0.models.Address => ({
|
|
553
|
+
text: factories.string(),
|
|
554
|
+
streets: arrayOf(() => factories.string()),
|
|
555
|
+
street_number: factories.string(),
|
|
556
|
+
city: factories.string(),
|
|
557
|
+
province: factories.string(),
|
|
558
|
+
postal: factories.string(),
|
|
559
|
+
country: factories.string(),
|
|
560
|
+
latitude: factories.string(),
|
|
561
|
+
longitude: factories.string(),
|
|
562
|
+
}),
|
|
563
|
+
|
|
564
|
+
'io.flow.common.v0.models.billing_address': (): io.flow.common.v0.models.BillingAddress => ({
|
|
565
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
566
|
+
streets: arrayOf(() => factories.string()),
|
|
567
|
+
city: factories.string(),
|
|
568
|
+
province: factories.string(),
|
|
569
|
+
postal: factories.string(),
|
|
570
|
+
country: factories.string(),
|
|
571
|
+
company: factories.string(),
|
|
572
|
+
}),
|
|
573
|
+
|
|
574
|
+
'io.flow.common.v0.models.catalog_item_reference': (): io.flow.common.v0.models.CatalogItemReference => ({
|
|
575
|
+
id: factories.string(),
|
|
576
|
+
number: factories.string(),
|
|
577
|
+
}),
|
|
578
|
+
|
|
579
|
+
'io.flow.common.v0.models.catalog_item_summary': (): io.flow.common.v0.models.CatalogItemSummary => ({
|
|
580
|
+
number: factories.string(),
|
|
581
|
+
name: factories.string(),
|
|
582
|
+
attributes: objectOf(() => factories.string()),
|
|
583
|
+
}),
|
|
584
|
+
|
|
585
|
+
'io.flow.common.v0.models.channel_reference': (): io.flow.common.v0.models.ChannelReference => ({
|
|
586
|
+
id: factories.string(),
|
|
587
|
+
}),
|
|
588
|
+
|
|
589
|
+
'io.flow.common.v0.models.checkout_reference': (): io.flow.common.v0.models.CheckoutReference => ({
|
|
590
|
+
id: factories.string(),
|
|
591
|
+
}),
|
|
592
|
+
|
|
593
|
+
'io.flow.common.v0.models.contact': (): io.flow.common.v0.models.Contact => ({
|
|
594
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
595
|
+
company: factories.string(),
|
|
596
|
+
email: factories.string(),
|
|
597
|
+
phone: factories.string(),
|
|
598
|
+
}),
|
|
599
|
+
|
|
600
|
+
'io.flow.common.v0.models.customer_invoice': (): io.flow.common.v0.models.CustomerInvoice => ({
|
|
601
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
602
|
+
}),
|
|
603
|
+
|
|
604
|
+
'io.flow.common.v0.models.customer_reference': (): io.flow.common.v0.models.CustomerReference => ({
|
|
605
|
+
number: factories.string(),
|
|
606
|
+
}),
|
|
607
|
+
|
|
608
|
+
'io.flow.common.v0.models.datetime_range': (): io.flow.common.v0.models.DatetimeRange => ({
|
|
609
|
+
from: factories.date_time_iso_8601(),
|
|
610
|
+
to: factories.date_time_iso_8601(),
|
|
611
|
+
}),
|
|
612
|
+
|
|
613
|
+
'io.flow.common.v0.models.dimension': (): io.flow.common.v0.models.Dimension => ({
|
|
614
|
+
depth: factories['io.flow.common.v0.models.measurement'](),
|
|
615
|
+
diameter: factories['io.flow.common.v0.models.measurement'](),
|
|
616
|
+
length: factories['io.flow.common.v0.models.measurement'](),
|
|
617
|
+
weight: factories['io.flow.common.v0.models.measurement'](),
|
|
618
|
+
width: factories['io.flow.common.v0.models.measurement'](),
|
|
619
|
+
}),
|
|
620
|
+
|
|
621
|
+
'io.flow.common.v0.models.dimensions': (): io.flow.common.v0.models.Dimensions => ({
|
|
622
|
+
product: factories['io.flow.common.v0.models.dimension'](),
|
|
623
|
+
packaging: factories['io.flow.common.v0.models.dimension'](),
|
|
624
|
+
}),
|
|
625
|
+
|
|
626
|
+
'io.flow.common.v0.models.discount_form': (): io.flow.common.v0.models.DiscountForm => ({
|
|
627
|
+
offer: factories['io.flow.common.v0.unions.discount_offer'](),
|
|
628
|
+
target: factories['io.flow.common.v0.enums.discount_target'](),
|
|
629
|
+
label: factories.string(),
|
|
630
|
+
}),
|
|
631
|
+
|
|
632
|
+
'io.flow.common.v0.models.discount_offer_fixed': (): io.flow.common.v0.models.DiscountOfferFixed => ({
|
|
633
|
+
discriminator: 'discount_offer_fixed',
|
|
634
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
635
|
+
}),
|
|
636
|
+
|
|
637
|
+
'io.flow.common.v0.models.discount_offer_percent': (): io.flow.common.v0.models.DiscountOfferPercent => ({
|
|
638
|
+
discriminator: 'discount_offer_percent',
|
|
639
|
+
percent: factories.decimal(),
|
|
640
|
+
}),
|
|
641
|
+
|
|
642
|
+
'io.flow.common.v0.models.discounts_form': (): io.flow.common.v0.models.DiscountsForm => ({
|
|
643
|
+
discounts: arrayOf(() => factories['io.flow.common.v0.models.discount_form']()),
|
|
644
|
+
}),
|
|
645
|
+
|
|
646
|
+
'io.flow.common.v0.models.duration': (): io.flow.common.v0.models.Duration => ({
|
|
647
|
+
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
648
|
+
value: factories.long(),
|
|
649
|
+
}),
|
|
650
|
+
|
|
651
|
+
'io.flow.common.v0.models.entity_identifier': (): io.flow.common.v0.models.EntityIdentifier => ({
|
|
652
|
+
name: factories['io.flow.common.v0.enums.entity_identifier_type'](),
|
|
653
|
+
number: factories.string(),
|
|
654
|
+
issuing_country: factories.string(),
|
|
655
|
+
}),
|
|
656
|
+
|
|
657
|
+
'io.flow.common.v0.models.exception': (): io.flow.common.v0.models.Exception => ({
|
|
658
|
+
type: factories['io.flow.common.v0.enums.exception_type'](),
|
|
659
|
+
datetime_range: factories['io.flow.common.v0.models.datetime_range'](),
|
|
660
|
+
}),
|
|
661
|
+
|
|
662
|
+
'io.flow.common.v0.models.experience_summary': (): io.flow.common.v0.models.ExperienceSummary => ({
|
|
663
|
+
id: factories.string(),
|
|
664
|
+
key: factories.string(),
|
|
665
|
+
name: factories.string(),
|
|
666
|
+
country: factories.string(),
|
|
667
|
+
currency: factories.string(),
|
|
668
|
+
language: factories.string(),
|
|
669
|
+
}),
|
|
670
|
+
|
|
671
|
+
'io.flow.common.v0.models.included_levies': (): io.flow.common.v0.models.IncludedLevies => ({
|
|
672
|
+
key: factories['io.flow.common.v0.enums.included_levy_key'](),
|
|
673
|
+
label: factories.string(),
|
|
674
|
+
}),
|
|
675
|
+
|
|
676
|
+
'io.flow.common.v0.models.input_form': (): io.flow.common.v0.models.InputForm => ({
|
|
677
|
+
values: objectOf(() => factories.string()),
|
|
678
|
+
}),
|
|
679
|
+
|
|
680
|
+
'io.flow.common.v0.models.input_form_specification': (): io.flow.common.v0.models.InputFormSpecification => ({
|
|
681
|
+
inputs: arrayOf(() => factories['io.flow.common.v0.models.input_specification']()),
|
|
682
|
+
limitations: factories['io.flow.common.v0.models.input_specification_limitations'](),
|
|
683
|
+
}),
|
|
684
|
+
|
|
685
|
+
'io.flow.common.v0.models.input_specification': (): io.flow.common.v0.models.InputSpecification => ({
|
|
686
|
+
type: factories['io.flow.common.v0.enums.input_specification_type'](),
|
|
687
|
+
name: factories.string(),
|
|
688
|
+
display_text: factories.string(),
|
|
689
|
+
}),
|
|
690
|
+
|
|
691
|
+
'io.flow.common.v0.models.input_specification_limitation_max': (): io.flow.common.v0.models.InputSpecificationLimitationMax => ({
|
|
692
|
+
discriminator: 'input_specification_limitation_max',
|
|
693
|
+
max: factories.long(),
|
|
694
|
+
}),
|
|
695
|
+
|
|
696
|
+
'io.flow.common.v0.models.input_specification_limitations': (): io.flow.common.v0.models.InputSpecificationLimitations => ({
|
|
697
|
+
limitations: arrayOf(
|
|
698
|
+
() => factories['io.flow.common.v0.unions.input_specification_limitation'](),
|
|
699
|
+
),
|
|
700
|
+
}),
|
|
701
|
+
|
|
702
|
+
'io.flow.common.v0.models.item_reference': (): io.flow.common.v0.models.ItemReference => ({
|
|
703
|
+
number: factories.string(),
|
|
704
|
+
}),
|
|
705
|
+
|
|
706
|
+
'io.flow.common.v0.models.line_item': (): io.flow.common.v0.models.LineItem => ({
|
|
707
|
+
number: factories.string(),
|
|
708
|
+
quantity: factories.long(),
|
|
709
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
710
|
+
attributes: objectOf(() => factories.string()),
|
|
711
|
+
center: factories.string(),
|
|
712
|
+
discount: factories['io.flow.common.v0.models.money'](),
|
|
713
|
+
}),
|
|
714
|
+
|
|
715
|
+
'io.flow.common.v0.models.line_item_attributes_form': (): io.flow.common.v0.models.LineItemAttributesForm => ({
|
|
716
|
+
attributes: objectOf(() => factories.string()),
|
|
717
|
+
}),
|
|
718
|
+
|
|
719
|
+
'io.flow.common.v0.models.line_item_form': (): io.flow.common.v0.models.LineItemForm => ({
|
|
720
|
+
number: factories.string(),
|
|
721
|
+
quantity: factories.long(),
|
|
722
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
723
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
724
|
+
attributes: objectOf(() => factories.string()),
|
|
725
|
+
center: factories.string(),
|
|
726
|
+
discount: factories['io.flow.common.v0.models.money'](),
|
|
727
|
+
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
728
|
+
}),
|
|
729
|
+
|
|
730
|
+
'io.flow.common.v0.models.line_item_quantity_form': (): io.flow.common.v0.models.LineItemQuantityForm => ({
|
|
731
|
+
quantity: factories.long(),
|
|
732
|
+
}),
|
|
733
|
+
|
|
734
|
+
'io.flow.common.v0.models.logo_image_set_static': (): io.flow.common.v0.models.LogoImageSetStatic => ({
|
|
735
|
+
discriminator: 'static',
|
|
736
|
+
small: factories['io.flow.common.v0.models.logo_image_static'](),
|
|
737
|
+
medium: factories['io.flow.common.v0.models.logo_image_static'](),
|
|
738
|
+
large: factories['io.flow.common.v0.models.logo_image_static'](),
|
|
739
|
+
}),
|
|
740
|
+
|
|
741
|
+
'io.flow.common.v0.models.logo_image_static': (): io.flow.common.v0.models.LogoImageStatic => ({
|
|
742
|
+
url: factories.string(),
|
|
743
|
+
width: factories.integer(),
|
|
744
|
+
height: factories.integer(),
|
|
745
|
+
}),
|
|
746
|
+
|
|
747
|
+
'io.flow.common.v0.models.logo_image_svg': (): io.flow.common.v0.models.LogoImageSvg => ({
|
|
748
|
+
discriminator: 'svg',
|
|
749
|
+
url: factories.string(),
|
|
750
|
+
}),
|
|
751
|
+
|
|
752
|
+
'io.flow.common.v0.models.margin': (): io.flow.common.v0.models.Margin => ({
|
|
753
|
+
type: factories['io.flow.common.v0.enums.margin_type'](),
|
|
754
|
+
value: factories.decimal(),
|
|
755
|
+
}),
|
|
756
|
+
|
|
757
|
+
'io.flow.common.v0.models.measurement': (): io.flow.common.v0.models.Measurement => ({
|
|
758
|
+
value: factories.string(),
|
|
759
|
+
units: factories['io.flow.common.v0.enums.unit_of_measurement'](),
|
|
760
|
+
}),
|
|
761
|
+
|
|
762
|
+
'io.flow.common.v0.models.merchant_of_record_entity': (): io.flow.common.v0.models.MerchantOfRecordEntity => ({
|
|
763
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
764
|
+
name: factories.string(),
|
|
765
|
+
vat: factories['io.flow.common.v0.models.merchant_of_record_entity_registration'](),
|
|
766
|
+
identifiers: arrayOf(() => factories['io.flow.common.v0.models.entity_identifier']()),
|
|
767
|
+
streets: arrayOf(() => factories.string()),
|
|
768
|
+
city: factories.string(),
|
|
769
|
+
province: factories.string(),
|
|
770
|
+
postal: factories.string(),
|
|
771
|
+
country: factories.string(),
|
|
772
|
+
phone: factories.string(),
|
|
773
|
+
email: factories.string(),
|
|
774
|
+
}),
|
|
775
|
+
|
|
776
|
+
'io.flow.common.v0.models.merchant_of_record_entity_registration': (): io.flow.common.v0.models.MerchantOfRecordEntityRegistration => ({
|
|
777
|
+
number: factories.string(),
|
|
778
|
+
country: factories.string(),
|
|
779
|
+
}),
|
|
780
|
+
|
|
781
|
+
'io.flow.common.v0.models.money': (): io.flow.common.v0.models.Money => ({
|
|
782
|
+
amount: factories.double(),
|
|
783
|
+
currency: factories.string(),
|
|
784
|
+
}),
|
|
785
|
+
|
|
786
|
+
'io.flow.common.v0.models.money_with_base': (): io.flow.common.v0.models.MoneyWithBase => ({
|
|
787
|
+
currency: factories.string(),
|
|
788
|
+
amount: factories.double(),
|
|
789
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
790
|
+
}),
|
|
791
|
+
|
|
792
|
+
'io.flow.common.v0.models.money_with_optional_base': (): io.flow.common.v0.models.MoneyWithOptionalBase => ({
|
|
793
|
+
currency: factories.string(),
|
|
794
|
+
amount: factories.double(),
|
|
795
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
796
|
+
}),
|
|
797
|
+
|
|
798
|
+
'io.flow.common.v0.models.name': (): io.flow.common.v0.models.Name => ({
|
|
799
|
+
first: factories.string(),
|
|
800
|
+
last: factories.string(),
|
|
801
|
+
}),
|
|
802
|
+
|
|
803
|
+
'io.flow.common.v0.models.order_customer': (): io.flow.common.v0.models.OrderCustomer => ({
|
|
804
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
805
|
+
number: factories.string(),
|
|
806
|
+
phone: factories.string(),
|
|
807
|
+
email: factories.string(),
|
|
808
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
809
|
+
invoice: factories['io.flow.common.v0.models.customer_invoice'](),
|
|
810
|
+
}),
|
|
811
|
+
|
|
812
|
+
'io.flow.common.v0.models.order_customer_form': (): io.flow.common.v0.models.OrderCustomerForm => ({
|
|
813
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
814
|
+
number: factories.string(),
|
|
815
|
+
phone: factories.string(),
|
|
816
|
+
email: factories.string(),
|
|
817
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
818
|
+
invoice: factories['io.flow.common.v0.models.customer_invoice'](),
|
|
819
|
+
}),
|
|
820
|
+
|
|
821
|
+
'io.flow.common.v0.models.organization': (): io.flow.common.v0.models.Organization => ({
|
|
822
|
+
discriminator: 'organization',
|
|
823
|
+
id: factories.string(),
|
|
824
|
+
name: factories.string(),
|
|
825
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
826
|
+
parent: factories['io.flow.common.v0.models.organization_reference'](),
|
|
827
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
828
|
+
created_at: factories.date_time_iso_8601(),
|
|
829
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
830
|
+
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
831
|
+
}),
|
|
832
|
+
|
|
833
|
+
'io.flow.common.v0.models.organization_defaults': (): io.flow.common.v0.models.OrganizationDefaults => ({
|
|
834
|
+
country: factories.string(),
|
|
835
|
+
base_currency: factories.string(),
|
|
836
|
+
language: factories.string(),
|
|
837
|
+
locale: factories.string(),
|
|
838
|
+
timezone: factories.string(),
|
|
839
|
+
}),
|
|
840
|
+
|
|
841
|
+
'io.flow.common.v0.models.organization_reference': (): io.flow.common.v0.models.OrganizationReference => ({
|
|
842
|
+
discriminator: 'organization_reference',
|
|
843
|
+
id: factories.string(),
|
|
844
|
+
}),
|
|
845
|
+
|
|
846
|
+
'io.flow.common.v0.models.organization_summary': (): io.flow.common.v0.models.OrganizationSummary => ({
|
|
847
|
+
id: factories.string(),
|
|
848
|
+
name: factories.string(),
|
|
849
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
850
|
+
}),
|
|
851
|
+
|
|
852
|
+
'io.flow.common.v0.models.partner_reference': (): io.flow.common.v0.models.PartnerReference => ({
|
|
853
|
+
id: factories.string(),
|
|
854
|
+
}),
|
|
855
|
+
|
|
856
|
+
'io.flow.common.v0.models.price': (): io.flow.common.v0.models.Price => ({
|
|
857
|
+
amount: factories.double(),
|
|
858
|
+
currency: factories.string(),
|
|
859
|
+
label: factories.string(),
|
|
860
|
+
}),
|
|
861
|
+
|
|
862
|
+
'io.flow.common.v0.models.price_form': (): io.flow.common.v0.models.PriceForm => ({
|
|
863
|
+
amount: factories.double(),
|
|
864
|
+
currency: factories.string(),
|
|
865
|
+
}),
|
|
866
|
+
|
|
867
|
+
'io.flow.common.v0.models.price_source_catalog': (): io.flow.common.v0.models.PriceSourceCatalog => ({
|
|
868
|
+
discriminator: 'catalog',
|
|
869
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
870
|
+
}),
|
|
871
|
+
|
|
872
|
+
'io.flow.common.v0.models.price_source_price_book': (): io.flow.common.v0.models.PriceSourcePriceBook => ({
|
|
873
|
+
discriminator: 'price_book',
|
|
874
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
875
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
876
|
+
price_book_reference: factories['io.flow.common.v0.models.price_source_price_book_reference'](),
|
|
877
|
+
}),
|
|
878
|
+
|
|
879
|
+
'io.flow.common.v0.models.price_source_price_book_reference': (): io.flow.common.v0.models.PriceSourcePriceBookReference => ({
|
|
880
|
+
id: factories.string(),
|
|
881
|
+
key: factories.string(),
|
|
882
|
+
}),
|
|
883
|
+
|
|
884
|
+
'io.flow.common.v0.models.price_source_provided': (): io.flow.common.v0.models.PriceSourceProvided => ({
|
|
885
|
+
discriminator: 'provided',
|
|
886
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
887
|
+
}),
|
|
888
|
+
|
|
889
|
+
'io.flow.common.v0.models.price_with_base': (): io.flow.common.v0.models.PriceWithBase => ({
|
|
890
|
+
currency: factories.string(),
|
|
891
|
+
amount: factories.double(),
|
|
892
|
+
label: factories.string(),
|
|
893
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
894
|
+
}),
|
|
895
|
+
|
|
896
|
+
'io.flow.common.v0.models.repeat_daily': (): io.flow.common.v0.models.RepeatDaily => ({
|
|
897
|
+
discriminator: 'repeat_daily',
|
|
898
|
+
interval: factories.integer(),
|
|
899
|
+
}),
|
|
900
|
+
|
|
901
|
+
'io.flow.common.v0.models.repeat_hourly': (): io.flow.common.v0.models.RepeatHourly => ({
|
|
902
|
+
discriminator: 'repeat_hourly',
|
|
903
|
+
interval: factories.integer(),
|
|
904
|
+
}),
|
|
905
|
+
|
|
906
|
+
'io.flow.common.v0.models.repeat_monthly': (): io.flow.common.v0.models.RepeatMonthly => ({
|
|
907
|
+
discriminator: 'repeat_monthly',
|
|
908
|
+
interval: factories.integer(),
|
|
909
|
+
days: arrayOf(() => factories.integer()),
|
|
910
|
+
}),
|
|
911
|
+
|
|
912
|
+
'io.flow.common.v0.models.repeat_weekly': (): io.flow.common.v0.models.RepeatWeekly => ({
|
|
913
|
+
discriminator: 'repeat_weekly',
|
|
914
|
+
interval: factories.integer(),
|
|
915
|
+
days_of_week: arrayOf(() => factories['io.flow.common.v0.enums.day_of_week']()),
|
|
916
|
+
}),
|
|
917
|
+
|
|
918
|
+
'io.flow.common.v0.models.rounding': (): io.flow.common.v0.models.Rounding => ({
|
|
919
|
+
type: factories['io.flow.common.v0.enums.rounding_type'](),
|
|
920
|
+
method: factories['io.flow.common.v0.enums.rounding_method'](),
|
|
921
|
+
value: factories.decimal(),
|
|
922
|
+
}),
|
|
923
|
+
|
|
924
|
+
'io.flow.common.v0.models.schedule': (): io.flow.common.v0.models.Schedule => ({
|
|
925
|
+
calendar: factories['io.flow.common.v0.enums.calendar'](),
|
|
926
|
+
holiday: factories['io.flow.common.v0.enums.holiday_calendar'](),
|
|
927
|
+
exception: arrayOf(() => factories['io.flow.common.v0.models.exception']()),
|
|
928
|
+
cutoff: factories.string(),
|
|
929
|
+
min_lead_time: factories.long(),
|
|
930
|
+
max_lead_time: factories.long(),
|
|
931
|
+
}),
|
|
932
|
+
|
|
933
|
+
'io.flow.common.v0.models.session_reference': (): io.flow.common.v0.models.SessionReference => ({
|
|
934
|
+
id: factories.string(),
|
|
935
|
+
}),
|
|
936
|
+
|
|
937
|
+
'io.flow.common.v0.models.user': (): io.flow.common.v0.models.User => ({
|
|
938
|
+
discriminator: 'user',
|
|
939
|
+
id: factories.string(),
|
|
940
|
+
email: factories.string(),
|
|
941
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
942
|
+
status: factories['io.flow.common.v0.enums.user_status'](),
|
|
943
|
+
}),
|
|
944
|
+
|
|
945
|
+
'io.flow.common.v0.models.user_reference': (): io.flow.common.v0.models.UserReference => ({
|
|
946
|
+
discriminator: 'user_reference',
|
|
947
|
+
id: factories.string(),
|
|
948
|
+
}),
|
|
949
|
+
|
|
950
|
+
'io.flow.common.v0.models.zone': (): io.flow.common.v0.models.Zone => ({
|
|
951
|
+
postals: arrayOf(() => factories.string()),
|
|
952
|
+
provinces: arrayOf(() => factories.string()),
|
|
953
|
+
country: factories.string(),
|
|
954
|
+
}),
|
|
955
|
+
|
|
956
|
+
'io.flow.common.v0.unions.discount_offer': (): io.flow.common.v0.unions.DiscountOffer => {
|
|
957
|
+
const f = faker.helpers.arrayElement([
|
|
958
|
+
() => factories['io.flow.common.v0.models.discount_offer_fixed'](),
|
|
959
|
+
() => factories['io.flow.common.v0.models.discount_offer_percent'](),
|
|
960
|
+
]);
|
|
961
|
+
|
|
962
|
+
return f();
|
|
963
|
+
},
|
|
964
|
+
|
|
965
|
+
'io.flow.common.v0.unions.expandable_organization': (): io.flow.common.v0.unions.ExpandableOrganization => {
|
|
966
|
+
const f = faker.helpers.arrayElement([
|
|
967
|
+
() => factories['io.flow.common.v0.models.organization'](),
|
|
968
|
+
() => factories['io.flow.common.v0.models.organization_reference'](),
|
|
969
|
+
]);
|
|
970
|
+
|
|
971
|
+
return f();
|
|
972
|
+
},
|
|
973
|
+
|
|
974
|
+
'io.flow.common.v0.unions.expandable_user': (): io.flow.common.v0.unions.ExpandableUser => {
|
|
975
|
+
const f = faker.helpers.arrayElement([
|
|
976
|
+
() => factories['io.flow.common.v0.models.user'](),
|
|
977
|
+
() => factories['io.flow.common.v0.models.user_reference'](),
|
|
978
|
+
]);
|
|
979
|
+
|
|
980
|
+
return f();
|
|
981
|
+
},
|
|
982
|
+
|
|
983
|
+
'io.flow.common.v0.unions.input_specification_limitation': (): io.flow.common.v0.unions.InputSpecificationLimitation => {
|
|
984
|
+
const f = faker.helpers.arrayElement([
|
|
985
|
+
() => factories['io.flow.common.v0.models.input_specification_limitation_max'](),
|
|
986
|
+
]);
|
|
987
|
+
|
|
988
|
+
return f();
|
|
989
|
+
},
|
|
990
|
+
|
|
991
|
+
'io.flow.common.v0.unions.logo_image': (): io.flow.common.v0.unions.LogoImage => {
|
|
992
|
+
const f = faker.helpers.arrayElement([
|
|
993
|
+
() => factories['io.flow.common.v0.models.logo_image_svg'](),
|
|
994
|
+
() => factories['io.flow.common.v0.models.logo_image_set_static'](),
|
|
995
|
+
]);
|
|
996
|
+
|
|
997
|
+
return f();
|
|
998
|
+
},
|
|
999
|
+
|
|
1000
|
+
'io.flow.common.v0.unions.price_source': (): io.flow.common.v0.unions.PriceSource => {
|
|
1001
|
+
const f = faker.helpers.arrayElement([
|
|
1002
|
+
() => factories['io.flow.common.v0.models.price_source_price_book'](),
|
|
1003
|
+
() => factories['io.flow.common.v0.models.price_source_catalog'](),
|
|
1004
|
+
() => factories['io.flow.common.v0.models.price_source_provided'](),
|
|
1005
|
+
]);
|
|
1006
|
+
|
|
1007
|
+
return f();
|
|
1008
|
+
},
|
|
1009
|
+
|
|
1010
|
+
'io.flow.common.v0.unions.repeat_schedule': (): io.flow.common.v0.unions.RepeatSchedule => {
|
|
1011
|
+
const f = faker.helpers.arrayElement([
|
|
1012
|
+
() => factories['io.flow.common.v0.models.repeat_hourly'](),
|
|
1013
|
+
() => factories['io.flow.common.v0.models.repeat_daily'](),
|
|
1014
|
+
() => factories['io.flow.common.v0.models.repeat_weekly'](),
|
|
1015
|
+
() => factories['io.flow.common.v0.models.repeat_monthly'](),
|
|
1016
|
+
]);
|
|
1017
|
+
|
|
1018
|
+
return f();
|
|
1019
|
+
},
|
|
1020
|
+
|
|
1021
|
+
'io.flow.currency.v0.models.rate': (): io.flow.currency.v0.models.Rate => ({
|
|
1022
|
+
id: factories.string(),
|
|
1023
|
+
base: factories.string(),
|
|
1024
|
+
target: factories.string(),
|
|
1025
|
+
effective_at: factories.date_time_iso_8601(),
|
|
1026
|
+
value: factories.decimal(),
|
|
1027
|
+
}),
|
|
1028
|
+
|
|
1029
|
+
'io.flow.currency.v0.models.rate_form': (): io.flow.currency.v0.models.RateForm => ({
|
|
1030
|
+
base: factories.string(),
|
|
1031
|
+
target: factories.string(),
|
|
1032
|
+
effective_at: factories.date_time_iso_8601(),
|
|
1033
|
+
}),
|
|
1034
|
+
|
|
1035
|
+
'io.flow.currency.v0.models.rate_version': (): io.flow.currency.v0.models.RateVersion => ({
|
|
1036
|
+
id: factories.string(),
|
|
1037
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1038
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1039
|
+
rate: factories['io.flow.currency.v0.models.rate'](),
|
|
1040
|
+
}),
|
|
1041
|
+
|
|
148
1042
|
'io.flow.error.v0.enums.generic_error_code': (): io.flow.error.v0.enums.GenericErrorCode => faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']),
|
|
149
1043
|
|
|
150
|
-
'io.flow.error.v0.models.generic_error': (): io.flow.error.v0.models.GenericError => ({
|
|
151
|
-
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
152
|
-
messages: arrayOf(() => factories.string()),
|
|
1044
|
+
'io.flow.error.v0.models.generic_error': (): io.flow.error.v0.models.GenericError => ({
|
|
1045
|
+
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
1046
|
+
messages: arrayOf(() => factories.string()),
|
|
1047
|
+
}),
|
|
1048
|
+
|
|
1049
|
+
'io.flow.fulfillment.v0.enums.center_capability': (): io.flow.fulfillment.v0.enums.CenterCapability => faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']),
|
|
1050
|
+
|
|
1051
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': (): io.flow.fulfillment.v0.enums.DeliveryOptionCostDetailComponentKey => faker.helpers.arrayElement([
|
|
1052
|
+
'ratecard_base_cost',
|
|
1053
|
+
'ratecard_ddp_fee',
|
|
1054
|
+
'ratecard_fuel_surcharge',
|
|
1055
|
+
'ratecard_oversized_shipment_fee',
|
|
1056
|
+
'ratecard_rural_shipment_fee',
|
|
1057
|
+
'ratecard_emergency_situation_surcharge_fee',
|
|
1058
|
+
'ratecard_peak_surcharge_fee',
|
|
1059
|
+
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
1060
|
+
'center_commercial_invoice_fee',
|
|
1061
|
+
'center_inbound_carton_fee',
|
|
1062
|
+
'center_outbound_carton_fee',
|
|
1063
|
+
]),
|
|
1064
|
+
|
|
1065
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': (): io.flow.fulfillment.v0.enums.DeliveryOptionCostDetailSource => faker.helpers.arrayElement(['center', 'ratecard']),
|
|
1066
|
+
'io.flow.fulfillment.v0.enums.delivery_window_component_source': (): io.flow.fulfillment.v0.enums.DeliveryWindowComponentSource => faker.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']),
|
|
1067
|
+
'io.flow.fulfillment.v0.enums.delivery_window_location': (): io.flow.fulfillment.v0.enums.DeliveryWindowLocation => faker.helpers.arrayElement(['center', 'crossdock', 'customer']),
|
|
1068
|
+
'io.flow.fulfillment.v0.enums.fulfillment_routing': (): io.flow.fulfillment.v0.enums.FulfillmentRouting => faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']),
|
|
1069
|
+
'io.flow.fulfillment.v0.enums.item_availability_status': (): io.flow.fulfillment.v0.enums.ItemAvailabilityStatus => faker.helpers.arrayElement(['available', 'low', 'out_of_stock']),
|
|
1070
|
+
'io.flow.fulfillment.v0.enums.lane_direction': (): io.flow.fulfillment.v0.enums.LaneDirection => faker.helpers.arrayElement(['outbound', 'return']),
|
|
1071
|
+
'io.flow.fulfillment.v0.enums.lane_preselect_preference': (): io.flow.fulfillment.v0.enums.LanePreselectPreference => faker.helpers.arrayElement(['lowest_cost', 'default_tier']),
|
|
1072
|
+
'io.flow.fulfillment.v0.enums.lane_strategy': (): io.flow.fulfillment.v0.enums.LaneStrategy => faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']),
|
|
1073
|
+
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': (): io.flow.fulfillment.v0.enums.PhysicalDeliverySpecialSerivce => faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']),
|
|
1074
|
+
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': (): io.flow.fulfillment.v0.enums.PreferredServiceSelectionStrategy => faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']),
|
|
1075
|
+
'io.flow.fulfillment.v0.enums.quote_error_code': (): io.flow.fulfillment.v0.enums.QuoteErrorCode => faker.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']),
|
|
1076
|
+
'io.flow.fulfillment.v0.enums.ratecard_owner': (): io.flow.fulfillment.v0.enums.RatecardOwner => faker.helpers.arrayElement(['flow', 'organization']),
|
|
1077
|
+
'io.flow.fulfillment.v0.enums.shipment_integration_type': (): io.flow.fulfillment.v0.enums.ShipmentIntegrationType => faker.helpers.arrayElement(['direct', 'information', 'preadvice']),
|
|
1078
|
+
'io.flow.fulfillment.v0.enums.shipping_configuration_type': (): io.flow.fulfillment.v0.enums.ShippingConfigurationType => faker.helpers.arrayElement(['default', 'variant']),
|
|
1079
|
+
'io.flow.fulfillment.v0.enums.strategy': (): io.flow.fulfillment.v0.enums.Strategy => faker.helpers.arrayElement(['range', 'from', 'to']),
|
|
1080
|
+
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': (): io.flow.fulfillment.v0.enums.SurchargeResponsibleParty => faker.helpers.arrayElement(['organization', 'customer']),
|
|
1081
|
+
'io.flow.fulfillment.v0.enums.tier_availability': (): io.flow.fulfillment.v0.enums.TierAvailability => faker.helpers.arrayElement(['always', 'backup']),
|
|
1082
|
+
'io.flow.fulfillment.v0.enums.tier_estimate_type': (): io.flow.fulfillment.v0.enums.TierEstimateType => faker.helpers.arrayElement(['calculated', 'custom']),
|
|
1083
|
+
'io.flow.fulfillment.v0.enums.tier_strategy': (): io.flow.fulfillment.v0.enums.TierStrategy => faker.helpers.arrayElement(['fastest', 'lowest_cost']),
|
|
1084
|
+
'io.flow.fulfillment.v0.enums.zero_amount_indicator': (): io.flow.fulfillment.v0.enums.ZeroAmountIndicator => faker.helpers.arrayElement(['zero', 'free']),
|
|
1085
|
+
|
|
1086
|
+
'io.flow.fulfillment.v0.models.amount_margin': (): io.flow.fulfillment.v0.models.AmountMargin => ({
|
|
1087
|
+
discriminator: 'amount_margin',
|
|
1088
|
+
margin: factories['io.flow.common.v0.models.price'](),
|
|
1089
|
+
}),
|
|
1090
|
+
|
|
1091
|
+
'io.flow.fulfillment.v0.models.amount_margin_form': (): io.flow.fulfillment.v0.models.AmountMarginForm => ({
|
|
1092
|
+
discriminator: 'amount_margin_form',
|
|
1093
|
+
margin: factories['io.flow.common.v0.models.money'](),
|
|
1094
|
+
}),
|
|
1095
|
+
|
|
1096
|
+
'io.flow.fulfillment.v0.models.at_cost': (): io.flow.fulfillment.v0.models.AtCost => ({
|
|
1097
|
+
discriminator: 'at_cost',
|
|
1098
|
+
ignore: factories.string(),
|
|
1099
|
+
}),
|
|
1100
|
+
|
|
1101
|
+
'io.flow.fulfillment.v0.models.available_service': (): io.flow.fulfillment.v0.models.AvailableService => ({
|
|
1102
|
+
service: factories.string(),
|
|
1103
|
+
scheduled_pickups: arrayOf(() => factories['io.flow.fulfillment.v0.models.scheduled_pickup']()),
|
|
1104
|
+
lead_days: factories['io.flow.fulfillment.v0.models.number_range'](),
|
|
1105
|
+
}),
|
|
1106
|
+
|
|
1107
|
+
'io.flow.fulfillment.v0.models.carrier_reference': (): io.flow.fulfillment.v0.models.CarrierReference => ({
|
|
1108
|
+
id: factories.string(),
|
|
1109
|
+
}),
|
|
1110
|
+
|
|
1111
|
+
'io.flow.fulfillment.v0.models.center': (): io.flow.fulfillment.v0.models.Center => ({
|
|
1112
|
+
discriminator: 'center',
|
|
1113
|
+
id: factories.string(),
|
|
1114
|
+
key: factories.string(),
|
|
1115
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1116
|
+
packaging: arrayOf(() => factories['io.flow.fulfillment.v0.models.packaging']()),
|
|
1117
|
+
name: factories.string(),
|
|
1118
|
+
services: arrayOf(() => factories['io.flow.fulfillment.v0.models.available_service']()),
|
|
1119
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1120
|
+
timezone: factories.string(),
|
|
1121
|
+
capabilities: arrayOf(() => factories['io.flow.fulfillment.v0.enums.center_capability']()),
|
|
1122
|
+
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
1123
|
+
}),
|
|
1124
|
+
|
|
1125
|
+
'io.flow.fulfillment.v0.models.center_form': (): io.flow.fulfillment.v0.models.CenterForm => ({
|
|
1126
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1127
|
+
packaging: arrayOf(() => factories['io.flow.fulfillment.v0.models.packaging']()),
|
|
1128
|
+
name: factories.string(),
|
|
1129
|
+
services: arrayOf(() => factories['io.flow.fulfillment.v0.models.available_service']()),
|
|
1130
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1131
|
+
timezone: factories.string(),
|
|
1132
|
+
key: factories.string(),
|
|
1133
|
+
capabilities: arrayOf(() => factories['io.flow.fulfillment.v0.enums.center_capability']()),
|
|
1134
|
+
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
1135
|
+
}),
|
|
1136
|
+
|
|
1137
|
+
'io.flow.fulfillment.v0.models.center_query': (): io.flow.fulfillment.v0.models.CenterQuery => ({
|
|
1138
|
+
q: factories.string(),
|
|
1139
|
+
}),
|
|
1140
|
+
|
|
1141
|
+
'io.flow.fulfillment.v0.models.center_reference': (): io.flow.fulfillment.v0.models.CenterReference => ({
|
|
1142
|
+
discriminator: 'center_reference',
|
|
1143
|
+
organization_id: factories.string(),
|
|
1144
|
+
center_key: factories.string(),
|
|
1145
|
+
}),
|
|
1146
|
+
|
|
1147
|
+
'io.flow.fulfillment.v0.models.center_summary': (): io.flow.fulfillment.v0.models.CenterSummary => ({
|
|
1148
|
+
id: factories.string(),
|
|
1149
|
+
key: factories.string(),
|
|
1150
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1151
|
+
}),
|
|
1152
|
+
|
|
1153
|
+
'io.flow.fulfillment.v0.models.center_version': (): io.flow.fulfillment.v0.models.CenterVersion => ({
|
|
1154
|
+
id: factories.string(),
|
|
1155
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1156
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1157
|
+
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
1158
|
+
}),
|
|
1159
|
+
|
|
1160
|
+
'io.flow.fulfillment.v0.models.commercial_invoice_fee': (): io.flow.fulfillment.v0.models.CommercialInvoiceFee => ({
|
|
1161
|
+
discriminator: 'commercial_invoice_fee',
|
|
1162
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1163
|
+
}),
|
|
1164
|
+
|
|
1165
|
+
'io.flow.fulfillment.v0.models.country_availability': (): io.flow.fulfillment.v0.models.CountryAvailability => ({
|
|
1166
|
+
status: factories['io.flow.fulfillment.v0.enums.item_availability_status'](),
|
|
1167
|
+
countries: arrayOf(() => factories.string()),
|
|
1168
|
+
}),
|
|
1169
|
+
|
|
1170
|
+
'io.flow.fulfillment.v0.models.country_shipping_pricing': (): io.flow.fulfillment.v0.models.CountryShippingPricing => ({
|
|
1171
|
+
pricing: factories['io.flow.fulfillment.v0.models.item_shipping_pricing'](),
|
|
1172
|
+
countries: arrayOf(() => factories.string()),
|
|
1173
|
+
}),
|
|
1174
|
+
|
|
1175
|
+
'io.flow.fulfillment.v0.models.delivery_item': (): io.flow.fulfillment.v0.models.DeliveryItem => ({
|
|
1176
|
+
id: factories.string(),
|
|
1177
|
+
number: factories.string(),
|
|
1178
|
+
quantity: factories.long(),
|
|
1179
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1180
|
+
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
1181
|
+
attributes: objectOf(() => factories.string()),
|
|
1182
|
+
center: factories.string(),
|
|
1183
|
+
line_number: factories.long(),
|
|
1184
|
+
}),
|
|
1185
|
+
|
|
1186
|
+
'io.flow.fulfillment.v0.models.delivery_option': (): io.flow.fulfillment.v0.models.DeliveryOption => ({
|
|
1187
|
+
id: factories.string(),
|
|
1188
|
+
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1189
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1190
|
+
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1191
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1192
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1193
|
+
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1194
|
+
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1195
|
+
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
1196
|
+
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1197
|
+
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1198
|
+
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1199
|
+
}),
|
|
1200
|
+
|
|
1201
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_component': (): io.flow.fulfillment.v0.models.DeliveryOptionCostComponent => ({
|
|
1202
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1203
|
+
currency: factories.string(),
|
|
1204
|
+
amount: factories.decimal(),
|
|
1205
|
+
label: factories.string(),
|
|
1206
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1207
|
+
}),
|
|
1208
|
+
|
|
1209
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_detail': (): io.flow.fulfillment.v0.models.DeliveryOptionCostDetail => ({
|
|
1210
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source'](),
|
|
1211
|
+
ratecard_id: factories.string(),
|
|
1212
|
+
currency: factories.string(),
|
|
1213
|
+
amount: factories.decimal(),
|
|
1214
|
+
label: factories.string(),
|
|
1215
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1216
|
+
|
|
1217
|
+
components: arrayOf(
|
|
1218
|
+
() => factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](),
|
|
1219
|
+
),
|
|
1220
|
+
}),
|
|
1221
|
+
|
|
1222
|
+
'io.flow.fulfillment.v0.models.delivery_option_form': (): io.flow.fulfillment.v0.models.DeliveryOptionForm => ({
|
|
1223
|
+
delivery: factories.string(),
|
|
1224
|
+
items: arrayOf(() => factories['io.flow.fulfillment.v0.models.quote_line_item_form']()),
|
|
1225
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1226
|
+
}),
|
|
1227
|
+
|
|
1228
|
+
'io.flow.fulfillment.v0.models.delivery_option_reference': (): io.flow.fulfillment.v0.models.DeliveryOptionReference => ({
|
|
1229
|
+
id: factories.string(),
|
|
1230
|
+
}),
|
|
1231
|
+
|
|
1232
|
+
'io.flow.fulfillment.v0.models.delivery_option_summary': (): io.flow.fulfillment.v0.models.DeliveryOptionSummary => ({
|
|
1233
|
+
id: factories.string(),
|
|
1234
|
+
cost: factories['io.flow.common.v0.models.price'](),
|
|
1235
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1236
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1237
|
+
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
1238
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1239
|
+
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1240
|
+
}),
|
|
1241
|
+
|
|
1242
|
+
'io.flow.fulfillment.v0.models.delivery_option_version': (): io.flow.fulfillment.v0.models.DeliveryOptionVersion => ({
|
|
1243
|
+
id: factories.string(),
|
|
1244
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1245
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1246
|
+
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
1247
|
+
}),
|
|
1248
|
+
|
|
1249
|
+
'io.flow.fulfillment.v0.models.delivery_summary': (): io.flow.fulfillment.v0.models.DeliverySummary => ({
|
|
1250
|
+
id: factories.string(),
|
|
1251
|
+
items: arrayOf(() => factories['io.flow.common.v0.models.line_item_form']()),
|
|
1252
|
+
}),
|
|
1253
|
+
|
|
1254
|
+
'io.flow.fulfillment.v0.models.delivery_version': (): io.flow.fulfillment.v0.models.DeliveryVersion => ({
|
|
1255
|
+
id: factories.string(),
|
|
1256
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1257
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1258
|
+
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
1259
|
+
}),
|
|
1260
|
+
|
|
1261
|
+
'io.flow.fulfillment.v0.models.delivery_window': (): io.flow.fulfillment.v0.models.DeliveryWindow => ({
|
|
1262
|
+
from: factories.date_time_iso_8601(),
|
|
1263
|
+
to: factories.date_time_iso_8601(),
|
|
1264
|
+
timezone: factories.string(),
|
|
1265
|
+
label: factories.string(),
|
|
1266
|
+
min_days: factories.long(),
|
|
1267
|
+
max_days: factories.long(),
|
|
1268
|
+
}),
|
|
1269
|
+
|
|
1270
|
+
'io.flow.fulfillment.v0.models.delivery_window_component': (): io.flow.fulfillment.v0.models.DeliveryWindowComponent => ({
|
|
1271
|
+
from: factories.date_time_iso_8601(),
|
|
1272
|
+
to: factories.date_time_iso_8601(),
|
|
1273
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1274
|
+
}),
|
|
1275
|
+
|
|
1276
|
+
'io.flow.fulfillment.v0.models.delivery_window_components': (): io.flow.fulfillment.v0.models.DeliveryWindowComponents => ({
|
|
1277
|
+
shipment_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1278
|
+
transit_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1279
|
+
}),
|
|
1280
|
+
|
|
1281
|
+
'io.flow.fulfillment.v0.models.delivery_window_components_v2': (): io.flow.fulfillment.v0.models.DeliveryWindowComponentsV2 => ({
|
|
1282
|
+
processing_estimates: arrayOf(() => factories['io.flow.fulfillment.v0.models.processing_estimate']()),
|
|
1283
|
+
transit_estimates: arrayOf(() => factories['io.flow.fulfillment.v0.models.transit_estimate']()),
|
|
1284
|
+
}),
|
|
1285
|
+
|
|
1286
|
+
'io.flow.fulfillment.v0.models.delivery_window_summary': (): io.flow.fulfillment.v0.models.DeliveryWindowSummary => ({
|
|
1287
|
+
country: factories.string(),
|
|
1288
|
+
delivery_window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1289
|
+
}),
|
|
1290
|
+
|
|
1291
|
+
'io.flow.fulfillment.v0.models.digital_delivery': (): io.flow.fulfillment.v0.models.DigitalDelivery => ({
|
|
1292
|
+
discriminator: 'digital_delivery',
|
|
1293
|
+
id: factories.string(),
|
|
1294
|
+
key: factories.string(),
|
|
1295
|
+
items: arrayOf(() => factories['io.flow.fulfillment.v0.models.delivery_item']()),
|
|
1296
|
+
prices: arrayOf(() => factories['io.flow.order.price.v0.models.order_price_detail']()),
|
|
1297
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1298
|
+
}),
|
|
1299
|
+
|
|
1300
|
+
'io.flow.fulfillment.v0.models.estimated_window': (): io.flow.fulfillment.v0.models.EstimatedWindow => ({
|
|
1301
|
+
from: factories.long(),
|
|
1302
|
+
to: factories.long(),
|
|
1303
|
+
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1304
|
+
}),
|
|
1305
|
+
|
|
1306
|
+
'io.flow.fulfillment.v0.models.flat_rate': (): io.flow.fulfillment.v0.models.FlatRate => ({
|
|
1307
|
+
discriminator: 'flat_rate',
|
|
1308
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1309
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1310
|
+
}),
|
|
1311
|
+
|
|
1312
|
+
'io.flow.fulfillment.v0.models.flat_rate_form': (): io.flow.fulfillment.v0.models.FlatRateForm => ({
|
|
1313
|
+
discriminator: 'flat_rate_form',
|
|
1314
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
1315
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1316
|
+
}),
|
|
1317
|
+
|
|
1318
|
+
'io.flow.fulfillment.v0.models.fulfillment_experience_reference': (): io.flow.fulfillment.v0.models.FulfillmentExperienceReference => ({
|
|
1319
|
+
id: factories.string(),
|
|
1320
|
+
currency: factories.string(),
|
|
1321
|
+
}),
|
|
1322
|
+
|
|
1323
|
+
'io.flow.fulfillment.v0.models.inbound_carton_fee': (): io.flow.fulfillment.v0.models.InboundCartonFee => ({
|
|
1324
|
+
discriminator: 'inbound_carton_fee',
|
|
1325
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1326
|
+
}),
|
|
1327
|
+
|
|
1328
|
+
'io.flow.fulfillment.v0.models.item_shipping_pricing': (): io.flow.fulfillment.v0.models.ItemShippingPricing => ({
|
|
1329
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
1330
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
1331
|
+
}),
|
|
1332
|
+
|
|
1333
|
+
'io.flow.fulfillment.v0.models.number_range': (): io.flow.fulfillment.v0.models.NumberRange => ({
|
|
1334
|
+
min: factories.long(),
|
|
1335
|
+
max: factories.long(),
|
|
1336
|
+
}),
|
|
1337
|
+
|
|
1338
|
+
'io.flow.fulfillment.v0.models.option_weight_estimates': (): io.flow.fulfillment.v0.models.OptionWeightEstimates => ({
|
|
1339
|
+
gravitational: factories['io.flow.common.v0.models.measurement'](),
|
|
1340
|
+
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
1341
|
+
}),
|
|
1342
|
+
|
|
1343
|
+
'io.flow.fulfillment.v0.models.outbound_carton_fee': (): io.flow.fulfillment.v0.models.OutboundCartonFee => ({
|
|
1344
|
+
discriminator: 'outbound_carton_fee',
|
|
1345
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1346
|
+
}),
|
|
1347
|
+
|
|
1348
|
+
'io.flow.fulfillment.v0.models.packaging': (): io.flow.fulfillment.v0.models.Packaging => ({
|
|
1349
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
1350
|
+
name: factories.string(),
|
|
1351
|
+
number: factories.string(),
|
|
1352
|
+
}),
|
|
1353
|
+
|
|
1354
|
+
'io.flow.fulfillment.v0.models.partner_center': (): io.flow.fulfillment.v0.models.PartnerCenter => ({
|
|
1355
|
+
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
1356
|
+
number: factories.string(),
|
|
1357
|
+
fees: arrayOf(() => factories['io.flow.fulfillment.v0.unions.partner_center_fee']()),
|
|
1358
|
+
}),
|
|
1359
|
+
|
|
1360
|
+
'io.flow.fulfillment.v0.models.partner_center_form': (): io.flow.fulfillment.v0.models.PartnerCenterForm => ({
|
|
1361
|
+
partner_id: factories.string(),
|
|
1362
|
+
number: factories.string(),
|
|
1363
|
+
fees: arrayOf(() => factories['io.flow.fulfillment.v0.unions.partner_center_fee']()),
|
|
1364
|
+
}),
|
|
1365
|
+
|
|
1366
|
+
'io.flow.fulfillment.v0.models.percent_margin': (): io.flow.fulfillment.v0.models.PercentMargin => ({
|
|
1367
|
+
discriminator: 'percent_margin',
|
|
1368
|
+
percentage: factories.double(),
|
|
1369
|
+
}),
|
|
1370
|
+
|
|
1371
|
+
'io.flow.fulfillment.v0.models.physical_delivery': (): io.flow.fulfillment.v0.models.PhysicalDelivery => ({
|
|
1372
|
+
discriminator: 'physical_delivery',
|
|
1373
|
+
id: factories.string(),
|
|
1374
|
+
key: factories.string(),
|
|
1375
|
+
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
1376
|
+
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
1377
|
+
ship_from_country: factories.string(),
|
|
1378
|
+
items: arrayOf(() => factories['io.flow.fulfillment.v0.models.delivery_item']()),
|
|
1379
|
+
options: arrayOf(() => factories['io.flow.fulfillment.v0.models.delivery_option']()),
|
|
1380
|
+
|
|
1381
|
+
special_services: arrayOf(
|
|
1382
|
+
() => factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](),
|
|
1383
|
+
),
|
|
1384
|
+
|
|
1385
|
+
prices: arrayOf(() => factories['io.flow.order.price.v0.models.order_price_detail']()),
|
|
1386
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1387
|
+
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
1388
|
+
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
1389
|
+
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
1390
|
+
}),
|
|
1391
|
+
|
|
1392
|
+
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': (): io.flow.fulfillment.v0.models.PhysicalDeliveryPreferredService => ({
|
|
1393
|
+
id: factories.string(),
|
|
1394
|
+
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
1395
|
+
}),
|
|
1396
|
+
|
|
1397
|
+
'io.flow.fulfillment.v0.models.price_with_base_and_details': (): io.flow.fulfillment.v0.models.PriceWithBaseAndDetails => ({
|
|
1398
|
+
currency: factories.string(),
|
|
1399
|
+
amount: factories.double(),
|
|
1400
|
+
label: factories.string(),
|
|
1401
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1402
|
+
|
|
1403
|
+
details: arrayOf(
|
|
1404
|
+
() => factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](),
|
|
1405
|
+
),
|
|
1406
|
+
}),
|
|
1407
|
+
|
|
1408
|
+
'io.flow.fulfillment.v0.models.processing_estimate': (): io.flow.fulfillment.v0.models.ProcessingEstimate => ({
|
|
1409
|
+
location: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1410
|
+
min_date: factories.date_time_iso_8601(),
|
|
1411
|
+
max_date: factories.date_time_iso_8601(),
|
|
1412
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1413
|
+
}),
|
|
1414
|
+
|
|
1415
|
+
'io.flow.fulfillment.v0.models.quote': (): io.flow.fulfillment.v0.models.Quote => ({
|
|
1416
|
+
id: factories.string(),
|
|
1417
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1418
|
+
deliveries: arrayOf(() => factories['io.flow.fulfillment.v0.unions.delivery']()),
|
|
1419
|
+
|
|
1420
|
+
selections: arrayOf(
|
|
1421
|
+
() => factories['io.flow.fulfillment.v0.models.delivery_option_reference'](),
|
|
1422
|
+
),
|
|
1423
|
+
|
|
1424
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1425
|
+
delivered_duties: arrayOf(() => factories['io.flow.common.v0.enums.delivered_duty']()),
|
|
1426
|
+
}),
|
|
1427
|
+
|
|
1428
|
+
'io.flow.fulfillment.v0.models.quote_error': (): io.flow.fulfillment.v0.models.QuoteError => ({
|
|
1429
|
+
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
1430
|
+
messages: arrayOf(() => factories.string()),
|
|
1431
|
+
item_numbers: arrayOf(() => factories.string()),
|
|
1432
|
+
}),
|
|
1433
|
+
|
|
1434
|
+
'io.flow.fulfillment.v0.models.quote_form': (): io.flow.fulfillment.v0.models.QuoteForm => ({
|
|
1435
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1436
|
+
experience: factories.string(),
|
|
1437
|
+
items: arrayOf(() => factories['io.flow.fulfillment.v0.models.quote_line_item_form']()),
|
|
1438
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1439
|
+
delivered_duties: arrayOf(() => factories['io.flow.common.v0.enums.delivered_duty']()),
|
|
1440
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1441
|
+
}),
|
|
1442
|
+
|
|
1443
|
+
'io.flow.fulfillment.v0.models.quote_line_item_form': (): io.flow.fulfillment.v0.models.QuoteLineItemForm => ({
|
|
1444
|
+
number: factories.string(),
|
|
1445
|
+
quantity: factories.long(),
|
|
1446
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1447
|
+
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1448
|
+
attributes: objectOf(() => factories.string()),
|
|
1449
|
+
center: factories.string(),
|
|
1450
|
+
}),
|
|
1451
|
+
|
|
1452
|
+
'io.flow.fulfillment.v0.models.quote_summary': (): io.flow.fulfillment.v0.models.QuoteSummary => ({
|
|
1453
|
+
id: factories.string(),
|
|
1454
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1455
|
+
}),
|
|
1456
|
+
|
|
1457
|
+
'io.flow.fulfillment.v0.models.quote_version': (): io.flow.fulfillment.v0.models.QuoteVersion => ({
|
|
1458
|
+
id: factories.string(),
|
|
1459
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1460
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1461
|
+
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
1462
|
+
}),
|
|
1463
|
+
|
|
1464
|
+
'io.flow.fulfillment.v0.models.scheduled_pickup': (): io.flow.fulfillment.v0.models.ScheduledPickup => ({
|
|
1465
|
+
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
1466
|
+
hour_of_day: factories.string(),
|
|
1467
|
+
minute_of_hour: factories.string(),
|
|
1468
|
+
}),
|
|
1469
|
+
|
|
1470
|
+
'io.flow.fulfillment.v0.models.service_reference': (): io.flow.fulfillment.v0.models.ServiceReference => ({
|
|
1471
|
+
id: factories.string(),
|
|
1472
|
+
}),
|
|
1473
|
+
|
|
1474
|
+
'io.flow.fulfillment.v0.models.service_summary': (): io.flow.fulfillment.v0.models.ServiceSummary => ({
|
|
1475
|
+
discriminator: 'service_summary',
|
|
1476
|
+
id: factories.string(),
|
|
1477
|
+
carrier: factories['io.flow.fulfillment.v0.models.carrier_reference'](),
|
|
1478
|
+
name: factories.string(),
|
|
1479
|
+
center_code: factories.string(),
|
|
1480
|
+
}),
|
|
1481
|
+
|
|
1482
|
+
'io.flow.fulfillment.v0.models.service_unknown': (): io.flow.fulfillment.v0.models.ServiceUnknown => ({
|
|
1483
|
+
discriminator: 'service_unknown',
|
|
1484
|
+
name: factories.string(),
|
|
1485
|
+
}),
|
|
1486
|
+
|
|
1487
|
+
'io.flow.fulfillment.v0.models.shipping_address': (): io.flow.fulfillment.v0.models.ShippingAddress => ({
|
|
1488
|
+
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1489
|
+
location: factories['io.flow.common.v0.models.address'](),
|
|
1490
|
+
center_key: factories.string(),
|
|
1491
|
+
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
1492
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1493
|
+
}),
|
|
1494
|
+
|
|
1495
|
+
'io.flow.fulfillment.v0.models.shipping_configuration': (): io.flow.fulfillment.v0.models.ShippingConfiguration => ({
|
|
1496
|
+
id: factories.string(),
|
|
1497
|
+
name: factories.string(),
|
|
1498
|
+
key: factories.string(),
|
|
1499
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1500
|
+
shipping_lanes: arrayOf(() => factories['io.flow.fulfillment.v0.models.shipping_lane']()),
|
|
1501
|
+
}),
|
|
1502
|
+
|
|
1503
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy': (): io.flow.fulfillment.v0.models.ShippingConfigurationCopy => ({
|
|
1504
|
+
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1505
|
+
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1506
|
+
}),
|
|
1507
|
+
|
|
1508
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': (): io.flow.fulfillment.v0.models.ShippingConfigurationCopyForm => ({
|
|
1509
|
+
name: factories.string(),
|
|
1510
|
+
}),
|
|
1511
|
+
|
|
1512
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_form': (): io.flow.fulfillment.v0.models.ShippingConfigurationForm => ({
|
|
1513
|
+
name: factories.string(),
|
|
1514
|
+
}),
|
|
1515
|
+
|
|
1516
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': (): io.flow.fulfillment.v0.models.ShippingConfigurationItemAvailability => ({
|
|
1517
|
+
id: factories.string(),
|
|
1518
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1519
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1520
|
+
availabilities: arrayOf(() => factories['io.flow.fulfillment.v0.models.country_availability']()),
|
|
1521
|
+
}),
|
|
1522
|
+
|
|
1523
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': (): io.flow.fulfillment.v0.models.ShippingConfigurationItemShippingPricing => ({
|
|
1524
|
+
id: factories.string(),
|
|
1525
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1526
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1527
|
+
|
|
1528
|
+
country_shipping_pricings: arrayOf(
|
|
1529
|
+
() => factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](),
|
|
1530
|
+
),
|
|
1531
|
+
}),
|
|
1532
|
+
|
|
1533
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_reference': (): io.flow.fulfillment.v0.models.ShippingConfigurationReference => ({
|
|
1534
|
+
key: factories.string(),
|
|
1535
|
+
}),
|
|
1536
|
+
|
|
1537
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_summary': (): io.flow.fulfillment.v0.models.ShippingConfigurationSummary => ({
|
|
1538
|
+
id: factories.string(),
|
|
1539
|
+
name: factories.string(),
|
|
1540
|
+
key: factories.string(),
|
|
1541
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1542
|
+
}),
|
|
1543
|
+
|
|
1544
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_version': (): io.flow.fulfillment.v0.models.ShippingConfigurationVersion => ({
|
|
1545
|
+
id: factories.string(),
|
|
1546
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1547
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1548
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
1549
|
+
}),
|
|
1550
|
+
|
|
1551
|
+
'io.flow.fulfillment.v0.models.shipping_lane': (): io.flow.fulfillment.v0.models.ShippingLane => ({
|
|
1552
|
+
id: factories.string(),
|
|
1553
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1554
|
+
region: factories.string(),
|
|
1555
|
+
centers: arrayOf(() => factories['io.flow.fulfillment.v0.unions.expandable_center']()),
|
|
1556
|
+
tiers: arrayOf(() => factories['io.flow.fulfillment.v0.models.tier']()),
|
|
1557
|
+
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
1558
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1559
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1560
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1561
|
+
}),
|
|
1562
|
+
|
|
1563
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': (): io.flow.fulfillment.v0.models.ShippingLaneDefaultTier => ({
|
|
1564
|
+
id: factories.string(),
|
|
1565
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1566
|
+
}),
|
|
1567
|
+
|
|
1568
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': (): io.flow.fulfillment.v0.models.ShippingLaneDefaultTierForm => ({
|
|
1569
|
+
tier_id: factories.string(),
|
|
1570
|
+
}),
|
|
1571
|
+
|
|
1572
|
+
'io.flow.fulfillment.v0.models.shipping_lane_form': (): io.flow.fulfillment.v0.models.ShippingLaneForm => ({
|
|
1573
|
+
from: factories.string(),
|
|
1574
|
+
to: factories.string(),
|
|
1575
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1576
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1577
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1578
|
+
}),
|
|
1579
|
+
|
|
1580
|
+
'io.flow.fulfillment.v0.models.shipping_lane_summary': (): io.flow.fulfillment.v0.models.ShippingLaneSummary => ({
|
|
1581
|
+
shipping_lane_id: factories.string(),
|
|
1582
|
+
region: factories.string(),
|
|
1583
|
+
centers: arrayOf(() => factories['io.flow.fulfillment.v0.unions.expandable_center']()),
|
|
1584
|
+
}),
|
|
1585
|
+
|
|
1586
|
+
'io.flow.fulfillment.v0.models.shipping_lane_version': (): io.flow.fulfillment.v0.models.ShippingLaneVersion => ({
|
|
1587
|
+
id: factories.string(),
|
|
1588
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1589
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1590
|
+
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
1591
|
+
}),
|
|
1592
|
+
|
|
1593
|
+
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': (): io.flow.fulfillment.v0.models.SurchargeResponsiblePartyDisplay => ({
|
|
1594
|
+
name: factories.string(),
|
|
1595
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1596
|
+
}),
|
|
1597
|
+
|
|
1598
|
+
'io.flow.fulfillment.v0.models.surcharge_setting': (): io.flow.fulfillment.v0.models.SurchargeSetting => ({
|
|
1599
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1600
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1601
|
+
}),
|
|
1602
|
+
|
|
1603
|
+
'io.flow.fulfillment.v0.models.surcharge_setting_display': (): io.flow.fulfillment.v0.models.SurchargeSettingDisplay => ({
|
|
1604
|
+
name: factories.string(),
|
|
1605
|
+
description: factories.string(),
|
|
1606
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1607
|
+
|
|
1608
|
+
available: arrayOf(
|
|
1609
|
+
() => factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](),
|
|
1610
|
+
),
|
|
1611
|
+
}),
|
|
1612
|
+
|
|
1613
|
+
'io.flow.fulfillment.v0.models.tier': (): io.flow.fulfillment.v0.models.Tier => ({
|
|
1614
|
+
id: factories.string(),
|
|
1615
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1616
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1617
|
+
name: factories.string(),
|
|
1618
|
+
message: factories.string(),
|
|
1619
|
+
rules: arrayOf(() => factories['io.flow.fulfillment.v0.models.tier_rule']()),
|
|
1620
|
+
services: arrayOf(() => factories['io.flow.reference.v0.models.carrier_service']()),
|
|
1621
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1622
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1623
|
+
currency: factories.string(),
|
|
1624
|
+
description: factories.string(),
|
|
1625
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1626
|
+
shipping_lane: factories.string(),
|
|
1627
|
+
surcharge_settings: arrayOf(() => factories['io.flow.fulfillment.v0.models.surcharge_setting']()),
|
|
1628
|
+
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
1629
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1630
|
+
}),
|
|
1631
|
+
|
|
1632
|
+
'io.flow.fulfillment.v0.models.tier_display': (): io.flow.fulfillment.v0.models.TierDisplay => ({
|
|
1633
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1634
|
+
}),
|
|
1635
|
+
|
|
1636
|
+
'io.flow.fulfillment.v0.models.tier_display_form': (): io.flow.fulfillment.v0.models.TierDisplayForm => ({
|
|
1637
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1638
|
+
}),
|
|
1639
|
+
|
|
1640
|
+
'io.flow.fulfillment.v0.models.tier_estimate': (): io.flow.fulfillment.v0.models.TierEstimate => ({
|
|
1641
|
+
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
1642
|
+
label: factories.string(),
|
|
1643
|
+
}),
|
|
1644
|
+
|
|
1645
|
+
'io.flow.fulfillment.v0.models.tier_form': (): io.flow.fulfillment.v0.models.TierForm => ({
|
|
1646
|
+
currency: factories.string(),
|
|
1647
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1648
|
+
name: factories.string(),
|
|
1649
|
+
message: factories.string(),
|
|
1650
|
+
rules: arrayOf(() => factories['io.flow.fulfillment.v0.models.tier_rule_form']()),
|
|
1651
|
+
services: arrayOf(() => factories.string()),
|
|
1652
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1653
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1654
|
+
description: factories.string(),
|
|
1655
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1656
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
1657
|
+
shipping_lane: factories.string(),
|
|
1658
|
+
surcharge_settings: arrayOf(() => factories['io.flow.fulfillment.v0.models.surcharge_setting']()),
|
|
1659
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1660
|
+
}),
|
|
1661
|
+
|
|
1662
|
+
'io.flow.fulfillment.v0.models.tier_reference': (): io.flow.fulfillment.v0.models.TierReference => ({
|
|
1663
|
+
id: factories.string(),
|
|
1664
|
+
}),
|
|
1665
|
+
|
|
1666
|
+
'io.flow.fulfillment.v0.models.tier_rule': (): io.flow.fulfillment.v0.models.TierRule => ({
|
|
1667
|
+
id: factories.string(),
|
|
1668
|
+
position: factories.long(),
|
|
1669
|
+
query: factories.string(),
|
|
1670
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1671
|
+
}),
|
|
1672
|
+
|
|
1673
|
+
'io.flow.fulfillment.v0.models.tier_rule_form': (): io.flow.fulfillment.v0.models.TierRuleForm => ({
|
|
1674
|
+
position: factories.long(),
|
|
1675
|
+
query: factories.string(),
|
|
1676
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
1677
|
+
}),
|
|
1678
|
+
|
|
1679
|
+
'io.flow.fulfillment.v0.models.tier_rule_version': (): io.flow.fulfillment.v0.models.TierRuleVersion => ({
|
|
1680
|
+
id: factories.string(),
|
|
1681
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1682
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1683
|
+
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
1684
|
+
}),
|
|
1685
|
+
|
|
1686
|
+
'io.flow.fulfillment.v0.models.tier_settings': (): io.flow.fulfillment.v0.models.TierSettings => ({
|
|
1687
|
+
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
1688
|
+
}),
|
|
1689
|
+
|
|
1690
|
+
'io.flow.fulfillment.v0.models.tier_summary': (): io.flow.fulfillment.v0.models.TierSummary => ({
|
|
1691
|
+
id: factories.string(),
|
|
1692
|
+
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
1693
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1694
|
+
name: factories.string(),
|
|
1695
|
+
services: arrayOf(() => factories.string()),
|
|
1696
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1697
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1698
|
+
currency: factories.string(),
|
|
1699
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1700
|
+
message: factories.string(),
|
|
1701
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1702
|
+
}),
|
|
1703
|
+
|
|
1704
|
+
'io.flow.fulfillment.v0.models.tier_version': (): io.flow.fulfillment.v0.models.TierVersion => ({
|
|
1705
|
+
id: factories.string(),
|
|
1706
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1707
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1708
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1709
|
+
}),
|
|
1710
|
+
|
|
1711
|
+
'io.flow.fulfillment.v0.models.transit_estimate': (): io.flow.fulfillment.v0.models.TransitEstimate => ({
|
|
1712
|
+
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1713
|
+
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1714
|
+
min_date: factories.date_time_iso_8601(),
|
|
1715
|
+
max_date: factories.date_time_iso_8601(),
|
|
1716
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1717
|
+
}),
|
|
1718
|
+
|
|
1719
|
+
'io.flow.fulfillment.v0.unions.delivery': (): io.flow.fulfillment.v0.unions.Delivery => {
|
|
1720
|
+
const f = faker.helpers.arrayElement([
|
|
1721
|
+
() => factories['io.flow.fulfillment.v0.models.digital_delivery'](),
|
|
1722
|
+
() => factories['io.flow.fulfillment.v0.models.physical_delivery'](),
|
|
1723
|
+
]);
|
|
1724
|
+
|
|
1725
|
+
return f();
|
|
1726
|
+
},
|
|
1727
|
+
|
|
1728
|
+
'io.flow.fulfillment.v0.unions.expandable_center': (): io.flow.fulfillment.v0.unions.ExpandableCenter => {
|
|
1729
|
+
const f = faker.helpers.arrayElement([
|
|
1730
|
+
() => factories['io.flow.fulfillment.v0.models.center'](),
|
|
1731
|
+
() => factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
1732
|
+
]);
|
|
1733
|
+
|
|
1734
|
+
return f();
|
|
1735
|
+
},
|
|
1736
|
+
|
|
1737
|
+
'io.flow.fulfillment.v0.unions.partner_center_fee': (): io.flow.fulfillment.v0.unions.PartnerCenterFee => {
|
|
1738
|
+
const f = faker.helpers.arrayElement([
|
|
1739
|
+
() => factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](),
|
|
1740
|
+
() => factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](),
|
|
1741
|
+
() => factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](),
|
|
1742
|
+
]);
|
|
1743
|
+
|
|
1744
|
+
return f();
|
|
1745
|
+
},
|
|
1746
|
+
|
|
1747
|
+
'io.flow.fulfillment.v0.unions.service_description': (): io.flow.fulfillment.v0.unions.ServiceDescription => {
|
|
1748
|
+
const f = faker.helpers.arrayElement([
|
|
1749
|
+
() => factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1750
|
+
() => factories['io.flow.fulfillment.v0.models.service_unknown'](),
|
|
1751
|
+
]);
|
|
1752
|
+
|
|
1753
|
+
return f();
|
|
1754
|
+
},
|
|
1755
|
+
|
|
1756
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome': (): io.flow.fulfillment.v0.unions.TierRuleOutcome => {
|
|
1757
|
+
const f = faker.helpers.arrayElement([
|
|
1758
|
+
() => factories['io.flow.fulfillment.v0.models.amount_margin'](),
|
|
1759
|
+
() => factories['io.flow.fulfillment.v0.models.at_cost'](),
|
|
1760
|
+
() => factories['io.flow.fulfillment.v0.models.flat_rate'](),
|
|
1761
|
+
() => factories['io.flow.fulfillment.v0.models.percent_margin'](),
|
|
1762
|
+
]);
|
|
1763
|
+
|
|
1764
|
+
return f();
|
|
1765
|
+
},
|
|
1766
|
+
|
|
1767
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': (): io.flow.fulfillment.v0.unions.TierRuleOutcomeForm => {
|
|
1768
|
+
const f = faker.helpers.arrayElement([
|
|
1769
|
+
() => factories['io.flow.fulfillment.v0.models.amount_margin_form'](),
|
|
1770
|
+
() => factories['io.flow.fulfillment.v0.models.flat_rate_form'](),
|
|
1771
|
+
() => factories['io.flow.fulfillment.v0.models.at_cost'](),
|
|
1772
|
+
() => factories['io.flow.fulfillment.v0.models.percent_margin'](),
|
|
1773
|
+
]);
|
|
1774
|
+
|
|
1775
|
+
return f();
|
|
1776
|
+
},
|
|
1777
|
+
|
|
1778
|
+
'io.flow.google.pay.v0.enums.auth_method': (): io.flow.google.pay.v0.enums.AuthMethod => faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']),
|
|
1779
|
+
'io.flow.google.pay.v0.enums.billing_address_format': (): io.flow.google.pay.v0.enums.BillingAddressFormat => faker.helpers.arrayElement(['MIN', 'FULL']),
|
|
1780
|
+
'io.flow.google.pay.v0.enums.card_gateway': (): io.flow.google.pay.v0.enums.CardGateway => faker.helpers.arrayElement(['adyen', 'stripe']),
|
|
1781
|
+
'io.flow.google.pay.v0.enums.card_network': (): io.flow.google.pay.v0.enums.CardNetwork => faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']),
|
|
1782
|
+
'io.flow.google.pay.v0.enums.payment_method_type': (): io.flow.google.pay.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['CARD']),
|
|
1783
|
+
'io.flow.google.pay.v0.enums.tokenization_type': (): io.flow.google.pay.v0.enums.TokenizationType => faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']),
|
|
1784
|
+
'io.flow.google.pay.v0.enums.total_price_status': (): io.flow.google.pay.v0.enums.TotalPriceStatus => faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']),
|
|
1785
|
+
|
|
1786
|
+
'io.flow.google.pay.v0.models.address': (): io.flow.google.pay.v0.models.Address => ({
|
|
1787
|
+
name: factories.string(),
|
|
1788
|
+
postalCode: factories.string(),
|
|
1789
|
+
countryCode: factories.string(),
|
|
1790
|
+
phoneNumber: factories.string(),
|
|
1791
|
+
companyName: factories.string(),
|
|
1792
|
+
address1: factories.string(),
|
|
1793
|
+
address2: factories.string(),
|
|
1794
|
+
address3: factories.string(),
|
|
1795
|
+
locality: factories.string(),
|
|
1796
|
+
administrativeArea: factories.string(),
|
|
1797
|
+
sortingCode: factories.string(),
|
|
1798
|
+
}),
|
|
1799
|
+
|
|
1800
|
+
'io.flow.google.pay.v0.models.billing_address_parameters': (): io.flow.google.pay.v0.models.BillingAddressParameters => ({
|
|
1801
|
+
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
1802
|
+
phoneNumberRequired: factories.boolean(),
|
|
1803
|
+
}),
|
|
1804
|
+
|
|
1805
|
+
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': (): io.flow.google.pay.v0.models.CardAdyenTokenizationParameters => ({
|
|
1806
|
+
gateway: factories.string(),
|
|
1807
|
+
gatewayMerchantId: factories.string(),
|
|
1808
|
+
}),
|
|
1809
|
+
|
|
1810
|
+
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': (): io.flow.google.pay.v0.models.CardDirectTokenizationParameters => ({
|
|
1811
|
+
protocolVersion: factories.string(),
|
|
1812
|
+
publicKey: factories.string(),
|
|
1813
|
+
}),
|
|
1814
|
+
|
|
1815
|
+
'io.flow.google.pay.v0.models.card_payment_method_data_info': (): io.flow.google.pay.v0.models.CardPaymentMethodDataInfo => ({
|
|
1816
|
+
cardDetails: factories.string(),
|
|
1817
|
+
cardNetwork: factories.string(),
|
|
1818
|
+
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
1819
|
+
}),
|
|
1820
|
+
|
|
1821
|
+
'io.flow.google.pay.v0.models.card_payment_method_parameters': (): io.flow.google.pay.v0.models.CardPaymentMethodParameters => ({
|
|
1822
|
+
allowedAuthMethods: arrayOf(() => factories['io.flow.google.pay.v0.enums.auth_method']()),
|
|
1823
|
+
allowedCardNetworks: arrayOf(() => factories['io.flow.google.pay.v0.enums.card_network']()),
|
|
1824
|
+
billingAddressRequired: factories.boolean(),
|
|
1825
|
+
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
1826
|
+
}),
|
|
1827
|
+
|
|
1828
|
+
'io.flow.google.pay.v0.models.direct_payment_method_token': (): io.flow.google.pay.v0.models.DirectPaymentMethodToken => ({
|
|
1829
|
+
discriminator: 'direct_payment_method_token',
|
|
1830
|
+
protocolVersion: factories.string(),
|
|
1831
|
+
signature: factories.string(),
|
|
1832
|
+
signedMessage: factories.string(),
|
|
1833
|
+
}),
|
|
1834
|
+
|
|
1835
|
+
'io.flow.google.pay.v0.models.encrypted_message': (): io.flow.google.pay.v0.models.EncryptedMessage => ({
|
|
1836
|
+
messageExpiration: factories.string(),
|
|
1837
|
+
messageId: factories.string(),
|
|
1838
|
+
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
1839
|
+
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
1840
|
+
}),
|
|
1841
|
+
|
|
1842
|
+
'io.flow.google.pay.v0.models.merchant_info': (): io.flow.google.pay.v0.models.MerchantInfo => ({
|
|
1843
|
+
merchantId: factories.string(),
|
|
1844
|
+
merchantName: factories.string(),
|
|
1845
|
+
authJwt: factories.string(),
|
|
1846
|
+
}),
|
|
1847
|
+
|
|
1848
|
+
'io.flow.google.pay.v0.models.payment_data': (): io.flow.google.pay.v0.models.PaymentData => ({
|
|
1849
|
+
apiVersion: factories.integer(),
|
|
1850
|
+
apiVersionMinor: factories.integer(),
|
|
1851
|
+
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
1852
|
+
email: factories.string(),
|
|
1853
|
+
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
1854
|
+
}),
|
|
1855
|
+
|
|
1856
|
+
'io.flow.google.pay.v0.models.payment_data_request': (): io.flow.google.pay.v0.models.PaymentDataRequest => ({
|
|
1857
|
+
apiVersion: factories.integer(),
|
|
1858
|
+
apiVersionMinor: factories.integer(),
|
|
1859
|
+
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
1860
|
+
allowedPaymentMethods: arrayOf(() => factories['io.flow.google.pay.v0.models.payment_method']()),
|
|
1861
|
+
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
1862
|
+
emailRequired: factories.boolean(),
|
|
1863
|
+
shippingAddressRequired: factories.boolean(),
|
|
1864
|
+
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
1865
|
+
}),
|
|
1866
|
+
|
|
1867
|
+
'io.flow.google.pay.v0.models.payment_method': (): io.flow.google.pay.v0.models.PaymentMethod => ({
|
|
1868
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1869
|
+
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
1870
|
+
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
1871
|
+
}),
|
|
1872
|
+
|
|
1873
|
+
'io.flow.google.pay.v0.models.payment_method_data': (): io.flow.google.pay.v0.models.PaymentMethodData => ({
|
|
1874
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1875
|
+
description: factories.string(),
|
|
1876
|
+
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
1877
|
+
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
1878
|
+
}),
|
|
1879
|
+
|
|
1880
|
+
'io.flow.google.pay.v0.models.payment_method_details': (): io.flow.google.pay.v0.models.PaymentMethodDetails => ({
|
|
1881
|
+
pan: factories.string(),
|
|
1882
|
+
expirationMonth: factories.integer(),
|
|
1883
|
+
expirationYear: factories.integer(),
|
|
1884
|
+
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
1885
|
+
cryptogram: factories.string(),
|
|
1886
|
+
eciIndicator: factories.string(),
|
|
1887
|
+
}),
|
|
1888
|
+
|
|
1889
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_data': (): io.flow.google.pay.v0.models.PaymentMethodTokenizationData => ({
|
|
1890
|
+
type: factories.string(),
|
|
1891
|
+
token: factories.string(),
|
|
1892
|
+
}),
|
|
1893
|
+
|
|
1894
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': (): io.flow.google.pay.v0.models.PaymentMethodTokenizationSpecification => ({
|
|
1895
|
+
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
1896
|
+
parameters: factories.object(),
|
|
1897
|
+
}),
|
|
1898
|
+
|
|
1899
|
+
'io.flow.google.pay.v0.models.shipping_address_parameters': (): io.flow.google.pay.v0.models.ShippingAddressParameters => ({
|
|
1900
|
+
allowedCountryCodes: arrayOf(() => factories.string()),
|
|
1901
|
+
}),
|
|
1902
|
+
|
|
1903
|
+
'io.flow.google.pay.v0.models.signed_message': (): io.flow.google.pay.v0.models.SignedMessage => ({
|
|
1904
|
+
encryptedMessage: factories.string(),
|
|
1905
|
+
ephemeralPublicKey: factories.string(),
|
|
1906
|
+
tag: factories.string(),
|
|
1907
|
+
}),
|
|
1908
|
+
|
|
1909
|
+
'io.flow.google.pay.v0.models.stripe_payment_method_token': (): io.flow.google.pay.v0.models.StripePaymentMethodToken => ({
|
|
1910
|
+
discriminator: 'stripe_payment_method_token',
|
|
1911
|
+
token: factories['io.flow.stripe.v0.models.token'](),
|
|
1912
|
+
}),
|
|
1913
|
+
|
|
1914
|
+
'io.flow.google.pay.v0.models.transaction_info': (): io.flow.google.pay.v0.models.TransactionInfo => ({
|
|
1915
|
+
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
1916
|
+
totalPrice: factories.string(),
|
|
1917
|
+
currencyCode: factories.string(),
|
|
1918
|
+
}),
|
|
1919
|
+
|
|
1920
|
+
'io.flow.google.pay.v0.unions.payment_method_token': (): io.flow.google.pay.v0.unions.PaymentMethodToken => {
|
|
1921
|
+
const f = faker.helpers.arrayElement([
|
|
1922
|
+
() => factories['io.flow.google.pay.v0.models.direct_payment_method_token'](),
|
|
1923
|
+
() => factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](),
|
|
1924
|
+
]);
|
|
1925
|
+
|
|
1926
|
+
return f();
|
|
1927
|
+
},
|
|
1928
|
+
|
|
1929
|
+
'io.flow.inventory.v0.enums.aggregate': (): io.flow.inventory.v0.enums.Aggregate => faker.helpers.arrayElement(['maximum', 'minimum']),
|
|
1930
|
+
'io.flow.inventory.v0.enums.inventory_status': (): io.flow.inventory.v0.enums.InventoryStatus => faker.helpers.arrayElement(['has_inventory', 'no_inventory']),
|
|
1931
|
+
'io.flow.inventory.v0.enums.update_type': (): io.flow.inventory.v0.enums.UpdateType => faker.helpers.arrayElement(['change', 'set']),
|
|
1932
|
+
|
|
1933
|
+
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': (): io.flow.inventory.v0.models.ExternalApiTimeoutReservationError => ({
|
|
1934
|
+
code: 'external_api_timeout',
|
|
1935
|
+
messages: arrayOf(() => factories.string()),
|
|
1936
|
+
}),
|
|
1937
|
+
|
|
1938
|
+
'io.flow.inventory.v0.models.generic_reservation_error': (): io.flow.inventory.v0.models.GenericReservationError => ({
|
|
1939
|
+
code: 'generic_reservation_error',
|
|
1940
|
+
messages: arrayOf(() => factories.string()),
|
|
1941
|
+
}),
|
|
1942
|
+
|
|
1943
|
+
'io.flow.inventory.v0.models.inventory_backorder': (): io.flow.inventory.v0.models.InventoryBackorder => ({
|
|
1944
|
+
discriminator: 'inventory_backorder',
|
|
1945
|
+
quantity: factories.long(),
|
|
1946
|
+
}),
|
|
1947
|
+
|
|
1948
|
+
'io.flow.inventory.v0.models.inventory_center_reference': (): io.flow.inventory.v0.models.InventoryCenterReference => ({
|
|
1949
|
+
key: factories.string(),
|
|
1950
|
+
}),
|
|
1951
|
+
|
|
1952
|
+
'io.flow.inventory.v0.models.inventory_check_response': (): io.flow.inventory.v0.models.InventoryCheckResponse => ({
|
|
1953
|
+
items: arrayOf(
|
|
1954
|
+
() => factories['io.flow.inventory.v0.models.inventory_check_response_item'](),
|
|
1955
|
+
),
|
|
1956
|
+
}),
|
|
1957
|
+
|
|
1958
|
+
'io.flow.inventory.v0.models.inventory_check_response_item': (): io.flow.inventory.v0.models.InventoryCheckResponseItem => ({
|
|
1959
|
+
number: factories.string(),
|
|
1960
|
+
quantity: factories.long(),
|
|
1961
|
+
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
1962
|
+
}),
|
|
1963
|
+
|
|
1964
|
+
'io.flow.inventory.v0.models.inventory_experience_reference': (): io.flow.inventory.v0.models.InventoryExperienceReference => ({
|
|
1965
|
+
key: factories.string(),
|
|
1966
|
+
}),
|
|
1967
|
+
|
|
1968
|
+
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': (): io.flow.inventory.v0.models.InventoryFollowEcommercePlatform => ({
|
|
1969
|
+
discriminator: 'inventory_follow_ecommerce_platform',
|
|
1970
|
+
quantity: factories.long(),
|
|
1971
|
+
}),
|
|
1972
|
+
|
|
1973
|
+
'io.flow.inventory.v0.models.inventory_item_reference': (): io.flow.inventory.v0.models.InventoryItemReference => ({
|
|
1974
|
+
number: factories.string(),
|
|
1975
|
+
}),
|
|
1976
|
+
|
|
1977
|
+
'io.flow.inventory.v0.models.inventory_request': (): io.flow.inventory.v0.models.InventoryRequest => ({
|
|
1978
|
+
items: arrayOf(() => factories['io.flow.inventory.v0.models.inventory_request_item']()),
|
|
1979
|
+
}),
|
|
1980
|
+
|
|
1981
|
+
'io.flow.inventory.v0.models.inventory_request_item': (): io.flow.inventory.v0.models.InventoryRequestItem => ({
|
|
1982
|
+
number: factories.string(),
|
|
1983
|
+
quantity: factories.long(),
|
|
1984
|
+
}),
|
|
1985
|
+
|
|
1986
|
+
'io.flow.inventory.v0.models.inventory_rule': (): io.flow.inventory.v0.models.InventoryRule => ({
|
|
1987
|
+
id: factories.string(),
|
|
1988
|
+
position: factories.long(),
|
|
1989
|
+
query: factories.string(),
|
|
1990
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1991
|
+
}),
|
|
1992
|
+
|
|
1993
|
+
'io.flow.inventory.v0.models.inventory_rule_form': (): io.flow.inventory.v0.models.InventoryRuleForm => ({
|
|
1994
|
+
position: factories.long(),
|
|
1995
|
+
query: factories.string(),
|
|
1996
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1997
|
+
}),
|
|
1998
|
+
|
|
1999
|
+
'io.flow.inventory.v0.models.inventory_rule_version': (): io.flow.inventory.v0.models.InventoryRuleVersion => ({
|
|
2000
|
+
id: factories.string(),
|
|
2001
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2002
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2003
|
+
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
2004
|
+
}),
|
|
2005
|
+
|
|
2006
|
+
'io.flow.inventory.v0.models.inventory_snapshot': (): io.flow.inventory.v0.models.InventorySnapshot => ({
|
|
2007
|
+
id: factories.string(),
|
|
2008
|
+
available: factories.long(),
|
|
2009
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
2010
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
2011
|
+
quantity: factories.long(),
|
|
2012
|
+
}),
|
|
2013
|
+
|
|
2014
|
+
'io.flow.inventory.v0.models.inventory_snapshot_version': (): io.flow.inventory.v0.models.InventorySnapshotVersion => ({
|
|
2015
|
+
id: factories.string(),
|
|
2016
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2017
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2018
|
+
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
2019
|
+
}),
|
|
2020
|
+
|
|
2021
|
+
'io.flow.inventory.v0.models.inventory_stock': (): io.flow.inventory.v0.models.InventoryStock => ({
|
|
2022
|
+
discriminator: 'inventory_stock',
|
|
2023
|
+
quantity: factories.long(),
|
|
2024
|
+
}),
|
|
2025
|
+
|
|
2026
|
+
'io.flow.inventory.v0.models.inventory_unlimited': (): io.flow.inventory.v0.models.InventoryUnlimited => ({
|
|
2027
|
+
discriminator: 'inventory_unlimited',
|
|
2028
|
+
placeholder: factories.string(),
|
|
2029
|
+
}),
|
|
2030
|
+
|
|
2031
|
+
'io.flow.inventory.v0.models.inventory_update': (): io.flow.inventory.v0.models.InventoryUpdate => ({
|
|
2032
|
+
id: factories.string(),
|
|
2033
|
+
idempotency_key: factories.string(),
|
|
2034
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
2035
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
2036
|
+
notes: factories.object(),
|
|
2037
|
+
quantity: factories.long(),
|
|
2038
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
2039
|
+
}),
|
|
2040
|
+
|
|
2041
|
+
'io.flow.inventory.v0.models.inventory_update_form': (): io.flow.inventory.v0.models.InventoryUpdateForm => ({
|
|
2042
|
+
center: factories.string(),
|
|
2043
|
+
idempotency_key: factories.string(),
|
|
2044
|
+
item_number: factories.string(),
|
|
2045
|
+
quantity: factories.long(),
|
|
2046
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
2047
|
+
notes: factories.object(),
|
|
2048
|
+
}),
|
|
2049
|
+
|
|
2050
|
+
'io.flow.inventory.v0.models.inventory_update_version': (): io.flow.inventory.v0.models.InventoryUpdateVersion => ({
|
|
2051
|
+
id: factories.string(),
|
|
2052
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2053
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2054
|
+
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
2055
|
+
}),
|
|
2056
|
+
|
|
2057
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error': (): io.flow.inventory.v0.models.NoInventoryReservationError => ({
|
|
2058
|
+
code: 'no_inventory',
|
|
2059
|
+
messages: arrayOf(() => factories.string()),
|
|
2060
|
+
|
|
2061
|
+
items: arrayOf(
|
|
2062
|
+
() => factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](),
|
|
2063
|
+
),
|
|
2064
|
+
}),
|
|
2065
|
+
|
|
2066
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': (): io.flow.inventory.v0.models.NoInventoryReservationErrorItem => ({
|
|
2067
|
+
number: factories.string(),
|
|
2068
|
+
requested_quantity: factories.long(),
|
|
2069
|
+
available_quantity: factories.long(),
|
|
2070
|
+
}),
|
|
2071
|
+
|
|
2072
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response': (): io.flow.inventory.v0.models.PfsInventoryCheckResponse => ({
|
|
2073
|
+
items: objectOf(
|
|
2074
|
+
() => factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](),
|
|
2075
|
+
),
|
|
2076
|
+
}),
|
|
2077
|
+
|
|
2078
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': (): io.flow.inventory.v0.models.PfsInventoryCheckResponseItem => ({
|
|
2079
|
+
number: factories.string(),
|
|
2080
|
+
ats: factories.long(),
|
|
2081
|
+
in_stock: factories.boolean(),
|
|
2082
|
+
}),
|
|
2083
|
+
|
|
2084
|
+
'io.flow.inventory.v0.models.pfs_inventory_status': (): io.flow.inventory.v0.models.PfsInventoryStatus => ({
|
|
2085
|
+
status: factories.string(),
|
|
2086
|
+
}),
|
|
2087
|
+
|
|
2088
|
+
'io.flow.inventory.v0.models.reservation': (): io.flow.inventory.v0.models.Reservation => ({
|
|
2089
|
+
id: factories.string(),
|
|
2090
|
+
key: factories.string(),
|
|
2091
|
+
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
2092
|
+
items: arrayOf(() => factories['io.flow.inventory.v0.models.reservation_item']()),
|
|
2093
|
+
reserved_until: factories.date_time_iso_8601(),
|
|
2094
|
+
}),
|
|
2095
|
+
|
|
2096
|
+
'io.flow.inventory.v0.models.reservation_form': (): io.flow.inventory.v0.models.ReservationForm => ({
|
|
2097
|
+
order_number: factories.string(),
|
|
2098
|
+
items: arrayOf(() => factories['io.flow.inventory.v0.models.reservation_item_form']()),
|
|
2099
|
+
}),
|
|
2100
|
+
|
|
2101
|
+
'io.flow.inventory.v0.models.reservation_item': (): io.flow.inventory.v0.models.ReservationItem => ({
|
|
2102
|
+
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
2103
|
+
quantity: factories.long(),
|
|
2104
|
+
}),
|
|
2105
|
+
|
|
2106
|
+
'io.flow.inventory.v0.models.reservation_item_form': (): io.flow.inventory.v0.models.ReservationItemForm => ({
|
|
2107
|
+
item_number: factories.string(),
|
|
2108
|
+
quantity: factories.long(),
|
|
2109
|
+
}),
|
|
2110
|
+
|
|
2111
|
+
'io.flow.inventory.v0.models.reservation_item_reference': (): io.flow.inventory.v0.models.ReservationItemReference => ({
|
|
2112
|
+
number: factories.string(),
|
|
2113
|
+
}),
|
|
2114
|
+
|
|
2115
|
+
'io.flow.inventory.v0.models.reservation_order_reference': (): io.flow.inventory.v0.models.ReservationOrderReference => ({
|
|
2116
|
+
number: factories.string(),
|
|
2117
|
+
}),
|
|
2118
|
+
|
|
2119
|
+
'io.flow.inventory.v0.unions.inventory_strategy': (): io.flow.inventory.v0.unions.InventoryStrategy => {
|
|
2120
|
+
const f = faker.helpers.arrayElement([
|
|
2121
|
+
() => factories['io.flow.inventory.v0.models.inventory_backorder'](),
|
|
2122
|
+
() => factories['io.flow.inventory.v0.models.inventory_stock'](),
|
|
2123
|
+
() => factories['io.flow.inventory.v0.models.inventory_unlimited'](),
|
|
2124
|
+
() => factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](),
|
|
2125
|
+
]);
|
|
2126
|
+
|
|
2127
|
+
return f();
|
|
2128
|
+
},
|
|
2129
|
+
|
|
2130
|
+
'io.flow.inventory.v0.unions.reservation_error': (): io.flow.inventory.v0.unions.ReservationError => {
|
|
2131
|
+
const f = faker.helpers.arrayElement([
|
|
2132
|
+
() => factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](),
|
|
2133
|
+
() => factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](),
|
|
2134
|
+
() => factories['io.flow.inventory.v0.models.generic_reservation_error'](),
|
|
2135
|
+
]);
|
|
2136
|
+
|
|
2137
|
+
return f();
|
|
2138
|
+
},
|
|
2139
|
+
|
|
2140
|
+
'io.flow.merchant.of.record.v0.enums.economic_title_location': (): io.flow.merchant.of.record.v0.enums.EconomicTitleLocation => faker.helpers.arrayElement(['high_seas', 'origination', 'destination']),
|
|
2141
|
+
'io.flow.merchant.of.record.v0.enums.flow_entity': (): io.flow.merchant.of.record.v0.enums.FlowEntity => faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']),
|
|
2142
|
+
|
|
2143
|
+
'io.flow.order.price.v0.enums.order_price_detail_component_key': (): io.flow.order.price.v0.enums.OrderPriceDetailComponentKey => faker.helpers.arrayElement([
|
|
2144
|
+
'adjustment',
|
|
2145
|
+
'vat_deminimis',
|
|
2146
|
+
'duty_deminimis',
|
|
2147
|
+
'duties_item_price',
|
|
2148
|
+
'duties_freight',
|
|
2149
|
+
'duties_insurance',
|
|
2150
|
+
'vat_item_price',
|
|
2151
|
+
'vat_freight',
|
|
2152
|
+
'vat_insurance',
|
|
2153
|
+
'vat_duties_item_price',
|
|
2154
|
+
'vat_duties_freight',
|
|
2155
|
+
'vat_duties_insurance',
|
|
2156
|
+
'item_price',
|
|
2157
|
+
'item_discount',
|
|
2158
|
+
'rounding',
|
|
2159
|
+
'insurance',
|
|
2160
|
+
'shipping',
|
|
2161
|
+
'shipping_discount',
|
|
2162
|
+
'order_discount',
|
|
2163
|
+
'subtotal_percent_sales_margin',
|
|
2164
|
+
'subtotal_vat_percent_sales_margin',
|
|
2165
|
+
'subtotal_duty_percent_sales_margin',
|
|
2166
|
+
'vat_subsidy',
|
|
2167
|
+
'duty_subsidy',
|
|
2168
|
+
'remote_area_surcharge',
|
|
2169
|
+
'fuel_surcharge',
|
|
2170
|
+
'emergency_situation_surcharge',
|
|
2171
|
+
'peak_surcharge',
|
|
2172
|
+
'duties_taxes_paid_surcharge',
|
|
2173
|
+
'tip',
|
|
2174
|
+
]),
|
|
2175
|
+
|
|
2176
|
+
'io.flow.order.price.v0.enums.order_price_detail_key': (): io.flow.order.price.v0.enums.OrderPriceDetailKey => faker.helpers.arrayElement([
|
|
2177
|
+
'adjustment',
|
|
2178
|
+
'subtotal',
|
|
2179
|
+
'vat',
|
|
2180
|
+
'duty',
|
|
2181
|
+
'shipping',
|
|
2182
|
+
'insurance',
|
|
2183
|
+
'discount',
|
|
2184
|
+
'surcharges',
|
|
2185
|
+
'tip',
|
|
2186
|
+
]),
|
|
2187
|
+
|
|
2188
|
+
'io.flow.order.price.v0.models.order_price_detail': (): io.flow.order.price.v0.models.OrderPriceDetail => ({
|
|
2189
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
2190
|
+
currency: factories.string(),
|
|
2191
|
+
amount: factories.decimal(),
|
|
2192
|
+
label: factories.string(),
|
|
2193
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
2194
|
+
|
|
2195
|
+
components: arrayOf(
|
|
2196
|
+
() => factories['io.flow.order.price.v0.models.order_price_detail_component'](),
|
|
2197
|
+
),
|
|
2198
|
+
|
|
2199
|
+
name: factories.string(),
|
|
2200
|
+
rate: factories.decimal(),
|
|
2201
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
2202
|
+
rate_label: factories.string(),
|
|
2203
|
+
}),
|
|
2204
|
+
|
|
2205
|
+
'io.flow.order.price.v0.models.order_price_detail_component': (): io.flow.order.price.v0.models.OrderPriceDetailComponent => ({
|
|
2206
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
2207
|
+
currency: factories.string(),
|
|
2208
|
+
amount: factories.decimal(),
|
|
2209
|
+
label: factories.string(),
|
|
2210
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
2211
|
+
name: factories.string(),
|
|
2212
|
+
}),
|
|
2213
|
+
|
|
2214
|
+
'io.flow.organization.v0.enums.country_picker_source': (): io.flow.organization.v0.enums.CountryPickerSource => faker.helpers.arrayElement(['experience', 'destination']),
|
|
2215
|
+
|
|
2216
|
+
'io.flow.organization.v0.enums.ecommerce_platform_type': (): io.flow.organization.v0.enums.EcommercePlatformType => faker.helpers.arrayElement([
|
|
2217
|
+
'commercetools',
|
|
2218
|
+
'custom',
|
|
2219
|
+
'hybris',
|
|
2220
|
+
'magento',
|
|
2221
|
+
'shopify',
|
|
2222
|
+
'shopify_markets',
|
|
2223
|
+
'sfcc',
|
|
2224
|
+
'solidus',
|
|
2225
|
+
'workarea',
|
|
2226
|
+
]),
|
|
2227
|
+
|
|
2228
|
+
'io.flow.organization.v0.enums.invitation_error_code': (): io.flow.organization.v0.enums.InvitationErrorCode => faker.helpers.arrayElement(['expired', 'invalid_email']),
|
|
2229
|
+
|
|
2230
|
+
'io.flow.organization.v0.models.country_picker': (): io.flow.organization.v0.models.CountryPicker => ({
|
|
2231
|
+
id: factories.string(),
|
|
2232
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2233
|
+
}),
|
|
2234
|
+
|
|
2235
|
+
'io.flow.organization.v0.models.country_picker_form': (): io.flow.organization.v0.models.CountryPickerForm => ({
|
|
2236
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2237
|
+
}),
|
|
2238
|
+
|
|
2239
|
+
'io.flow.organization.v0.models.ecommerce_platform': (): io.flow.organization.v0.models.EcommercePlatform => ({
|
|
2240
|
+
id: factories.string(),
|
|
2241
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2242
|
+
version: factories.string(),
|
|
2243
|
+
}),
|
|
2244
|
+
|
|
2245
|
+
'io.flow.organization.v0.models.ecommerce_platform_form': (): io.flow.organization.v0.models.EcommercePlatformForm => ({
|
|
2246
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2247
|
+
version: factories.string(),
|
|
2248
|
+
}),
|
|
2249
|
+
|
|
2250
|
+
'io.flow.organization.v0.models.invitation': (): io.flow.organization.v0.models.Invitation => ({
|
|
2251
|
+
id: factories.string(),
|
|
2252
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2253
|
+
email: factories.string(),
|
|
2254
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
2255
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2256
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
2257
|
+
expiration: factories.date_time_iso_8601(),
|
|
2258
|
+
}),
|
|
2259
|
+
|
|
2260
|
+
'io.flow.organization.v0.models.invitation_error': (): io.flow.organization.v0.models.InvitationError => ({
|
|
2261
|
+
code: factories['io.flow.organization.v0.enums.invitation_error_code'](),
|
|
2262
|
+
messages: arrayOf(() => factories.string()),
|
|
2263
|
+
}),
|
|
2264
|
+
|
|
2265
|
+
'io.flow.organization.v0.models.invitation_form': (): io.flow.organization.v0.models.InvitationForm => ({
|
|
2266
|
+
organization: factories.string(),
|
|
2267
|
+
email: factories.string(),
|
|
2268
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
2269
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2270
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
2271
|
+
}),
|
|
2272
|
+
|
|
2273
|
+
'io.flow.organization.v0.models.invitation_version': (): io.flow.organization.v0.models.InvitationVersion => ({
|
|
2274
|
+
id: factories.string(),
|
|
2275
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2276
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2277
|
+
invitation: factories['io.flow.organization.v0.models.invitation'](),
|
|
2278
|
+
}),
|
|
2279
|
+
|
|
2280
|
+
'io.flow.organization.v0.models.membership': (): io.flow.organization.v0.models.Membership => ({
|
|
2281
|
+
id: factories.string(),
|
|
2282
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2283
|
+
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2284
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2285
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
2286
|
+
}),
|
|
2287
|
+
|
|
2288
|
+
'io.flow.organization.v0.models.membership_form': (): io.flow.organization.v0.models.MembershipForm => ({
|
|
2289
|
+
organization: factories.string(),
|
|
2290
|
+
user: factories.string(),
|
|
2291
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2292
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
2293
|
+
}),
|
|
2294
|
+
|
|
2295
|
+
'io.flow.organization.v0.models.membership_put_form': (): io.flow.organization.v0.models.MembershipPutForm => ({
|
|
2296
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2297
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
2298
|
+
}),
|
|
2299
|
+
|
|
2300
|
+
'io.flow.organization.v0.models.membership_version': (): io.flow.organization.v0.models.MembershipVersion => ({
|
|
2301
|
+
id: factories.string(),
|
|
2302
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2303
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2304
|
+
membership: factories['io.flow.organization.v0.models.membership'](),
|
|
2305
|
+
}),
|
|
2306
|
+
|
|
2307
|
+
'io.flow.organization.v0.models.organization_authorization': (): io.flow.organization.v0.models.OrganizationAuthorization => ({
|
|
2308
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
2309
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2310
|
+
}),
|
|
2311
|
+
|
|
2312
|
+
'io.flow.organization.v0.models.organization_authorization_form': (): io.flow.organization.v0.models.OrganizationAuthorizationForm => ({
|
|
2313
|
+
organization: factories.string(),
|
|
2314
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2315
|
+
}),
|
|
2316
|
+
|
|
2317
|
+
'io.flow.organization.v0.models.organization_configuration_reference': (): io.flow.organization.v0.models.OrganizationConfigurationReference => ({
|
|
2318
|
+
id: factories.string(),
|
|
2319
|
+
}),
|
|
2320
|
+
|
|
2321
|
+
'io.flow.organization.v0.models.organization_default_configurations': (): io.flow.organization.v0.models.OrganizationDefaultConfigurations => ({
|
|
2322
|
+
id: factories.string(),
|
|
2323
|
+
checkout_configuration: factories['io.flow.organization.v0.models.organization_configuration_reference'](),
|
|
2324
|
+
}),
|
|
2325
|
+
|
|
2326
|
+
'io.flow.organization.v0.models.organization_default_configurations_form': (): io.flow.organization.v0.models.OrganizationDefaultConfigurationsForm => ({
|
|
2327
|
+
id: factories.string(),
|
|
2328
|
+
}),
|
|
2329
|
+
|
|
2330
|
+
'io.flow.organization.v0.models.organization_form': (): io.flow.organization.v0.models.OrganizationForm => ({
|
|
2331
|
+
id: factories.string(),
|
|
2332
|
+
name: factories.string(),
|
|
2333
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2334
|
+
parent_id: factories.string(),
|
|
2335
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2336
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
2337
|
+
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
2338
|
+
}),
|
|
2339
|
+
|
|
2340
|
+
'io.flow.organization.v0.models.organization_put_form': (): io.flow.organization.v0.models.OrganizationPutForm => ({
|
|
2341
|
+
name: factories.string(),
|
|
2342
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2343
|
+
parent_id: factories.string(),
|
|
2344
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2345
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
2346
|
+
}),
|
|
2347
|
+
|
|
2348
|
+
'io.flow.organization.v0.models.organization_version': (): io.flow.organization.v0.models.OrganizationVersion => ({
|
|
2349
|
+
id: factories.string(),
|
|
2350
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2351
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2352
|
+
organization: factories['io.flow.common.v0.models.organization'](),
|
|
2353
|
+
}),
|
|
2354
|
+
|
|
2355
|
+
'io.flow.organization.v0.models.region_setting': (): io.flow.organization.v0.models.RegionSetting => ({
|
|
2356
|
+
id: factories.string(),
|
|
2357
|
+
region: factories.string(),
|
|
2358
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
2359
|
+
}),
|
|
2360
|
+
|
|
2361
|
+
'io.flow.organization.v0.models.region_setting_form': (): io.flow.organization.v0.models.RegionSettingForm => ({
|
|
2362
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
2363
|
+
}),
|
|
2364
|
+
|
|
2365
|
+
'io.flow.permission.v0.enums.authentication_technique': (): io.flow.permission.v0.enums.AuthenticationTechnique => faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']),
|
|
2366
|
+
'io.flow.permission.v0.enums.flow_behavior': (): io.flow.permission.v0.enums.FlowBehavior => faker.helpers.arrayElement(['view_consumer_data']),
|
|
2367
|
+
|
|
2368
|
+
'io.flow.permission.v0.enums.flow_role': (): io.flow.permission.v0.enums.FlowRole => faker.helpers.arrayElement([
|
|
2369
|
+
'organization_admin',
|
|
2370
|
+
'organization_merchant',
|
|
2371
|
+
'organization_customer_service',
|
|
2372
|
+
'organization_fulfillment',
|
|
2373
|
+
'organization_marketing',
|
|
2374
|
+
'organization_finance',
|
|
2375
|
+
'organization_classification',
|
|
2376
|
+
'flow_operations',
|
|
2377
|
+
'channel_admin',
|
|
2378
|
+
'channel_organization_admin',
|
|
2379
|
+
]),
|
|
2380
|
+
|
|
2381
|
+
'io.flow.permission.v0.enums.permitted_http_method': (): io.flow.permission.v0.enums.PermittedHttpMethod => faker.helpers.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']),
|
|
2382
|
+
|
|
2383
|
+
'io.flow.permission.v0.models.behavior_audit': (): io.flow.permission.v0.models.BehaviorAudit => ({
|
|
2384
|
+
behavior: factories['io.flow.permission.v0.enums.flow_behavior'](),
|
|
2385
|
+
authentication_techniques: arrayOf(() => factories['io.flow.permission.v0.enums.authentication_technique']()),
|
|
2386
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
2387
|
+
}),
|
|
2388
|
+
|
|
2389
|
+
'io.flow.permission.v0.models.permission_audit': (): io.flow.permission.v0.models.PermissionAudit => ({
|
|
2390
|
+
routes: arrayOf(() => factories['io.flow.permission.v0.models.route_audit']()),
|
|
2391
|
+
behaviors: arrayOf(() => factories['io.flow.permission.v0.models.behavior_audit']()),
|
|
2392
|
+
}),
|
|
2393
|
+
|
|
2394
|
+
'io.flow.permission.v0.models.permission_check': (): io.flow.permission.v0.models.PermissionCheck => ({
|
|
2395
|
+
authentication_technique: factories['io.flow.permission.v0.enums.authentication_technique'](),
|
|
2396
|
+
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2397
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
2398
|
+
behaviors: arrayOf(() => factories['io.flow.permission.v0.enums.flow_behavior']()),
|
|
2399
|
+
routes: arrayOf(() => factories['io.flow.permission.v0.models.permitted_route']()),
|
|
2400
|
+
}),
|
|
2401
|
+
|
|
2402
|
+
'io.flow.permission.v0.models.permitted_route': (): io.flow.permission.v0.models.PermittedRoute => ({
|
|
2403
|
+
method: factories['io.flow.permission.v0.enums.permitted_http_method'](),
|
|
2404
|
+
path: factories.string(),
|
|
2405
|
+
}),
|
|
2406
|
+
|
|
2407
|
+
'io.flow.permission.v0.models.route_audit': (): io.flow.permission.v0.models.RouteAudit => ({
|
|
2408
|
+
method: factories['io.flow.permission.v0.enums.permitted_http_method'](),
|
|
2409
|
+
path: factories.string(),
|
|
2410
|
+
authentication_techniques: arrayOf(() => factories['io.flow.permission.v0.enums.authentication_technique']()),
|
|
2411
|
+
roles: arrayOf(() => factories['io.flow.permission.v0.enums.flow_role']()),
|
|
153
2412
|
}),
|
|
154
2413
|
|
|
155
|
-
'io.flow.
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
'io.flow.google.pay.v0.enums.card_network': (): io.flow.google.pay.v0.enums.CardNetwork => faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']),
|
|
159
|
-
'io.flow.google.pay.v0.enums.payment_method_type': (): io.flow.google.pay.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['CARD']),
|
|
160
|
-
'io.flow.google.pay.v0.enums.tokenization_type': (): io.flow.google.pay.v0.enums.TokenizationType => faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']),
|
|
161
|
-
'io.flow.google.pay.v0.enums.total_price_status': (): io.flow.google.pay.v0.enums.TotalPriceStatus => faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']),
|
|
2414
|
+
'io.flow.permission.v0.models.simple_permission_check': (): io.flow.permission.v0.models.SimplePermissionCheck => ({
|
|
2415
|
+
behaviors: arrayOf(() => factories['io.flow.permission.v0.enums.flow_behavior']()),
|
|
2416
|
+
}),
|
|
162
2417
|
|
|
163
|
-
'io.flow.
|
|
2418
|
+
'io.flow.price.v0.enums.levy_component': (): io.flow.price.v0.enums.LevyComponent => faker.helpers.arrayElement(['goods', 'duty', 'insurance', 'freight', 'vat']),
|
|
2419
|
+
'io.flow.price.v0.enums.levy_strategy': (): io.flow.price.v0.enums.LevyStrategy => faker.helpers.arrayElement(['minimum', 'average', 'maximum']),
|
|
2420
|
+
'io.flow.price.v0.enums.price_accuracy': (): io.flow.price.v0.enums.PriceAccuracy => faker.helpers.arrayElement(['calculated', 'estimated_from_partial_destination']),
|
|
2421
|
+
|
|
2422
|
+
'io.flow.price.v0.enums.price_detail_component_key': (): io.flow.price.v0.enums.PriceDetailComponentKey => faker.helpers.arrayElement([
|
|
2423
|
+
'base_price',
|
|
2424
|
+
'discount',
|
|
2425
|
+
'currency_margin',
|
|
2426
|
+
'percent_item_margin',
|
|
2427
|
+
'fixed_item_margin',
|
|
2428
|
+
'duties_item_price',
|
|
2429
|
+
'duties_added_margin',
|
|
2430
|
+
'duties_rounding',
|
|
2431
|
+
'duties_deminimis',
|
|
2432
|
+
'vat_item_price',
|
|
2433
|
+
'vat_added_margin',
|
|
2434
|
+
'vat_rounding',
|
|
2435
|
+
'vat_duties_item_price',
|
|
2436
|
+
'vat_duties_added_margin',
|
|
2437
|
+
'vat_duties_rounding',
|
|
2438
|
+
'vat_deminimis',
|
|
2439
|
+
'item_price_percent_sales_margin',
|
|
2440
|
+
'margins_percent_sales_margin',
|
|
2441
|
+
'rounding_percent_sales_margin',
|
|
2442
|
+
'vat_percent_sales_margin',
|
|
2443
|
+
'vat_duty_percent_sales_margin',
|
|
2444
|
+
'duty_percent_sales_margin',
|
|
2445
|
+
]),
|
|
2446
|
+
|
|
2447
|
+
'io.flow.price.v0.enums.price_detail_key': (): io.flow.price.v0.enums.PriceDetailKey => faker.helpers.arrayElement(['item_price', 'margins', 'vat', 'duty', 'rounding', 'adjustment']),
|
|
2448
|
+
'io.flow.price.v0.enums.pricing_levy_setting': (): io.flow.price.v0.enums.PricingLevySetting => faker.helpers.arrayElement(['included', 'displayed', 'ignored']),
|
|
2449
|
+
|
|
2450
|
+
'io.flow.price.v0.models.currency_format': (): io.flow.price.v0.models.CurrencyFormat => ({
|
|
2451
|
+
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
2452
|
+
label_formatters: arrayOf(() => factories['io.flow.common.v0.enums.currency_label_formatter']()),
|
|
2453
|
+
}),
|
|
2454
|
+
|
|
2455
|
+
'io.flow.price.v0.models.deminimis_per_item': (): io.flow.price.v0.models.DeminimisPerItem => ({
|
|
2456
|
+
discriminator: 'deminimis_per_item',
|
|
2457
|
+
currency: factories.string(),
|
|
2458
|
+
minimum: factories.decimal(),
|
|
2459
|
+
maximum: factories.decimal(),
|
|
2460
|
+
}),
|
|
2461
|
+
|
|
2462
|
+
'io.flow.price.v0.models.deminimis_simple': (): io.flow.price.v0.models.DeminimisSimple => ({
|
|
2463
|
+
discriminator: 'deminimis_simple',
|
|
2464
|
+
value: factories.decimal(),
|
|
2465
|
+
currency: factories.string(),
|
|
2466
|
+
components: arrayOf(() => factories['io.flow.price.v0.enums.levy_component']()),
|
|
2467
|
+
minimum: factories.decimal(),
|
|
2468
|
+
}),
|
|
2469
|
+
|
|
2470
|
+
'io.flow.price.v0.models.duty': (): io.flow.price.v0.models.Duty => ({
|
|
2471
|
+
rate: factories.decimal(),
|
|
2472
|
+
components: arrayOf(() => factories['io.flow.price.v0.enums.levy_component']()),
|
|
2473
|
+
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
164
2474
|
name: factories.string(),
|
|
165
|
-
postalCode: factories.string(),
|
|
166
|
-
countryCode: factories.string(),
|
|
167
|
-
phoneNumber: factories.string(),
|
|
168
|
-
companyName: factories.string(),
|
|
169
|
-
address1: factories.string(),
|
|
170
|
-
address2: factories.string(),
|
|
171
|
-
address3: factories.string(),
|
|
172
|
-
locality: factories.string(),
|
|
173
|
-
administrativeArea: factories.string(),
|
|
174
|
-
sortingCode: factories.string(),
|
|
175
2475
|
}),
|
|
176
2476
|
|
|
177
|
-
'io.flow.
|
|
178
|
-
|
|
179
|
-
|
|
2477
|
+
'io.flow.price.v0.models.local_price_details': (): io.flow.price.v0.models.LocalPriceDetails => ({
|
|
2478
|
+
base: factories['io.flow.price.v0.models.price_details'](),
|
|
2479
|
+
local: factories['io.flow.price.v0.models.price_details'](),
|
|
2480
|
+
discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
2481
|
+
local_before_discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
180
2482
|
}),
|
|
181
2483
|
|
|
182
|
-
'io.flow.
|
|
183
|
-
|
|
184
|
-
|
|
2484
|
+
'io.flow.price.v0.models.price_book': (): io.flow.price.v0.models.PriceBook => ({
|
|
2485
|
+
id: factories.string(),
|
|
2486
|
+
key: factories.string(),
|
|
2487
|
+
currency: factories.string(),
|
|
2488
|
+
name: factories.string(),
|
|
2489
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
2490
|
+
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
185
2491
|
}),
|
|
186
2492
|
|
|
187
|
-
'io.flow.
|
|
188
|
-
|
|
189
|
-
|
|
2493
|
+
'io.flow.price.v0.models.price_book_form': (): io.flow.price.v0.models.PriceBookForm => ({
|
|
2494
|
+
currency: factories.string(),
|
|
2495
|
+
name: factories.string(),
|
|
2496
|
+
includes: factories['io.flow.common.v0.enums.included_levy_key'](),
|
|
2497
|
+
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
190
2498
|
}),
|
|
191
2499
|
|
|
192
|
-
'io.flow.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
2500
|
+
'io.flow.price.v0.models.price_book_item': (): io.flow.price.v0.models.PriceBookItem => ({
|
|
2501
|
+
id: factories.string(),
|
|
2502
|
+
key: factories.string(),
|
|
2503
|
+
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
2504
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2505
|
+
item_number: factories.string(),
|
|
2506
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2507
|
+
item_attributes: objectOf(() => factories.string()),
|
|
196
2508
|
}),
|
|
197
2509
|
|
|
198
|
-
'io.flow.
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
2510
|
+
'io.flow.price.v0.models.price_book_item_form': (): io.flow.price.v0.models.PriceBookItemForm => ({
|
|
2511
|
+
price_book_key: factories.string(),
|
|
2512
|
+
item_number: factories.string(),
|
|
2513
|
+
amount: factories.decimal(),
|
|
2514
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2515
|
+
item_attributes: objectOf(() => factories.string()),
|
|
203
2516
|
}),
|
|
204
2517
|
|
|
205
|
-
'io.flow.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
2518
|
+
'io.flow.price.v0.models.price_book_item_query_form': (): io.flow.price.v0.models.PriceBookItemQueryForm => ({
|
|
2519
|
+
price_book_key: factories.string(),
|
|
2520
|
+
item_query: factories.string(),
|
|
2521
|
+
amount: factories.decimal(),
|
|
2522
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2523
|
+
item_attributes: objectOf(() => factories.string()),
|
|
2524
|
+
}),
|
|
2525
|
+
|
|
2526
|
+
'io.flow.price.v0.models.price_book_item_schedule': (): io.flow.price.v0.models.PriceBookItemSchedule => ({
|
|
2527
|
+
starts_at: factories.date_time_iso_8601(),
|
|
2528
|
+
ends_at: factories.date_time_iso_8601(),
|
|
2529
|
+
}),
|
|
2530
|
+
|
|
2531
|
+
'io.flow.price.v0.models.price_book_reference': (): io.flow.price.v0.models.PriceBookReference => ({
|
|
2532
|
+
id: factories.string(),
|
|
2533
|
+
key: factories.string(),
|
|
2534
|
+
}),
|
|
2535
|
+
|
|
2536
|
+
'io.flow.price.v0.models.price_check': (): io.flow.price.v0.models.PriceCheck => ({
|
|
2537
|
+
display: factories['io.flow.price.v0.models.local_price_details'](),
|
|
2538
|
+
'final': factories['io.flow.price.v0.models.local_price_details'](),
|
|
2539
|
+
}),
|
|
2540
|
+
|
|
2541
|
+
'io.flow.price.v0.models.price_detail': (): io.flow.price.v0.models.PriceDetail => ({
|
|
2542
|
+
key: factories['io.flow.price.v0.enums.price_detail_key'](),
|
|
2543
|
+
components: arrayOf(() => factories['io.flow.price.v0.models.price_detail_component']()),
|
|
2544
|
+
amount: factories.decimal(),
|
|
2545
|
+
label: factories.string(),
|
|
2546
|
+
name: factories.string(),
|
|
2547
|
+
basis: factories.decimal(),
|
|
2548
|
+
}),
|
|
2549
|
+
|
|
2550
|
+
'io.flow.price.v0.models.price_detail_component': (): io.flow.price.v0.models.PriceDetailComponent => ({
|
|
2551
|
+
key: factories['io.flow.price.v0.enums.price_detail_component_key'](),
|
|
2552
|
+
amount: factories.decimal(),
|
|
2553
|
+
label: factories.string(),
|
|
2554
|
+
name: factories.string(),
|
|
2555
|
+
}),
|
|
2556
|
+
|
|
2557
|
+
'io.flow.price.v0.models.price_details': (): io.flow.price.v0.models.PriceDetails => ({
|
|
2558
|
+
currency: factories.string(),
|
|
2559
|
+
item_price: factories['io.flow.price.v0.models.price_detail'](),
|
|
2560
|
+
margins: factories['io.flow.price.v0.models.price_detail'](),
|
|
2561
|
+
vat: factories['io.flow.price.v0.models.price_detail'](),
|
|
2562
|
+
duty: factories['io.flow.price.v0.models.price_detail'](),
|
|
2563
|
+
rounding: factories['io.flow.price.v0.models.price_detail'](),
|
|
2564
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2565
|
+
total: factories['io.flow.common.v0.models.price'](),
|
|
2566
|
+
adjustment: factories['io.flow.price.v0.models.price_detail'](),
|
|
2567
|
+
}),
|
|
2568
|
+
|
|
2569
|
+
'io.flow.price.v0.models.price_equation': (): io.flow.price.v0.models.PriceEquation => ({
|
|
2570
|
+
contracted_rate: factories.decimal(),
|
|
2571
|
+
rate: factories.decimal(),
|
|
2572
|
+
pricing: factories['io.flow.price.v0.models.pricing'](),
|
|
2573
|
+
base_price: factories.decimal(),
|
|
2574
|
+
discount: factories.decimal(),
|
|
2575
|
+
fixed_margin: factories.decimal(),
|
|
2576
|
+
percent_margin: factories.decimal(),
|
|
2577
|
+
insurance: factories.decimal(),
|
|
2578
|
+
freight: factories.decimal(),
|
|
2579
|
+
duty: factories['io.flow.price.v0.models.duty'](),
|
|
2580
|
+
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2581
|
+
percent_sales_margin: factories.decimal(),
|
|
2582
|
+
}),
|
|
2583
|
+
|
|
2584
|
+
'io.flow.price.v0.models.pricing': (): io.flow.price.v0.models.Pricing => ({
|
|
2585
|
+
vat: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2586
|
+
duty: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2587
|
+
rounding: factories['io.flow.common.v0.models.rounding'](),
|
|
2588
|
+
}),
|
|
2589
|
+
|
|
2590
|
+
'io.flow.price.v0.models.tax': (): io.flow.price.v0.models.Tax => ({
|
|
2591
|
+
name: factories.string(),
|
|
2592
|
+
rate: factories.decimal(),
|
|
2593
|
+
components: arrayOf(() => factories['io.flow.price.v0.enums.levy_component']()),
|
|
2594
|
+
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
2595
|
+
}),
|
|
2596
|
+
|
|
2597
|
+
'io.flow.price.v0.unions.deminimis': (): io.flow.price.v0.unions.Deminimis => {
|
|
2598
|
+
const f = faker.helpers.arrayElement([
|
|
2599
|
+
() => factories['io.flow.price.v0.models.deminimis_simple'](),
|
|
2600
|
+
() => factories['io.flow.price.v0.models.deminimis_per_item'](),
|
|
2601
|
+
]);
|
|
2602
|
+
|
|
2603
|
+
return f();
|
|
2604
|
+
},
|
|
2605
|
+
|
|
2606
|
+
'io.flow.query.builder.v0.enums.available_filter_format': (): io.flow.query.builder.v0.enums.AvailableFilterFormat => faker.helpers.arrayElement([
|
|
2607
|
+
'boolean',
|
|
2608
|
+
'date',
|
|
2609
|
+
'money',
|
|
2610
|
+
'decimal',
|
|
2611
|
+
'string',
|
|
2612
|
+
'unit_of_length',
|
|
2613
|
+
'unit_of_mass',
|
|
2614
|
+
]),
|
|
2615
|
+
|
|
2616
|
+
'io.flow.query.builder.v0.models.available_filter_structured': (): io.flow.query.builder.v0.models.AvailableFilterStructured => ({
|
|
2617
|
+
discriminator: 'structured',
|
|
2618
|
+
field: factories.string(),
|
|
2619
|
+
operators: arrayOf(() => factories.string()),
|
|
2620
|
+
format: factories['io.flow.query.builder.v0.enums.available_filter_format'](),
|
|
2621
|
+
valid_values: arrayOf(() => factories.string()),
|
|
2622
|
+
placeholder: factories.string(),
|
|
2623
|
+
}),
|
|
2624
|
+
|
|
2625
|
+
'io.flow.query.builder.v0.models.available_filter_unstructured': (): io.flow.query.builder.v0.models.AvailableFilterUnstructured => ({
|
|
2626
|
+
discriminator: 'unstructured',
|
|
2627
|
+
placeholder: factories.string(),
|
|
2628
|
+
}),
|
|
2629
|
+
|
|
2630
|
+
'io.flow.query.builder.v0.models.query': (): io.flow.query.builder.v0.models.Query => ({
|
|
2631
|
+
q: factories.string(),
|
|
2632
|
+
filters: arrayOf(() => factories['io.flow.query.builder.v0.unions.query_filter']()),
|
|
2633
|
+
}),
|
|
2634
|
+
|
|
2635
|
+
'io.flow.query.builder.v0.models.query_builder': (): io.flow.query.builder.v0.models.QueryBuilder => ({
|
|
2636
|
+
q: factories.string(),
|
|
2637
|
+
filters: arrayOf(() => factories['io.flow.query.builder.v0.unions.query_filter']()),
|
|
2638
|
+
available: arrayOf(() => factories['io.flow.query.builder.v0.unions.available_filter']()),
|
|
2639
|
+
}),
|
|
2640
|
+
|
|
2641
|
+
'io.flow.query.builder.v0.models.query_builder_filter_form': (): io.flow.query.builder.v0.models.QueryBuilderFilterForm => ({
|
|
2642
|
+
discriminator: 'filter',
|
|
2643
|
+
filters: arrayOf(() => factories['io.flow.query.builder.v0.unions.query_filter_form']()),
|
|
2644
|
+
}),
|
|
2645
|
+
|
|
2646
|
+
'io.flow.query.builder.v0.models.query_builder_query_form': (): io.flow.query.builder.v0.models.QueryBuilderQueryForm => ({
|
|
2647
|
+
discriminator: 'query',
|
|
2648
|
+
q: factories.string(),
|
|
2649
|
+
}),
|
|
2650
|
+
|
|
2651
|
+
'io.flow.query.builder.v0.models.query_filter_structured': (): io.flow.query.builder.v0.models.QueryFilterStructured => ({
|
|
2652
|
+
discriminator: 'structured',
|
|
2653
|
+
q: factories.string(),
|
|
2654
|
+
field: factories.string(),
|
|
2655
|
+
operator: factories.string(),
|
|
2656
|
+
values: arrayOf(() => factories.string()),
|
|
2657
|
+
}),
|
|
2658
|
+
|
|
2659
|
+
'io.flow.query.builder.v0.models.query_filter_structured_form': (): io.flow.query.builder.v0.models.QueryFilterStructuredForm => ({
|
|
2660
|
+
discriminator: 'structured',
|
|
2661
|
+
field: factories.string(),
|
|
2662
|
+
operator: factories.string(),
|
|
2663
|
+
values: arrayOf(() => factories.string()),
|
|
2664
|
+
}),
|
|
2665
|
+
|
|
2666
|
+
'io.flow.query.builder.v0.models.query_filter_unstructured': (): io.flow.query.builder.v0.models.QueryFilterUnstructured => ({
|
|
2667
|
+
discriminator: 'unstructured',
|
|
2668
|
+
q: factories.string(),
|
|
2669
|
+
}),
|
|
2670
|
+
|
|
2671
|
+
'io.flow.query.builder.v0.models.query_filter_unstructured_form': (): io.flow.query.builder.v0.models.QueryFilterUnstructuredForm => ({
|
|
2672
|
+
discriminator: 'unstructured',
|
|
2673
|
+
q: factories.string(),
|
|
2674
|
+
}),
|
|
2675
|
+
|
|
2676
|
+
'io.flow.query.builder.v0.unions.available_filter': (): io.flow.query.builder.v0.unions.AvailableFilter => {
|
|
2677
|
+
const f = faker.helpers.arrayElement([
|
|
2678
|
+
() => factories['io.flow.query.builder.v0.models.available_filter_structured'](),
|
|
2679
|
+
() => factories['io.flow.query.builder.v0.models.available_filter_unstructured'](),
|
|
2680
|
+
]);
|
|
2681
|
+
|
|
2682
|
+
return f();
|
|
2683
|
+
},
|
|
2684
|
+
|
|
2685
|
+
'io.flow.query.builder.v0.unions.query_builder_form': (): io.flow.query.builder.v0.unions.QueryBuilderForm => {
|
|
2686
|
+
const f = faker.helpers.arrayElement([
|
|
2687
|
+
() => factories['io.flow.query.builder.v0.models.query_builder_filter_form'](),
|
|
2688
|
+
() => factories['io.flow.query.builder.v0.models.query_builder_query_form'](),
|
|
2689
|
+
]);
|
|
2690
|
+
|
|
2691
|
+
return f();
|
|
2692
|
+
},
|
|
2693
|
+
|
|
2694
|
+
'io.flow.query.builder.v0.unions.query_filter': (): io.flow.query.builder.v0.unions.QueryFilter => {
|
|
2695
|
+
const f = faker.helpers.arrayElement([
|
|
2696
|
+
() => factories['io.flow.query.builder.v0.models.query_filter_structured'](),
|
|
2697
|
+
() => factories['io.flow.query.builder.v0.models.query_filter_unstructured'](),
|
|
2698
|
+
]);
|
|
2699
|
+
|
|
2700
|
+
return f();
|
|
2701
|
+
},
|
|
2702
|
+
|
|
2703
|
+
'io.flow.query.builder.v0.unions.query_filter_form': (): io.flow.query.builder.v0.unions.QueryFilterForm => {
|
|
2704
|
+
const f = faker.helpers.arrayElement([
|
|
2705
|
+
() => factories['io.flow.query.builder.v0.models.query_filter_structured_form'](),
|
|
2706
|
+
() => factories['io.flow.query.builder.v0.models.query_filter_unstructured_form'](),
|
|
2707
|
+
]);
|
|
2708
|
+
|
|
2709
|
+
return f();
|
|
2710
|
+
},
|
|
2711
|
+
|
|
2712
|
+
'io.flow.reference.v0.enums.payment_method_capability': (): io.flow.reference.v0.enums.PaymentMethodCapability => faker.helpers.arrayElement(['credit', 'debit']),
|
|
2713
|
+
'io.flow.reference.v0.enums.payment_method_type': (): io.flow.reference.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['card', 'online', 'offline']),
|
|
2714
|
+
'io.flow.reference.v0.enums.postal_type': (): io.flow.reference.v0.enums.PostalType => faker.helpers.arrayElement(['eircode', 'pin', 'postal', 'zip']),
|
|
2715
|
+
|
|
2716
|
+
'io.flow.reference.v0.enums.province_type': (): io.flow.reference.v0.enums.ProvinceType => faker.helpers.arrayElement([
|
|
2717
|
+
'area',
|
|
2718
|
+
'city',
|
|
2719
|
+
'county',
|
|
2720
|
+
'department',
|
|
2721
|
+
'dependency',
|
|
2722
|
+
'district',
|
|
2723
|
+
'do_si',
|
|
2724
|
+
'emirate',
|
|
2725
|
+
'entity',
|
|
2726
|
+
'island',
|
|
2727
|
+
'municipality',
|
|
2728
|
+
'oblast',
|
|
2729
|
+
'outlying_area',
|
|
2730
|
+
'parish',
|
|
2731
|
+
'prefecture',
|
|
2732
|
+
'province',
|
|
2733
|
+
'state',
|
|
2734
|
+
'territory',
|
|
2735
|
+
'other',
|
|
2736
|
+
]),
|
|
2737
|
+
|
|
2738
|
+
'io.flow.reference.v0.models.carrier': (): io.flow.reference.v0.models.Carrier => ({
|
|
2739
|
+
id: factories.string(),
|
|
2740
|
+
name: factories.string(),
|
|
2741
|
+
tracking_url: factories.string(),
|
|
210
2742
|
}),
|
|
211
2743
|
|
|
212
|
-
'io.flow.
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
2744
|
+
'io.flow.reference.v0.models.carrier_service': (): io.flow.reference.v0.models.CarrierService => ({
|
|
2745
|
+
id: factories.string(),
|
|
2746
|
+
carrier: factories['io.flow.reference.v0.models.carrier'](),
|
|
2747
|
+
name: factories.string(),
|
|
217
2748
|
}),
|
|
218
2749
|
|
|
219
|
-
'io.flow.
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
2750
|
+
'io.flow.reference.v0.models.country': (): io.flow.reference.v0.models.Country => ({
|
|
2751
|
+
name: factories.string(),
|
|
2752
|
+
iso_3166_2: factories.string(),
|
|
2753
|
+
iso_3166_3: factories.string(),
|
|
2754
|
+
languages: arrayOf(() => factories.string()),
|
|
2755
|
+
measurement_system: factories.string(),
|
|
2756
|
+
default_currency: factories.string(),
|
|
2757
|
+
default_language: factories.string(),
|
|
2758
|
+
timezones: arrayOf(() => factories.string()),
|
|
2759
|
+
default_delivered_duty: factories.string(),
|
|
223
2760
|
}),
|
|
224
2761
|
|
|
225
|
-
'io.flow.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
2762
|
+
'io.flow.reference.v0.models.currency': (): io.flow.reference.v0.models.Currency => ({
|
|
2763
|
+
name: factories.string(),
|
|
2764
|
+
iso_4217_3: factories.string(),
|
|
2765
|
+
number_decimals: factories.integer(),
|
|
2766
|
+
symbols: factories['io.flow.reference.v0.models.currency_symbols'](),
|
|
2767
|
+
default_locale: factories.string(),
|
|
231
2768
|
}),
|
|
232
2769
|
|
|
233
|
-
'io.flow.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
237
|
-
allowedPaymentMethods: arrayOf(() => factories['io.flow.google.pay.v0.models.payment_method']()),
|
|
238
|
-
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
239
|
-
emailRequired: factories.boolean(),
|
|
240
|
-
shippingAddressRequired: factories.boolean(),
|
|
241
|
-
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2770
|
+
'io.flow.reference.v0.models.currency_symbols': (): io.flow.reference.v0.models.CurrencySymbols => ({
|
|
2771
|
+
primary: factories.string(),
|
|
2772
|
+
narrow: factories.string(),
|
|
242
2773
|
}),
|
|
243
2774
|
|
|
244
|
-
'io.flow.
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2775
|
+
'io.flow.reference.v0.models.language': (): io.flow.reference.v0.models.Language => ({
|
|
2776
|
+
name: factories.string(),
|
|
2777
|
+
iso_639_2: factories.string(),
|
|
248
2778
|
}),
|
|
249
2779
|
|
|
250
|
-
'io.flow.
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
2780
|
+
'io.flow.reference.v0.models.locale': (): io.flow.reference.v0.models.Locale => ({
|
|
2781
|
+
id: factories.string(),
|
|
2782
|
+
name: factories.string(),
|
|
2783
|
+
country: factories.string(),
|
|
2784
|
+
language: factories.string(),
|
|
2785
|
+
numbers: factories['io.flow.reference.v0.models.locale_numbers'](),
|
|
255
2786
|
}),
|
|
256
2787
|
|
|
257
|
-
'io.flow.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
expirationYear: factories.integer(),
|
|
261
|
-
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
262
|
-
cryptogram: factories.string(),
|
|
263
|
-
eciIndicator: factories.string(),
|
|
2788
|
+
'io.flow.reference.v0.models.locale_numbers': (): io.flow.reference.v0.models.LocaleNumbers => ({
|
|
2789
|
+
decimal: factories.string(),
|
|
2790
|
+
group: factories.string(),
|
|
264
2791
|
}),
|
|
265
2792
|
|
|
266
|
-
'io.flow.
|
|
267
|
-
|
|
268
|
-
|
|
2793
|
+
'io.flow.reference.v0.models.localized_translation': (): io.flow.reference.v0.models.LocalizedTranslation => ({
|
|
2794
|
+
locale: factories['io.flow.reference.v0.models.locale'](),
|
|
2795
|
+
name: factories.string(),
|
|
269
2796
|
}),
|
|
270
2797
|
|
|
271
|
-
'io.flow.
|
|
272
|
-
|
|
273
|
-
|
|
2798
|
+
'io.flow.reference.v0.models.payment_method': (): io.flow.reference.v0.models.PaymentMethod => ({
|
|
2799
|
+
id: factories.string(),
|
|
2800
|
+
type: factories['io.flow.reference.v0.enums.payment_method_type'](),
|
|
2801
|
+
name: factories.string(),
|
|
2802
|
+
images: factories['io.flow.reference.v0.models.payment_method_images'](),
|
|
2803
|
+
regions: arrayOf(() => factories.string()),
|
|
2804
|
+
capabilities: arrayOf(() => factories['io.flow.reference.v0.enums.payment_method_capability']()),
|
|
274
2805
|
}),
|
|
275
2806
|
|
|
276
|
-
'io.flow.
|
|
277
|
-
|
|
2807
|
+
'io.flow.reference.v0.models.payment_method_image': (): io.flow.reference.v0.models.PaymentMethodImage => ({
|
|
2808
|
+
url: factories.string(),
|
|
2809
|
+
width: factories.integer(),
|
|
2810
|
+
height: factories.integer(),
|
|
278
2811
|
}),
|
|
279
2812
|
|
|
280
|
-
'io.flow.
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
2813
|
+
'io.flow.reference.v0.models.payment_method_images': (): io.flow.reference.v0.models.PaymentMethodImages => ({
|
|
2814
|
+
small: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
2815
|
+
medium: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
2816
|
+
large: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
284
2817
|
}),
|
|
285
2818
|
|
|
286
|
-
'io.flow.
|
|
287
|
-
|
|
288
|
-
|
|
2819
|
+
'io.flow.reference.v0.models.province': (): io.flow.reference.v0.models.Province => ({
|
|
2820
|
+
id: factories.string(),
|
|
2821
|
+
iso_3166_2: factories.string(),
|
|
2822
|
+
name: factories.string(),
|
|
2823
|
+
country: factories.string(),
|
|
2824
|
+
province_type: factories['io.flow.reference.v0.enums.province_type'](),
|
|
2825
|
+
translations: arrayOf(() => factories['io.flow.reference.v0.models.localized_translation']()),
|
|
289
2826
|
}),
|
|
290
2827
|
|
|
291
|
-
'io.flow.
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
2828
|
+
'io.flow.reference.v0.models.region': (): io.flow.reference.v0.models.Region => ({
|
|
2829
|
+
id: factories.string(),
|
|
2830
|
+
name: factories.string(),
|
|
2831
|
+
countries: arrayOf(() => factories.string()),
|
|
2832
|
+
currencies: arrayOf(() => factories.string()),
|
|
2833
|
+
languages: arrayOf(() => factories.string()),
|
|
2834
|
+
measurement_systems: arrayOf(() => factories.string()),
|
|
2835
|
+
timezones: arrayOf(() => factories.string()),
|
|
295
2836
|
}),
|
|
296
2837
|
|
|
297
|
-
'io.flow.
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
return f();
|
|
304
|
-
},
|
|
2838
|
+
'io.flow.reference.v0.models.timezone': (): io.flow.reference.v0.models.Timezone => ({
|
|
2839
|
+
name: factories.string(),
|
|
2840
|
+
description: factories.string(),
|
|
2841
|
+
offset: factories.integer(),
|
|
2842
|
+
}),
|
|
305
2843
|
|
|
306
2844
|
'io.flow.shopify.external.v0.enums.cancel_reason': (): io.flow.shopify.external.v0.enums.CancelReason => faker.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']),
|
|
307
2845
|
'io.flow.shopify.external.v0.enums.discount_status': (): io.flow.shopify.external.v0.enums.DiscountStatus => faker.helpers.arrayElement(['enabled', 'disabled', 'depleted']),
|
|
@@ -3155,7 +5693,6 @@ const factories = {
|
|
|
3155
5693
|
|
|
3156
5694
|
'io.flow.v0.enums.address_verification_result_field_code': (): io.flow.v0.enums.AddressVerificationResultFieldCode => faker.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']),
|
|
3157
5695
|
'io.flow.v0.enums.adjustment_reason_key': (): io.flow.v0.enums.AdjustmentReasonKey => faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']),
|
|
3158
|
-
'io.flow.v0.enums.aggregate': (): io.flow.v0.enums.Aggregate => faker.helpers.arrayElement(['maximum', 'minimum']),
|
|
3159
5696
|
'io.flow.v0.enums.attribute_data_type': (): io.flow.v0.enums.AttributeDataType => faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']),
|
|
3160
5697
|
|
|
3161
5698
|
'io.flow.v0.enums.attribute_intent': (): io.flow.v0.enums.AttributeIntent => faker.helpers.arrayElement([
|
|
@@ -3338,7 +5875,7 @@ const factories = {
|
|
|
3338
5875
|
]),
|
|
3339
5876
|
|
|
3340
5877
|
'io.flow.v0.enums.economic_title_location': (): io.flow.v0.enums.EconomicTitleLocation => faker.helpers.arrayElement(['high_seas', 'origination', 'destination']),
|
|
3341
|
-
'io.flow.v0.enums.entity_identifier_type': (): io.flow.v0.enums.EntityIdentifierType => faker.helpers.arrayElement(['ioss', 'voec']),
|
|
5878
|
+
'io.flow.v0.enums.entity_identifier_type': (): io.flow.v0.enums.EntityIdentifierType => faker.helpers.arrayElement(['ioss', 'voec', 'zaz']),
|
|
3342
5879
|
'io.flow.v0.enums.environment': (): io.flow.v0.enums.Environment => faker.helpers.arrayElement(['sandbox', 'production']),
|
|
3343
5880
|
|
|
3344
5881
|
'io.flow.v0.enums.event_type': (): io.flow.v0.enums.EventType => faker.helpers.arrayElement([
|
|
@@ -3637,7 +6174,6 @@ const factories = {
|
|
|
3637
6174
|
|
|
3638
6175
|
'io.flow.v0.enums.inline_window_viewport_size': (): io.flow.v0.enums.InlineWindowViewportSize => faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen', 'responsive']),
|
|
3639
6176
|
'io.flow.v0.enums.input_specification_type': (): io.flow.v0.enums.InputSpecificationType => faker.helpers.arrayElement(['text', 'number']),
|
|
3640
|
-
'io.flow.v0.enums.inventory_status': (): io.flow.v0.enums.InventoryStatus => faker.helpers.arrayElement(['has_inventory', 'no_inventory']),
|
|
3641
6177
|
'io.flow.v0.enums.invitation_error_code': (): io.flow.v0.enums.InvitationErrorCode => faker.helpers.arrayElement(['expired', 'invalid_email']),
|
|
3642
6178
|
'io.flow.v0.enums.item_availability_status': (): io.flow.v0.enums.ItemAvailabilityStatus => faker.helpers.arrayElement(['available', 'low', 'out_of_stock']),
|
|
3643
6179
|
'io.flow.v0.enums.item_identifier': (): io.flow.v0.enums.ItemIdentifier => faker.helpers.arrayElement(['item_number', 'sku']),
|
|
@@ -4236,7 +6772,6 @@ const factories = {
|
|
|
4236
6772
|
'io.flow.v0.enums.unit_of_volume': (): io.flow.v0.enums.UnitOfVolume => faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']),
|
|
4237
6773
|
'io.flow.v0.enums.unit_of_weight': (): io.flow.v0.enums.UnitOfWeight => faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']),
|
|
4238
6774
|
'io.flow.v0.enums.update_policy': (): io.flow.v0.enums.UpdatePolicy => faker.helpers.arrayElement(['auto', 'queue', 'discard']),
|
|
4239
|
-
'io.flow.v0.enums.update_type': (): io.flow.v0.enums.UpdateType => faker.helpers.arrayElement(['change', 'set']),
|
|
4240
6775
|
'io.flow.v0.enums.user_status': (): io.flow.v0.enums.UserStatus => faker.helpers.arrayElement(['pending', 'active', 'inactive']),
|
|
4241
6776
|
'io.flow.v0.enums.value_added_service': (): io.flow.v0.enums.ValueAddedService => faker.helpers.arrayElement(['Hazardous Material']),
|
|
4242
6777
|
'io.flow.v0.enums.visibility': (): io.flow.v0.enums.Visibility => faker.helpers.arrayElement(['public', 'private']),
|
|
@@ -7581,11 +10116,6 @@ const factories = {
|
|
|
7581
10116
|
'export': factories['io.flow.v0.models.export'](),
|
|
7582
10117
|
}),
|
|
7583
10118
|
|
|
7584
|
-
'io.flow.v0.models.external_api_timeout_reservation_error': (): io.flow.v0.models.ExternalApiTimeoutReservationError => ({
|
|
7585
|
-
code: 'external_api_timeout',
|
|
7586
|
-
messages: arrayOf(() => factories.string()),
|
|
7587
|
-
}),
|
|
7588
|
-
|
|
7589
10119
|
'io.flow.v0.models.fee_deduction': (): io.flow.v0.models.FeeDeduction => ({
|
|
7590
10120
|
type: factories['io.flow.v0.enums.fee_deduction_type'](),
|
|
7591
10121
|
amount: factories.decimal(),
|
|
@@ -7898,11 +10428,6 @@ const factories = {
|
|
|
7898
10428
|
messages: arrayOf(() => factories.string()),
|
|
7899
10429
|
}),
|
|
7900
10430
|
|
|
7901
|
-
'io.flow.v0.models.generic_reservation_error': (): io.flow.v0.models.GenericReservationError => ({
|
|
7902
|
-
code: 'generic_reservation_error',
|
|
7903
|
-
messages: arrayOf(() => factories.string()),
|
|
7904
|
-
}),
|
|
7905
|
-
|
|
7906
10431
|
'io.flow.v0.models.geo_form': (): io.flow.v0.models.GeoForm => ({
|
|
7907
10432
|
country: factories.string(),
|
|
7908
10433
|
currency: factories.string(),
|
|
@@ -8291,118 +10816,6 @@ const factories = {
|
|
|
8291
10816
|
limitations: arrayOf(() => factories['io.flow.v0.unions.input_specification_limitation']()),
|
|
8292
10817
|
}),
|
|
8293
10818
|
|
|
8294
|
-
'io.flow.v0.models.inventory_backorder': (): io.flow.v0.models.InventoryBackorder => ({
|
|
8295
|
-
discriminator: 'inventory_backorder',
|
|
8296
|
-
quantity: factories.long(),
|
|
8297
|
-
}),
|
|
8298
|
-
|
|
8299
|
-
'io.flow.v0.models.inventory_center_reference': (): io.flow.v0.models.InventoryCenterReference => ({
|
|
8300
|
-
key: factories.string(),
|
|
8301
|
-
}),
|
|
8302
|
-
|
|
8303
|
-
'io.flow.v0.models.inventory_check_response': (): io.flow.v0.models.InventoryCheckResponse => ({
|
|
8304
|
-
items: arrayOf(() => factories['io.flow.v0.models.inventory_check_response_item']()),
|
|
8305
|
-
}),
|
|
8306
|
-
|
|
8307
|
-
'io.flow.v0.models.inventory_check_response_item': (): io.flow.v0.models.InventoryCheckResponseItem => ({
|
|
8308
|
-
number: factories.string(),
|
|
8309
|
-
quantity: factories.long(),
|
|
8310
|
-
inventory_status: factories['io.flow.v0.enums.inventory_status'](),
|
|
8311
|
-
}),
|
|
8312
|
-
|
|
8313
|
-
'io.flow.v0.models.inventory_experience_reference': (): io.flow.v0.models.InventoryExperienceReference => ({
|
|
8314
|
-
key: factories.string(),
|
|
8315
|
-
}),
|
|
8316
|
-
|
|
8317
|
-
'io.flow.v0.models.inventory_follow_ecommerce_platform': (): io.flow.v0.models.InventoryFollowEcommercePlatform => ({
|
|
8318
|
-
discriminator: 'inventory_follow_ecommerce_platform',
|
|
8319
|
-
quantity: factories.long(),
|
|
8320
|
-
}),
|
|
8321
|
-
|
|
8322
|
-
'io.flow.v0.models.inventory_item_reference': (): io.flow.v0.models.InventoryItemReference => ({
|
|
8323
|
-
number: factories.string(),
|
|
8324
|
-
}),
|
|
8325
|
-
|
|
8326
|
-
'io.flow.v0.models.inventory_request': (): io.flow.v0.models.InventoryRequest => ({
|
|
8327
|
-
items: arrayOf(() => factories['io.flow.v0.models.inventory_request_item']()),
|
|
8328
|
-
}),
|
|
8329
|
-
|
|
8330
|
-
'io.flow.v0.models.inventory_request_item': (): io.flow.v0.models.InventoryRequestItem => ({
|
|
8331
|
-
number: factories.string(),
|
|
8332
|
-
quantity: factories.long(),
|
|
8333
|
-
}),
|
|
8334
|
-
|
|
8335
|
-
'io.flow.v0.models.inventory_rule': (): io.flow.v0.models.InventoryRule => ({
|
|
8336
|
-
id: factories.string(),
|
|
8337
|
-
position: factories.long(),
|
|
8338
|
-
query: factories.string(),
|
|
8339
|
-
strategy: factories['io.flow.v0.unions.inventory_strategy'](),
|
|
8340
|
-
}),
|
|
8341
|
-
|
|
8342
|
-
'io.flow.v0.models.inventory_rule_form': (): io.flow.v0.models.InventoryRuleForm => ({
|
|
8343
|
-
position: factories.long(),
|
|
8344
|
-
query: factories.string(),
|
|
8345
|
-
strategy: factories['io.flow.v0.unions.inventory_strategy'](),
|
|
8346
|
-
}),
|
|
8347
|
-
|
|
8348
|
-
'io.flow.v0.models.inventory_rule_version': (): io.flow.v0.models.InventoryRuleVersion => ({
|
|
8349
|
-
id: factories.string(),
|
|
8350
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8351
|
-
type: factories['io.flow.v0.enums.change_type'](),
|
|
8352
|
-
inventory_rule: factories['io.flow.v0.models.inventory_rule'](),
|
|
8353
|
-
}),
|
|
8354
|
-
|
|
8355
|
-
'io.flow.v0.models.inventory_snapshot': (): io.flow.v0.models.InventorySnapshot => ({
|
|
8356
|
-
id: factories.string(),
|
|
8357
|
-
available: factories.long(),
|
|
8358
|
-
center: factories['io.flow.v0.models.inventory_center_reference'](),
|
|
8359
|
-
item: factories['io.flow.v0.models.inventory_item_reference'](),
|
|
8360
|
-
quantity: factories.long(),
|
|
8361
|
-
}),
|
|
8362
|
-
|
|
8363
|
-
'io.flow.v0.models.inventory_snapshot_version': (): io.flow.v0.models.InventorySnapshotVersion => ({
|
|
8364
|
-
id: factories.string(),
|
|
8365
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8366
|
-
type: factories['io.flow.v0.enums.change_type'](),
|
|
8367
|
-
inventory_snapshot: factories['io.flow.v0.models.inventory_snapshot'](),
|
|
8368
|
-
}),
|
|
8369
|
-
|
|
8370
|
-
'io.flow.v0.models.inventory_stock': (): io.flow.v0.models.InventoryStock => ({
|
|
8371
|
-
discriminator: 'inventory_stock',
|
|
8372
|
-
quantity: factories.long(),
|
|
8373
|
-
}),
|
|
8374
|
-
|
|
8375
|
-
'io.flow.v0.models.inventory_unlimited': (): io.flow.v0.models.InventoryUnlimited => ({
|
|
8376
|
-
discriminator: 'inventory_unlimited',
|
|
8377
|
-
placeholder: factories.string(),
|
|
8378
|
-
}),
|
|
8379
|
-
|
|
8380
|
-
'io.flow.v0.models.inventory_update': (): io.flow.v0.models.InventoryUpdate => ({
|
|
8381
|
-
id: factories.string(),
|
|
8382
|
-
idempotency_key: factories.string(),
|
|
8383
|
-
center: factories['io.flow.v0.models.inventory_center_reference'](),
|
|
8384
|
-
item: factories['io.flow.v0.models.inventory_item_reference'](),
|
|
8385
|
-
notes: factories.object(),
|
|
8386
|
-
quantity: factories.long(),
|
|
8387
|
-
type: factories['io.flow.v0.enums.update_type'](),
|
|
8388
|
-
}),
|
|
8389
|
-
|
|
8390
|
-
'io.flow.v0.models.inventory_update_form': (): io.flow.v0.models.InventoryUpdateForm => ({
|
|
8391
|
-
center: factories.string(),
|
|
8392
|
-
idempotency_key: factories.string(),
|
|
8393
|
-
item_number: factories.string(),
|
|
8394
|
-
quantity: factories.long(),
|
|
8395
|
-
type: factories['io.flow.v0.enums.update_type'](),
|
|
8396
|
-
notes: factories.object(),
|
|
8397
|
-
}),
|
|
8398
|
-
|
|
8399
|
-
'io.flow.v0.models.inventory_update_version': (): io.flow.v0.models.InventoryUpdateVersion => ({
|
|
8400
|
-
id: factories.string(),
|
|
8401
|
-
timestamp: factories.date_time_iso_8601(),
|
|
8402
|
-
type: factories['io.flow.v0.enums.change_type'](),
|
|
8403
|
-
inventory_update: factories['io.flow.v0.models.inventory_update'](),
|
|
8404
|
-
}),
|
|
8405
|
-
|
|
8406
10819
|
'io.flow.v0.models.invitation': (): io.flow.v0.models.Invitation => ({
|
|
8407
10820
|
id: factories.string(),
|
|
8408
10821
|
organization: factories['io.flow.v0.unions.expandable_organization'](),
|
|
@@ -9429,18 +11842,6 @@ const factories = {
|
|
|
9429
11842
|
last: factories.string(),
|
|
9430
11843
|
}),
|
|
9431
11844
|
|
|
9432
|
-
'io.flow.v0.models.no_inventory_reservation_error': (): io.flow.v0.models.NoInventoryReservationError => ({
|
|
9433
|
-
code: 'no_inventory',
|
|
9434
|
-
messages: arrayOf(() => factories.string()),
|
|
9435
|
-
items: arrayOf(() => factories['io.flow.v0.models.no_inventory_reservation_error_item']()),
|
|
9436
|
-
}),
|
|
9437
|
-
|
|
9438
|
-
'io.flow.v0.models.no_inventory_reservation_error_item': (): io.flow.v0.models.NoInventoryReservationErrorItem => ({
|
|
9439
|
-
number: factories.string(),
|
|
9440
|
-
requested_quantity: factories.long(),
|
|
9441
|
-
available_quantity: factories.long(),
|
|
9442
|
-
}),
|
|
9443
|
-
|
|
9444
11845
|
'io.flow.v0.models.notification_deleted_v2': (): io.flow.v0.models.NotificationDeletedV2 => ({
|
|
9445
11846
|
discriminator: 'notification_deleted_v2',
|
|
9446
11847
|
event_id: factories.string(),
|
|
@@ -11437,20 +13838,6 @@ const factories = {
|
|
|
11437
13838
|
path: factories.string(),
|
|
11438
13839
|
}),
|
|
11439
13840
|
|
|
11440
|
-
'io.flow.v0.models.pfs_inventory_check_response': (): io.flow.v0.models.PfsInventoryCheckResponse => ({
|
|
11441
|
-
items: objectOf(() => factories['io.flow.v0.models.pfs_inventory_check_response_item']()),
|
|
11442
|
-
}),
|
|
11443
|
-
|
|
11444
|
-
'io.flow.v0.models.pfs_inventory_check_response_item': (): io.flow.v0.models.PfsInventoryCheckResponseItem => ({
|
|
11445
|
-
number: factories.string(),
|
|
11446
|
-
ats: factories.long(),
|
|
11447
|
-
in_stock: factories.boolean(),
|
|
11448
|
-
}),
|
|
11449
|
-
|
|
11450
|
-
'io.flow.v0.models.pfs_inventory_status': (): io.flow.v0.models.PfsInventoryStatus => ({
|
|
11451
|
-
status: factories.string(),
|
|
11452
|
-
}),
|
|
11453
|
-
|
|
11454
13841
|
'io.flow.v0.models.physical_delivery': (): io.flow.v0.models.PhysicalDelivery => ({
|
|
11455
13842
|
discriminator: 'physical_delivery',
|
|
11456
13843
|
id: factories.string(),
|
|
@@ -12408,37 +14795,6 @@ const factories = {
|
|
|
12408
14795
|
days_of_week: arrayOf(() => factories['io.flow.v0.enums.day_of_week']()),
|
|
12409
14796
|
}),
|
|
12410
14797
|
|
|
12411
|
-
'io.flow.v0.models.reservation': (): io.flow.v0.models.Reservation => ({
|
|
12412
|
-
id: factories.string(),
|
|
12413
|
-
key: factories.string(),
|
|
12414
|
-
order: factories['io.flow.v0.models.reservation_order_reference'](),
|
|
12415
|
-
items: arrayOf(() => factories['io.flow.v0.models.reservation_item']()),
|
|
12416
|
-
reserved_until: factories.date_time_iso_8601(),
|
|
12417
|
-
}),
|
|
12418
|
-
|
|
12419
|
-
'io.flow.v0.models.reservation_form': (): io.flow.v0.models.ReservationForm => ({
|
|
12420
|
-
order_number: factories.string(),
|
|
12421
|
-
items: arrayOf(() => factories['io.flow.v0.models.reservation_item_form']()),
|
|
12422
|
-
}),
|
|
12423
|
-
|
|
12424
|
-
'io.flow.v0.models.reservation_item': (): io.flow.v0.models.ReservationItem => ({
|
|
12425
|
-
item: factories['io.flow.v0.models.reservation_item_reference'](),
|
|
12426
|
-
quantity: factories.long(),
|
|
12427
|
-
}),
|
|
12428
|
-
|
|
12429
|
-
'io.flow.v0.models.reservation_item_form': (): io.flow.v0.models.ReservationItemForm => ({
|
|
12430
|
-
item_number: factories.string(),
|
|
12431
|
-
quantity: factories.long(),
|
|
12432
|
-
}),
|
|
12433
|
-
|
|
12434
|
-
'io.flow.v0.models.reservation_item_reference': (): io.flow.v0.models.ReservationItemReference => ({
|
|
12435
|
-
number: factories.string(),
|
|
12436
|
-
}),
|
|
12437
|
-
|
|
12438
|
-
'io.flow.v0.models.reservation_order_reference': (): io.flow.v0.models.ReservationOrderReference => ({
|
|
12439
|
-
number: factories.string(),
|
|
12440
|
-
}),
|
|
12441
|
-
|
|
12442
14798
|
'io.flow.v0.models.return': (): io.flow.v0.models.Return => ({
|
|
12443
14799
|
id: factories.string(),
|
|
12444
14800
|
key: factories.string(),
|
|
@@ -12684,7 +15040,7 @@ const factories = {
|
|
|
12684
15040
|
event_id: factories.string(),
|
|
12685
15041
|
timestamp: factories.date_time_iso_8601(),
|
|
12686
15042
|
organization_id: factories.string(),
|
|
12687
|
-
rule: factories['io.flow.v0.models.inventory_rule'](),
|
|
15043
|
+
rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
12688
15044
|
}),
|
|
12689
15045
|
|
|
12690
15046
|
'io.flow.v0.models.schedule': (): io.flow.v0.models.Schedule => ({
|
|
@@ -13952,6 +16308,11 @@ const factories = {
|
|
|
13952
16308
|
eci: factories.string(),
|
|
13953
16309
|
liability_sift: factories.boolean(),
|
|
13954
16310
|
version: factories.string(),
|
|
16311
|
+
authenticated: factories.boolean(),
|
|
16312
|
+
authenticated_result: factories.string(),
|
|
16313
|
+
offered: factories.boolean(),
|
|
16314
|
+
offered_result: factories.string(),
|
|
16315
|
+
sca_exemption: factories.string(),
|
|
13955
16316
|
}),
|
|
13956
16317
|
|
|
13957
16318
|
'io.flow.v0.models.threeds_challenge_action_details': (): io.flow.v0.models.ThreedsChallengeActionDetails => ({
|
|
@@ -15339,17 +17700,6 @@ const factories = {
|
|
|
15339
17700
|
return f();
|
|
15340
17701
|
},
|
|
15341
17702
|
|
|
15342
|
-
'io.flow.v0.unions.inventory_strategy': (): io.flow.v0.unions.InventoryStrategy => {
|
|
15343
|
-
const f = faker.helpers.arrayElement([
|
|
15344
|
-
() => factories['io.flow.v0.models.inventory_backorder'](),
|
|
15345
|
-
() => factories['io.flow.v0.models.inventory_stock'](),
|
|
15346
|
-
() => factories['io.flow.v0.models.inventory_unlimited'](),
|
|
15347
|
-
() => factories['io.flow.v0.models.inventory_follow_ecommerce_platform'](),
|
|
15348
|
-
]);
|
|
15349
|
-
|
|
15350
|
-
return f();
|
|
15351
|
-
},
|
|
15352
|
-
|
|
15353
17703
|
'io.flow.v0.unions.know_your_business': (): io.flow.v0.unions.KnowYourBusiness => {
|
|
15354
17704
|
const f = faker.helpers.arrayElement([() => factories['io.flow.v0.models.know_your_business_usa']()]);
|
|
15355
17705
|
return f();
|
|
@@ -15757,16 +18107,6 @@ const factories = {
|
|
|
15757
18107
|
return f();
|
|
15758
18108
|
},
|
|
15759
18109
|
|
|
15760
|
-
'io.flow.v0.unions.reservation_error': (): io.flow.v0.unions.ReservationError => {
|
|
15761
|
-
const f = faker.helpers.arrayElement([
|
|
15762
|
-
() => factories['io.flow.v0.models.no_inventory_reservation_error'](),
|
|
15763
|
-
() => factories['io.flow.v0.models.external_api_timeout_reservation_error'](),
|
|
15764
|
-
() => factories['io.flow.v0.models.generic_reservation_error'](),
|
|
15765
|
-
]);
|
|
15766
|
-
|
|
15767
|
-
return f();
|
|
15768
|
-
},
|
|
15769
|
-
|
|
15770
18110
|
'io.flow.v0.unions.return_source': (): io.flow.v0.unions.ReturnSource => {
|
|
15771
18111
|
const f = faker.helpers.arrayElement([
|
|
15772
18112
|
() => factories['io.flow.v0.models.return_source_flow'](),
|
|
@@ -16013,7 +18353,6 @@ export const makeAdyenNativeActionDetails = () => factories['io.flow.v0.models.a
|
|
|
16013
18353
|
export const makeAdyenNativeData = () => factories['io.flow.v0.unions.adyen_native_data']();
|
|
16014
18354
|
export const makeAdyenV3ChallengeToken = () => factories['io.flow.v0.models.adyen_v3_challenge_token']();
|
|
16015
18355
|
export const makeAdyenV3FingerprintToken = () => factories['io.flow.v0.models.adyen_v3_fingerprint_token']();
|
|
16016
|
-
export const makeAggregate = () => factories['io.flow.v0.enums.aggregate']();
|
|
16017
18356
|
export const makeAllocation = () => factories['io.flow.v0.models.allocation']();
|
|
16018
18357
|
export const makeAllocationComponent = () => factories['io.flow.v0.unions.allocation_component']();
|
|
16019
18358
|
export const makeAllocationDeletedV2 = () => factories['io.flow.v0.models.allocation_deleted_v2']();
|
|
@@ -16527,7 +18866,6 @@ export const makeExportStatus = () => factories['io.flow.v0.enums.export_status'
|
|
|
16527
18866
|
export const makeExportType = () => factories['io.flow.v0.unions.export_type']();
|
|
16528
18867
|
export const makeExportVersion = () => factories['io.flow.v0.models.export_version']();
|
|
16529
18868
|
export const makeExporterOfRecord = () => factories['io.flow.v0.enums.exporter_of_record']();
|
|
16530
|
-
export const makeExternalApiTimeoutReservationError = () => factories['io.flow.v0.models.external_api_timeout_reservation_error']();
|
|
16531
18869
|
export const makeFeeDeduction = () => factories['io.flow.v0.models.fee_deduction']();
|
|
16532
18870
|
export const makeFeeDeductionType = () => factories['io.flow.v0.enums.fee_deduction_type']();
|
|
16533
18871
|
export const makeFeeWeight = () => factories['io.flow.v0.models.fee_weight']();
|
|
@@ -16596,7 +18934,6 @@ export const makeGatewayAuthenticationDataForm = () => factories['io.flow.v0.uni
|
|
|
16596
18934
|
export const makeGenerateLoad = () => factories['io.flow.v0.models.generate_load']();
|
|
16597
18935
|
export const makeGenericError = () => factories['io.flow.v0.models.generic_error']();
|
|
16598
18936
|
export const makeGenericErrorCode = () => factories['io.flow.v0.enums.generic_error_code']();
|
|
16599
|
-
export const makeGenericReservationError = () => factories['io.flow.v0.models.generic_reservation_error']();
|
|
16600
18937
|
export const makeGeoForm = () => factories['io.flow.v0.models.geo_form']();
|
|
16601
18938
|
export const makeGoodsSupply = () => factories['io.flow.v0.enums.goods_supply']();
|
|
16602
18939
|
export const makeGooglePayAuthorizationPayload = () => factories['io.flow.v0.models.google_pay_authorization_payload']();
|
|
@@ -16662,27 +18999,6 @@ export const makeInputSpecificationLimitation = () => factories['io.flow.v0.unio
|
|
|
16662
18999
|
export const makeInputSpecificationLimitationMax = () => factories['io.flow.v0.models.input_specification_limitation_max']();
|
|
16663
19000
|
export const makeInputSpecificationLimitations = () => factories['io.flow.v0.models.input_specification_limitations']();
|
|
16664
19001
|
export const makeInputSpecificationType = () => factories['io.flow.v0.enums.input_specification_type']();
|
|
16665
|
-
export const makeInventoryBackorder = () => factories['io.flow.v0.models.inventory_backorder']();
|
|
16666
|
-
export const makeInventoryCenterReference = () => factories['io.flow.v0.models.inventory_center_reference']();
|
|
16667
|
-
export const makeInventoryCheckResponse = () => factories['io.flow.v0.models.inventory_check_response']();
|
|
16668
|
-
export const makeInventoryCheckResponseItem = () => factories['io.flow.v0.models.inventory_check_response_item']();
|
|
16669
|
-
export const makeInventoryExperienceReference = () => factories['io.flow.v0.models.inventory_experience_reference']();
|
|
16670
|
-
export const makeInventoryFollowEcommercePlatform = () => factories['io.flow.v0.models.inventory_follow_ecommerce_platform']();
|
|
16671
|
-
export const makeInventoryItemReference = () => factories['io.flow.v0.models.inventory_item_reference']();
|
|
16672
|
-
export const makeInventoryRequest = () => factories['io.flow.v0.models.inventory_request']();
|
|
16673
|
-
export const makeInventoryRequestItem = () => factories['io.flow.v0.models.inventory_request_item']();
|
|
16674
|
-
export const makeInventoryRule = () => factories['io.flow.v0.models.inventory_rule']();
|
|
16675
|
-
export const makeInventoryRuleForm = () => factories['io.flow.v0.models.inventory_rule_form']();
|
|
16676
|
-
export const makeInventoryRuleVersion = () => factories['io.flow.v0.models.inventory_rule_version']();
|
|
16677
|
-
export const makeInventorySnapshot = () => factories['io.flow.v0.models.inventory_snapshot']();
|
|
16678
|
-
export const makeInventorySnapshotVersion = () => factories['io.flow.v0.models.inventory_snapshot_version']();
|
|
16679
|
-
export const makeInventoryStatus = () => factories['io.flow.v0.enums.inventory_status']();
|
|
16680
|
-
export const makeInventoryStock = () => factories['io.flow.v0.models.inventory_stock']();
|
|
16681
|
-
export const makeInventoryStrategy = () => factories['io.flow.v0.unions.inventory_strategy']();
|
|
16682
|
-
export const makeInventoryUnlimited = () => factories['io.flow.v0.models.inventory_unlimited']();
|
|
16683
|
-
export const makeInventoryUpdate = () => factories['io.flow.v0.models.inventory_update']();
|
|
16684
|
-
export const makeInventoryUpdateForm = () => factories['io.flow.v0.models.inventory_update_form']();
|
|
16685
|
-
export const makeInventoryUpdateVersion = () => factories['io.flow.v0.models.inventory_update_version']();
|
|
16686
19002
|
export const makeInvitation = () => factories['io.flow.v0.models.invitation']();
|
|
16687
19003
|
export const makeInvitationError = () => factories['io.flow.v0.models.invitation_error']();
|
|
16688
19004
|
export const makeInvitationErrorCode = () => factories['io.flow.v0.enums.invitation_error_code']();
|
|
@@ -16850,8 +19166,6 @@ export const makeMonthlyAverage = () => factories['io.flow.v0.models.monthly_ave
|
|
|
16850
19166
|
export const makeMonthlyAverageVolume = () => factories['io.flow.v0.models.monthly_average_volume']();
|
|
16851
19167
|
export const makeName = () => factories['io.flow.v0.models.name']();
|
|
16852
19168
|
export const makeNameForm = () => factories['io.flow.v0.models.name_form']();
|
|
16853
|
-
export const makeNoInventoryReservationError = () => factories['io.flow.v0.models.no_inventory_reservation_error']();
|
|
16854
|
-
export const makeNoInventoryReservationErrorItem = () => factories['io.flow.v0.models.no_inventory_reservation_error_item']();
|
|
16855
19169
|
export const makeNotificationDeletedV2 = () => factories['io.flow.v0.models.notification_deleted_v2']();
|
|
16856
19170
|
export const makeNotificationUpsertedV2 = () => factories['io.flow.v0.models.notification_upserted_v2']();
|
|
16857
19171
|
export const makeNumberRange = () => factories['io.flow.v0.models.number_range']();
|
|
@@ -17195,9 +19509,6 @@ export const makePermissionAudit = () => factories['io.flow.v0.models.permission
|
|
|
17195
19509
|
export const makePermissionCheck = () => factories['io.flow.v0.models.permission_check']();
|
|
17196
19510
|
export const makePermittedHttpMethod = () => factories['io.flow.v0.enums.permitted_http_method']();
|
|
17197
19511
|
export const makePermittedRoute = () => factories['io.flow.v0.models.permitted_route']();
|
|
17198
|
-
export const makePfsInventoryCheckResponse = () => factories['io.flow.v0.models.pfs_inventory_check_response']();
|
|
17199
|
-
export const makePfsInventoryCheckResponseItem = () => factories['io.flow.v0.models.pfs_inventory_check_response_item']();
|
|
17200
|
-
export const makePfsInventoryStatus = () => factories['io.flow.v0.models.pfs_inventory_status']();
|
|
17201
19512
|
export const makePhysicalDelivery = () => factories['io.flow.v0.models.physical_delivery']();
|
|
17202
19513
|
export const makePhysicalDeliveryPreferredService = () => factories['io.flow.v0.models.physical_delivery_preferred_service']();
|
|
17203
19514
|
export const makePhysicalDeliverySpecialSerivce = () => factories['io.flow.v0.enums.physical_delivery_special_serivce']();
|
|
@@ -17347,13 +19658,6 @@ export const makeRepeatHourly = () => factories['io.flow.v0.models.repeat_hourly
|
|
|
17347
19658
|
export const makeRepeatMonthly = () => factories['io.flow.v0.models.repeat_monthly']();
|
|
17348
19659
|
export const makeRepeatSchedule = () => factories['io.flow.v0.unions.repeat_schedule']();
|
|
17349
19660
|
export const makeRepeatWeekly = () => factories['io.flow.v0.models.repeat_weekly']();
|
|
17350
|
-
export const makeReservation = () => factories['io.flow.v0.models.reservation']();
|
|
17351
|
-
export const makeReservationError = () => factories['io.flow.v0.unions.reservation_error']();
|
|
17352
|
-
export const makeReservationForm = () => factories['io.flow.v0.models.reservation_form']();
|
|
17353
|
-
export const makeReservationItem = () => factories['io.flow.v0.models.reservation_item']();
|
|
17354
|
-
export const makeReservationItemForm = () => factories['io.flow.v0.models.reservation_item_form']();
|
|
17355
|
-
export const makeReservationItemReference = () => factories['io.flow.v0.models.reservation_item_reference']();
|
|
17356
|
-
export const makeReservationOrderReference = () => factories['io.flow.v0.models.reservation_order_reference']();
|
|
17357
19661
|
export const makeRestrictedReviewStatus = () => factories['io.flow.v0.enums.restricted_review_status']();
|
|
17358
19662
|
export const makeReturn = () => factories['io.flow.v0.models.return']();
|
|
17359
19663
|
export const makeReturnDeleted = () => factories['io.flow.v0.models.return_deleted']();
|
|
@@ -17704,7 +20008,6 @@ export const makeUnitOfTime = () => factories['io.flow.v0.enums.unit_of_time']()
|
|
|
17704
20008
|
export const makeUnitOfVolume = () => factories['io.flow.v0.enums.unit_of_volume']();
|
|
17705
20009
|
export const makeUnitOfWeight = () => factories['io.flow.v0.enums.unit_of_weight']();
|
|
17706
20010
|
export const makeUpdatePolicy = () => factories['io.flow.v0.enums.update_policy']();
|
|
17707
|
-
export const makeUpdateType = () => factories['io.flow.v0.enums.update_type']();
|
|
17708
20011
|
export const makeUpload = () => factories['io.flow.v0.models.upload']();
|
|
17709
20012
|
export const makeUser = () => factories['io.flow.v0.models.user']();
|
|
17710
20013
|
export const makeUserForm = () => factories['io.flow.v0.models.user_form']();
|