@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/dist/esm/api.js
CHANGED
|
@@ -118,139 +118,2271 @@ var factories = {
|
|
|
118
118
|
]);
|
|
119
119
|
return f();
|
|
120
120
|
},
|
|
121
|
+
'io.flow.catalog.v0.enums.adjustment_reason_key': function () { return faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']); },
|
|
122
|
+
'io.flow.catalog.v0.enums.attribute_intent': function () { return faker.helpers.arrayElement([
|
|
123
|
+
'brand',
|
|
124
|
+
'color',
|
|
125
|
+
'countries_of_origin',
|
|
126
|
+
'product_id',
|
|
127
|
+
'fulfillment_method',
|
|
128
|
+
'hazardous',
|
|
129
|
+
'price',
|
|
130
|
+
'size',
|
|
131
|
+
'sku',
|
|
132
|
+
'taxability',
|
|
133
|
+
'consumer_url',
|
|
134
|
+
'gtin',
|
|
135
|
+
'mpn',
|
|
136
|
+
'facet',
|
|
137
|
+
'eccn',
|
|
138
|
+
'returnable',
|
|
139
|
+
'searchable',
|
|
140
|
+
'barcode',
|
|
141
|
+
'min_days_to_ship',
|
|
142
|
+
'max_days_to_ship',
|
|
143
|
+
'commercial_invoice_item_number',
|
|
144
|
+
'include_in_product_feeds',
|
|
145
|
+
]); },
|
|
146
|
+
'io.flow.catalog.v0.enums.fulfillment_method_type': function () { return faker.helpers.arrayElement(['fulfillment_method']); },
|
|
147
|
+
'io.flow.catalog.v0.enums.fulfillment_method_value': function () { return faker.helpers.arrayElement(['digital', 'physical']); },
|
|
148
|
+
'io.flow.catalog.v0.enums.image_tag': function () { return faker.helpers.arrayElement(['thumbnail', 'checkout']); },
|
|
149
|
+
'io.flow.catalog.v0.enums.return_item_status': function () { return faker.helpers.arrayElement(['returnable', 'non-returnable']); },
|
|
150
|
+
'io.flow.catalog.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
151
|
+
'io.flow.catalog.v0.enums.taxability_type': function () { return faker.helpers.arrayElement(['tax_rule']); },
|
|
152
|
+
'io.flow.catalog.v0.enums.taxability_value': function () { return faker.helpers.arrayElement(['exempt']); },
|
|
153
|
+
'io.flow.catalog.v0.enums.update_policy': function () { return faker.helpers.arrayElement(['auto', 'queue', 'discard']); },
|
|
154
|
+
'io.flow.catalog.v0.models.adjustment_reason': function () { return ({
|
|
155
|
+
key: factories['io.flow.catalog.v0.enums.adjustment_reason_key'](),
|
|
156
|
+
label: factories.string(),
|
|
157
|
+
}); },
|
|
158
|
+
'io.flow.catalog.v0.models.attribute': function () { return ({
|
|
159
|
+
id: factories.string(),
|
|
160
|
+
key: factories.string(),
|
|
161
|
+
options: factories['io.flow.catalog.v0.models.options'](),
|
|
162
|
+
label: factories.string(),
|
|
163
|
+
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
164
|
+
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
165
|
+
position: factories.long(),
|
|
166
|
+
}); },
|
|
167
|
+
'io.flow.catalog.v0.models.attribute_form': function () { return ({
|
|
168
|
+
key: factories.string(),
|
|
169
|
+
options: factories['io.flow.catalog.v0.models.options'](),
|
|
170
|
+
label: factories.string(),
|
|
171
|
+
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
172
|
+
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
173
|
+
position: factories.long(),
|
|
174
|
+
}); },
|
|
175
|
+
'io.flow.catalog.v0.models.attribute_version': function () { return ({
|
|
176
|
+
id: factories.string(),
|
|
177
|
+
timestamp: factories.date_time_iso_8601(),
|
|
178
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
179
|
+
attribute: factories['io.flow.catalog.v0.models.attribute'](),
|
|
180
|
+
}); },
|
|
181
|
+
'io.flow.catalog.v0.models.catalog': function () { return ({
|
|
182
|
+
id: factories.string(),
|
|
183
|
+
}); },
|
|
184
|
+
'io.flow.catalog.v0.models.catalog_reference': function () { return ({
|
|
185
|
+
id: factories.string(),
|
|
186
|
+
}); },
|
|
187
|
+
'io.flow.catalog.v0.models.catalog_statistics': function () { return ({
|
|
188
|
+
id: factories.string(),
|
|
189
|
+
items: factories.long(),
|
|
190
|
+
categories: factories.long(),
|
|
191
|
+
}); },
|
|
192
|
+
'io.flow.catalog.v0.models.catalog_version': function () { return ({
|
|
193
|
+
id: factories.string(),
|
|
194
|
+
timestamp: factories.date_time_iso_8601(),
|
|
195
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
196
|
+
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
197
|
+
}); },
|
|
198
|
+
'io.flow.catalog.v0.models.flow_item_index_metadata': function () { return ({
|
|
199
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
200
|
+
}); },
|
|
201
|
+
'io.flow.catalog.v0.models.image': function () { return ({
|
|
202
|
+
url: factories.string(),
|
|
203
|
+
tags: arrayOf(function () { return factories['io.flow.catalog.v0.enums.image_tag'](); }),
|
|
204
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
205
|
+
}); },
|
|
206
|
+
'io.flow.catalog.v0.models.image_form': function () { return ({
|
|
207
|
+
url: factories.string(),
|
|
208
|
+
tags: arrayOf(function () { return factories['io.flow.catalog.v0.enums.image_tag'](); }),
|
|
209
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
210
|
+
}); },
|
|
211
|
+
'io.flow.catalog.v0.models.item': function () { return ({
|
|
212
|
+
id: factories.string(),
|
|
213
|
+
number: factories.string(),
|
|
214
|
+
locale: factories.string(),
|
|
215
|
+
name: factories.string(),
|
|
216
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
217
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
218
|
+
description: factories.string(),
|
|
219
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
220
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
221
|
+
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image'](); }),
|
|
222
|
+
local: factories['io.flow.catalog.v0.models.local'](),
|
|
223
|
+
created_at: factories.date_time_iso_8601(),
|
|
224
|
+
updated_at: factories.date_time_iso_8601(),
|
|
225
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
226
|
+
}); },
|
|
227
|
+
'io.flow.catalog.v0.models.item_attributes_patch_form': function () { return ({
|
|
228
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
229
|
+
}); },
|
|
230
|
+
'io.flow.catalog.v0.models.item_form': function () { return ({
|
|
231
|
+
number: factories.string(),
|
|
232
|
+
locale: factories.string(),
|
|
233
|
+
name: factories.string(),
|
|
234
|
+
currency: factories.string(),
|
|
235
|
+
price: factories.double(),
|
|
236
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
237
|
+
description: factories.string(),
|
|
238
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
239
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
240
|
+
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
241
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
242
|
+
}); },
|
|
243
|
+
'io.flow.catalog.v0.models.item_form_overlay': function () { return ({
|
|
244
|
+
id: factories.string(),
|
|
245
|
+
number: factories.string(),
|
|
246
|
+
key: factories.string(),
|
|
247
|
+
position: factories.long(),
|
|
248
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
249
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
250
|
+
description: factories.string(),
|
|
251
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
252
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
253
|
+
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
254
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
255
|
+
}); },
|
|
256
|
+
'io.flow.catalog.v0.models.item_form_overlay_form': function () { return ({
|
|
257
|
+
number: factories.string(),
|
|
258
|
+
price: factories.double(),
|
|
259
|
+
currency: factories.string(),
|
|
260
|
+
position: factories.long(),
|
|
261
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
262
|
+
description: factories.string(),
|
|
263
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
264
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
265
|
+
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
266
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
267
|
+
}); },
|
|
268
|
+
'io.flow.catalog.v0.models.item_price_update_form': function () { return ({
|
|
269
|
+
number: factories.string(),
|
|
270
|
+
currency: factories.string(),
|
|
271
|
+
price: factories.decimal(),
|
|
272
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
273
|
+
}); },
|
|
274
|
+
'io.flow.catalog.v0.models.item_price_update_put_form': function () { return ({
|
|
275
|
+
currency: factories.string(),
|
|
276
|
+
price: factories.decimal(),
|
|
277
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
278
|
+
}); },
|
|
279
|
+
'io.flow.catalog.v0.models.item_statistics': function () { return ({
|
|
280
|
+
items: factories.long(),
|
|
281
|
+
categories: factories.long(),
|
|
282
|
+
}); },
|
|
283
|
+
'io.flow.catalog.v0.models.item_version': function () { return ({
|
|
284
|
+
id: factories.string(),
|
|
285
|
+
timestamp: factories.date_time_iso_8601(),
|
|
286
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
287
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
288
|
+
}); },
|
|
289
|
+
'io.flow.catalog.v0.models.local': function () { return ({
|
|
290
|
+
experience: factories['io.flow.common.v0.models.experience_summary'](),
|
|
291
|
+
prices: arrayOf(function () { return factories['io.flow.catalog.v0.unions.localized_price'](); }),
|
|
292
|
+
rates: arrayOf(function () { return factories['io.flow.currency.v0.models.rate'](); }),
|
|
293
|
+
spot_rates: arrayOf(function () { return factories.object(); }),
|
|
294
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
295
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
296
|
+
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price_with_base'](); }),
|
|
297
|
+
}); },
|
|
298
|
+
'io.flow.catalog.v0.models.localized_adjustment': function () { return ({
|
|
299
|
+
currency: factories.string(),
|
|
300
|
+
amount: factories.double(),
|
|
301
|
+
label: factories.string(),
|
|
302
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
303
|
+
reason: factories['io.flow.catalog.v0.models.adjustment_reason'](),
|
|
304
|
+
}); },
|
|
305
|
+
'io.flow.catalog.v0.models.localized_item_duty': function () { return ({
|
|
306
|
+
key: 'localized_item_duty',
|
|
307
|
+
currency: factories.string(),
|
|
308
|
+
amount: factories.double(),
|
|
309
|
+
label: factories.string(),
|
|
310
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
311
|
+
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
312
|
+
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
313
|
+
}); },
|
|
314
|
+
'io.flow.catalog.v0.models.localized_item_price': function () { return ({
|
|
315
|
+
key: 'localized_item_price',
|
|
316
|
+
currency: factories.string(),
|
|
317
|
+
amount: factories.double(),
|
|
318
|
+
label: factories.string(),
|
|
319
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
320
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
321
|
+
}); },
|
|
322
|
+
'io.flow.catalog.v0.models.localized_item_vat': function () { return ({
|
|
323
|
+
key: 'localized_item_vat',
|
|
324
|
+
currency: factories.string(),
|
|
325
|
+
amount: factories.double(),
|
|
326
|
+
label: factories.string(),
|
|
327
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
328
|
+
name: factories.string(),
|
|
329
|
+
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
330
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
331
|
+
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
332
|
+
}); },
|
|
333
|
+
'io.flow.catalog.v0.models.localized_total': function () { return ({
|
|
334
|
+
key: 'localized_total',
|
|
335
|
+
currency: factories.string(),
|
|
336
|
+
amount: factories.double(),
|
|
337
|
+
label: factories.string(),
|
|
338
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
339
|
+
}); },
|
|
340
|
+
'io.flow.catalog.v0.models.options': function () { return ({
|
|
341
|
+
required: factories.boolean(),
|
|
342
|
+
show_in_catalog: factories.boolean(),
|
|
343
|
+
show_in_harmonization: factories.boolean(),
|
|
344
|
+
}); },
|
|
345
|
+
'io.flow.catalog.v0.models.subcatalog': function () { return ({
|
|
346
|
+
discriminator: 'subcatalog',
|
|
347
|
+
id: factories.string(),
|
|
348
|
+
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
349
|
+
settings: factories['io.flow.catalog.v0.models.subcatalog_settings'](),
|
|
350
|
+
}); },
|
|
351
|
+
'io.flow.catalog.v0.models.subcatalog_form': function () { return ({
|
|
352
|
+
settings: factories['io.flow.catalog.v0.models.subcatalog_settings_form'](),
|
|
353
|
+
}); },
|
|
354
|
+
'io.flow.catalog.v0.models.subcatalog_item': function () { return ({
|
|
355
|
+
id: factories.string(),
|
|
356
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
357
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
358
|
+
}); },
|
|
359
|
+
'io.flow.catalog.v0.models.subcatalog_item_version': function () { return ({
|
|
360
|
+
id: factories.string(),
|
|
361
|
+
timestamp: factories.date_time_iso_8601(),
|
|
362
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
363
|
+
subcatalog_item: factories['io.flow.catalog.v0.models.subcatalog_item'](),
|
|
364
|
+
}); },
|
|
365
|
+
'io.flow.catalog.v0.models.subcatalog_reference': function () { return ({
|
|
366
|
+
discriminator: 'subcatalog_reference',
|
|
367
|
+
id: factories.string(),
|
|
368
|
+
}); },
|
|
369
|
+
'io.flow.catalog.v0.models.subcatalog_settings': function () { return ({
|
|
370
|
+
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
371
|
+
}); },
|
|
372
|
+
'io.flow.catalog.v0.models.subcatalog_settings_form': function () { return ({
|
|
373
|
+
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
374
|
+
}); },
|
|
375
|
+
'io.flow.catalog.v0.models.subcatalog_statistics': function () { return ({
|
|
376
|
+
excluded: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
377
|
+
included: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
378
|
+
restricted: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
379
|
+
queue: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
380
|
+
catalog: factories['io.flow.catalog.v0.models.catalog_statistics'](),
|
|
381
|
+
}); },
|
|
382
|
+
'io.flow.catalog.v0.models.subcatalog_version': function () { return ({
|
|
383
|
+
id: factories.string(),
|
|
384
|
+
timestamp: factories.date_time_iso_8601(),
|
|
385
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
386
|
+
subcatalog: factories['io.flow.catalog.v0.models.subcatalog'](),
|
|
387
|
+
}); },
|
|
388
|
+
'io.flow.catalog.v0.unions.expandable_subcatalog': function () {
|
|
389
|
+
var f = faker.helpers.arrayElement([
|
|
390
|
+
function () { return factories['io.flow.catalog.v0.models.subcatalog'](); },
|
|
391
|
+
function () { return factories['io.flow.catalog.v0.models.subcatalog_reference'](); },
|
|
392
|
+
]);
|
|
393
|
+
return f();
|
|
394
|
+
},
|
|
395
|
+
'io.flow.catalog.v0.unions.localized_price': function () {
|
|
396
|
+
var f = faker.helpers.arrayElement([
|
|
397
|
+
function () { return factories['io.flow.catalog.v0.models.localized_item_price'](); },
|
|
398
|
+
function () { return factories['io.flow.catalog.v0.models.localized_item_vat'](); },
|
|
399
|
+
function () { return factories['io.flow.catalog.v0.models.localized_item_duty'](); },
|
|
400
|
+
function () { return factories['io.flow.catalog.v0.models.localized_total'](); },
|
|
401
|
+
]);
|
|
402
|
+
return f();
|
|
403
|
+
},
|
|
404
|
+
'io.flow.common.v0.enums.attribute_data_type': function () { return faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']); },
|
|
405
|
+
'io.flow.common.v0.enums.availability_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled']); },
|
|
406
|
+
'io.flow.common.v0.enums.calendar': function () { return faker.helpers.arrayElement(['weekdays', 'everyday']); },
|
|
407
|
+
'io.flow.common.v0.enums.capability': function () { return faker.helpers.arrayElement(['crossdock']); },
|
|
408
|
+
'io.flow.common.v0.enums.change_type': function () { return faker.helpers.arrayElement(['insert', 'update', 'delete']); },
|
|
409
|
+
'io.flow.common.v0.enums.currency_label_formatter': function () { return faker.helpers.arrayElement(['strip_trailing_zeros', 'symbol_prefix', 'symbol_suffix']); },
|
|
410
|
+
'io.flow.common.v0.enums.currency_symbol_format': function () { return faker.helpers.arrayElement(['narrow', 'primary']); },
|
|
411
|
+
'io.flow.common.v0.enums.day_of_week': function () { return faker.helpers.arrayElement([
|
|
412
|
+
'sunday',
|
|
413
|
+
'monday',
|
|
414
|
+
'tuesday',
|
|
415
|
+
'wednesday',
|
|
416
|
+
'thursday',
|
|
417
|
+
'friday',
|
|
418
|
+
'saturday',
|
|
419
|
+
]); },
|
|
420
|
+
'io.flow.common.v0.enums.delivered_duty': function () { return faker.helpers.arrayElement(['paid', 'unpaid']); },
|
|
421
|
+
'io.flow.common.v0.enums.discount_target': function () { return faker.helpers.arrayElement(['item', 'shipping']); },
|
|
422
|
+
'io.flow.common.v0.enums.entity_identifier_type': function () { return faker.helpers.arrayElement(['ioss', 'voec', 'zaz']); },
|
|
423
|
+
'io.flow.common.v0.enums.environment': function () { return faker.helpers.arrayElement(['sandbox', 'production']); },
|
|
424
|
+
'io.flow.common.v0.enums.exception_type': function () { return faker.helpers.arrayElement(['open', 'closed']); },
|
|
425
|
+
'io.flow.common.v0.enums.goods_supply': function () { return faker.helpers.arrayElement(['export', 'intra_community', 'local']); },
|
|
426
|
+
'io.flow.common.v0.enums.holiday_calendar': function () { return faker.helpers.arrayElement(['us_bank_holidays', 'jewish_holidays']); },
|
|
427
|
+
'io.flow.common.v0.enums.included_levy_key': function () { return faker.helpers.arrayElement(['duty', 'vat', 'vat_and_duty', 'none']); },
|
|
428
|
+
'io.flow.common.v0.enums.incoterm': function () { return faker.helpers.arrayElement([
|
|
429
|
+
'EXW',
|
|
430
|
+
'FCA',
|
|
431
|
+
'CPT',
|
|
432
|
+
'CIP',
|
|
433
|
+
'DAT',
|
|
434
|
+
'DAP',
|
|
435
|
+
'DDP',
|
|
436
|
+
'FAS',
|
|
437
|
+
'FOB',
|
|
438
|
+
'CFR',
|
|
439
|
+
'CIF',
|
|
440
|
+
'DAF',
|
|
441
|
+
'DES',
|
|
442
|
+
'DEQ',
|
|
443
|
+
'DDU',
|
|
444
|
+
]); },
|
|
445
|
+
'io.flow.common.v0.enums.input_specification_type': function () { return faker.helpers.arrayElement(['text', 'number']); },
|
|
446
|
+
'io.flow.common.v0.enums.margin_type': function () { return faker.helpers.arrayElement(['fixed', 'percent']); },
|
|
447
|
+
'io.flow.common.v0.enums.measurement_system': function () { return faker.helpers.arrayElement(['imperial', 'metric']); },
|
|
448
|
+
'io.flow.common.v0.enums.merchant_of_record': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
449
|
+
'io.flow.common.v0.enums.order_merchant_of_record': function () { return faker.helpers.arrayElement(['flow', 'organization', 'mixed']); },
|
|
450
|
+
'io.flow.common.v0.enums.organization_status': function () { return faker.helpers.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']); },
|
|
451
|
+
'io.flow.common.v0.enums.organization_type': function () { return faker.helpers.arrayElement(['standalone', 'channel']); },
|
|
452
|
+
'io.flow.common.v0.enums.price_book_status': function () { return faker.helpers.arrayElement(['draft', 'published', 'archived']); },
|
|
453
|
+
'io.flow.common.v0.enums.role': function () { return faker.helpers.arrayElement(['admin', 'member']); },
|
|
454
|
+
'io.flow.common.v0.enums.rounding_method': function () { return faker.helpers.arrayElement(['up', 'down', 'nearest']); },
|
|
455
|
+
'io.flow.common.v0.enums.rounding_type': function () { return faker.helpers.arrayElement(['pattern', 'multiple']); },
|
|
456
|
+
'io.flow.common.v0.enums.schedule_exception_status': function () { return faker.helpers.arrayElement(['Open', 'Closed']); },
|
|
457
|
+
'io.flow.common.v0.enums.sort_direction': function () { return faker.helpers.arrayElement(['ascending', 'descending']); },
|
|
458
|
+
'io.flow.common.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
459
|
+
'millimeter',
|
|
460
|
+
'centimeter',
|
|
461
|
+
'inch',
|
|
462
|
+
'foot',
|
|
463
|
+
'cubic_inch',
|
|
464
|
+
'cubic_meter',
|
|
465
|
+
'gram',
|
|
466
|
+
'kilogram',
|
|
467
|
+
'meter',
|
|
468
|
+
'ounce',
|
|
469
|
+
'pound',
|
|
470
|
+
]); },
|
|
471
|
+
'io.flow.common.v0.enums.unit_of_time': function () { return faker.helpers.arrayElement(['year', 'month', 'week', 'day', 'hour', 'minute']); },
|
|
472
|
+
'io.flow.common.v0.enums.user_status': function () { return faker.helpers.arrayElement(['pending', 'active', 'inactive']); },
|
|
473
|
+
'io.flow.common.v0.enums.value_added_service': function () { return faker.helpers.arrayElement(['Hazardous Material']); },
|
|
474
|
+
'io.flow.common.v0.enums.visibility': function () { return faker.helpers.arrayElement(['public', 'private']); },
|
|
475
|
+
'io.flow.common.v0.models.address': function () { return ({
|
|
476
|
+
text: factories.string(),
|
|
477
|
+
streets: arrayOf(function () { return factories.string(); }),
|
|
478
|
+
street_number: factories.string(),
|
|
479
|
+
city: factories.string(),
|
|
480
|
+
province: factories.string(),
|
|
481
|
+
postal: factories.string(),
|
|
482
|
+
country: factories.string(),
|
|
483
|
+
latitude: factories.string(),
|
|
484
|
+
longitude: factories.string(),
|
|
485
|
+
}); },
|
|
486
|
+
'io.flow.common.v0.models.billing_address': function () { return ({
|
|
487
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
488
|
+
streets: arrayOf(function () { return factories.string(); }),
|
|
489
|
+
city: factories.string(),
|
|
490
|
+
province: factories.string(),
|
|
491
|
+
postal: factories.string(),
|
|
492
|
+
country: factories.string(),
|
|
493
|
+
company: factories.string(),
|
|
494
|
+
}); },
|
|
495
|
+
'io.flow.common.v0.models.catalog_item_reference': function () { return ({
|
|
496
|
+
id: factories.string(),
|
|
497
|
+
number: factories.string(),
|
|
498
|
+
}); },
|
|
499
|
+
'io.flow.common.v0.models.catalog_item_summary': function () { return ({
|
|
500
|
+
number: factories.string(),
|
|
501
|
+
name: factories.string(),
|
|
502
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
503
|
+
}); },
|
|
504
|
+
'io.flow.common.v0.models.channel_reference': function () { return ({
|
|
505
|
+
id: factories.string(),
|
|
506
|
+
}); },
|
|
507
|
+
'io.flow.common.v0.models.checkout_reference': function () { return ({
|
|
508
|
+
id: factories.string(),
|
|
509
|
+
}); },
|
|
510
|
+
'io.flow.common.v0.models.contact': function () { return ({
|
|
511
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
512
|
+
company: factories.string(),
|
|
513
|
+
email: factories.string(),
|
|
514
|
+
phone: factories.string(),
|
|
515
|
+
}); },
|
|
516
|
+
'io.flow.common.v0.models.customer_invoice': function () { return ({
|
|
517
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
518
|
+
}); },
|
|
519
|
+
'io.flow.common.v0.models.customer_reference': function () { return ({
|
|
520
|
+
number: factories.string(),
|
|
521
|
+
}); },
|
|
522
|
+
'io.flow.common.v0.models.datetime_range': function () { return ({
|
|
523
|
+
from: factories.date_time_iso_8601(),
|
|
524
|
+
to: factories.date_time_iso_8601(),
|
|
525
|
+
}); },
|
|
526
|
+
'io.flow.common.v0.models.dimension': function () { return ({
|
|
527
|
+
depth: factories['io.flow.common.v0.models.measurement'](),
|
|
528
|
+
diameter: factories['io.flow.common.v0.models.measurement'](),
|
|
529
|
+
length: factories['io.flow.common.v0.models.measurement'](),
|
|
530
|
+
weight: factories['io.flow.common.v0.models.measurement'](),
|
|
531
|
+
width: factories['io.flow.common.v0.models.measurement'](),
|
|
532
|
+
}); },
|
|
533
|
+
'io.flow.common.v0.models.dimensions': function () { return ({
|
|
534
|
+
product: factories['io.flow.common.v0.models.dimension'](),
|
|
535
|
+
packaging: factories['io.flow.common.v0.models.dimension'](),
|
|
536
|
+
}); },
|
|
537
|
+
'io.flow.common.v0.models.discount_form': function () { return ({
|
|
538
|
+
offer: factories['io.flow.common.v0.unions.discount_offer'](),
|
|
539
|
+
target: factories['io.flow.common.v0.enums.discount_target'](),
|
|
540
|
+
label: factories.string(),
|
|
541
|
+
}); },
|
|
542
|
+
'io.flow.common.v0.models.discount_offer_fixed': function () { return ({
|
|
543
|
+
discriminator: 'discount_offer_fixed',
|
|
544
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
545
|
+
}); },
|
|
546
|
+
'io.flow.common.v0.models.discount_offer_percent': function () { return ({
|
|
547
|
+
discriminator: 'discount_offer_percent',
|
|
548
|
+
percent: factories.decimal(),
|
|
549
|
+
}); },
|
|
550
|
+
'io.flow.common.v0.models.discounts_form': function () { return ({
|
|
551
|
+
discounts: arrayOf(function () { return factories['io.flow.common.v0.models.discount_form'](); }),
|
|
552
|
+
}); },
|
|
553
|
+
'io.flow.common.v0.models.duration': function () { return ({
|
|
554
|
+
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
555
|
+
value: factories.long(),
|
|
556
|
+
}); },
|
|
557
|
+
'io.flow.common.v0.models.entity_identifier': function () { return ({
|
|
558
|
+
name: factories['io.flow.common.v0.enums.entity_identifier_type'](),
|
|
559
|
+
number: factories.string(),
|
|
560
|
+
issuing_country: factories.string(),
|
|
561
|
+
}); },
|
|
562
|
+
'io.flow.common.v0.models.exception': function () { return ({
|
|
563
|
+
type: factories['io.flow.common.v0.enums.exception_type'](),
|
|
564
|
+
datetime_range: factories['io.flow.common.v0.models.datetime_range'](),
|
|
565
|
+
}); },
|
|
566
|
+
'io.flow.common.v0.models.experience_summary': function () { return ({
|
|
567
|
+
id: factories.string(),
|
|
568
|
+
key: factories.string(),
|
|
569
|
+
name: factories.string(),
|
|
570
|
+
country: factories.string(),
|
|
571
|
+
currency: factories.string(),
|
|
572
|
+
language: factories.string(),
|
|
573
|
+
}); },
|
|
574
|
+
'io.flow.common.v0.models.included_levies': function () { return ({
|
|
575
|
+
key: factories['io.flow.common.v0.enums.included_levy_key'](),
|
|
576
|
+
label: factories.string(),
|
|
577
|
+
}); },
|
|
578
|
+
'io.flow.common.v0.models.input_form': function () { return ({
|
|
579
|
+
values: objectOf(function () { return factories.string(); }),
|
|
580
|
+
}); },
|
|
581
|
+
'io.flow.common.v0.models.input_form_specification': function () { return ({
|
|
582
|
+
inputs: arrayOf(function () { return factories['io.flow.common.v0.models.input_specification'](); }),
|
|
583
|
+
limitations: factories['io.flow.common.v0.models.input_specification_limitations'](),
|
|
584
|
+
}); },
|
|
585
|
+
'io.flow.common.v0.models.input_specification': function () { return ({
|
|
586
|
+
type: factories['io.flow.common.v0.enums.input_specification_type'](),
|
|
587
|
+
name: factories.string(),
|
|
588
|
+
display_text: factories.string(),
|
|
589
|
+
}); },
|
|
590
|
+
'io.flow.common.v0.models.input_specification_limitation_max': function () { return ({
|
|
591
|
+
discriminator: 'input_specification_limitation_max',
|
|
592
|
+
max: factories.long(),
|
|
593
|
+
}); },
|
|
594
|
+
'io.flow.common.v0.models.input_specification_limitations': function () { return ({
|
|
595
|
+
limitations: arrayOf(function () { return factories['io.flow.common.v0.unions.input_specification_limitation'](); }),
|
|
596
|
+
}); },
|
|
597
|
+
'io.flow.common.v0.models.item_reference': function () { return ({
|
|
598
|
+
number: factories.string(),
|
|
599
|
+
}); },
|
|
600
|
+
'io.flow.common.v0.models.line_item': function () { return ({
|
|
601
|
+
number: factories.string(),
|
|
602
|
+
quantity: factories.long(),
|
|
603
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
604
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
605
|
+
center: factories.string(),
|
|
606
|
+
discount: factories['io.flow.common.v0.models.money'](),
|
|
607
|
+
}); },
|
|
608
|
+
'io.flow.common.v0.models.line_item_attributes_form': function () { return ({
|
|
609
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
610
|
+
}); },
|
|
611
|
+
'io.flow.common.v0.models.line_item_form': function () { return ({
|
|
612
|
+
number: factories.string(),
|
|
613
|
+
quantity: factories.long(),
|
|
614
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
615
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
616
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
617
|
+
center: factories.string(),
|
|
618
|
+
discount: factories['io.flow.common.v0.models.money'](),
|
|
619
|
+
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
620
|
+
}); },
|
|
621
|
+
'io.flow.common.v0.models.line_item_quantity_form': function () { return ({
|
|
622
|
+
quantity: factories.long(),
|
|
623
|
+
}); },
|
|
624
|
+
'io.flow.common.v0.models.logo_image_set_static': function () { return ({
|
|
625
|
+
discriminator: 'static',
|
|
626
|
+
small: factories['io.flow.common.v0.models.logo_image_static'](),
|
|
627
|
+
medium: factories['io.flow.common.v0.models.logo_image_static'](),
|
|
628
|
+
large: factories['io.flow.common.v0.models.logo_image_static'](),
|
|
629
|
+
}); },
|
|
630
|
+
'io.flow.common.v0.models.logo_image_static': function () { return ({
|
|
631
|
+
url: factories.string(),
|
|
632
|
+
width: factories.integer(),
|
|
633
|
+
height: factories.integer(),
|
|
634
|
+
}); },
|
|
635
|
+
'io.flow.common.v0.models.logo_image_svg': function () { return ({
|
|
636
|
+
discriminator: 'svg',
|
|
637
|
+
url: factories.string(),
|
|
638
|
+
}); },
|
|
639
|
+
'io.flow.common.v0.models.margin': function () { return ({
|
|
640
|
+
type: factories['io.flow.common.v0.enums.margin_type'](),
|
|
641
|
+
value: factories.decimal(),
|
|
642
|
+
}); },
|
|
643
|
+
'io.flow.common.v0.models.measurement': function () { return ({
|
|
644
|
+
value: factories.string(),
|
|
645
|
+
units: factories['io.flow.common.v0.enums.unit_of_measurement'](),
|
|
646
|
+
}); },
|
|
647
|
+
'io.flow.common.v0.models.merchant_of_record_entity': function () { return ({
|
|
648
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
649
|
+
name: factories.string(),
|
|
650
|
+
vat: factories['io.flow.common.v0.models.merchant_of_record_entity_registration'](),
|
|
651
|
+
identifiers: arrayOf(function () { return factories['io.flow.common.v0.models.entity_identifier'](); }),
|
|
652
|
+
streets: arrayOf(function () { return factories.string(); }),
|
|
653
|
+
city: factories.string(),
|
|
654
|
+
province: factories.string(),
|
|
655
|
+
postal: factories.string(),
|
|
656
|
+
country: factories.string(),
|
|
657
|
+
phone: factories.string(),
|
|
658
|
+
email: factories.string(),
|
|
659
|
+
}); },
|
|
660
|
+
'io.flow.common.v0.models.merchant_of_record_entity_registration': function () { return ({
|
|
661
|
+
number: factories.string(),
|
|
662
|
+
country: factories.string(),
|
|
663
|
+
}); },
|
|
664
|
+
'io.flow.common.v0.models.money': function () { return ({
|
|
665
|
+
amount: factories.double(),
|
|
666
|
+
currency: factories.string(),
|
|
667
|
+
}); },
|
|
668
|
+
'io.flow.common.v0.models.money_with_base': function () { return ({
|
|
669
|
+
currency: factories.string(),
|
|
670
|
+
amount: factories.double(),
|
|
671
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
672
|
+
}); },
|
|
673
|
+
'io.flow.common.v0.models.money_with_optional_base': function () { return ({
|
|
674
|
+
currency: factories.string(),
|
|
675
|
+
amount: factories.double(),
|
|
676
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
677
|
+
}); },
|
|
678
|
+
'io.flow.common.v0.models.name': function () { return ({
|
|
679
|
+
first: factories.string(),
|
|
680
|
+
last: factories.string(),
|
|
681
|
+
}); },
|
|
682
|
+
'io.flow.common.v0.models.order_customer': function () { return ({
|
|
683
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
684
|
+
number: factories.string(),
|
|
685
|
+
phone: factories.string(),
|
|
686
|
+
email: factories.string(),
|
|
687
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
688
|
+
invoice: factories['io.flow.common.v0.models.customer_invoice'](),
|
|
689
|
+
}); },
|
|
690
|
+
'io.flow.common.v0.models.order_customer_form': function () { return ({
|
|
691
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
692
|
+
number: factories.string(),
|
|
693
|
+
phone: factories.string(),
|
|
694
|
+
email: factories.string(),
|
|
695
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
696
|
+
invoice: factories['io.flow.common.v0.models.customer_invoice'](),
|
|
697
|
+
}); },
|
|
698
|
+
'io.flow.common.v0.models.organization': function () { return ({
|
|
699
|
+
discriminator: 'organization',
|
|
700
|
+
id: factories.string(),
|
|
701
|
+
name: factories.string(),
|
|
702
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
703
|
+
parent: factories['io.flow.common.v0.models.organization_reference'](),
|
|
704
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
705
|
+
created_at: factories.date_time_iso_8601(),
|
|
706
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
707
|
+
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
708
|
+
}); },
|
|
709
|
+
'io.flow.common.v0.models.organization_defaults': function () { return ({
|
|
710
|
+
country: factories.string(),
|
|
711
|
+
base_currency: factories.string(),
|
|
712
|
+
language: factories.string(),
|
|
713
|
+
locale: factories.string(),
|
|
714
|
+
timezone: factories.string(),
|
|
715
|
+
}); },
|
|
716
|
+
'io.flow.common.v0.models.organization_reference': function () { return ({
|
|
717
|
+
discriminator: 'organization_reference',
|
|
718
|
+
id: factories.string(),
|
|
719
|
+
}); },
|
|
720
|
+
'io.flow.common.v0.models.organization_summary': function () { return ({
|
|
721
|
+
id: factories.string(),
|
|
722
|
+
name: factories.string(),
|
|
723
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
724
|
+
}); },
|
|
725
|
+
'io.flow.common.v0.models.partner_reference': function () { return ({
|
|
726
|
+
id: factories.string(),
|
|
727
|
+
}); },
|
|
728
|
+
'io.flow.common.v0.models.price': function () { return ({
|
|
729
|
+
amount: factories.double(),
|
|
730
|
+
currency: factories.string(),
|
|
731
|
+
label: factories.string(),
|
|
732
|
+
}); },
|
|
733
|
+
'io.flow.common.v0.models.price_form': function () { return ({
|
|
734
|
+
amount: factories.double(),
|
|
735
|
+
currency: factories.string(),
|
|
736
|
+
}); },
|
|
737
|
+
'io.flow.common.v0.models.price_source_catalog': function () { return ({
|
|
738
|
+
discriminator: 'catalog',
|
|
739
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
740
|
+
}); },
|
|
741
|
+
'io.flow.common.v0.models.price_source_price_book': function () { return ({
|
|
742
|
+
discriminator: 'price_book',
|
|
743
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
744
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
745
|
+
price_book_reference: factories['io.flow.common.v0.models.price_source_price_book_reference'](),
|
|
746
|
+
}); },
|
|
747
|
+
'io.flow.common.v0.models.price_source_price_book_reference': function () { return ({
|
|
748
|
+
id: factories.string(),
|
|
749
|
+
key: factories.string(),
|
|
750
|
+
}); },
|
|
751
|
+
'io.flow.common.v0.models.price_source_provided': function () { return ({
|
|
752
|
+
discriminator: 'provided',
|
|
753
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
754
|
+
}); },
|
|
755
|
+
'io.flow.common.v0.models.price_with_base': function () { return ({
|
|
756
|
+
currency: factories.string(),
|
|
757
|
+
amount: factories.double(),
|
|
758
|
+
label: factories.string(),
|
|
759
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
760
|
+
}); },
|
|
761
|
+
'io.flow.common.v0.models.repeat_daily': function () { return ({
|
|
762
|
+
discriminator: 'repeat_daily',
|
|
763
|
+
interval: factories.integer(),
|
|
764
|
+
}); },
|
|
765
|
+
'io.flow.common.v0.models.repeat_hourly': function () { return ({
|
|
766
|
+
discriminator: 'repeat_hourly',
|
|
767
|
+
interval: factories.integer(),
|
|
768
|
+
}); },
|
|
769
|
+
'io.flow.common.v0.models.repeat_monthly': function () { return ({
|
|
770
|
+
discriminator: 'repeat_monthly',
|
|
771
|
+
interval: factories.integer(),
|
|
772
|
+
days: arrayOf(function () { return factories.integer(); }),
|
|
773
|
+
}); },
|
|
774
|
+
'io.flow.common.v0.models.repeat_weekly': function () { return ({
|
|
775
|
+
discriminator: 'repeat_weekly',
|
|
776
|
+
interval: factories.integer(),
|
|
777
|
+
days_of_week: arrayOf(function () { return factories['io.flow.common.v0.enums.day_of_week'](); }),
|
|
778
|
+
}); },
|
|
779
|
+
'io.flow.common.v0.models.rounding': function () { return ({
|
|
780
|
+
type: factories['io.flow.common.v0.enums.rounding_type'](),
|
|
781
|
+
method: factories['io.flow.common.v0.enums.rounding_method'](),
|
|
782
|
+
value: factories.decimal(),
|
|
783
|
+
}); },
|
|
784
|
+
'io.flow.common.v0.models.schedule': function () { return ({
|
|
785
|
+
calendar: factories['io.flow.common.v0.enums.calendar'](),
|
|
786
|
+
holiday: factories['io.flow.common.v0.enums.holiday_calendar'](),
|
|
787
|
+
exception: arrayOf(function () { return factories['io.flow.common.v0.models.exception'](); }),
|
|
788
|
+
cutoff: factories.string(),
|
|
789
|
+
min_lead_time: factories.long(),
|
|
790
|
+
max_lead_time: factories.long(),
|
|
791
|
+
}); },
|
|
792
|
+
'io.flow.common.v0.models.session_reference': function () { return ({
|
|
793
|
+
id: factories.string(),
|
|
794
|
+
}); },
|
|
795
|
+
'io.flow.common.v0.models.user': function () { return ({
|
|
796
|
+
discriminator: 'user',
|
|
797
|
+
id: factories.string(),
|
|
798
|
+
email: factories.string(),
|
|
799
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
800
|
+
status: factories['io.flow.common.v0.enums.user_status'](),
|
|
801
|
+
}); },
|
|
802
|
+
'io.flow.common.v0.models.user_reference': function () { return ({
|
|
803
|
+
discriminator: 'user_reference',
|
|
804
|
+
id: factories.string(),
|
|
805
|
+
}); },
|
|
806
|
+
'io.flow.common.v0.models.zone': function () { return ({
|
|
807
|
+
postals: arrayOf(function () { return factories.string(); }),
|
|
808
|
+
provinces: arrayOf(function () { return factories.string(); }),
|
|
809
|
+
country: factories.string(),
|
|
810
|
+
}); },
|
|
811
|
+
'io.flow.common.v0.unions.discount_offer': function () {
|
|
812
|
+
var f = faker.helpers.arrayElement([
|
|
813
|
+
function () { return factories['io.flow.common.v0.models.discount_offer_fixed'](); },
|
|
814
|
+
function () { return factories['io.flow.common.v0.models.discount_offer_percent'](); },
|
|
815
|
+
]);
|
|
816
|
+
return f();
|
|
817
|
+
},
|
|
818
|
+
'io.flow.common.v0.unions.expandable_organization': function () {
|
|
819
|
+
var f = faker.helpers.arrayElement([
|
|
820
|
+
function () { return factories['io.flow.common.v0.models.organization'](); },
|
|
821
|
+
function () { return factories['io.flow.common.v0.models.organization_reference'](); },
|
|
822
|
+
]);
|
|
823
|
+
return f();
|
|
824
|
+
},
|
|
825
|
+
'io.flow.common.v0.unions.expandable_user': function () {
|
|
826
|
+
var f = faker.helpers.arrayElement([
|
|
827
|
+
function () { return factories['io.flow.common.v0.models.user'](); },
|
|
828
|
+
function () { return factories['io.flow.common.v0.models.user_reference'](); },
|
|
829
|
+
]);
|
|
830
|
+
return f();
|
|
831
|
+
},
|
|
832
|
+
'io.flow.common.v0.unions.input_specification_limitation': function () {
|
|
833
|
+
var f = faker.helpers.arrayElement([
|
|
834
|
+
function () { return factories['io.flow.common.v0.models.input_specification_limitation_max'](); },
|
|
835
|
+
]);
|
|
836
|
+
return f();
|
|
837
|
+
},
|
|
838
|
+
'io.flow.common.v0.unions.logo_image': function () {
|
|
839
|
+
var f = faker.helpers.arrayElement([
|
|
840
|
+
function () { return factories['io.flow.common.v0.models.logo_image_svg'](); },
|
|
841
|
+
function () { return factories['io.flow.common.v0.models.logo_image_set_static'](); },
|
|
842
|
+
]);
|
|
843
|
+
return f();
|
|
844
|
+
},
|
|
845
|
+
'io.flow.common.v0.unions.price_source': function () {
|
|
846
|
+
var f = faker.helpers.arrayElement([
|
|
847
|
+
function () { return factories['io.flow.common.v0.models.price_source_price_book'](); },
|
|
848
|
+
function () { return factories['io.flow.common.v0.models.price_source_catalog'](); },
|
|
849
|
+
function () { return factories['io.flow.common.v0.models.price_source_provided'](); },
|
|
850
|
+
]);
|
|
851
|
+
return f();
|
|
852
|
+
},
|
|
853
|
+
'io.flow.common.v0.unions.repeat_schedule': function () {
|
|
854
|
+
var f = faker.helpers.arrayElement([
|
|
855
|
+
function () { return factories['io.flow.common.v0.models.repeat_hourly'](); },
|
|
856
|
+
function () { return factories['io.flow.common.v0.models.repeat_daily'](); },
|
|
857
|
+
function () { return factories['io.flow.common.v0.models.repeat_weekly'](); },
|
|
858
|
+
function () { return factories['io.flow.common.v0.models.repeat_monthly'](); },
|
|
859
|
+
]);
|
|
860
|
+
return f();
|
|
861
|
+
},
|
|
862
|
+
'io.flow.currency.v0.models.rate': function () { return ({
|
|
863
|
+
id: factories.string(),
|
|
864
|
+
base: factories.string(),
|
|
865
|
+
target: factories.string(),
|
|
866
|
+
effective_at: factories.date_time_iso_8601(),
|
|
867
|
+
value: factories.decimal(),
|
|
868
|
+
}); },
|
|
869
|
+
'io.flow.currency.v0.models.rate_form': function () { return ({
|
|
870
|
+
base: factories.string(),
|
|
871
|
+
target: factories.string(),
|
|
872
|
+
effective_at: factories.date_time_iso_8601(),
|
|
873
|
+
}); },
|
|
874
|
+
'io.flow.currency.v0.models.rate_version': function () { return ({
|
|
875
|
+
id: factories.string(),
|
|
876
|
+
timestamp: factories.date_time_iso_8601(),
|
|
877
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
878
|
+
rate: factories['io.flow.currency.v0.models.rate'](),
|
|
879
|
+
}); },
|
|
121
880
|
'io.flow.error.v0.enums.generic_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']); },
|
|
122
881
|
'io.flow.error.v0.models.generic_error': function () { return ({
|
|
123
882
|
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
124
883
|
messages: arrayOf(function () { return factories.string(); }),
|
|
125
884
|
}); },
|
|
126
|
-
'io.flow.
|
|
127
|
-
'io.flow.
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
885
|
+
'io.flow.fulfillment.v0.enums.center_capability': function () { return faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
886
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
887
|
+
'ratecard_base_cost',
|
|
888
|
+
'ratecard_ddp_fee',
|
|
889
|
+
'ratecard_fuel_surcharge',
|
|
890
|
+
'ratecard_oversized_shipment_fee',
|
|
891
|
+
'ratecard_rural_shipment_fee',
|
|
892
|
+
'ratecard_emergency_situation_surcharge_fee',
|
|
893
|
+
'ratecard_peak_surcharge_fee',
|
|
894
|
+
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
895
|
+
'center_commercial_invoice_fee',
|
|
896
|
+
'center_inbound_carton_fee',
|
|
897
|
+
'center_outbound_carton_fee',
|
|
898
|
+
]); },
|
|
899
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': function () { return faker.helpers.arrayElement(['center', 'ratecard']); },
|
|
900
|
+
'io.flow.fulfillment.v0.enums.delivery_window_component_source': function () { return faker.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
901
|
+
'io.flow.fulfillment.v0.enums.delivery_window_location': function () { return faker.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
902
|
+
'io.flow.fulfillment.v0.enums.fulfillment_routing': function () { return faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']); },
|
|
903
|
+
'io.flow.fulfillment.v0.enums.item_availability_status': function () { return faker.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
904
|
+
'io.flow.fulfillment.v0.enums.lane_direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
|
|
905
|
+
'io.flow.fulfillment.v0.enums.lane_preselect_preference': function () { return faker.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
906
|
+
'io.flow.fulfillment.v0.enums.lane_strategy': function () { return faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
907
|
+
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
908
|
+
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': function () { return faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
909
|
+
'io.flow.fulfillment.v0.enums.quote_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
910
|
+
'io.flow.fulfillment.v0.enums.ratecard_owner': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
911
|
+
'io.flow.fulfillment.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
912
|
+
'io.flow.fulfillment.v0.enums.shipping_configuration_type': function () { return faker.helpers.arrayElement(['default', 'variant']); },
|
|
913
|
+
'io.flow.fulfillment.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
914
|
+
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
915
|
+
'io.flow.fulfillment.v0.enums.tier_availability': function () { return faker.helpers.arrayElement(['always', 'backup']); },
|
|
916
|
+
'io.flow.fulfillment.v0.enums.tier_estimate_type': function () { return faker.helpers.arrayElement(['calculated', 'custom']); },
|
|
917
|
+
'io.flow.fulfillment.v0.enums.tier_strategy': function () { return faker.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
918
|
+
'io.flow.fulfillment.v0.enums.zero_amount_indicator': function () { return faker.helpers.arrayElement(['zero', 'free']); },
|
|
919
|
+
'io.flow.fulfillment.v0.models.amount_margin': function () { return ({
|
|
920
|
+
discriminator: 'amount_margin',
|
|
921
|
+
margin: factories['io.flow.common.v0.models.price'](),
|
|
922
|
+
}); },
|
|
923
|
+
'io.flow.fulfillment.v0.models.amount_margin_form': function () { return ({
|
|
924
|
+
discriminator: 'amount_margin_form',
|
|
925
|
+
margin: factories['io.flow.common.v0.models.money'](),
|
|
926
|
+
}); },
|
|
927
|
+
'io.flow.fulfillment.v0.models.at_cost': function () { return ({
|
|
928
|
+
discriminator: 'at_cost',
|
|
929
|
+
ignore: factories.string(),
|
|
930
|
+
}); },
|
|
931
|
+
'io.flow.fulfillment.v0.models.available_service': function () { return ({
|
|
932
|
+
service: factories.string(),
|
|
933
|
+
scheduled_pickups: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.scheduled_pickup'](); }),
|
|
934
|
+
lead_days: factories['io.flow.fulfillment.v0.models.number_range'](),
|
|
935
|
+
}); },
|
|
936
|
+
'io.flow.fulfillment.v0.models.carrier_reference': function () { return ({
|
|
937
|
+
id: factories.string(),
|
|
938
|
+
}); },
|
|
939
|
+
'io.flow.fulfillment.v0.models.center': function () { return ({
|
|
940
|
+
discriminator: 'center',
|
|
941
|
+
id: factories.string(),
|
|
942
|
+
key: factories.string(),
|
|
943
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
944
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
945
|
+
name: factories.string(),
|
|
946
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
947
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
948
|
+
timezone: factories.string(),
|
|
949
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
950
|
+
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
951
|
+
}); },
|
|
952
|
+
'io.flow.fulfillment.v0.models.center_form': function () { return ({
|
|
953
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
954
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
955
|
+
name: factories.string(),
|
|
956
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
957
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
958
|
+
timezone: factories.string(),
|
|
959
|
+
key: factories.string(),
|
|
960
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
961
|
+
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
962
|
+
}); },
|
|
963
|
+
'io.flow.fulfillment.v0.models.center_query': function () { return ({
|
|
964
|
+
q: factories.string(),
|
|
965
|
+
}); },
|
|
966
|
+
'io.flow.fulfillment.v0.models.center_reference': function () { return ({
|
|
967
|
+
discriminator: 'center_reference',
|
|
968
|
+
organization_id: factories.string(),
|
|
969
|
+
center_key: factories.string(),
|
|
970
|
+
}); },
|
|
971
|
+
'io.flow.fulfillment.v0.models.center_summary': function () { return ({
|
|
972
|
+
id: factories.string(),
|
|
973
|
+
key: factories.string(),
|
|
974
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
975
|
+
}); },
|
|
976
|
+
'io.flow.fulfillment.v0.models.center_version': function () { return ({
|
|
977
|
+
id: factories.string(),
|
|
978
|
+
timestamp: factories.date_time_iso_8601(),
|
|
979
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
980
|
+
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
981
|
+
}); },
|
|
982
|
+
'io.flow.fulfillment.v0.models.commercial_invoice_fee': function () { return ({
|
|
983
|
+
discriminator: 'commercial_invoice_fee',
|
|
984
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
985
|
+
}); },
|
|
986
|
+
'io.flow.fulfillment.v0.models.country_availability': function () { return ({
|
|
987
|
+
status: factories['io.flow.fulfillment.v0.enums.item_availability_status'](),
|
|
988
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
989
|
+
}); },
|
|
990
|
+
'io.flow.fulfillment.v0.models.country_shipping_pricing': function () { return ({
|
|
991
|
+
pricing: factories['io.flow.fulfillment.v0.models.item_shipping_pricing'](),
|
|
992
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
993
|
+
}); },
|
|
994
|
+
'io.flow.fulfillment.v0.models.delivery_item': function () { return ({
|
|
995
|
+
id: factories.string(),
|
|
996
|
+
number: factories.string(),
|
|
997
|
+
quantity: factories.long(),
|
|
998
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
999
|
+
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
1000
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1001
|
+
center: factories.string(),
|
|
1002
|
+
line_number: factories.long(),
|
|
1003
|
+
}); },
|
|
1004
|
+
'io.flow.fulfillment.v0.models.delivery_option': function () { return ({
|
|
1005
|
+
id: factories.string(),
|
|
1006
|
+
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1007
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1008
|
+
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1009
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1010
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1011
|
+
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1012
|
+
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1013
|
+
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
1014
|
+
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1015
|
+
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1016
|
+
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1017
|
+
}); },
|
|
1018
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_component': function () { return ({
|
|
1019
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1020
|
+
currency: factories.string(),
|
|
1021
|
+
amount: factories.decimal(),
|
|
1022
|
+
label: factories.string(),
|
|
1023
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1024
|
+
}); },
|
|
1025
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_detail': function () { return ({
|
|
1026
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source'](),
|
|
1027
|
+
ratecard_id: factories.string(),
|
|
1028
|
+
currency: factories.string(),
|
|
1029
|
+
amount: factories.decimal(),
|
|
1030
|
+
label: factories.string(),
|
|
1031
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1032
|
+
components: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](); }),
|
|
1033
|
+
}); },
|
|
1034
|
+
'io.flow.fulfillment.v0.models.delivery_option_form': function () { return ({
|
|
1035
|
+
delivery: factories.string(),
|
|
1036
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1037
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1038
|
+
}); },
|
|
1039
|
+
'io.flow.fulfillment.v0.models.delivery_option_reference': function () { return ({
|
|
1040
|
+
id: factories.string(),
|
|
1041
|
+
}); },
|
|
1042
|
+
'io.flow.fulfillment.v0.models.delivery_option_summary': function () { return ({
|
|
1043
|
+
id: factories.string(),
|
|
1044
|
+
cost: factories['io.flow.common.v0.models.price'](),
|
|
1045
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1046
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1047
|
+
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
1048
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1049
|
+
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1050
|
+
}); },
|
|
1051
|
+
'io.flow.fulfillment.v0.models.delivery_option_version': function () { return ({
|
|
1052
|
+
id: factories.string(),
|
|
1053
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1054
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1055
|
+
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
1056
|
+
}); },
|
|
1057
|
+
'io.flow.fulfillment.v0.models.delivery_summary': function () { return ({
|
|
1058
|
+
id: factories.string(),
|
|
1059
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1060
|
+
}); },
|
|
1061
|
+
'io.flow.fulfillment.v0.models.delivery_version': function () { return ({
|
|
1062
|
+
id: factories.string(),
|
|
1063
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1064
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1065
|
+
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
1066
|
+
}); },
|
|
1067
|
+
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
1068
|
+
from: factories.date_time_iso_8601(),
|
|
1069
|
+
to: factories.date_time_iso_8601(),
|
|
1070
|
+
timezone: factories.string(),
|
|
1071
|
+
label: factories.string(),
|
|
1072
|
+
min_days: factories.long(),
|
|
1073
|
+
max_days: factories.long(),
|
|
1074
|
+
}); },
|
|
1075
|
+
'io.flow.fulfillment.v0.models.delivery_window_component': function () { return ({
|
|
1076
|
+
from: factories.date_time_iso_8601(),
|
|
1077
|
+
to: factories.date_time_iso_8601(),
|
|
1078
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1079
|
+
}); },
|
|
1080
|
+
'io.flow.fulfillment.v0.models.delivery_window_components': function () { return ({
|
|
1081
|
+
shipment_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1082
|
+
transit_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1083
|
+
}); },
|
|
1084
|
+
'io.flow.fulfillment.v0.models.delivery_window_components_v2': function () { return ({
|
|
1085
|
+
processing_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.processing_estimate'](); }),
|
|
1086
|
+
transit_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.transit_estimate'](); }),
|
|
1087
|
+
}); },
|
|
1088
|
+
'io.flow.fulfillment.v0.models.delivery_window_summary': function () { return ({
|
|
1089
|
+
country: factories.string(),
|
|
1090
|
+
delivery_window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1091
|
+
}); },
|
|
1092
|
+
'io.flow.fulfillment.v0.models.digital_delivery': function () { return ({
|
|
1093
|
+
discriminator: 'digital_delivery',
|
|
1094
|
+
id: factories.string(),
|
|
1095
|
+
key: factories.string(),
|
|
1096
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1097
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1098
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1099
|
+
}); },
|
|
1100
|
+
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
1101
|
+
from: factories.long(),
|
|
1102
|
+
to: factories.long(),
|
|
1103
|
+
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1104
|
+
}); },
|
|
1105
|
+
'io.flow.fulfillment.v0.models.flat_rate': function () { return ({
|
|
1106
|
+
discriminator: 'flat_rate',
|
|
1107
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1108
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1109
|
+
}); },
|
|
1110
|
+
'io.flow.fulfillment.v0.models.flat_rate_form': function () { return ({
|
|
1111
|
+
discriminator: 'flat_rate_form',
|
|
1112
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
1113
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1114
|
+
}); },
|
|
1115
|
+
'io.flow.fulfillment.v0.models.fulfillment_experience_reference': function () { return ({
|
|
1116
|
+
id: factories.string(),
|
|
1117
|
+
currency: factories.string(),
|
|
1118
|
+
}); },
|
|
1119
|
+
'io.flow.fulfillment.v0.models.inbound_carton_fee': function () { return ({
|
|
1120
|
+
discriminator: 'inbound_carton_fee',
|
|
1121
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1122
|
+
}); },
|
|
1123
|
+
'io.flow.fulfillment.v0.models.item_shipping_pricing': function () { return ({
|
|
1124
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
1125
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
1126
|
+
}); },
|
|
1127
|
+
'io.flow.fulfillment.v0.models.number_range': function () { return ({
|
|
1128
|
+
min: factories.long(),
|
|
1129
|
+
max: factories.long(),
|
|
1130
|
+
}); },
|
|
1131
|
+
'io.flow.fulfillment.v0.models.option_weight_estimates': function () { return ({
|
|
1132
|
+
gravitational: factories['io.flow.common.v0.models.measurement'](),
|
|
1133
|
+
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
1134
|
+
}); },
|
|
1135
|
+
'io.flow.fulfillment.v0.models.outbound_carton_fee': function () { return ({
|
|
1136
|
+
discriminator: 'outbound_carton_fee',
|
|
1137
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
1138
|
+
}); },
|
|
1139
|
+
'io.flow.fulfillment.v0.models.packaging': function () { return ({
|
|
1140
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
1141
|
+
name: factories.string(),
|
|
1142
|
+
number: factories.string(),
|
|
1143
|
+
}); },
|
|
1144
|
+
'io.flow.fulfillment.v0.models.partner_center': function () { return ({
|
|
1145
|
+
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
1146
|
+
number: factories.string(),
|
|
1147
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1148
|
+
}); },
|
|
1149
|
+
'io.flow.fulfillment.v0.models.partner_center_form': function () { return ({
|
|
1150
|
+
partner_id: factories.string(),
|
|
1151
|
+
number: factories.string(),
|
|
1152
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1153
|
+
}); },
|
|
1154
|
+
'io.flow.fulfillment.v0.models.percent_margin': function () { return ({
|
|
1155
|
+
discriminator: 'percent_margin',
|
|
1156
|
+
percentage: factories.double(),
|
|
1157
|
+
}); },
|
|
1158
|
+
'io.flow.fulfillment.v0.models.physical_delivery': function () { return ({
|
|
1159
|
+
discriminator: 'physical_delivery',
|
|
1160
|
+
id: factories.string(),
|
|
1161
|
+
key: factories.string(),
|
|
1162
|
+
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
1163
|
+
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
1164
|
+
ship_from_country: factories.string(),
|
|
1165
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1166
|
+
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
1167
|
+
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
1168
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1169
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1170
|
+
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
1171
|
+
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
1172
|
+
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
1173
|
+
}); },
|
|
1174
|
+
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
1175
|
+
id: factories.string(),
|
|
1176
|
+
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
1177
|
+
}); },
|
|
1178
|
+
'io.flow.fulfillment.v0.models.price_with_base_and_details': function () { return ({
|
|
1179
|
+
currency: factories.string(),
|
|
1180
|
+
amount: factories.double(),
|
|
1181
|
+
label: factories.string(),
|
|
1182
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1183
|
+
details: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](); }),
|
|
1184
|
+
}); },
|
|
1185
|
+
'io.flow.fulfillment.v0.models.processing_estimate': function () { return ({
|
|
1186
|
+
location: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1187
|
+
min_date: factories.date_time_iso_8601(),
|
|
1188
|
+
max_date: factories.date_time_iso_8601(),
|
|
1189
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1190
|
+
}); },
|
|
1191
|
+
'io.flow.fulfillment.v0.models.quote': function () { return ({
|
|
1192
|
+
id: factories.string(),
|
|
1193
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1194
|
+
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1195
|
+
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
1196
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1197
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1198
|
+
}); },
|
|
1199
|
+
'io.flow.fulfillment.v0.models.quote_error': function () { return ({
|
|
1200
|
+
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
1201
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1202
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
1203
|
+
}); },
|
|
1204
|
+
'io.flow.fulfillment.v0.models.quote_form': function () { return ({
|
|
1205
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1206
|
+
experience: factories.string(),
|
|
1207
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1208
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1209
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1210
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1211
|
+
}); },
|
|
1212
|
+
'io.flow.fulfillment.v0.models.quote_line_item_form': function () { return ({
|
|
1213
|
+
number: factories.string(),
|
|
1214
|
+
quantity: factories.long(),
|
|
1215
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1216
|
+
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1217
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1218
|
+
center: factories.string(),
|
|
1219
|
+
}); },
|
|
1220
|
+
'io.flow.fulfillment.v0.models.quote_summary': function () { return ({
|
|
1221
|
+
id: factories.string(),
|
|
1222
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1223
|
+
}); },
|
|
1224
|
+
'io.flow.fulfillment.v0.models.quote_version': function () { return ({
|
|
1225
|
+
id: factories.string(),
|
|
1226
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1227
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1228
|
+
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
1229
|
+
}); },
|
|
1230
|
+
'io.flow.fulfillment.v0.models.scheduled_pickup': function () { return ({
|
|
1231
|
+
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
1232
|
+
hour_of_day: factories.string(),
|
|
1233
|
+
minute_of_hour: factories.string(),
|
|
1234
|
+
}); },
|
|
1235
|
+
'io.flow.fulfillment.v0.models.service_reference': function () { return ({
|
|
1236
|
+
id: factories.string(),
|
|
1237
|
+
}); },
|
|
1238
|
+
'io.flow.fulfillment.v0.models.service_summary': function () { return ({
|
|
1239
|
+
discriminator: 'service_summary',
|
|
1240
|
+
id: factories.string(),
|
|
1241
|
+
carrier: factories['io.flow.fulfillment.v0.models.carrier_reference'](),
|
|
1242
|
+
name: factories.string(),
|
|
1243
|
+
center_code: factories.string(),
|
|
1244
|
+
}); },
|
|
1245
|
+
'io.flow.fulfillment.v0.models.service_unknown': function () { return ({
|
|
1246
|
+
discriminator: 'service_unknown',
|
|
1247
|
+
name: factories.string(),
|
|
1248
|
+
}); },
|
|
1249
|
+
'io.flow.fulfillment.v0.models.shipping_address': function () { return ({
|
|
1250
|
+
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1251
|
+
location: factories['io.flow.common.v0.models.address'](),
|
|
1252
|
+
center_key: factories.string(),
|
|
1253
|
+
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
1254
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1255
|
+
}); },
|
|
1256
|
+
'io.flow.fulfillment.v0.models.shipping_configuration': function () { return ({
|
|
1257
|
+
id: factories.string(),
|
|
1258
|
+
name: factories.string(),
|
|
1259
|
+
key: factories.string(),
|
|
1260
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1261
|
+
shipping_lanes: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.shipping_lane'](); }),
|
|
1262
|
+
}); },
|
|
1263
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy': function () { return ({
|
|
1264
|
+
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1265
|
+
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1266
|
+
}); },
|
|
1267
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': function () { return ({
|
|
1268
|
+
name: factories.string(),
|
|
1269
|
+
}); },
|
|
1270
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_form': function () { return ({
|
|
1271
|
+
name: factories.string(),
|
|
1272
|
+
}); },
|
|
1273
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': function () { return ({
|
|
1274
|
+
id: factories.string(),
|
|
1275
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1276
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1277
|
+
availabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_availability'](); }),
|
|
1278
|
+
}); },
|
|
1279
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': function () { return ({
|
|
1280
|
+
id: factories.string(),
|
|
1281
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1282
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1283
|
+
country_shipping_pricings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](); }),
|
|
1284
|
+
}); },
|
|
1285
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_reference': function () { return ({
|
|
1286
|
+
key: factories.string(),
|
|
1287
|
+
}); },
|
|
1288
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_summary': function () { return ({
|
|
1289
|
+
id: factories.string(),
|
|
1290
|
+
name: factories.string(),
|
|
1291
|
+
key: factories.string(),
|
|
1292
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1293
|
+
}); },
|
|
1294
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_version': function () { return ({
|
|
1295
|
+
id: factories.string(),
|
|
1296
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1297
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1298
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
1299
|
+
}); },
|
|
1300
|
+
'io.flow.fulfillment.v0.models.shipping_lane': function () { return ({
|
|
1301
|
+
id: factories.string(),
|
|
1302
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1303
|
+
region: factories.string(),
|
|
1304
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1305
|
+
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
1306
|
+
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
1307
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1308
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1309
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1310
|
+
}); },
|
|
1311
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': function () { return ({
|
|
1312
|
+
id: factories.string(),
|
|
1313
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1314
|
+
}); },
|
|
1315
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': function () { return ({
|
|
1316
|
+
tier_id: factories.string(),
|
|
1317
|
+
}); },
|
|
1318
|
+
'io.flow.fulfillment.v0.models.shipping_lane_form': function () { return ({
|
|
1319
|
+
from: factories.string(),
|
|
1320
|
+
to: factories.string(),
|
|
1321
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1322
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1323
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1324
|
+
}); },
|
|
1325
|
+
'io.flow.fulfillment.v0.models.shipping_lane_summary': function () { return ({
|
|
1326
|
+
shipping_lane_id: factories.string(),
|
|
1327
|
+
region: factories.string(),
|
|
1328
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1329
|
+
}); },
|
|
1330
|
+
'io.flow.fulfillment.v0.models.shipping_lane_version': function () { return ({
|
|
1331
|
+
id: factories.string(),
|
|
1332
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1333
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1334
|
+
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
1335
|
+
}); },
|
|
1336
|
+
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': function () { return ({
|
|
1337
|
+
name: factories.string(),
|
|
1338
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1339
|
+
}); },
|
|
1340
|
+
'io.flow.fulfillment.v0.models.surcharge_setting': function () { return ({
|
|
1341
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1342
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1343
|
+
}); },
|
|
1344
|
+
'io.flow.fulfillment.v0.models.surcharge_setting_display': function () { return ({
|
|
1345
|
+
name: factories.string(),
|
|
1346
|
+
description: factories.string(),
|
|
1347
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1348
|
+
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
1349
|
+
}); },
|
|
1350
|
+
'io.flow.fulfillment.v0.models.tier': function () { return ({
|
|
1351
|
+
id: factories.string(),
|
|
1352
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1353
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1354
|
+
name: factories.string(),
|
|
1355
|
+
message: factories.string(),
|
|
1356
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
1357
|
+
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
1358
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1359
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1360
|
+
currency: factories.string(),
|
|
1361
|
+
description: factories.string(),
|
|
1362
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1363
|
+
shipping_lane: factories.string(),
|
|
1364
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1365
|
+
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
1366
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1367
|
+
}); },
|
|
1368
|
+
'io.flow.fulfillment.v0.models.tier_display': function () { return ({
|
|
1369
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1370
|
+
}); },
|
|
1371
|
+
'io.flow.fulfillment.v0.models.tier_display_form': function () { return ({
|
|
1372
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1373
|
+
}); },
|
|
1374
|
+
'io.flow.fulfillment.v0.models.tier_estimate': function () { return ({
|
|
1375
|
+
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
1376
|
+
label: factories.string(),
|
|
1377
|
+
}); },
|
|
1378
|
+
'io.flow.fulfillment.v0.models.tier_form': function () { return ({
|
|
1379
|
+
currency: factories.string(),
|
|
1380
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1381
|
+
name: factories.string(),
|
|
1382
|
+
message: factories.string(),
|
|
1383
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
1384
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
1385
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1386
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1387
|
+
description: factories.string(),
|
|
1388
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1389
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
1390
|
+
shipping_lane: factories.string(),
|
|
1391
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1392
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1393
|
+
}); },
|
|
1394
|
+
'io.flow.fulfillment.v0.models.tier_reference': function () { return ({
|
|
1395
|
+
id: factories.string(),
|
|
1396
|
+
}); },
|
|
1397
|
+
'io.flow.fulfillment.v0.models.tier_rule': function () { return ({
|
|
1398
|
+
id: factories.string(),
|
|
1399
|
+
position: factories.long(),
|
|
1400
|
+
query: factories.string(),
|
|
1401
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1402
|
+
}); },
|
|
1403
|
+
'io.flow.fulfillment.v0.models.tier_rule_form': function () { return ({
|
|
1404
|
+
position: factories.long(),
|
|
1405
|
+
query: factories.string(),
|
|
1406
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
1407
|
+
}); },
|
|
1408
|
+
'io.flow.fulfillment.v0.models.tier_rule_version': function () { return ({
|
|
1409
|
+
id: factories.string(),
|
|
1410
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1411
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1412
|
+
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
1413
|
+
}); },
|
|
1414
|
+
'io.flow.fulfillment.v0.models.tier_settings': function () { return ({
|
|
1415
|
+
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
1416
|
+
}); },
|
|
1417
|
+
'io.flow.fulfillment.v0.models.tier_summary': function () { return ({
|
|
1418
|
+
id: factories.string(),
|
|
1419
|
+
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
1420
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1421
|
+
name: factories.string(),
|
|
1422
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
1423
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1424
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1425
|
+
currency: factories.string(),
|
|
1426
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1427
|
+
message: factories.string(),
|
|
1428
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1429
|
+
}); },
|
|
1430
|
+
'io.flow.fulfillment.v0.models.tier_version': function () { return ({
|
|
1431
|
+
id: factories.string(),
|
|
1432
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1433
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1434
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1435
|
+
}); },
|
|
1436
|
+
'io.flow.fulfillment.v0.models.transit_estimate': function () { return ({
|
|
1437
|
+
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1438
|
+
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1439
|
+
min_date: factories.date_time_iso_8601(),
|
|
1440
|
+
max_date: factories.date_time_iso_8601(),
|
|
1441
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1442
|
+
}); },
|
|
1443
|
+
'io.flow.fulfillment.v0.unions.delivery': function () {
|
|
1444
|
+
var f = faker.helpers.arrayElement([
|
|
1445
|
+
function () { return factories['io.flow.fulfillment.v0.models.digital_delivery'](); },
|
|
1446
|
+
function () { return factories['io.flow.fulfillment.v0.models.physical_delivery'](); },
|
|
1447
|
+
]);
|
|
1448
|
+
return f();
|
|
1449
|
+
},
|
|
1450
|
+
'io.flow.fulfillment.v0.unions.expandable_center': function () {
|
|
1451
|
+
var f = faker.helpers.arrayElement([
|
|
1452
|
+
function () { return factories['io.flow.fulfillment.v0.models.center'](); },
|
|
1453
|
+
function () { return factories['io.flow.fulfillment.v0.models.center_reference'](); },
|
|
1454
|
+
]);
|
|
1455
|
+
return f();
|
|
1456
|
+
},
|
|
1457
|
+
'io.flow.fulfillment.v0.unions.partner_center_fee': function () {
|
|
1458
|
+
var f = faker.helpers.arrayElement([
|
|
1459
|
+
function () { return factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](); },
|
|
1460
|
+
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
1461
|
+
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
1462
|
+
]);
|
|
1463
|
+
return f();
|
|
1464
|
+
},
|
|
1465
|
+
'io.flow.fulfillment.v0.unions.service_description': function () {
|
|
1466
|
+
var f = faker.helpers.arrayElement([
|
|
1467
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_summary'](); },
|
|
1468
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_unknown'](); },
|
|
1469
|
+
]);
|
|
1470
|
+
return f();
|
|
1471
|
+
},
|
|
1472
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome': function () {
|
|
1473
|
+
var f = faker.helpers.arrayElement([
|
|
1474
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin'](); },
|
|
1475
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1476
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
1477
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
1478
|
+
]);
|
|
1479
|
+
return f();
|
|
1480
|
+
},
|
|
1481
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': function () {
|
|
1482
|
+
var f = faker.helpers.arrayElement([
|
|
1483
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin_form'](); },
|
|
1484
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate_form'](); },
|
|
1485
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1486
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
1487
|
+
]);
|
|
1488
|
+
return f();
|
|
1489
|
+
},
|
|
1490
|
+
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
1491
|
+
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
1492
|
+
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
1493
|
+
'io.flow.google.pay.v0.enums.card_network': function () { return faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
1494
|
+
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['CARD']); },
|
|
1495
|
+
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
1496
|
+
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
1497
|
+
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
1498
|
+
name: factories.string(),
|
|
1499
|
+
postalCode: factories.string(),
|
|
1500
|
+
countryCode: factories.string(),
|
|
1501
|
+
phoneNumber: factories.string(),
|
|
1502
|
+
companyName: factories.string(),
|
|
1503
|
+
address1: factories.string(),
|
|
1504
|
+
address2: factories.string(),
|
|
1505
|
+
address3: factories.string(),
|
|
1506
|
+
locality: factories.string(),
|
|
1507
|
+
administrativeArea: factories.string(),
|
|
1508
|
+
sortingCode: factories.string(),
|
|
1509
|
+
}); },
|
|
1510
|
+
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
1511
|
+
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
1512
|
+
phoneNumberRequired: factories.boolean(),
|
|
1513
|
+
}); },
|
|
1514
|
+
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
1515
|
+
gateway: factories.string(),
|
|
1516
|
+
gatewayMerchantId: factories.string(),
|
|
1517
|
+
}); },
|
|
1518
|
+
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
1519
|
+
protocolVersion: factories.string(),
|
|
1520
|
+
publicKey: factories.string(),
|
|
1521
|
+
}); },
|
|
1522
|
+
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
1523
|
+
cardDetails: factories.string(),
|
|
1524
|
+
cardNetwork: factories.string(),
|
|
1525
|
+
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
1526
|
+
}); },
|
|
1527
|
+
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
1528
|
+
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
1529
|
+
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
1530
|
+
billingAddressRequired: factories.boolean(),
|
|
1531
|
+
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
1532
|
+
}); },
|
|
1533
|
+
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
1534
|
+
discriminator: 'direct_payment_method_token',
|
|
1535
|
+
protocolVersion: factories.string(),
|
|
1536
|
+
signature: factories.string(),
|
|
1537
|
+
signedMessage: factories.string(),
|
|
1538
|
+
}); },
|
|
1539
|
+
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
1540
|
+
messageExpiration: factories.string(),
|
|
1541
|
+
messageId: factories.string(),
|
|
1542
|
+
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
1543
|
+
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
1544
|
+
}); },
|
|
1545
|
+
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
1546
|
+
merchantId: factories.string(),
|
|
1547
|
+
merchantName: factories.string(),
|
|
1548
|
+
authJwt: factories.string(),
|
|
1549
|
+
}); },
|
|
1550
|
+
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
1551
|
+
apiVersion: factories.integer(),
|
|
1552
|
+
apiVersionMinor: factories.integer(),
|
|
1553
|
+
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
1554
|
+
email: factories.string(),
|
|
1555
|
+
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
1556
|
+
}); },
|
|
1557
|
+
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
1558
|
+
apiVersion: factories.integer(),
|
|
1559
|
+
apiVersionMinor: factories.integer(),
|
|
1560
|
+
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
1561
|
+
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
1562
|
+
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
1563
|
+
emailRequired: factories.boolean(),
|
|
1564
|
+
shippingAddressRequired: factories.boolean(),
|
|
1565
|
+
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
1566
|
+
}); },
|
|
1567
|
+
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
1568
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1569
|
+
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
1570
|
+
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
1571
|
+
}); },
|
|
1572
|
+
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
1573
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1574
|
+
description: factories.string(),
|
|
1575
|
+
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
1576
|
+
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
1577
|
+
}); },
|
|
1578
|
+
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
1579
|
+
pan: factories.string(),
|
|
1580
|
+
expirationMonth: factories.integer(),
|
|
1581
|
+
expirationYear: factories.integer(),
|
|
1582
|
+
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
1583
|
+
cryptogram: factories.string(),
|
|
1584
|
+
eciIndicator: factories.string(),
|
|
1585
|
+
}); },
|
|
1586
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
1587
|
+
type: factories.string(),
|
|
1588
|
+
token: factories.string(),
|
|
1589
|
+
}); },
|
|
1590
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
1591
|
+
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
1592
|
+
parameters: factories.object(),
|
|
1593
|
+
}); },
|
|
1594
|
+
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
1595
|
+
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
1596
|
+
}); },
|
|
1597
|
+
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
1598
|
+
encryptedMessage: factories.string(),
|
|
1599
|
+
ephemeralPublicKey: factories.string(),
|
|
1600
|
+
tag: factories.string(),
|
|
1601
|
+
}); },
|
|
1602
|
+
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
1603
|
+
discriminator: 'stripe_payment_method_token',
|
|
1604
|
+
token: factories['io.flow.stripe.v0.models.token'](),
|
|
1605
|
+
}); },
|
|
1606
|
+
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
1607
|
+
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
1608
|
+
totalPrice: factories.string(),
|
|
1609
|
+
currencyCode: factories.string(),
|
|
1610
|
+
}); },
|
|
1611
|
+
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
1612
|
+
var f = faker.helpers.arrayElement([
|
|
1613
|
+
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
1614
|
+
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
1615
|
+
]);
|
|
1616
|
+
return f();
|
|
1617
|
+
},
|
|
1618
|
+
'io.flow.inventory.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
1619
|
+
'io.flow.inventory.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
1620
|
+
'io.flow.inventory.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
1621
|
+
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
1622
|
+
code: 'external_api_timeout',
|
|
1623
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1624
|
+
}); },
|
|
1625
|
+
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
1626
|
+
code: 'generic_reservation_error',
|
|
1627
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1628
|
+
}); },
|
|
1629
|
+
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
1630
|
+
discriminator: 'inventory_backorder',
|
|
1631
|
+
quantity: factories.long(),
|
|
1632
|
+
}); },
|
|
1633
|
+
'io.flow.inventory.v0.models.inventory_center_reference': function () { return ({
|
|
1634
|
+
key: factories.string(),
|
|
1635
|
+
}); },
|
|
1636
|
+
'io.flow.inventory.v0.models.inventory_check_response': function () { return ({
|
|
1637
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_check_response_item'](); }),
|
|
1638
|
+
}); },
|
|
1639
|
+
'io.flow.inventory.v0.models.inventory_check_response_item': function () { return ({
|
|
1640
|
+
number: factories.string(),
|
|
1641
|
+
quantity: factories.long(),
|
|
1642
|
+
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
1643
|
+
}); },
|
|
1644
|
+
'io.flow.inventory.v0.models.inventory_experience_reference': function () { return ({
|
|
1645
|
+
key: factories.string(),
|
|
1646
|
+
}); },
|
|
1647
|
+
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
1648
|
+
discriminator: 'inventory_follow_ecommerce_platform',
|
|
1649
|
+
quantity: factories.long(),
|
|
1650
|
+
}); },
|
|
1651
|
+
'io.flow.inventory.v0.models.inventory_item_reference': function () { return ({
|
|
1652
|
+
number: factories.string(),
|
|
1653
|
+
}); },
|
|
1654
|
+
'io.flow.inventory.v0.models.inventory_request': function () { return ({
|
|
1655
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_request_item'](); }),
|
|
1656
|
+
}); },
|
|
1657
|
+
'io.flow.inventory.v0.models.inventory_request_item': function () { return ({
|
|
1658
|
+
number: factories.string(),
|
|
1659
|
+
quantity: factories.long(),
|
|
1660
|
+
}); },
|
|
1661
|
+
'io.flow.inventory.v0.models.inventory_rule': function () { return ({
|
|
1662
|
+
id: factories.string(),
|
|
1663
|
+
position: factories.long(),
|
|
1664
|
+
query: factories.string(),
|
|
1665
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1666
|
+
}); },
|
|
1667
|
+
'io.flow.inventory.v0.models.inventory_rule_form': function () { return ({
|
|
1668
|
+
position: factories.long(),
|
|
1669
|
+
query: factories.string(),
|
|
1670
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1671
|
+
}); },
|
|
1672
|
+
'io.flow.inventory.v0.models.inventory_rule_version': function () { return ({
|
|
1673
|
+
id: factories.string(),
|
|
1674
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1675
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1676
|
+
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
1677
|
+
}); },
|
|
1678
|
+
'io.flow.inventory.v0.models.inventory_snapshot': function () { return ({
|
|
1679
|
+
id: factories.string(),
|
|
1680
|
+
available: factories.long(),
|
|
1681
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1682
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1683
|
+
quantity: factories.long(),
|
|
1684
|
+
}); },
|
|
1685
|
+
'io.flow.inventory.v0.models.inventory_snapshot_version': function () { return ({
|
|
1686
|
+
id: factories.string(),
|
|
1687
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1688
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1689
|
+
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
1690
|
+
}); },
|
|
1691
|
+
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
1692
|
+
discriminator: 'inventory_stock',
|
|
1693
|
+
quantity: factories.long(),
|
|
1694
|
+
}); },
|
|
1695
|
+
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
1696
|
+
discriminator: 'inventory_unlimited',
|
|
1697
|
+
placeholder: factories.string(),
|
|
1698
|
+
}); },
|
|
1699
|
+
'io.flow.inventory.v0.models.inventory_update': function () { return ({
|
|
1700
|
+
id: factories.string(),
|
|
1701
|
+
idempotency_key: factories.string(),
|
|
1702
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1703
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1704
|
+
notes: factories.object(),
|
|
1705
|
+
quantity: factories.long(),
|
|
1706
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1707
|
+
}); },
|
|
1708
|
+
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
1709
|
+
center: factories.string(),
|
|
1710
|
+
idempotency_key: factories.string(),
|
|
1711
|
+
item_number: factories.string(),
|
|
1712
|
+
quantity: factories.long(),
|
|
1713
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1714
|
+
notes: factories.object(),
|
|
1715
|
+
}); },
|
|
1716
|
+
'io.flow.inventory.v0.models.inventory_update_version': function () { return ({
|
|
1717
|
+
id: factories.string(),
|
|
1718
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1719
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1720
|
+
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
1721
|
+
}); },
|
|
1722
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error': function () { return ({
|
|
1723
|
+
code: 'no_inventory',
|
|
1724
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1725
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](); }),
|
|
1726
|
+
}); },
|
|
1727
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
1728
|
+
number: factories.string(),
|
|
1729
|
+
requested_quantity: factories.long(),
|
|
1730
|
+
available_quantity: factories.long(),
|
|
1731
|
+
}); },
|
|
1732
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response': function () { return ({
|
|
1733
|
+
items: objectOf(function () { return factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](); }),
|
|
1734
|
+
}); },
|
|
1735
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
1736
|
+
number: factories.string(),
|
|
1737
|
+
ats: factories.long(),
|
|
1738
|
+
in_stock: factories.boolean(),
|
|
1739
|
+
}); },
|
|
1740
|
+
'io.flow.inventory.v0.models.pfs_inventory_status': function () { return ({
|
|
1741
|
+
status: factories.string(),
|
|
1742
|
+
}); },
|
|
1743
|
+
'io.flow.inventory.v0.models.reservation': function () { return ({
|
|
1744
|
+
id: factories.string(),
|
|
1745
|
+
key: factories.string(),
|
|
1746
|
+
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
1747
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item'](); }),
|
|
1748
|
+
reserved_until: factories.date_time_iso_8601(),
|
|
1749
|
+
}); },
|
|
1750
|
+
'io.flow.inventory.v0.models.reservation_form': function () { return ({
|
|
1751
|
+
order_number: factories.string(),
|
|
1752
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item_form'](); }),
|
|
1753
|
+
}); },
|
|
1754
|
+
'io.flow.inventory.v0.models.reservation_item': function () { return ({
|
|
1755
|
+
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
1756
|
+
quantity: factories.long(),
|
|
1757
|
+
}); },
|
|
1758
|
+
'io.flow.inventory.v0.models.reservation_item_form': function () { return ({
|
|
1759
|
+
item_number: factories.string(),
|
|
1760
|
+
quantity: factories.long(),
|
|
1761
|
+
}); },
|
|
1762
|
+
'io.flow.inventory.v0.models.reservation_item_reference': function () { return ({
|
|
1763
|
+
number: factories.string(),
|
|
1764
|
+
}); },
|
|
1765
|
+
'io.flow.inventory.v0.models.reservation_order_reference': function () { return ({
|
|
1766
|
+
number: factories.string(),
|
|
1767
|
+
}); },
|
|
1768
|
+
'io.flow.inventory.v0.unions.inventory_strategy': function () {
|
|
1769
|
+
var f = faker.helpers.arrayElement([
|
|
1770
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_backorder'](); },
|
|
1771
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_stock'](); },
|
|
1772
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_unlimited'](); },
|
|
1773
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
1774
|
+
]);
|
|
1775
|
+
return f();
|
|
1776
|
+
},
|
|
1777
|
+
'io.flow.inventory.v0.unions.reservation_error': function () {
|
|
1778
|
+
var f = faker.helpers.arrayElement([
|
|
1779
|
+
function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](); },
|
|
1780
|
+
function () { return factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](); },
|
|
1781
|
+
function () { return factories['io.flow.inventory.v0.models.generic_reservation_error'](); },
|
|
1782
|
+
]);
|
|
1783
|
+
return f();
|
|
1784
|
+
},
|
|
1785
|
+
'io.flow.merchant.of.record.v0.enums.economic_title_location': function () { return faker.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
1786
|
+
'io.flow.merchant.of.record.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
1787
|
+
'io.flow.order.price.v0.enums.order_price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
1788
|
+
'adjustment',
|
|
1789
|
+
'vat_deminimis',
|
|
1790
|
+
'duty_deminimis',
|
|
1791
|
+
'duties_item_price',
|
|
1792
|
+
'duties_freight',
|
|
1793
|
+
'duties_insurance',
|
|
1794
|
+
'vat_item_price',
|
|
1795
|
+
'vat_freight',
|
|
1796
|
+
'vat_insurance',
|
|
1797
|
+
'vat_duties_item_price',
|
|
1798
|
+
'vat_duties_freight',
|
|
1799
|
+
'vat_duties_insurance',
|
|
1800
|
+
'item_price',
|
|
1801
|
+
'item_discount',
|
|
1802
|
+
'rounding',
|
|
1803
|
+
'insurance',
|
|
1804
|
+
'shipping',
|
|
1805
|
+
'shipping_discount',
|
|
1806
|
+
'order_discount',
|
|
1807
|
+
'subtotal_percent_sales_margin',
|
|
1808
|
+
'subtotal_vat_percent_sales_margin',
|
|
1809
|
+
'subtotal_duty_percent_sales_margin',
|
|
1810
|
+
'vat_subsidy',
|
|
1811
|
+
'duty_subsidy',
|
|
1812
|
+
'remote_area_surcharge',
|
|
1813
|
+
'fuel_surcharge',
|
|
1814
|
+
'emergency_situation_surcharge',
|
|
1815
|
+
'peak_surcharge',
|
|
1816
|
+
'duties_taxes_paid_surcharge',
|
|
1817
|
+
'tip',
|
|
1818
|
+
]); },
|
|
1819
|
+
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker.helpers.arrayElement([
|
|
1820
|
+
'adjustment',
|
|
1821
|
+
'subtotal',
|
|
1822
|
+
'vat',
|
|
1823
|
+
'duty',
|
|
1824
|
+
'shipping',
|
|
1825
|
+
'insurance',
|
|
1826
|
+
'discount',
|
|
1827
|
+
'surcharges',
|
|
1828
|
+
'tip',
|
|
1829
|
+
]); },
|
|
1830
|
+
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
1831
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1832
|
+
currency: factories.string(),
|
|
1833
|
+
amount: factories.decimal(),
|
|
1834
|
+
label: factories.string(),
|
|
1835
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1836
|
+
components: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail_component'](); }),
|
|
1837
|
+
name: factories.string(),
|
|
1838
|
+
rate: factories.decimal(),
|
|
1839
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
1840
|
+
rate_label: factories.string(),
|
|
1841
|
+
}); },
|
|
1842
|
+
'io.flow.order.price.v0.models.order_price_detail_component': function () { return ({
|
|
1843
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1844
|
+
currency: factories.string(),
|
|
1845
|
+
amount: factories.decimal(),
|
|
1846
|
+
label: factories.string(),
|
|
1847
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1848
|
+
name: factories.string(),
|
|
1849
|
+
}); },
|
|
1850
|
+
'io.flow.organization.v0.enums.country_picker_source': function () { return faker.helpers.arrayElement(['experience', 'destination']); },
|
|
1851
|
+
'io.flow.organization.v0.enums.ecommerce_platform_type': function () { return faker.helpers.arrayElement([
|
|
1852
|
+
'commercetools',
|
|
1853
|
+
'custom',
|
|
1854
|
+
'hybris',
|
|
1855
|
+
'magento',
|
|
1856
|
+
'shopify',
|
|
1857
|
+
'shopify_markets',
|
|
1858
|
+
'sfcc',
|
|
1859
|
+
'solidus',
|
|
1860
|
+
'workarea',
|
|
1861
|
+
]); },
|
|
1862
|
+
'io.flow.organization.v0.enums.invitation_error_code': function () { return faker.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
1863
|
+
'io.flow.organization.v0.models.country_picker': function () { return ({
|
|
1864
|
+
id: factories.string(),
|
|
1865
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
1866
|
+
}); },
|
|
1867
|
+
'io.flow.organization.v0.models.country_picker_form': function () { return ({
|
|
1868
|
+
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
1869
|
+
}); },
|
|
1870
|
+
'io.flow.organization.v0.models.ecommerce_platform': function () { return ({
|
|
1871
|
+
id: factories.string(),
|
|
1872
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
1873
|
+
version: factories.string(),
|
|
1874
|
+
}); },
|
|
1875
|
+
'io.flow.organization.v0.models.ecommerce_platform_form': function () { return ({
|
|
1876
|
+
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
1877
|
+
version: factories.string(),
|
|
1878
|
+
}); },
|
|
1879
|
+
'io.flow.organization.v0.models.invitation': function () { return ({
|
|
1880
|
+
id: factories.string(),
|
|
1881
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
1882
|
+
email: factories.string(),
|
|
1883
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
1884
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
1885
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
1886
|
+
expiration: factories.date_time_iso_8601(),
|
|
1887
|
+
}); },
|
|
1888
|
+
'io.flow.organization.v0.models.invitation_error': function () { return ({
|
|
1889
|
+
code: factories['io.flow.organization.v0.enums.invitation_error_code'](),
|
|
1890
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1891
|
+
}); },
|
|
1892
|
+
'io.flow.organization.v0.models.invitation_form': function () { return ({
|
|
1893
|
+
organization: factories.string(),
|
|
1894
|
+
email: factories.string(),
|
|
1895
|
+
name: factories['io.flow.common.v0.models.name'](),
|
|
1896
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
1897
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
1898
|
+
}); },
|
|
1899
|
+
'io.flow.organization.v0.models.invitation_version': function () { return ({
|
|
1900
|
+
id: factories.string(),
|
|
1901
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1902
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1903
|
+
invitation: factories['io.flow.organization.v0.models.invitation'](),
|
|
1904
|
+
}); },
|
|
1905
|
+
'io.flow.organization.v0.models.membership': function () { return ({
|
|
1906
|
+
id: factories.string(),
|
|
1907
|
+
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
1908
|
+
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
1909
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
1910
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
1911
|
+
}); },
|
|
1912
|
+
'io.flow.organization.v0.models.membership_form': function () { return ({
|
|
1913
|
+
organization: factories.string(),
|
|
1914
|
+
user: factories.string(),
|
|
1915
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
1916
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
1917
|
+
}); },
|
|
1918
|
+
'io.flow.organization.v0.models.membership_put_form': function () { return ({
|
|
1919
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
1920
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
1921
|
+
}); },
|
|
1922
|
+
'io.flow.organization.v0.models.membership_version': function () { return ({
|
|
1923
|
+
id: factories.string(),
|
|
1924
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1925
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1926
|
+
membership: factories['io.flow.organization.v0.models.membership'](),
|
|
1927
|
+
}); },
|
|
1928
|
+
'io.flow.organization.v0.models.organization_authorization': function () { return ({
|
|
1929
|
+
role: factories['io.flow.common.v0.enums.role'](),
|
|
1930
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
1931
|
+
}); },
|
|
1932
|
+
'io.flow.organization.v0.models.organization_authorization_form': function () { return ({
|
|
1933
|
+
organization: factories.string(),
|
|
1934
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
1935
|
+
}); },
|
|
1936
|
+
'io.flow.organization.v0.models.organization_configuration_reference': function () { return ({
|
|
1937
|
+
id: factories.string(),
|
|
1938
|
+
}); },
|
|
1939
|
+
'io.flow.organization.v0.models.organization_default_configurations': function () { return ({
|
|
1940
|
+
id: factories.string(),
|
|
1941
|
+
checkout_configuration: factories['io.flow.organization.v0.models.organization_configuration_reference'](),
|
|
1942
|
+
}); },
|
|
1943
|
+
'io.flow.organization.v0.models.organization_default_configurations_form': function () { return ({
|
|
1944
|
+
id: factories.string(),
|
|
1945
|
+
}); },
|
|
1946
|
+
'io.flow.organization.v0.models.organization_form': function () { return ({
|
|
1947
|
+
id: factories.string(),
|
|
1948
|
+
name: factories.string(),
|
|
1949
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
1950
|
+
parent_id: factories.string(),
|
|
1951
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
1952
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
1953
|
+
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
1954
|
+
}); },
|
|
1955
|
+
'io.flow.organization.v0.models.organization_put_form': function () { return ({
|
|
1956
|
+
name: factories.string(),
|
|
1957
|
+
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
1958
|
+
parent_id: factories.string(),
|
|
1959
|
+
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
1960
|
+
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
1961
|
+
}); },
|
|
1962
|
+
'io.flow.organization.v0.models.organization_version': function () { return ({
|
|
1963
|
+
id: factories.string(),
|
|
1964
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1965
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1966
|
+
organization: factories['io.flow.common.v0.models.organization'](),
|
|
1967
|
+
}); },
|
|
1968
|
+
'io.flow.organization.v0.models.region_setting': function () { return ({
|
|
1969
|
+
id: factories.string(),
|
|
1970
|
+
region: factories.string(),
|
|
1971
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
1972
|
+
}); },
|
|
1973
|
+
'io.flow.organization.v0.models.region_setting_form': function () { return ({
|
|
1974
|
+
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
1975
|
+
}); },
|
|
1976
|
+
'io.flow.permission.v0.enums.authentication_technique': function () { return faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']); },
|
|
1977
|
+
'io.flow.permission.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
1978
|
+
'io.flow.permission.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
1979
|
+
'organization_admin',
|
|
1980
|
+
'organization_merchant',
|
|
1981
|
+
'organization_customer_service',
|
|
1982
|
+
'organization_fulfillment',
|
|
1983
|
+
'organization_marketing',
|
|
1984
|
+
'organization_finance',
|
|
1985
|
+
'organization_classification',
|
|
1986
|
+
'flow_operations',
|
|
1987
|
+
'channel_admin',
|
|
1988
|
+
'channel_organization_admin',
|
|
1989
|
+
]); },
|
|
1990
|
+
'io.flow.permission.v0.enums.permitted_http_method': function () { return faker.helpers.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']); },
|
|
1991
|
+
'io.flow.permission.v0.models.behavior_audit': function () { return ({
|
|
1992
|
+
behavior: factories['io.flow.permission.v0.enums.flow_behavior'](),
|
|
1993
|
+
authentication_techniques: arrayOf(function () { return factories['io.flow.permission.v0.enums.authentication_technique'](); }),
|
|
1994
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
1995
|
+
}); },
|
|
1996
|
+
'io.flow.permission.v0.models.permission_audit': function () { return ({
|
|
1997
|
+
routes: arrayOf(function () { return factories['io.flow.permission.v0.models.route_audit'](); }),
|
|
1998
|
+
behaviors: arrayOf(function () { return factories['io.flow.permission.v0.models.behavior_audit'](); }),
|
|
1999
|
+
}); },
|
|
2000
|
+
'io.flow.permission.v0.models.permission_check': function () { return ({
|
|
2001
|
+
authentication_technique: factories['io.flow.permission.v0.enums.authentication_technique'](),
|
|
2002
|
+
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2003
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2004
|
+
behaviors: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_behavior'](); }),
|
|
2005
|
+
routes: arrayOf(function () { return factories['io.flow.permission.v0.models.permitted_route'](); }),
|
|
2006
|
+
}); },
|
|
2007
|
+
'io.flow.permission.v0.models.permitted_route': function () { return ({
|
|
2008
|
+
method: factories['io.flow.permission.v0.enums.permitted_http_method'](),
|
|
2009
|
+
path: factories.string(),
|
|
2010
|
+
}); },
|
|
2011
|
+
'io.flow.permission.v0.models.route_audit': function () { return ({
|
|
2012
|
+
method: factories['io.flow.permission.v0.enums.permitted_http_method'](),
|
|
2013
|
+
path: factories.string(),
|
|
2014
|
+
authentication_techniques: arrayOf(function () { return factories['io.flow.permission.v0.enums.authentication_technique'](); }),
|
|
2015
|
+
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2016
|
+
}); },
|
|
2017
|
+
'io.flow.permission.v0.models.simple_permission_check': function () { return ({
|
|
2018
|
+
behaviors: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_behavior'](); }),
|
|
2019
|
+
}); },
|
|
2020
|
+
'io.flow.price.v0.enums.levy_component': function () { return faker.helpers.arrayElement(['goods', 'duty', 'insurance', 'freight', 'vat']); },
|
|
2021
|
+
'io.flow.price.v0.enums.levy_strategy': function () { return faker.helpers.arrayElement(['minimum', 'average', 'maximum']); },
|
|
2022
|
+
'io.flow.price.v0.enums.price_accuracy': function () { return faker.helpers.arrayElement(['calculated', 'estimated_from_partial_destination']); },
|
|
2023
|
+
'io.flow.price.v0.enums.price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
2024
|
+
'base_price',
|
|
2025
|
+
'discount',
|
|
2026
|
+
'currency_margin',
|
|
2027
|
+
'percent_item_margin',
|
|
2028
|
+
'fixed_item_margin',
|
|
2029
|
+
'duties_item_price',
|
|
2030
|
+
'duties_added_margin',
|
|
2031
|
+
'duties_rounding',
|
|
2032
|
+
'duties_deminimis',
|
|
2033
|
+
'vat_item_price',
|
|
2034
|
+
'vat_added_margin',
|
|
2035
|
+
'vat_rounding',
|
|
2036
|
+
'vat_duties_item_price',
|
|
2037
|
+
'vat_duties_added_margin',
|
|
2038
|
+
'vat_duties_rounding',
|
|
2039
|
+
'vat_deminimis',
|
|
2040
|
+
'item_price_percent_sales_margin',
|
|
2041
|
+
'margins_percent_sales_margin',
|
|
2042
|
+
'rounding_percent_sales_margin',
|
|
2043
|
+
'vat_percent_sales_margin',
|
|
2044
|
+
'vat_duty_percent_sales_margin',
|
|
2045
|
+
'duty_percent_sales_margin',
|
|
2046
|
+
]); },
|
|
2047
|
+
'io.flow.price.v0.enums.price_detail_key': function () { return faker.helpers.arrayElement(['item_price', 'margins', 'vat', 'duty', 'rounding', 'adjustment']); },
|
|
2048
|
+
'io.flow.price.v0.enums.pricing_levy_setting': function () { return faker.helpers.arrayElement(['included', 'displayed', 'ignored']); },
|
|
2049
|
+
'io.flow.price.v0.models.currency_format': function () { return ({
|
|
2050
|
+
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
2051
|
+
label_formatters: arrayOf(function () { return factories['io.flow.common.v0.enums.currency_label_formatter'](); }),
|
|
2052
|
+
}); },
|
|
2053
|
+
'io.flow.price.v0.models.deminimis_per_item': function () { return ({
|
|
2054
|
+
discriminator: 'deminimis_per_item',
|
|
2055
|
+
currency: factories.string(),
|
|
2056
|
+
minimum: factories.decimal(),
|
|
2057
|
+
maximum: factories.decimal(),
|
|
2058
|
+
}); },
|
|
2059
|
+
'io.flow.price.v0.models.deminimis_simple': function () { return ({
|
|
2060
|
+
discriminator: 'deminimis_simple',
|
|
2061
|
+
value: factories.decimal(),
|
|
2062
|
+
currency: factories.string(),
|
|
2063
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
2064
|
+
minimum: factories.decimal(),
|
|
2065
|
+
}); },
|
|
2066
|
+
'io.flow.price.v0.models.duty': function () { return ({
|
|
2067
|
+
rate: factories.decimal(),
|
|
2068
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
2069
|
+
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
2070
|
+
name: factories.string(),
|
|
2071
|
+
}); },
|
|
2072
|
+
'io.flow.price.v0.models.local_price_details': function () { return ({
|
|
2073
|
+
base: factories['io.flow.price.v0.models.price_details'](),
|
|
2074
|
+
local: factories['io.flow.price.v0.models.price_details'](),
|
|
2075
|
+
discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
2076
|
+
local_before_discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
2077
|
+
}); },
|
|
2078
|
+
'io.flow.price.v0.models.price_book': function () { return ({
|
|
2079
|
+
id: factories.string(),
|
|
2080
|
+
key: factories.string(),
|
|
2081
|
+
currency: factories.string(),
|
|
2082
|
+
name: factories.string(),
|
|
2083
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
2084
|
+
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
2085
|
+
}); },
|
|
2086
|
+
'io.flow.price.v0.models.price_book_form': function () { return ({
|
|
2087
|
+
currency: factories.string(),
|
|
2088
|
+
name: factories.string(),
|
|
2089
|
+
includes: factories['io.flow.common.v0.enums.included_levy_key'](),
|
|
2090
|
+
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
2091
|
+
}); },
|
|
2092
|
+
'io.flow.price.v0.models.price_book_item': function () { return ({
|
|
2093
|
+
id: factories.string(),
|
|
2094
|
+
key: factories.string(),
|
|
2095
|
+
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
2096
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2097
|
+
item_number: factories.string(),
|
|
2098
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2099
|
+
item_attributes: objectOf(function () { return factories.string(); }),
|
|
2100
|
+
}); },
|
|
2101
|
+
'io.flow.price.v0.models.price_book_item_form': function () { return ({
|
|
2102
|
+
price_book_key: factories.string(),
|
|
2103
|
+
item_number: factories.string(),
|
|
2104
|
+
amount: factories.decimal(),
|
|
2105
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2106
|
+
item_attributes: objectOf(function () { return factories.string(); }),
|
|
2107
|
+
}); },
|
|
2108
|
+
'io.flow.price.v0.models.price_book_item_query_form': function () { return ({
|
|
2109
|
+
price_book_key: factories.string(),
|
|
2110
|
+
item_query: factories.string(),
|
|
2111
|
+
amount: factories.decimal(),
|
|
2112
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2113
|
+
item_attributes: objectOf(function () { return factories.string(); }),
|
|
2114
|
+
}); },
|
|
2115
|
+
'io.flow.price.v0.models.price_book_item_schedule': function () { return ({
|
|
2116
|
+
starts_at: factories.date_time_iso_8601(),
|
|
2117
|
+
ends_at: factories.date_time_iso_8601(),
|
|
2118
|
+
}); },
|
|
2119
|
+
'io.flow.price.v0.models.price_book_reference': function () { return ({
|
|
2120
|
+
id: factories.string(),
|
|
2121
|
+
key: factories.string(),
|
|
2122
|
+
}); },
|
|
2123
|
+
'io.flow.price.v0.models.price_check': function () { return ({
|
|
2124
|
+
display: factories['io.flow.price.v0.models.local_price_details'](),
|
|
2125
|
+
'final': factories['io.flow.price.v0.models.local_price_details'](),
|
|
2126
|
+
}); },
|
|
2127
|
+
'io.flow.price.v0.models.price_detail': function () { return ({
|
|
2128
|
+
key: factories['io.flow.price.v0.enums.price_detail_key'](),
|
|
2129
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.models.price_detail_component'](); }),
|
|
2130
|
+
amount: factories.decimal(),
|
|
2131
|
+
label: factories.string(),
|
|
2132
|
+
name: factories.string(),
|
|
2133
|
+
basis: factories.decimal(),
|
|
2134
|
+
}); },
|
|
2135
|
+
'io.flow.price.v0.models.price_detail_component': function () { return ({
|
|
2136
|
+
key: factories['io.flow.price.v0.enums.price_detail_component_key'](),
|
|
2137
|
+
amount: factories.decimal(),
|
|
2138
|
+
label: factories.string(),
|
|
2139
|
+
name: factories.string(),
|
|
2140
|
+
}); },
|
|
2141
|
+
'io.flow.price.v0.models.price_details': function () { return ({
|
|
2142
|
+
currency: factories.string(),
|
|
2143
|
+
item_price: factories['io.flow.price.v0.models.price_detail'](),
|
|
2144
|
+
margins: factories['io.flow.price.v0.models.price_detail'](),
|
|
2145
|
+
vat: factories['io.flow.price.v0.models.price_detail'](),
|
|
2146
|
+
duty: factories['io.flow.price.v0.models.price_detail'](),
|
|
2147
|
+
rounding: factories['io.flow.price.v0.models.price_detail'](),
|
|
2148
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2149
|
+
total: factories['io.flow.common.v0.models.price'](),
|
|
2150
|
+
adjustment: factories['io.flow.price.v0.models.price_detail'](),
|
|
2151
|
+
}); },
|
|
2152
|
+
'io.flow.price.v0.models.price_equation': function () { return ({
|
|
2153
|
+
contracted_rate: factories.decimal(),
|
|
2154
|
+
rate: factories.decimal(),
|
|
2155
|
+
pricing: factories['io.flow.price.v0.models.pricing'](),
|
|
2156
|
+
base_price: factories.decimal(),
|
|
2157
|
+
discount: factories.decimal(),
|
|
2158
|
+
fixed_margin: factories.decimal(),
|
|
2159
|
+
percent_margin: factories.decimal(),
|
|
2160
|
+
insurance: factories.decimal(),
|
|
2161
|
+
freight: factories.decimal(),
|
|
2162
|
+
duty: factories['io.flow.price.v0.models.duty'](),
|
|
2163
|
+
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2164
|
+
percent_sales_margin: factories.decimal(),
|
|
2165
|
+
}); },
|
|
2166
|
+
'io.flow.price.v0.models.pricing': function () { return ({
|
|
2167
|
+
vat: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2168
|
+
duty: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2169
|
+
rounding: factories['io.flow.common.v0.models.rounding'](),
|
|
2170
|
+
}); },
|
|
2171
|
+
'io.flow.price.v0.models.tax': function () { return ({
|
|
2172
|
+
name: factories.string(),
|
|
2173
|
+
rate: factories.decimal(),
|
|
2174
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
2175
|
+
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
2176
|
+
}); },
|
|
2177
|
+
'io.flow.price.v0.unions.deminimis': function () {
|
|
2178
|
+
var f = faker.helpers.arrayElement([
|
|
2179
|
+
function () { return factories['io.flow.price.v0.models.deminimis_simple'](); },
|
|
2180
|
+
function () { return factories['io.flow.price.v0.models.deminimis_per_item'](); },
|
|
2181
|
+
]);
|
|
2182
|
+
return f();
|
|
2183
|
+
},
|
|
2184
|
+
'io.flow.query.builder.v0.enums.available_filter_format': function () { return faker.helpers.arrayElement([
|
|
2185
|
+
'boolean',
|
|
2186
|
+
'date',
|
|
2187
|
+
'money',
|
|
2188
|
+
'decimal',
|
|
2189
|
+
'string',
|
|
2190
|
+
'unit_of_length',
|
|
2191
|
+
'unit_of_mass',
|
|
2192
|
+
]); },
|
|
2193
|
+
'io.flow.query.builder.v0.models.available_filter_structured': function () { return ({
|
|
2194
|
+
discriminator: 'structured',
|
|
2195
|
+
field: factories.string(),
|
|
2196
|
+
operators: arrayOf(function () { return factories.string(); }),
|
|
2197
|
+
format: factories['io.flow.query.builder.v0.enums.available_filter_format'](),
|
|
2198
|
+
valid_values: arrayOf(function () { return factories.string(); }),
|
|
2199
|
+
placeholder: factories.string(),
|
|
2200
|
+
}); },
|
|
2201
|
+
'io.flow.query.builder.v0.models.available_filter_unstructured': function () { return ({
|
|
2202
|
+
discriminator: 'unstructured',
|
|
2203
|
+
placeholder: factories.string(),
|
|
2204
|
+
}); },
|
|
2205
|
+
'io.flow.query.builder.v0.models.query': function () { return ({
|
|
2206
|
+
q: factories.string(),
|
|
2207
|
+
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter'](); }),
|
|
2208
|
+
}); },
|
|
2209
|
+
'io.flow.query.builder.v0.models.query_builder': function () { return ({
|
|
2210
|
+
q: factories.string(),
|
|
2211
|
+
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter'](); }),
|
|
2212
|
+
available: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.available_filter'](); }),
|
|
2213
|
+
}); },
|
|
2214
|
+
'io.flow.query.builder.v0.models.query_builder_filter_form': function () { return ({
|
|
2215
|
+
discriminator: 'filter',
|
|
2216
|
+
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter_form'](); }),
|
|
2217
|
+
}); },
|
|
2218
|
+
'io.flow.query.builder.v0.models.query_builder_query_form': function () { return ({
|
|
2219
|
+
discriminator: 'query',
|
|
2220
|
+
q: factories.string(),
|
|
2221
|
+
}); },
|
|
2222
|
+
'io.flow.query.builder.v0.models.query_filter_structured': function () { return ({
|
|
2223
|
+
discriminator: 'structured',
|
|
2224
|
+
q: factories.string(),
|
|
2225
|
+
field: factories.string(),
|
|
2226
|
+
operator: factories.string(),
|
|
2227
|
+
values: arrayOf(function () { return factories.string(); }),
|
|
2228
|
+
}); },
|
|
2229
|
+
'io.flow.query.builder.v0.models.query_filter_structured_form': function () { return ({
|
|
2230
|
+
discriminator: 'structured',
|
|
2231
|
+
field: factories.string(),
|
|
2232
|
+
operator: factories.string(),
|
|
2233
|
+
values: arrayOf(function () { return factories.string(); }),
|
|
2234
|
+
}); },
|
|
2235
|
+
'io.flow.query.builder.v0.models.query_filter_unstructured': function () { return ({
|
|
2236
|
+
discriminator: 'unstructured',
|
|
2237
|
+
q: factories.string(),
|
|
2238
|
+
}); },
|
|
2239
|
+
'io.flow.query.builder.v0.models.query_filter_unstructured_form': function () { return ({
|
|
2240
|
+
discriminator: 'unstructured',
|
|
2241
|
+
q: factories.string(),
|
|
2242
|
+
}); },
|
|
2243
|
+
'io.flow.query.builder.v0.unions.available_filter': function () {
|
|
2244
|
+
var f = faker.helpers.arrayElement([
|
|
2245
|
+
function () { return factories['io.flow.query.builder.v0.models.available_filter_structured'](); },
|
|
2246
|
+
function () { return factories['io.flow.query.builder.v0.models.available_filter_unstructured'](); },
|
|
2247
|
+
]);
|
|
2248
|
+
return f();
|
|
2249
|
+
},
|
|
2250
|
+
'io.flow.query.builder.v0.unions.query_builder_form': function () {
|
|
2251
|
+
var f = faker.helpers.arrayElement([
|
|
2252
|
+
function () { return factories['io.flow.query.builder.v0.models.query_builder_filter_form'](); },
|
|
2253
|
+
function () { return factories['io.flow.query.builder.v0.models.query_builder_query_form'](); },
|
|
2254
|
+
]);
|
|
2255
|
+
return f();
|
|
2256
|
+
},
|
|
2257
|
+
'io.flow.query.builder.v0.unions.query_filter': function () {
|
|
2258
|
+
var f = faker.helpers.arrayElement([
|
|
2259
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_structured'](); },
|
|
2260
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_unstructured'](); },
|
|
2261
|
+
]);
|
|
2262
|
+
return f();
|
|
2263
|
+
},
|
|
2264
|
+
'io.flow.query.builder.v0.unions.query_filter_form': function () {
|
|
2265
|
+
var f = faker.helpers.arrayElement([
|
|
2266
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_structured_form'](); },
|
|
2267
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_unstructured_form'](); },
|
|
2268
|
+
]);
|
|
2269
|
+
return f();
|
|
2270
|
+
},
|
|
2271
|
+
'io.flow.reference.v0.enums.payment_method_capability': function () { return faker.helpers.arrayElement(['credit', 'debit']); },
|
|
2272
|
+
'io.flow.reference.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'online', 'offline']); },
|
|
2273
|
+
'io.flow.reference.v0.enums.postal_type': function () { return faker.helpers.arrayElement(['eircode', 'pin', 'postal', 'zip']); },
|
|
2274
|
+
'io.flow.reference.v0.enums.province_type': function () { return faker.helpers.arrayElement([
|
|
2275
|
+
'area',
|
|
2276
|
+
'city',
|
|
2277
|
+
'county',
|
|
2278
|
+
'department',
|
|
2279
|
+
'dependency',
|
|
2280
|
+
'district',
|
|
2281
|
+
'do_si',
|
|
2282
|
+
'emirate',
|
|
2283
|
+
'entity',
|
|
2284
|
+
'island',
|
|
2285
|
+
'municipality',
|
|
2286
|
+
'oblast',
|
|
2287
|
+
'outlying_area',
|
|
2288
|
+
'parish',
|
|
2289
|
+
'prefecture',
|
|
2290
|
+
'province',
|
|
2291
|
+
'state',
|
|
2292
|
+
'territory',
|
|
2293
|
+
'other',
|
|
2294
|
+
]); },
|
|
2295
|
+
'io.flow.reference.v0.models.carrier': function () { return ({
|
|
2296
|
+
id: factories.string(),
|
|
134
2297
|
name: factories.string(),
|
|
135
|
-
|
|
136
|
-
countryCode: factories.string(),
|
|
137
|
-
phoneNumber: factories.string(),
|
|
138
|
-
companyName: factories.string(),
|
|
139
|
-
address1: factories.string(),
|
|
140
|
-
address2: factories.string(),
|
|
141
|
-
address3: factories.string(),
|
|
142
|
-
locality: factories.string(),
|
|
143
|
-
administrativeArea: factories.string(),
|
|
144
|
-
sortingCode: factories.string(),
|
|
145
|
-
}); },
|
|
146
|
-
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
147
|
-
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
148
|
-
phoneNumberRequired: factories.boolean(),
|
|
149
|
-
}); },
|
|
150
|
-
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
151
|
-
gateway: factories.string(),
|
|
152
|
-
gatewayMerchantId: factories.string(),
|
|
153
|
-
}); },
|
|
154
|
-
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
155
|
-
protocolVersion: factories.string(),
|
|
156
|
-
publicKey: factories.string(),
|
|
157
|
-
}); },
|
|
158
|
-
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
159
|
-
cardDetails: factories.string(),
|
|
160
|
-
cardNetwork: factories.string(),
|
|
161
|
-
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
162
|
-
}); },
|
|
163
|
-
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
164
|
-
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
165
|
-
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
166
|
-
billingAddressRequired: factories.boolean(),
|
|
167
|
-
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2298
|
+
tracking_url: factories.string(),
|
|
168
2299
|
}); },
|
|
169
|
-
'io.flow.
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
signedMessage: factories.string(),
|
|
2300
|
+
'io.flow.reference.v0.models.carrier_service': function () { return ({
|
|
2301
|
+
id: factories.string(),
|
|
2302
|
+
carrier: factories['io.flow.reference.v0.models.carrier'](),
|
|
2303
|
+
name: factories.string(),
|
|
174
2304
|
}); },
|
|
175
|
-
'io.flow.
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
2305
|
+
'io.flow.reference.v0.models.country': function () { return ({
|
|
2306
|
+
name: factories.string(),
|
|
2307
|
+
iso_3166_2: factories.string(),
|
|
2308
|
+
iso_3166_3: factories.string(),
|
|
2309
|
+
languages: arrayOf(function () { return factories.string(); }),
|
|
2310
|
+
measurement_system: factories.string(),
|
|
2311
|
+
default_currency: factories.string(),
|
|
2312
|
+
default_language: factories.string(),
|
|
2313
|
+
timezones: arrayOf(function () { return factories.string(); }),
|
|
2314
|
+
default_delivered_duty: factories.string(),
|
|
180
2315
|
}); },
|
|
181
|
-
'io.flow.
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
2316
|
+
'io.flow.reference.v0.models.currency': function () { return ({
|
|
2317
|
+
name: factories.string(),
|
|
2318
|
+
iso_4217_3: factories.string(),
|
|
2319
|
+
number_decimals: factories.integer(),
|
|
2320
|
+
symbols: factories['io.flow.reference.v0.models.currency_symbols'](),
|
|
2321
|
+
default_locale: factories.string(),
|
|
185
2322
|
}); },
|
|
186
|
-
'io.flow.
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
190
|
-
email: factories.string(),
|
|
191
|
-
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2323
|
+
'io.flow.reference.v0.models.currency_symbols': function () { return ({
|
|
2324
|
+
primary: factories.string(),
|
|
2325
|
+
narrow: factories.string(),
|
|
192
2326
|
}); },
|
|
193
|
-
'io.flow.
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
197
|
-
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
198
|
-
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
199
|
-
emailRequired: factories.boolean(),
|
|
200
|
-
shippingAddressRequired: factories.boolean(),
|
|
201
|
-
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2327
|
+
'io.flow.reference.v0.models.language': function () { return ({
|
|
2328
|
+
name: factories.string(),
|
|
2329
|
+
iso_639_2: factories.string(),
|
|
202
2330
|
}); },
|
|
203
|
-
'io.flow.
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
2331
|
+
'io.flow.reference.v0.models.locale': function () { return ({
|
|
2332
|
+
id: factories.string(),
|
|
2333
|
+
name: factories.string(),
|
|
2334
|
+
country: factories.string(),
|
|
2335
|
+
language: factories.string(),
|
|
2336
|
+
numbers: factories['io.flow.reference.v0.models.locale_numbers'](),
|
|
207
2337
|
}); },
|
|
208
|
-
'io.flow.
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
212
|
-
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
2338
|
+
'io.flow.reference.v0.models.locale_numbers': function () { return ({
|
|
2339
|
+
decimal: factories.string(),
|
|
2340
|
+
group: factories.string(),
|
|
213
2341
|
}); },
|
|
214
|
-
'io.flow.
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
expirationYear: factories.integer(),
|
|
218
|
-
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
219
|
-
cryptogram: factories.string(),
|
|
220
|
-
eciIndicator: factories.string(),
|
|
2342
|
+
'io.flow.reference.v0.models.localized_translation': function () { return ({
|
|
2343
|
+
locale: factories['io.flow.reference.v0.models.locale'](),
|
|
2344
|
+
name: factories.string(),
|
|
221
2345
|
}); },
|
|
222
|
-
'io.flow.
|
|
223
|
-
|
|
224
|
-
|
|
2346
|
+
'io.flow.reference.v0.models.payment_method': function () { return ({
|
|
2347
|
+
id: factories.string(),
|
|
2348
|
+
type: factories['io.flow.reference.v0.enums.payment_method_type'](),
|
|
2349
|
+
name: factories.string(),
|
|
2350
|
+
images: factories['io.flow.reference.v0.models.payment_method_images'](),
|
|
2351
|
+
regions: arrayOf(function () { return factories.string(); }),
|
|
2352
|
+
capabilities: arrayOf(function () { return factories['io.flow.reference.v0.enums.payment_method_capability'](); }),
|
|
225
2353
|
}); },
|
|
226
|
-
'io.flow.
|
|
227
|
-
|
|
228
|
-
|
|
2354
|
+
'io.flow.reference.v0.models.payment_method_image': function () { return ({
|
|
2355
|
+
url: factories.string(),
|
|
2356
|
+
width: factories.integer(),
|
|
2357
|
+
height: factories.integer(),
|
|
229
2358
|
}); },
|
|
230
|
-
'io.flow.
|
|
231
|
-
|
|
2359
|
+
'io.flow.reference.v0.models.payment_method_images': function () { return ({
|
|
2360
|
+
small: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
2361
|
+
medium: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
2362
|
+
large: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
232
2363
|
}); },
|
|
233
|
-
'io.flow.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
2364
|
+
'io.flow.reference.v0.models.province': function () { return ({
|
|
2365
|
+
id: factories.string(),
|
|
2366
|
+
iso_3166_2: factories.string(),
|
|
2367
|
+
name: factories.string(),
|
|
2368
|
+
country: factories.string(),
|
|
2369
|
+
province_type: factories['io.flow.reference.v0.enums.province_type'](),
|
|
2370
|
+
translations: arrayOf(function () { return factories['io.flow.reference.v0.models.localized_translation'](); }),
|
|
237
2371
|
}); },
|
|
238
|
-
'io.flow.
|
|
239
|
-
|
|
240
|
-
|
|
2372
|
+
'io.flow.reference.v0.models.region': function () { return ({
|
|
2373
|
+
id: factories.string(),
|
|
2374
|
+
name: factories.string(),
|
|
2375
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
2376
|
+
currencies: arrayOf(function () { return factories.string(); }),
|
|
2377
|
+
languages: arrayOf(function () { return factories.string(); }),
|
|
2378
|
+
measurement_systems: arrayOf(function () { return factories.string(); }),
|
|
2379
|
+
timezones: arrayOf(function () { return factories.string(); }),
|
|
241
2380
|
}); },
|
|
242
|
-
'io.flow.
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
2381
|
+
'io.flow.reference.v0.models.timezone': function () { return ({
|
|
2382
|
+
name: factories.string(),
|
|
2383
|
+
description: factories.string(),
|
|
2384
|
+
offset: factories.integer(),
|
|
246
2385
|
}); },
|
|
247
|
-
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
248
|
-
var f = faker.helpers.arrayElement([
|
|
249
|
-
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
250
|
-
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
251
|
-
]);
|
|
252
|
-
return f();
|
|
253
|
-
},
|
|
254
2386
|
'io.flow.shopify.external.v0.enums.cancel_reason': function () { return faker.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']); },
|
|
255
2387
|
'io.flow.shopify.external.v0.enums.discount_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled', 'depleted']); },
|
|
256
2388
|
'io.flow.shopify.external.v0.enums.discount_type': function () { return faker.helpers.arrayElement(['fixed_amount', 'percentage', 'shipping']); },
|
|
@@ -2735,7 +4867,6 @@ var factories = {
|
|
|
2735
4867
|
]); },
|
|
2736
4868
|
'io.flow.v0.enums.address_verification_result_field_code': function () { return faker.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
2737
4869
|
'io.flow.v0.enums.adjustment_reason_key': function () { return faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']); },
|
|
2738
|
-
'io.flow.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
2739
4870
|
'io.flow.v0.enums.attribute_data_type': function () { return faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']); },
|
|
2740
4871
|
'io.flow.v0.enums.attribute_intent': function () { return faker.helpers.arrayElement([
|
|
2741
4872
|
'brand',
|
|
@@ -2899,7 +5030,7 @@ var factories = {
|
|
|
2899
5030
|
'workarea',
|
|
2900
5031
|
]); },
|
|
2901
5032
|
'io.flow.v0.enums.economic_title_location': function () { return faker.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
2902
|
-
'io.flow.v0.enums.entity_identifier_type': function () { return faker.helpers.arrayElement(['ioss', 'voec']); },
|
|
5033
|
+
'io.flow.v0.enums.entity_identifier_type': function () { return faker.helpers.arrayElement(['ioss', 'voec', 'zaz']); },
|
|
2903
5034
|
'io.flow.v0.enums.environment': function () { return faker.helpers.arrayElement(['sandbox', 'production']); },
|
|
2904
5035
|
'io.flow.v0.enums.event_type': function () { return faker.helpers.arrayElement([
|
|
2905
5036
|
'test_upserted',
|
|
@@ -3188,7 +5319,6 @@ var factories = {
|
|
|
3188
5319
|
]); },
|
|
3189
5320
|
'io.flow.v0.enums.inline_window_viewport_size': function () { return faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen', 'responsive']); },
|
|
3190
5321
|
'io.flow.v0.enums.input_specification_type': function () { return faker.helpers.arrayElement(['text', 'number']); },
|
|
3191
|
-
'io.flow.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
3192
5322
|
'io.flow.v0.enums.invitation_error_code': function () { return faker.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
3193
5323
|
'io.flow.v0.enums.item_availability_status': function () { return faker.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
3194
5324
|
'io.flow.v0.enums.item_identifier': function () { return faker.helpers.arrayElement(['item_number', 'sku']); },
|
|
@@ -3738,7 +5868,6 @@ var factories = {
|
|
|
3738
5868
|
'io.flow.v0.enums.unit_of_volume': function () { return faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']); },
|
|
3739
5869
|
'io.flow.v0.enums.unit_of_weight': function () { return faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']); },
|
|
3740
5870
|
'io.flow.v0.enums.update_policy': function () { return faker.helpers.arrayElement(['auto', 'queue', 'discard']); },
|
|
3741
|
-
'io.flow.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
3742
5871
|
'io.flow.v0.enums.user_status': function () { return faker.helpers.arrayElement(['pending', 'active', 'inactive']); },
|
|
3743
5872
|
'io.flow.v0.enums.value_added_service': function () { return faker.helpers.arrayElement(['Hazardous Material']); },
|
|
3744
5873
|
'io.flow.v0.enums.visibility': function () { return faker.helpers.arrayElement(['public', 'private']); },
|
|
@@ -6615,10 +8744,6 @@ var factories = {
|
|
|
6615
8744
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
6616
8745
|
'export': factories['io.flow.v0.models.export'](),
|
|
6617
8746
|
}); },
|
|
6618
|
-
'io.flow.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
6619
|
-
code: 'external_api_timeout',
|
|
6620
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
6621
|
-
}); },
|
|
6622
8747
|
'io.flow.v0.models.fee_deduction': function () { return ({
|
|
6623
8748
|
type: factories['io.flow.v0.enums.fee_deduction_type'](),
|
|
6624
8749
|
amount: factories.decimal(),
|
|
@@ -6881,10 +9006,6 @@ var factories = {
|
|
|
6881
9006
|
code: factories['io.flow.v0.enums.generic_error_code'](),
|
|
6882
9007
|
messages: arrayOf(function () { return factories.string(); }),
|
|
6883
9008
|
}); },
|
|
6884
|
-
'io.flow.v0.models.generic_reservation_error': function () { return ({
|
|
6885
|
-
code: 'generic_reservation_error',
|
|
6886
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
6887
|
-
}); },
|
|
6888
9009
|
'io.flow.v0.models.geo_form': function () { return ({
|
|
6889
9010
|
country: factories.string(),
|
|
6890
9011
|
currency: factories.string(),
|
|
@@ -7218,99 +9339,6 @@ var factories = {
|
|
|
7218
9339
|
'io.flow.v0.models.input_specification_limitations': function () { return ({
|
|
7219
9340
|
limitations: arrayOf(function () { return factories['io.flow.v0.unions.input_specification_limitation'](); }),
|
|
7220
9341
|
}); },
|
|
7221
|
-
'io.flow.v0.models.inventory_backorder': function () { return ({
|
|
7222
|
-
discriminator: 'inventory_backorder',
|
|
7223
|
-
quantity: factories.long(),
|
|
7224
|
-
}); },
|
|
7225
|
-
'io.flow.v0.models.inventory_center_reference': function () { return ({
|
|
7226
|
-
key: factories.string(),
|
|
7227
|
-
}); },
|
|
7228
|
-
'io.flow.v0.models.inventory_check_response': function () { return ({
|
|
7229
|
-
items: arrayOf(function () { return factories['io.flow.v0.models.inventory_check_response_item'](); }),
|
|
7230
|
-
}); },
|
|
7231
|
-
'io.flow.v0.models.inventory_check_response_item': function () { return ({
|
|
7232
|
-
number: factories.string(),
|
|
7233
|
-
quantity: factories.long(),
|
|
7234
|
-
inventory_status: factories['io.flow.v0.enums.inventory_status'](),
|
|
7235
|
-
}); },
|
|
7236
|
-
'io.flow.v0.models.inventory_experience_reference': function () { return ({
|
|
7237
|
-
key: factories.string(),
|
|
7238
|
-
}); },
|
|
7239
|
-
'io.flow.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
7240
|
-
discriminator: 'inventory_follow_ecommerce_platform',
|
|
7241
|
-
quantity: factories.long(),
|
|
7242
|
-
}); },
|
|
7243
|
-
'io.flow.v0.models.inventory_item_reference': function () { return ({
|
|
7244
|
-
number: factories.string(),
|
|
7245
|
-
}); },
|
|
7246
|
-
'io.flow.v0.models.inventory_request': function () { return ({
|
|
7247
|
-
items: arrayOf(function () { return factories['io.flow.v0.models.inventory_request_item'](); }),
|
|
7248
|
-
}); },
|
|
7249
|
-
'io.flow.v0.models.inventory_request_item': function () { return ({
|
|
7250
|
-
number: factories.string(),
|
|
7251
|
-
quantity: factories.long(),
|
|
7252
|
-
}); },
|
|
7253
|
-
'io.flow.v0.models.inventory_rule': function () { return ({
|
|
7254
|
-
id: factories.string(),
|
|
7255
|
-
position: factories.long(),
|
|
7256
|
-
query: factories.string(),
|
|
7257
|
-
strategy: factories['io.flow.v0.unions.inventory_strategy'](),
|
|
7258
|
-
}); },
|
|
7259
|
-
'io.flow.v0.models.inventory_rule_form': function () { return ({
|
|
7260
|
-
position: factories.long(),
|
|
7261
|
-
query: factories.string(),
|
|
7262
|
-
strategy: factories['io.flow.v0.unions.inventory_strategy'](),
|
|
7263
|
-
}); },
|
|
7264
|
-
'io.flow.v0.models.inventory_rule_version': function () { return ({
|
|
7265
|
-
id: factories.string(),
|
|
7266
|
-
timestamp: factories.date_time_iso_8601(),
|
|
7267
|
-
type: factories['io.flow.v0.enums.change_type'](),
|
|
7268
|
-
inventory_rule: factories['io.flow.v0.models.inventory_rule'](),
|
|
7269
|
-
}); },
|
|
7270
|
-
'io.flow.v0.models.inventory_snapshot': function () { return ({
|
|
7271
|
-
id: factories.string(),
|
|
7272
|
-
available: factories.long(),
|
|
7273
|
-
center: factories['io.flow.v0.models.inventory_center_reference'](),
|
|
7274
|
-
item: factories['io.flow.v0.models.inventory_item_reference'](),
|
|
7275
|
-
quantity: factories.long(),
|
|
7276
|
-
}); },
|
|
7277
|
-
'io.flow.v0.models.inventory_snapshot_version': function () { return ({
|
|
7278
|
-
id: factories.string(),
|
|
7279
|
-
timestamp: factories.date_time_iso_8601(),
|
|
7280
|
-
type: factories['io.flow.v0.enums.change_type'](),
|
|
7281
|
-
inventory_snapshot: factories['io.flow.v0.models.inventory_snapshot'](),
|
|
7282
|
-
}); },
|
|
7283
|
-
'io.flow.v0.models.inventory_stock': function () { return ({
|
|
7284
|
-
discriminator: 'inventory_stock',
|
|
7285
|
-
quantity: factories.long(),
|
|
7286
|
-
}); },
|
|
7287
|
-
'io.flow.v0.models.inventory_unlimited': function () { return ({
|
|
7288
|
-
discriminator: 'inventory_unlimited',
|
|
7289
|
-
placeholder: factories.string(),
|
|
7290
|
-
}); },
|
|
7291
|
-
'io.flow.v0.models.inventory_update': function () { return ({
|
|
7292
|
-
id: factories.string(),
|
|
7293
|
-
idempotency_key: factories.string(),
|
|
7294
|
-
center: factories['io.flow.v0.models.inventory_center_reference'](),
|
|
7295
|
-
item: factories['io.flow.v0.models.inventory_item_reference'](),
|
|
7296
|
-
notes: factories.object(),
|
|
7297
|
-
quantity: factories.long(),
|
|
7298
|
-
type: factories['io.flow.v0.enums.update_type'](),
|
|
7299
|
-
}); },
|
|
7300
|
-
'io.flow.v0.models.inventory_update_form': function () { return ({
|
|
7301
|
-
center: factories.string(),
|
|
7302
|
-
idempotency_key: factories.string(),
|
|
7303
|
-
item_number: factories.string(),
|
|
7304
|
-
quantity: factories.long(),
|
|
7305
|
-
type: factories['io.flow.v0.enums.update_type'](),
|
|
7306
|
-
notes: factories.object(),
|
|
7307
|
-
}); },
|
|
7308
|
-
'io.flow.v0.models.inventory_update_version': function () { return ({
|
|
7309
|
-
id: factories.string(),
|
|
7310
|
-
timestamp: factories.date_time_iso_8601(),
|
|
7311
|
-
type: factories['io.flow.v0.enums.change_type'](),
|
|
7312
|
-
inventory_update: factories['io.flow.v0.models.inventory_update'](),
|
|
7313
|
-
}); },
|
|
7314
9342
|
'io.flow.v0.models.invitation': function () { return ({
|
|
7315
9343
|
id: factories.string(),
|
|
7316
9344
|
organization: factories['io.flow.v0.unions.expandable_organization'](),
|
|
@@ -8199,16 +10227,6 @@ var factories = {
|
|
|
8199
10227
|
first: factories.string(),
|
|
8200
10228
|
last: factories.string(),
|
|
8201
10229
|
}); },
|
|
8202
|
-
'io.flow.v0.models.no_inventory_reservation_error': function () { return ({
|
|
8203
|
-
code: 'no_inventory',
|
|
8204
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
8205
|
-
items: arrayOf(function () { return factories['io.flow.v0.models.no_inventory_reservation_error_item'](); }),
|
|
8206
|
-
}); },
|
|
8207
|
-
'io.flow.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
8208
|
-
number: factories.string(),
|
|
8209
|
-
requested_quantity: factories.long(),
|
|
8210
|
-
available_quantity: factories.long(),
|
|
8211
|
-
}); },
|
|
8212
10230
|
'io.flow.v0.models.notification_deleted_v2': function () { return ({
|
|
8213
10231
|
discriminator: 'notification_deleted_v2',
|
|
8214
10232
|
event_id: factories.string(),
|
|
@@ -9920,17 +11938,6 @@ var factories = {
|
|
|
9920
11938
|
method: factories['io.flow.v0.enums.permitted_http_method'](),
|
|
9921
11939
|
path: factories.string(),
|
|
9922
11940
|
}); },
|
|
9923
|
-
'io.flow.v0.models.pfs_inventory_check_response': function () { return ({
|
|
9924
|
-
items: objectOf(function () { return factories['io.flow.v0.models.pfs_inventory_check_response_item'](); }),
|
|
9925
|
-
}); },
|
|
9926
|
-
'io.flow.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
9927
|
-
number: factories.string(),
|
|
9928
|
-
ats: factories.long(),
|
|
9929
|
-
in_stock: factories.boolean(),
|
|
9930
|
-
}); },
|
|
9931
|
-
'io.flow.v0.models.pfs_inventory_status': function () { return ({
|
|
9932
|
-
status: factories.string(),
|
|
9933
|
-
}); },
|
|
9934
11941
|
'io.flow.v0.models.physical_delivery': function () { return ({
|
|
9935
11942
|
discriminator: 'physical_delivery',
|
|
9936
11943
|
id: factories.string(),
|
|
@@ -10765,31 +12772,6 @@ var factories = {
|
|
|
10765
12772
|
interval: factories.integer(),
|
|
10766
12773
|
days_of_week: arrayOf(function () { return factories['io.flow.v0.enums.day_of_week'](); }),
|
|
10767
12774
|
}); },
|
|
10768
|
-
'io.flow.v0.models.reservation': function () { return ({
|
|
10769
|
-
id: factories.string(),
|
|
10770
|
-
key: factories.string(),
|
|
10771
|
-
order: factories['io.flow.v0.models.reservation_order_reference'](),
|
|
10772
|
-
items: arrayOf(function () { return factories['io.flow.v0.models.reservation_item'](); }),
|
|
10773
|
-
reserved_until: factories.date_time_iso_8601(),
|
|
10774
|
-
}); },
|
|
10775
|
-
'io.flow.v0.models.reservation_form': function () { return ({
|
|
10776
|
-
order_number: factories.string(),
|
|
10777
|
-
items: arrayOf(function () { return factories['io.flow.v0.models.reservation_item_form'](); }),
|
|
10778
|
-
}); },
|
|
10779
|
-
'io.flow.v0.models.reservation_item': function () { return ({
|
|
10780
|
-
item: factories['io.flow.v0.models.reservation_item_reference'](),
|
|
10781
|
-
quantity: factories.long(),
|
|
10782
|
-
}); },
|
|
10783
|
-
'io.flow.v0.models.reservation_item_form': function () { return ({
|
|
10784
|
-
item_number: factories.string(),
|
|
10785
|
-
quantity: factories.long(),
|
|
10786
|
-
}); },
|
|
10787
|
-
'io.flow.v0.models.reservation_item_reference': function () { return ({
|
|
10788
|
-
number: factories.string(),
|
|
10789
|
-
}); },
|
|
10790
|
-
'io.flow.v0.models.reservation_order_reference': function () { return ({
|
|
10791
|
-
number: factories.string(),
|
|
10792
|
-
}); },
|
|
10793
12775
|
'io.flow.v0.models.return': function () { return ({
|
|
10794
12776
|
id: factories.string(),
|
|
10795
12777
|
key: factories.string(),
|
|
@@ -11002,7 +12984,7 @@ var factories = {
|
|
|
11002
12984
|
event_id: factories.string(),
|
|
11003
12985
|
timestamp: factories.date_time_iso_8601(),
|
|
11004
12986
|
organization_id: factories.string(),
|
|
11005
|
-
rule: factories['io.flow.v0.models.inventory_rule'](),
|
|
12987
|
+
rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
11006
12988
|
}); },
|
|
11007
12989
|
'io.flow.v0.models.schedule': function () { return ({
|
|
11008
12990
|
calendar: factories['io.flow.v0.enums.calendar'](),
|
|
@@ -12094,6 +14076,11 @@ var factories = {
|
|
|
12094
14076
|
eci: factories.string(),
|
|
12095
14077
|
liability_sift: factories.boolean(),
|
|
12096
14078
|
version: factories.string(),
|
|
14079
|
+
authenticated: factories.boolean(),
|
|
14080
|
+
authenticated_result: factories.string(),
|
|
14081
|
+
offered: factories.boolean(),
|
|
14082
|
+
offered_result: factories.string(),
|
|
14083
|
+
sca_exemption: factories.string(),
|
|
12097
14084
|
}); },
|
|
12098
14085
|
'io.flow.v0.models.threeds_challenge_action_details': function () { return ({
|
|
12099
14086
|
discriminator: 'threeds_challenge_action_details',
|
|
@@ -13283,15 +15270,6 @@ var factories = {
|
|
|
13283
15270
|
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.input_specification_limitation_max'](); }]);
|
|
13284
15271
|
return f();
|
|
13285
15272
|
},
|
|
13286
|
-
'io.flow.v0.unions.inventory_strategy': function () {
|
|
13287
|
-
var f = faker.helpers.arrayElement([
|
|
13288
|
-
function () { return factories['io.flow.v0.models.inventory_backorder'](); },
|
|
13289
|
-
function () { return factories['io.flow.v0.models.inventory_stock'](); },
|
|
13290
|
-
function () { return factories['io.flow.v0.models.inventory_unlimited'](); },
|
|
13291
|
-
function () { return factories['io.flow.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
13292
|
-
]);
|
|
13293
|
-
return f();
|
|
13294
|
-
},
|
|
13295
15273
|
'io.flow.v0.unions.know_your_business': function () {
|
|
13296
15274
|
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.know_your_business_usa'](); }]);
|
|
13297
15275
|
return f();
|
|
@@ -13619,14 +15597,6 @@ var factories = {
|
|
|
13619
15597
|
]);
|
|
13620
15598
|
return f();
|
|
13621
15599
|
},
|
|
13622
|
-
'io.flow.v0.unions.reservation_error': function () {
|
|
13623
|
-
var f = faker.helpers.arrayElement([
|
|
13624
|
-
function () { return factories['io.flow.v0.models.no_inventory_reservation_error'](); },
|
|
13625
|
-
function () { return factories['io.flow.v0.models.external_api_timeout_reservation_error'](); },
|
|
13626
|
-
function () { return factories['io.flow.v0.models.generic_reservation_error'](); },
|
|
13627
|
-
]);
|
|
13628
|
-
return f();
|
|
13629
|
-
},
|
|
13630
15600
|
'io.flow.v0.unions.return_source': function () {
|
|
13631
15601
|
var f = faker.helpers.arrayElement([
|
|
13632
15602
|
function () { return factories['io.flow.v0.models.return_source_flow'](); },
|
|
@@ -13835,7 +15805,6 @@ export var makeAdyenNativeActionDetails = function () { return factories['io.flo
|
|
|
13835
15805
|
export var makeAdyenNativeData = function () { return factories['io.flow.v0.unions.adyen_native_data'](); };
|
|
13836
15806
|
export var makeAdyenV3ChallengeToken = function () { return factories['io.flow.v0.models.adyen_v3_challenge_token'](); };
|
|
13837
15807
|
export var makeAdyenV3FingerprintToken = function () { return factories['io.flow.v0.models.adyen_v3_fingerprint_token'](); };
|
|
13838
|
-
export var makeAggregate = function () { return factories['io.flow.v0.enums.aggregate'](); };
|
|
13839
15808
|
export var makeAllocation = function () { return factories['io.flow.v0.models.allocation'](); };
|
|
13840
15809
|
export var makeAllocationComponent = function () { return factories['io.flow.v0.unions.allocation_component'](); };
|
|
13841
15810
|
export var makeAllocationDeletedV2 = function () { return factories['io.flow.v0.models.allocation_deleted_v2'](); };
|
|
@@ -14349,7 +16318,6 @@ export var makeExportStatus = function () { return factories['io.flow.v0.enums.e
|
|
|
14349
16318
|
export var makeExportType = function () { return factories['io.flow.v0.unions.export_type'](); };
|
|
14350
16319
|
export var makeExportVersion = function () { return factories['io.flow.v0.models.export_version'](); };
|
|
14351
16320
|
export var makeExporterOfRecord = function () { return factories['io.flow.v0.enums.exporter_of_record'](); };
|
|
14352
|
-
export var makeExternalApiTimeoutReservationError = function () { return factories['io.flow.v0.models.external_api_timeout_reservation_error'](); };
|
|
14353
16321
|
export var makeFeeDeduction = function () { return factories['io.flow.v0.models.fee_deduction'](); };
|
|
14354
16322
|
export var makeFeeDeductionType = function () { return factories['io.flow.v0.enums.fee_deduction_type'](); };
|
|
14355
16323
|
export var makeFeeWeight = function () { return factories['io.flow.v0.models.fee_weight'](); };
|
|
@@ -14418,7 +16386,6 @@ export var makeGatewayAuthenticationDataForm = function () { return factories['i
|
|
|
14418
16386
|
export var makeGenerateLoad = function () { return factories['io.flow.v0.models.generate_load'](); };
|
|
14419
16387
|
export var makeGenericError = function () { return factories['io.flow.v0.models.generic_error'](); };
|
|
14420
16388
|
export var makeGenericErrorCode = function () { return factories['io.flow.v0.enums.generic_error_code'](); };
|
|
14421
|
-
export var makeGenericReservationError = function () { return factories['io.flow.v0.models.generic_reservation_error'](); };
|
|
14422
16389
|
export var makeGeoForm = function () { return factories['io.flow.v0.models.geo_form'](); };
|
|
14423
16390
|
export var makeGoodsSupply = function () { return factories['io.flow.v0.enums.goods_supply'](); };
|
|
14424
16391
|
export var makeGooglePayAuthorizationPayload = function () { return factories['io.flow.v0.models.google_pay_authorization_payload'](); };
|
|
@@ -14484,27 +16451,6 @@ export var makeInputSpecificationLimitation = function () { return factories['io
|
|
|
14484
16451
|
export var makeInputSpecificationLimitationMax = function () { return factories['io.flow.v0.models.input_specification_limitation_max'](); };
|
|
14485
16452
|
export var makeInputSpecificationLimitations = function () { return factories['io.flow.v0.models.input_specification_limitations'](); };
|
|
14486
16453
|
export var makeInputSpecificationType = function () { return factories['io.flow.v0.enums.input_specification_type'](); };
|
|
14487
|
-
export var makeInventoryBackorder = function () { return factories['io.flow.v0.models.inventory_backorder'](); };
|
|
14488
|
-
export var makeInventoryCenterReference = function () { return factories['io.flow.v0.models.inventory_center_reference'](); };
|
|
14489
|
-
export var makeInventoryCheckResponse = function () { return factories['io.flow.v0.models.inventory_check_response'](); };
|
|
14490
|
-
export var makeInventoryCheckResponseItem = function () { return factories['io.flow.v0.models.inventory_check_response_item'](); };
|
|
14491
|
-
export var makeInventoryExperienceReference = function () { return factories['io.flow.v0.models.inventory_experience_reference'](); };
|
|
14492
|
-
export var makeInventoryFollowEcommercePlatform = function () { return factories['io.flow.v0.models.inventory_follow_ecommerce_platform'](); };
|
|
14493
|
-
export var makeInventoryItemReference = function () { return factories['io.flow.v0.models.inventory_item_reference'](); };
|
|
14494
|
-
export var makeInventoryRequest = function () { return factories['io.flow.v0.models.inventory_request'](); };
|
|
14495
|
-
export var makeInventoryRequestItem = function () { return factories['io.flow.v0.models.inventory_request_item'](); };
|
|
14496
|
-
export var makeInventoryRule = function () { return factories['io.flow.v0.models.inventory_rule'](); };
|
|
14497
|
-
export var makeInventoryRuleForm = function () { return factories['io.flow.v0.models.inventory_rule_form'](); };
|
|
14498
|
-
export var makeInventoryRuleVersion = function () { return factories['io.flow.v0.models.inventory_rule_version'](); };
|
|
14499
|
-
export var makeInventorySnapshot = function () { return factories['io.flow.v0.models.inventory_snapshot'](); };
|
|
14500
|
-
export var makeInventorySnapshotVersion = function () { return factories['io.flow.v0.models.inventory_snapshot_version'](); };
|
|
14501
|
-
export var makeInventoryStatus = function () { return factories['io.flow.v0.enums.inventory_status'](); };
|
|
14502
|
-
export var makeInventoryStock = function () { return factories['io.flow.v0.models.inventory_stock'](); };
|
|
14503
|
-
export var makeInventoryStrategy = function () { return factories['io.flow.v0.unions.inventory_strategy'](); };
|
|
14504
|
-
export var makeInventoryUnlimited = function () { return factories['io.flow.v0.models.inventory_unlimited'](); };
|
|
14505
|
-
export var makeInventoryUpdate = function () { return factories['io.flow.v0.models.inventory_update'](); };
|
|
14506
|
-
export var makeInventoryUpdateForm = function () { return factories['io.flow.v0.models.inventory_update_form'](); };
|
|
14507
|
-
export var makeInventoryUpdateVersion = function () { return factories['io.flow.v0.models.inventory_update_version'](); };
|
|
14508
16454
|
export var makeInvitation = function () { return factories['io.flow.v0.models.invitation'](); };
|
|
14509
16455
|
export var makeInvitationError = function () { return factories['io.flow.v0.models.invitation_error'](); };
|
|
14510
16456
|
export var makeInvitationErrorCode = function () { return factories['io.flow.v0.enums.invitation_error_code'](); };
|
|
@@ -14672,8 +16618,6 @@ export var makeMonthlyAverage = function () { return factories['io.flow.v0.model
|
|
|
14672
16618
|
export var makeMonthlyAverageVolume = function () { return factories['io.flow.v0.models.monthly_average_volume'](); };
|
|
14673
16619
|
export var makeName = function () { return factories['io.flow.v0.models.name'](); };
|
|
14674
16620
|
export var makeNameForm = function () { return factories['io.flow.v0.models.name_form'](); };
|
|
14675
|
-
export var makeNoInventoryReservationError = function () { return factories['io.flow.v0.models.no_inventory_reservation_error'](); };
|
|
14676
|
-
export var makeNoInventoryReservationErrorItem = function () { return factories['io.flow.v0.models.no_inventory_reservation_error_item'](); };
|
|
14677
16621
|
export var makeNotificationDeletedV2 = function () { return factories['io.flow.v0.models.notification_deleted_v2'](); };
|
|
14678
16622
|
export var makeNotificationUpsertedV2 = function () { return factories['io.flow.v0.models.notification_upserted_v2'](); };
|
|
14679
16623
|
export var makeNumberRange = function () { return factories['io.flow.v0.models.number_range'](); };
|
|
@@ -15017,9 +16961,6 @@ export var makePermissionAudit = function () { return factories['io.flow.v0.mode
|
|
|
15017
16961
|
export var makePermissionCheck = function () { return factories['io.flow.v0.models.permission_check'](); };
|
|
15018
16962
|
export var makePermittedHttpMethod = function () { return factories['io.flow.v0.enums.permitted_http_method'](); };
|
|
15019
16963
|
export var makePermittedRoute = function () { return factories['io.flow.v0.models.permitted_route'](); };
|
|
15020
|
-
export var makePfsInventoryCheckResponse = function () { return factories['io.flow.v0.models.pfs_inventory_check_response'](); };
|
|
15021
|
-
export var makePfsInventoryCheckResponseItem = function () { return factories['io.flow.v0.models.pfs_inventory_check_response_item'](); };
|
|
15022
|
-
export var makePfsInventoryStatus = function () { return factories['io.flow.v0.models.pfs_inventory_status'](); };
|
|
15023
16964
|
export var makePhysicalDelivery = function () { return factories['io.flow.v0.models.physical_delivery'](); };
|
|
15024
16965
|
export var makePhysicalDeliveryPreferredService = function () { return factories['io.flow.v0.models.physical_delivery_preferred_service'](); };
|
|
15025
16966
|
export var makePhysicalDeliverySpecialSerivce = function () { return factories['io.flow.v0.enums.physical_delivery_special_serivce'](); };
|
|
@@ -15169,13 +17110,6 @@ export var makeRepeatHourly = function () { return factories['io.flow.v0.models.
|
|
|
15169
17110
|
export var makeRepeatMonthly = function () { return factories['io.flow.v0.models.repeat_monthly'](); };
|
|
15170
17111
|
export var makeRepeatSchedule = function () { return factories['io.flow.v0.unions.repeat_schedule'](); };
|
|
15171
17112
|
export var makeRepeatWeekly = function () { return factories['io.flow.v0.models.repeat_weekly'](); };
|
|
15172
|
-
export var makeReservation = function () { return factories['io.flow.v0.models.reservation'](); };
|
|
15173
|
-
export var makeReservationError = function () { return factories['io.flow.v0.unions.reservation_error'](); };
|
|
15174
|
-
export var makeReservationForm = function () { return factories['io.flow.v0.models.reservation_form'](); };
|
|
15175
|
-
export var makeReservationItem = function () { return factories['io.flow.v0.models.reservation_item'](); };
|
|
15176
|
-
export var makeReservationItemForm = function () { return factories['io.flow.v0.models.reservation_item_form'](); };
|
|
15177
|
-
export var makeReservationItemReference = function () { return factories['io.flow.v0.models.reservation_item_reference'](); };
|
|
15178
|
-
export var makeReservationOrderReference = function () { return factories['io.flow.v0.models.reservation_order_reference'](); };
|
|
15179
17113
|
export var makeRestrictedReviewStatus = function () { return factories['io.flow.v0.enums.restricted_review_status'](); };
|
|
15180
17114
|
export var makeReturn = function () { return factories['io.flow.v0.models.return'](); };
|
|
15181
17115
|
export var makeReturnDeleted = function () { return factories['io.flow.v0.models.return_deleted'](); };
|
|
@@ -15526,7 +17460,6 @@ export var makeUnitOfTime = function () { return factories['io.flow.v0.enums.uni
|
|
|
15526
17460
|
export var makeUnitOfVolume = function () { return factories['io.flow.v0.enums.unit_of_volume'](); };
|
|
15527
17461
|
export var makeUnitOfWeight = function () { return factories['io.flow.v0.enums.unit_of_weight'](); };
|
|
15528
17462
|
export var makeUpdatePolicy = function () { return factories['io.flow.v0.enums.update_policy'](); };
|
|
15529
|
-
export var makeUpdateType = function () { return factories['io.flow.v0.enums.update_type'](); };
|
|
15530
17463
|
export var makeUpload = function () { return factories['io.flow.v0.models.upload'](); };
|
|
15531
17464
|
export var makeUser = function () { return factories['io.flow.v0.models.user'](); };
|
|
15532
17465
|
export var makeUserForm = function () { return factories['io.flow.v0.models.user_form'](); };
|