@flowio/api-factories 0.0.110 → 0.0.111
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 +284 -1894
- package/dist/esm/api.js +240 -1859
- package/dist/types/api.d.ts +10 -1
- package/package.json +2 -2
- package/src/api.ts +229 -2155
package/dist/esm/api.js
CHANGED
|
@@ -115,289 +115,6 @@ var factories = {
|
|
|
115
115
|
]);
|
|
116
116
|
return f();
|
|
117
117
|
},
|
|
118
|
-
'io.flow.catalog.v0.enums.adjustment_reason_key': function () { return faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']); },
|
|
119
|
-
'io.flow.catalog.v0.enums.attribute_intent': function () { return faker.helpers.arrayElement([
|
|
120
|
-
'brand',
|
|
121
|
-
'color',
|
|
122
|
-
'countries_of_origin',
|
|
123
|
-
'product_id',
|
|
124
|
-
'fulfillment_method',
|
|
125
|
-
'hazardous',
|
|
126
|
-
'price',
|
|
127
|
-
'size',
|
|
128
|
-
'sku',
|
|
129
|
-
'taxability',
|
|
130
|
-
'consumer_url',
|
|
131
|
-
'gtin',
|
|
132
|
-
'mpn',
|
|
133
|
-
'facet',
|
|
134
|
-
'eccn',
|
|
135
|
-
'returnable',
|
|
136
|
-
'searchable',
|
|
137
|
-
'barcode',
|
|
138
|
-
'min_days_to_ship',
|
|
139
|
-
'max_days_to_ship',
|
|
140
|
-
'commercial_invoice_item_number',
|
|
141
|
-
'include_in_product_feeds',
|
|
142
|
-
]); },
|
|
143
|
-
'io.flow.catalog.v0.enums.fulfillment_method_type': function () { return faker.helpers.arrayElement(['fulfillment_method']); },
|
|
144
|
-
'io.flow.catalog.v0.enums.fulfillment_method_value': function () { return faker.helpers.arrayElement(['digital', 'physical']); },
|
|
145
|
-
'io.flow.catalog.v0.enums.image_tag': function () { return faker.helpers.arrayElement(['thumbnail', 'checkout']); },
|
|
146
|
-
'io.flow.catalog.v0.enums.return_item_status': function () { return faker.helpers.arrayElement(['returnable', 'non-returnable']); },
|
|
147
|
-
'io.flow.catalog.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
148
|
-
'io.flow.catalog.v0.enums.taxability_type': function () { return faker.helpers.arrayElement(['tax_rule']); },
|
|
149
|
-
'io.flow.catalog.v0.enums.taxability_value': function () { return faker.helpers.arrayElement(['exempt']); },
|
|
150
|
-
'io.flow.catalog.v0.enums.update_policy': function () { return faker.helpers.arrayElement(['auto', 'queue', 'discard']); },
|
|
151
|
-
'io.flow.catalog.v0.models.adjustment_reason': function () { return ({
|
|
152
|
-
key: factories['io.flow.catalog.v0.enums.adjustment_reason_key'](),
|
|
153
|
-
label: factories.string(),
|
|
154
|
-
}); },
|
|
155
|
-
'io.flow.catalog.v0.models.attribute': function () { return ({
|
|
156
|
-
id: factories.string(),
|
|
157
|
-
key: factories.string(),
|
|
158
|
-
options: factories['io.flow.catalog.v0.models.options'](),
|
|
159
|
-
label: factories.string(),
|
|
160
|
-
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
161
|
-
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
162
|
-
position: factories.long(),
|
|
163
|
-
}); },
|
|
164
|
-
'io.flow.catalog.v0.models.attribute_form': function () { return ({
|
|
165
|
-
key: factories.string(),
|
|
166
|
-
options: factories['io.flow.catalog.v0.models.options'](),
|
|
167
|
-
label: factories.string(),
|
|
168
|
-
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
169
|
-
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
170
|
-
position: factories.long(),
|
|
171
|
-
}); },
|
|
172
|
-
'io.flow.catalog.v0.models.attribute_version': function () { return ({
|
|
173
|
-
id: factories.string(),
|
|
174
|
-
timestamp: factories.date_time_iso_8601(),
|
|
175
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
176
|
-
attribute: factories['io.flow.catalog.v0.models.attribute'](),
|
|
177
|
-
}); },
|
|
178
|
-
'io.flow.catalog.v0.models.catalog': function () { return ({
|
|
179
|
-
id: factories.string(),
|
|
180
|
-
}); },
|
|
181
|
-
'io.flow.catalog.v0.models.catalog_reference': function () { return ({
|
|
182
|
-
id: factories.string(),
|
|
183
|
-
}); },
|
|
184
|
-
'io.flow.catalog.v0.models.catalog_statistics': function () { return ({
|
|
185
|
-
id: factories.string(),
|
|
186
|
-
items: factories.long(),
|
|
187
|
-
categories: factories.long(),
|
|
188
|
-
}); },
|
|
189
|
-
'io.flow.catalog.v0.models.catalog_version': function () { return ({
|
|
190
|
-
id: factories.string(),
|
|
191
|
-
timestamp: factories.date_time_iso_8601(),
|
|
192
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
193
|
-
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
194
|
-
}); },
|
|
195
|
-
'io.flow.catalog.v0.models.flow_item_index_metadata': function () { return ({
|
|
196
|
-
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
197
|
-
}); },
|
|
198
|
-
'io.flow.catalog.v0.models.image': function () { return ({
|
|
199
|
-
url: factories.string(),
|
|
200
|
-
tags: arrayOf(function () { return factories['io.flow.catalog.v0.enums.image_tag'](); }),
|
|
201
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
202
|
-
}); },
|
|
203
|
-
'io.flow.catalog.v0.models.image_form': function () { return ({
|
|
204
|
-
url: factories.string(),
|
|
205
|
-
tags: arrayOf(function () { return factories['io.flow.catalog.v0.enums.image_tag'](); }),
|
|
206
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
207
|
-
}); },
|
|
208
|
-
'io.flow.catalog.v0.models.item': function () { return ({
|
|
209
|
-
id: factories.string(),
|
|
210
|
-
number: factories.string(),
|
|
211
|
-
locale: factories.string(),
|
|
212
|
-
name: factories.string(),
|
|
213
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
214
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
215
|
-
description: factories.string(),
|
|
216
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
217
|
-
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
218
|
-
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image'](); }),
|
|
219
|
-
local: factories['io.flow.catalog.v0.models.local'](),
|
|
220
|
-
created_at: factories.date_time_iso_8601(),
|
|
221
|
-
updated_at: factories.date_time_iso_8601(),
|
|
222
|
-
deleted_at: factories.date_time_iso_8601(),
|
|
223
|
-
}); },
|
|
224
|
-
'io.flow.catalog.v0.models.item_attributes_patch_form': function () { return ({
|
|
225
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
226
|
-
}); },
|
|
227
|
-
'io.flow.catalog.v0.models.item_form': function () { return ({
|
|
228
|
-
number: factories.string(),
|
|
229
|
-
locale: factories.string(),
|
|
230
|
-
name: factories.string(),
|
|
231
|
-
currency: factories.string(),
|
|
232
|
-
price: factories.double(),
|
|
233
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
234
|
-
description: factories.string(),
|
|
235
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
236
|
-
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
237
|
-
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
238
|
-
deleted_at: factories.date_time_iso_8601(),
|
|
239
|
-
}); },
|
|
240
|
-
'io.flow.catalog.v0.models.item_form_overlay': function () { return ({
|
|
241
|
-
id: factories.string(),
|
|
242
|
-
number: factories.string(),
|
|
243
|
-
key: factories.string(),
|
|
244
|
-
position: factories.long(),
|
|
245
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
246
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
247
|
-
description: factories.string(),
|
|
248
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
249
|
-
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
250
|
-
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
251
|
-
deleted_at: factories.date_time_iso_8601(),
|
|
252
|
-
}); },
|
|
253
|
-
'io.flow.catalog.v0.models.item_form_overlay_form': function () { return ({
|
|
254
|
-
number: factories.string(),
|
|
255
|
-
price: factories.double(),
|
|
256
|
-
currency: factories.string(),
|
|
257
|
-
position: factories.long(),
|
|
258
|
-
categories: arrayOf(function () { return factories.string(); }),
|
|
259
|
-
description: factories.string(),
|
|
260
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
261
|
-
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
262
|
-
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
263
|
-
deleted_at: factories.date_time_iso_8601(),
|
|
264
|
-
}); },
|
|
265
|
-
'io.flow.catalog.v0.models.item_price_update_form': function () { return ({
|
|
266
|
-
number: factories.string(),
|
|
267
|
-
currency: factories.string(),
|
|
268
|
-
price: factories.decimal(),
|
|
269
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
270
|
-
}); },
|
|
271
|
-
'io.flow.catalog.v0.models.item_price_update_put_form': function () { return ({
|
|
272
|
-
currency: factories.string(),
|
|
273
|
-
price: factories.decimal(),
|
|
274
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
275
|
-
}); },
|
|
276
|
-
'io.flow.catalog.v0.models.item_statistics': function () { return ({
|
|
277
|
-
items: factories.long(),
|
|
278
|
-
categories: factories.long(),
|
|
279
|
-
}); },
|
|
280
|
-
'io.flow.catalog.v0.models.item_version': function () { return ({
|
|
281
|
-
id: factories.string(),
|
|
282
|
-
timestamp: factories.date_time_iso_8601(),
|
|
283
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
284
|
-
item: factories['io.flow.catalog.v0.models.item'](),
|
|
285
|
-
}); },
|
|
286
|
-
'io.flow.catalog.v0.models.local': function () { return ({
|
|
287
|
-
experience: factories['io.flow.common.v0.models.experience_summary'](),
|
|
288
|
-
prices: arrayOf(function () { return factories['io.flow.catalog.v0.unions.localized_price'](); }),
|
|
289
|
-
rates: arrayOf(function () { return factories['io.flow.currency.v0.models.rate'](); }),
|
|
290
|
-
spot_rates: arrayOf(function () { return factories.object(); }),
|
|
291
|
-
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
292
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
293
|
-
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price_with_base'](); }),
|
|
294
|
-
}); },
|
|
295
|
-
'io.flow.catalog.v0.models.localized_adjustment': function () { return ({
|
|
296
|
-
currency: factories.string(),
|
|
297
|
-
amount: factories.double(),
|
|
298
|
-
label: factories.string(),
|
|
299
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
300
|
-
reason: factories['io.flow.catalog.v0.models.adjustment_reason'](),
|
|
301
|
-
}); },
|
|
302
|
-
'io.flow.catalog.v0.models.localized_item_duty': function () { return ({
|
|
303
|
-
key: 'localized_item_duty',
|
|
304
|
-
currency: factories.string(),
|
|
305
|
-
amount: factories.double(),
|
|
306
|
-
label: factories.string(),
|
|
307
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
308
|
-
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
309
|
-
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
310
|
-
}); },
|
|
311
|
-
'io.flow.catalog.v0.models.localized_item_price': function () { return ({
|
|
312
|
-
key: 'localized_item_price',
|
|
313
|
-
currency: factories.string(),
|
|
314
|
-
amount: factories.double(),
|
|
315
|
-
label: factories.string(),
|
|
316
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
317
|
-
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
318
|
-
}); },
|
|
319
|
-
'io.flow.catalog.v0.models.localized_item_vat': function () { return ({
|
|
320
|
-
key: 'localized_item_vat',
|
|
321
|
-
currency: factories.string(),
|
|
322
|
-
amount: factories.double(),
|
|
323
|
-
label: factories.string(),
|
|
324
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
325
|
-
name: factories.string(),
|
|
326
|
-
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
327
|
-
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
328
|
-
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
329
|
-
}); },
|
|
330
|
-
'io.flow.catalog.v0.models.localized_total': function () { return ({
|
|
331
|
-
key: 'localized_total',
|
|
332
|
-
currency: factories.string(),
|
|
333
|
-
amount: factories.double(),
|
|
334
|
-
label: factories.string(),
|
|
335
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
336
|
-
}); },
|
|
337
|
-
'io.flow.catalog.v0.models.options': function () { return ({
|
|
338
|
-
required: factories.boolean(),
|
|
339
|
-
show_in_catalog: factories.boolean(),
|
|
340
|
-
show_in_harmonization: factories.boolean(),
|
|
341
|
-
}); },
|
|
342
|
-
'io.flow.catalog.v0.models.subcatalog': function () { return ({
|
|
343
|
-
discriminator: 'subcatalog',
|
|
344
|
-
id: factories.string(),
|
|
345
|
-
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
346
|
-
settings: factories['io.flow.catalog.v0.models.subcatalog_settings'](),
|
|
347
|
-
}); },
|
|
348
|
-
'io.flow.catalog.v0.models.subcatalog_form': function () { return ({
|
|
349
|
-
settings: factories['io.flow.catalog.v0.models.subcatalog_settings_form'](),
|
|
350
|
-
}); },
|
|
351
|
-
'io.flow.catalog.v0.models.subcatalog_item': function () { return ({
|
|
352
|
-
id: factories.string(),
|
|
353
|
-
item: factories['io.flow.catalog.v0.models.item'](),
|
|
354
|
-
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
355
|
-
}); },
|
|
356
|
-
'io.flow.catalog.v0.models.subcatalog_item_version': function () { return ({
|
|
357
|
-
id: factories.string(),
|
|
358
|
-
timestamp: factories.date_time_iso_8601(),
|
|
359
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
360
|
-
subcatalog_item: factories['io.flow.catalog.v0.models.subcatalog_item'](),
|
|
361
|
-
}); },
|
|
362
|
-
'io.flow.catalog.v0.models.subcatalog_reference': function () { return ({
|
|
363
|
-
discriminator: 'subcatalog_reference',
|
|
364
|
-
id: factories.string(),
|
|
365
|
-
}); },
|
|
366
|
-
'io.flow.catalog.v0.models.subcatalog_settings': function () { return ({
|
|
367
|
-
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
368
|
-
}); },
|
|
369
|
-
'io.flow.catalog.v0.models.subcatalog_settings_form': function () { return ({
|
|
370
|
-
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
371
|
-
}); },
|
|
372
|
-
'io.flow.catalog.v0.models.subcatalog_statistics': function () { return ({
|
|
373
|
-
excluded: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
374
|
-
included: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
375
|
-
restricted: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
376
|
-
queue: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
377
|
-
catalog: factories['io.flow.catalog.v0.models.catalog_statistics'](),
|
|
378
|
-
}); },
|
|
379
|
-
'io.flow.catalog.v0.models.subcatalog_version': function () { return ({
|
|
380
|
-
id: factories.string(),
|
|
381
|
-
timestamp: factories.date_time_iso_8601(),
|
|
382
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
383
|
-
subcatalog: factories['io.flow.catalog.v0.models.subcatalog'](),
|
|
384
|
-
}); },
|
|
385
|
-
'io.flow.catalog.v0.unions.expandable_subcatalog': function () {
|
|
386
|
-
var f = faker.helpers.arrayElement([
|
|
387
|
-
function () { return factories['io.flow.catalog.v0.models.subcatalog'](); },
|
|
388
|
-
function () { return factories['io.flow.catalog.v0.models.subcatalog_reference'](); },
|
|
389
|
-
]);
|
|
390
|
-
return f();
|
|
391
|
-
},
|
|
392
|
-
'io.flow.catalog.v0.unions.localized_price': function () {
|
|
393
|
-
var f = faker.helpers.arrayElement([
|
|
394
|
-
function () { return factories['io.flow.catalog.v0.models.localized_item_price'](); },
|
|
395
|
-
function () { return factories['io.flow.catalog.v0.models.localized_item_vat'](); },
|
|
396
|
-
function () { return factories['io.flow.catalog.v0.models.localized_item_duty'](); },
|
|
397
|
-
function () { return factories['io.flow.catalog.v0.models.localized_total'](); },
|
|
398
|
-
]);
|
|
399
|
-
return f();
|
|
400
|
-
},
|
|
401
118
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_error_action': function () { return faker.helpers.arrayElement(['auto_reject', 'auto_accept']); },
|
|
402
119
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_failure_reason_code': function () { return faker.helpers.arrayElement(['channel_order_mor_invalid', 'channel_order_does_not_exist']); },
|
|
403
120
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_next_action_from': function () { return faker.helpers.arrayElement([
|
|
@@ -462,6 +179,7 @@ var factories = {
|
|
|
462
179
|
channel_id: factories.string(),
|
|
463
180
|
external_order_reference: factories.string(),
|
|
464
181
|
payment_request_id: factories.string(),
|
|
182
|
+
order_payment_request_ids: arrayOf(function () { return factories.string(); }),
|
|
465
183
|
order_edit_payment_request_ids: arrayOf(function () { return factories.string(); }),
|
|
466
184
|
status: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_status'](),
|
|
467
185
|
reasons: arrayOf(function () { return factories['io.flow.channel.internal.v0.models.channel_order_acceptance_reason'](); }),
|
|
@@ -974,1579 +692,193 @@ var factories = {
|
|
|
974
692
|
function () { return factories['io.flow.common.v0.models.user'](); },
|
|
975
693
|
function () { return factories['io.flow.common.v0.models.user_reference'](); },
|
|
976
694
|
]);
|
|
977
|
-
return f();
|
|
978
|
-
},
|
|
979
|
-
'io.flow.common.v0.unions.input_specification_limitation': function () {
|
|
980
|
-
var f = faker.helpers.arrayElement([
|
|
981
|
-
function () { return factories['io.flow.common.v0.models.input_specification_limitation_max'](); },
|
|
982
|
-
]);
|
|
983
|
-
return f();
|
|
984
|
-
},
|
|
985
|
-
'io.flow.common.v0.unions.logo_image': function () {
|
|
986
|
-
var f = faker.helpers.arrayElement([
|
|
987
|
-
function () { return factories['io.flow.common.v0.models.logo_image_svg'](); },
|
|
988
|
-
function () { return factories['io.flow.common.v0.models.logo_image_set_static'](); },
|
|
989
|
-
]);
|
|
990
|
-
return f();
|
|
991
|
-
},
|
|
992
|
-
'io.flow.common.v0.unions.price_source': function () {
|
|
993
|
-
var f = faker.helpers.arrayElement([
|
|
994
|
-
function () { return factories['io.flow.common.v0.models.price_source_price_book'](); },
|
|
995
|
-
function () { return factories['io.flow.common.v0.models.price_source_catalog'](); },
|
|
996
|
-
function () { return factories['io.flow.common.v0.models.price_source_provided'](); },
|
|
997
|
-
]);
|
|
998
|
-
return f();
|
|
999
|
-
},
|
|
1000
|
-
'io.flow.common.v0.unions.repeat_schedule': function () {
|
|
1001
|
-
var f = faker.helpers.arrayElement([
|
|
1002
|
-
function () { return factories['io.flow.common.v0.models.repeat_hourly'](); },
|
|
1003
|
-
function () { return factories['io.flow.common.v0.models.repeat_daily'](); },
|
|
1004
|
-
function () { return factories['io.flow.common.v0.models.repeat_weekly'](); },
|
|
1005
|
-
function () { return factories['io.flow.common.v0.models.repeat_monthly'](); },
|
|
1006
|
-
]);
|
|
1007
|
-
return f();
|
|
1008
|
-
},
|
|
1009
|
-
'io.flow.currency.v0.models.rate': function () { return ({
|
|
1010
|
-
id: factories.string(),
|
|
1011
|
-
base: factories.string(),
|
|
1012
|
-
target: factories.string(),
|
|
1013
|
-
effective_at: factories.date_time_iso_8601(),
|
|
1014
|
-
value: factories.decimal(),
|
|
1015
|
-
}); },
|
|
1016
|
-
'io.flow.currency.v0.models.rate_form': function () { return ({
|
|
1017
|
-
base: factories.string(),
|
|
1018
|
-
target: factories.string(),
|
|
1019
|
-
effective_at: factories.date_time_iso_8601(),
|
|
1020
|
-
}); },
|
|
1021
|
-
'io.flow.currency.v0.models.rate_version': function () { return ({
|
|
1022
|
-
id: factories.string(),
|
|
1023
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1024
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1025
|
-
rate: factories['io.flow.currency.v0.models.rate'](),
|
|
1026
|
-
}); },
|
|
1027
|
-
'io.flow.error.v0.enums.generic_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']); },
|
|
1028
|
-
'io.flow.error.v0.models.generic_error': function () { return ({
|
|
1029
|
-
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
1030
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1031
|
-
}); },
|
|
1032
|
-
'io.flow.fulfillment.v0.enums.center_capability': function () { return faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
1033
|
-
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
1034
|
-
'ratecard_base_cost',
|
|
1035
|
-
'ratecard_ddp_fee',
|
|
1036
|
-
'ratecard_fuel_surcharge',
|
|
1037
|
-
'ratecard_oversized_shipment_fee',
|
|
1038
|
-
'ratecard_rural_shipment_fee',
|
|
1039
|
-
'ratecard_emergency_situation_surcharge_fee',
|
|
1040
|
-
'ratecard_peak_surcharge_fee',
|
|
1041
|
-
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
1042
|
-
'center_commercial_invoice_fee',
|
|
1043
|
-
'center_inbound_carton_fee',
|
|
1044
|
-
'center_outbound_carton_fee',
|
|
1045
|
-
]); },
|
|
1046
|
-
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': function () { return faker.helpers.arrayElement(['center', 'ratecard']); },
|
|
1047
|
-
'io.flow.fulfillment.v0.enums.delivery_window_component_source': function () { return faker.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
1048
|
-
'io.flow.fulfillment.v0.enums.delivery_window_location': function () { return faker.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
1049
|
-
'io.flow.fulfillment.v0.enums.fulfillment_routing': function () { return faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']); },
|
|
1050
|
-
'io.flow.fulfillment.v0.enums.item_availability_status': function () { return faker.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
1051
|
-
'io.flow.fulfillment.v0.enums.lane_direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
|
|
1052
|
-
'io.flow.fulfillment.v0.enums.lane_preselect_preference': function () { return faker.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
1053
|
-
'io.flow.fulfillment.v0.enums.lane_strategy': function () { return faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
1054
|
-
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
1055
|
-
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': function () { return faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
1056
|
-
'io.flow.fulfillment.v0.enums.quote_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
1057
|
-
'io.flow.fulfillment.v0.enums.ratecard_owner': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
1058
|
-
'io.flow.fulfillment.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
1059
|
-
'io.flow.fulfillment.v0.enums.shipping_configuration_type': function () { return faker.helpers.arrayElement(['default', 'variant']); },
|
|
1060
|
-
'io.flow.fulfillment.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
1061
|
-
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
1062
|
-
'io.flow.fulfillment.v0.enums.tier_availability': function () { return faker.helpers.arrayElement(['always', 'backup']); },
|
|
1063
|
-
'io.flow.fulfillment.v0.enums.tier_estimate_type': function () { return faker.helpers.arrayElement(['calculated', 'custom']); },
|
|
1064
|
-
'io.flow.fulfillment.v0.enums.tier_strategy': function () { return faker.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
1065
|
-
'io.flow.fulfillment.v0.enums.zero_amount_indicator': function () { return faker.helpers.arrayElement(['zero', 'free']); },
|
|
1066
|
-
'io.flow.fulfillment.v0.models.amount_margin': function () { return ({
|
|
1067
|
-
discriminator: 'amount_margin',
|
|
1068
|
-
margin: factories['io.flow.common.v0.models.price'](),
|
|
1069
|
-
}); },
|
|
1070
|
-
'io.flow.fulfillment.v0.models.amount_margin_form': function () { return ({
|
|
1071
|
-
discriminator: 'amount_margin_form',
|
|
1072
|
-
margin: factories['io.flow.common.v0.models.money'](),
|
|
1073
|
-
}); },
|
|
1074
|
-
'io.flow.fulfillment.v0.models.at_cost': function () { return ({
|
|
1075
|
-
discriminator: 'at_cost',
|
|
1076
|
-
ignore: factories.string(),
|
|
1077
|
-
}); },
|
|
1078
|
-
'io.flow.fulfillment.v0.models.available_service': function () { return ({
|
|
1079
|
-
service: factories.string(),
|
|
1080
|
-
scheduled_pickups: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.scheduled_pickup'](); }),
|
|
1081
|
-
lead_days: factories['io.flow.fulfillment.v0.models.number_range'](),
|
|
1082
|
-
}); },
|
|
1083
|
-
'io.flow.fulfillment.v0.models.carrier_reference': function () { return ({
|
|
1084
|
-
id: factories.string(),
|
|
1085
|
-
}); },
|
|
1086
|
-
'io.flow.fulfillment.v0.models.center': function () { return ({
|
|
1087
|
-
discriminator: 'center',
|
|
1088
|
-
id: factories.string(),
|
|
1089
|
-
key: factories.string(),
|
|
1090
|
-
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1091
|
-
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1092
|
-
name: factories.string(),
|
|
1093
|
-
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
1094
|
-
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1095
|
-
timezone: factories.string(),
|
|
1096
|
-
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
1097
|
-
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
1098
|
-
}); },
|
|
1099
|
-
'io.flow.fulfillment.v0.models.center_form': function () { return ({
|
|
1100
|
-
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1101
|
-
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
1102
|
-
name: factories.string(),
|
|
1103
|
-
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
1104
|
-
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
1105
|
-
timezone: factories.string(),
|
|
1106
|
-
key: factories.string(),
|
|
1107
|
-
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
1108
|
-
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
1109
|
-
}); },
|
|
1110
|
-
'io.flow.fulfillment.v0.models.center_query': function () { return ({
|
|
1111
|
-
q: factories.string(),
|
|
1112
|
-
}); },
|
|
1113
|
-
'io.flow.fulfillment.v0.models.center_reference': function () { return ({
|
|
1114
|
-
discriminator: 'center_reference',
|
|
1115
|
-
organization_id: factories.string(),
|
|
1116
|
-
center_key: factories.string(),
|
|
1117
|
-
}); },
|
|
1118
|
-
'io.flow.fulfillment.v0.models.center_summary': function () { return ({
|
|
1119
|
-
id: factories.string(),
|
|
1120
|
-
key: factories.string(),
|
|
1121
|
-
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1122
|
-
}); },
|
|
1123
|
-
'io.flow.fulfillment.v0.models.center_version': function () { return ({
|
|
1124
|
-
id: factories.string(),
|
|
1125
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1126
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1127
|
-
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
1128
|
-
}); },
|
|
1129
|
-
'io.flow.fulfillment.v0.models.commercial_invoice_fee': function () { return ({
|
|
1130
|
-
discriminator: 'commercial_invoice_fee',
|
|
1131
|
-
amount: factories['io.flow.common.v0.models.money'](),
|
|
1132
|
-
}); },
|
|
1133
|
-
'io.flow.fulfillment.v0.models.country_availability': function () { return ({
|
|
1134
|
-
status: factories['io.flow.fulfillment.v0.enums.item_availability_status'](),
|
|
1135
|
-
countries: arrayOf(function () { return factories.string(); }),
|
|
1136
|
-
}); },
|
|
1137
|
-
'io.flow.fulfillment.v0.models.country_shipping_pricing': function () { return ({
|
|
1138
|
-
pricing: factories['io.flow.fulfillment.v0.models.item_shipping_pricing'](),
|
|
1139
|
-
countries: arrayOf(function () { return factories.string(); }),
|
|
1140
|
-
}); },
|
|
1141
|
-
'io.flow.fulfillment.v0.models.delivery_item': function () { return ({
|
|
1142
|
-
id: factories.string(),
|
|
1143
|
-
number: factories.string(),
|
|
1144
|
-
quantity: factories.long(),
|
|
1145
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1146
|
-
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
1147
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1148
|
-
center: factories.string(),
|
|
1149
|
-
line_number: factories.long(),
|
|
1150
|
-
}); },
|
|
1151
|
-
'io.flow.fulfillment.v0.models.delivery_option': function () { return ({
|
|
1152
|
-
id: factories.string(),
|
|
1153
|
-
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1154
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1155
|
-
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1156
|
-
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1157
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1158
|
-
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1159
|
-
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1160
|
-
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
1161
|
-
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1162
|
-
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
1163
|
-
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
1164
|
-
}); },
|
|
1165
|
-
'io.flow.fulfillment.v0.models.delivery_option_cost_component': function () { return ({
|
|
1166
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1167
|
-
currency: factories.string(),
|
|
1168
|
-
amount: factories.decimal(),
|
|
1169
|
-
label: factories.string(),
|
|
1170
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1171
|
-
}); },
|
|
1172
|
-
'io.flow.fulfillment.v0.models.delivery_option_cost_detail': function () { return ({
|
|
1173
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source'](),
|
|
1174
|
-
ratecard_id: factories.string(),
|
|
1175
|
-
currency: factories.string(),
|
|
1176
|
-
amount: factories.decimal(),
|
|
1177
|
-
label: factories.string(),
|
|
1178
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1179
|
-
components: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](); }),
|
|
1180
|
-
}); },
|
|
1181
|
-
'io.flow.fulfillment.v0.models.delivery_option_form': function () { return ({
|
|
1182
|
-
delivery: factories.string(),
|
|
1183
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1184
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1185
|
-
}); },
|
|
1186
|
-
'io.flow.fulfillment.v0.models.delivery_option_reference': function () { return ({
|
|
1187
|
-
id: factories.string(),
|
|
1188
|
-
}); },
|
|
1189
|
-
'io.flow.fulfillment.v0.models.delivery_option_summary': function () { return ({
|
|
1190
|
-
id: factories.string(),
|
|
1191
|
-
cost: factories['io.flow.common.v0.models.price'](),
|
|
1192
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1193
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
1194
|
-
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
1195
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1196
|
-
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1197
|
-
}); },
|
|
1198
|
-
'io.flow.fulfillment.v0.models.delivery_option_version': function () { return ({
|
|
1199
|
-
id: factories.string(),
|
|
1200
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1201
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1202
|
-
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
1203
|
-
}); },
|
|
1204
|
-
'io.flow.fulfillment.v0.models.delivery_summary': function () { return ({
|
|
1205
|
-
id: factories.string(),
|
|
1206
|
-
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1207
|
-
}); },
|
|
1208
|
-
'io.flow.fulfillment.v0.models.delivery_version': function () { return ({
|
|
1209
|
-
id: factories.string(),
|
|
1210
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1211
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1212
|
-
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
1213
|
-
}); },
|
|
1214
|
-
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
1215
|
-
from: factories.date_time_iso_8601(),
|
|
1216
|
-
to: factories.date_time_iso_8601(),
|
|
1217
|
-
timezone: factories.string(),
|
|
1218
|
-
label: factories.string(),
|
|
1219
|
-
min_days: factories.long(),
|
|
1220
|
-
max_days: factories.long(),
|
|
1221
|
-
}); },
|
|
1222
|
-
'io.flow.fulfillment.v0.models.delivery_window_component': function () { return ({
|
|
1223
|
-
from: factories.date_time_iso_8601(),
|
|
1224
|
-
to: factories.date_time_iso_8601(),
|
|
1225
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1226
|
-
}); },
|
|
1227
|
-
'io.flow.fulfillment.v0.models.delivery_window_components': function () { return ({
|
|
1228
|
-
shipment_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1229
|
-
transit_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
1230
|
-
}); },
|
|
1231
|
-
'io.flow.fulfillment.v0.models.delivery_window_components_v2': function () { return ({
|
|
1232
|
-
processing_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.processing_estimate'](); }),
|
|
1233
|
-
transit_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.transit_estimate'](); }),
|
|
1234
|
-
}); },
|
|
1235
|
-
'io.flow.fulfillment.v0.models.delivery_window_summary': function () { return ({
|
|
1236
|
-
country: factories.string(),
|
|
1237
|
-
delivery_window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
1238
|
-
}); },
|
|
1239
|
-
'io.flow.fulfillment.v0.models.digital_delivery': function () { return ({
|
|
1240
|
-
discriminator: 'digital_delivery',
|
|
1241
|
-
id: factories.string(),
|
|
1242
|
-
key: factories.string(),
|
|
1243
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1244
|
-
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1245
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1246
|
-
}); },
|
|
1247
|
-
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
1248
|
-
from: factories.long(),
|
|
1249
|
-
to: factories.long(),
|
|
1250
|
-
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
1251
|
-
}); },
|
|
1252
|
-
'io.flow.fulfillment.v0.models.flat_rate': function () { return ({
|
|
1253
|
-
discriminator: 'flat_rate',
|
|
1254
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
1255
|
-
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1256
|
-
}); },
|
|
1257
|
-
'io.flow.fulfillment.v0.models.flat_rate_form': function () { return ({
|
|
1258
|
-
discriminator: 'flat_rate_form',
|
|
1259
|
-
price: factories['io.flow.common.v0.models.money'](),
|
|
1260
|
-
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
1261
|
-
}); },
|
|
1262
|
-
'io.flow.fulfillment.v0.models.fulfillment_experience_reference': function () { return ({
|
|
1263
|
-
id: factories.string(),
|
|
1264
|
-
currency: factories.string(),
|
|
1265
|
-
}); },
|
|
1266
|
-
'io.flow.fulfillment.v0.models.inbound_carton_fee': function () { return ({
|
|
1267
|
-
discriminator: 'inbound_carton_fee',
|
|
1268
|
-
amount: factories['io.flow.common.v0.models.money'](),
|
|
1269
|
-
}); },
|
|
1270
|
-
'io.flow.fulfillment.v0.models.item_shipping_pricing': function () { return ({
|
|
1271
|
-
min: factories['io.flow.common.v0.models.price'](),
|
|
1272
|
-
max: factories['io.flow.common.v0.models.price'](),
|
|
1273
|
-
}); },
|
|
1274
|
-
'io.flow.fulfillment.v0.models.number_range': function () { return ({
|
|
1275
|
-
min: factories.long(),
|
|
1276
|
-
max: factories.long(),
|
|
1277
|
-
}); },
|
|
1278
|
-
'io.flow.fulfillment.v0.models.option_weight_estimates': function () { return ({
|
|
1279
|
-
gravitational: factories['io.flow.common.v0.models.measurement'](),
|
|
1280
|
-
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
1281
|
-
}); },
|
|
1282
|
-
'io.flow.fulfillment.v0.models.outbound_carton_fee': function () { return ({
|
|
1283
|
-
discriminator: 'outbound_carton_fee',
|
|
1284
|
-
amount: factories['io.flow.common.v0.models.money'](),
|
|
1285
|
-
}); },
|
|
1286
|
-
'io.flow.fulfillment.v0.models.packaging': function () { return ({
|
|
1287
|
-
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
1288
|
-
name: factories.string(),
|
|
1289
|
-
number: factories.string(),
|
|
1290
|
-
}); },
|
|
1291
|
-
'io.flow.fulfillment.v0.models.partner_center': function () { return ({
|
|
1292
|
-
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
1293
|
-
number: factories.string(),
|
|
1294
|
-
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1295
|
-
}); },
|
|
1296
|
-
'io.flow.fulfillment.v0.models.partner_center_form': function () { return ({
|
|
1297
|
-
partner_id: factories.string(),
|
|
1298
|
-
number: factories.string(),
|
|
1299
|
-
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
1300
|
-
}); },
|
|
1301
|
-
'io.flow.fulfillment.v0.models.percent_margin': function () { return ({
|
|
1302
|
-
discriminator: 'percent_margin',
|
|
1303
|
-
percentage: factories.double(),
|
|
1304
|
-
}); },
|
|
1305
|
-
'io.flow.fulfillment.v0.models.physical_delivery': function () { return ({
|
|
1306
|
-
discriminator: 'physical_delivery',
|
|
1307
|
-
id: factories.string(),
|
|
1308
|
-
key: factories.string(),
|
|
1309
|
-
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
1310
|
-
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
1311
|
-
ship_from_country: factories.string(),
|
|
1312
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
1313
|
-
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
1314
|
-
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
1315
|
-
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1316
|
-
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1317
|
-
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
1318
|
-
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
1319
|
-
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
1320
|
-
}); },
|
|
1321
|
-
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
1322
|
-
id: factories.string(),
|
|
1323
|
-
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
1324
|
-
}); },
|
|
1325
|
-
'io.flow.fulfillment.v0.models.price_with_base_and_details': function () { return ({
|
|
1326
|
-
currency: factories.string(),
|
|
1327
|
-
amount: factories.double(),
|
|
1328
|
-
label: factories.string(),
|
|
1329
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1330
|
-
details: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](); }),
|
|
1331
|
-
}); },
|
|
1332
|
-
'io.flow.fulfillment.v0.models.processing_estimate': function () { return ({
|
|
1333
|
-
location: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1334
|
-
min_date: factories.date_time_iso_8601(),
|
|
1335
|
-
max_date: factories.date_time_iso_8601(),
|
|
1336
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1337
|
-
}); },
|
|
1338
|
-
'io.flow.fulfillment.v0.models.quote': function () { return ({
|
|
1339
|
-
id: factories.string(),
|
|
1340
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1341
|
-
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1342
|
-
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
1343
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1344
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1345
|
-
}); },
|
|
1346
|
-
'io.flow.fulfillment.v0.models.quote_error': function () { return ({
|
|
1347
|
-
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
1348
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1349
|
-
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
1350
|
-
}); },
|
|
1351
|
-
'io.flow.fulfillment.v0.models.quote_form': function () { return ({
|
|
1352
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1353
|
-
experience: factories.string(),
|
|
1354
|
-
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
1355
|
-
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1356
|
-
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1357
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1358
|
-
}); },
|
|
1359
|
-
'io.flow.fulfillment.v0.models.quote_line_item_form': function () { return ({
|
|
1360
|
-
number: factories.string(),
|
|
1361
|
-
quantity: factories.long(),
|
|
1362
|
-
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1363
|
-
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1364
|
-
attributes: objectOf(function () { return factories.string(); }),
|
|
1365
|
-
center: factories.string(),
|
|
1366
|
-
}); },
|
|
1367
|
-
'io.flow.fulfillment.v0.models.quote_summary': function () { return ({
|
|
1368
|
-
id: factories.string(),
|
|
1369
|
-
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
1370
|
-
}); },
|
|
1371
|
-
'io.flow.fulfillment.v0.models.quote_version': function () { return ({
|
|
1372
|
-
id: factories.string(),
|
|
1373
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1374
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1375
|
-
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
1376
|
-
}); },
|
|
1377
|
-
'io.flow.fulfillment.v0.models.scheduled_pickup': function () { return ({
|
|
1378
|
-
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
1379
|
-
hour_of_day: factories.string(),
|
|
1380
|
-
minute_of_hour: factories.string(),
|
|
1381
|
-
}); },
|
|
1382
|
-
'io.flow.fulfillment.v0.models.service_reference': function () { return ({
|
|
1383
|
-
id: factories.string(),
|
|
1384
|
-
}); },
|
|
1385
|
-
'io.flow.fulfillment.v0.models.service_summary': function () { return ({
|
|
1386
|
-
discriminator: 'service_summary',
|
|
1387
|
-
id: factories.string(),
|
|
1388
|
-
carrier: factories['io.flow.fulfillment.v0.models.carrier_reference'](),
|
|
1389
|
-
name: factories.string(),
|
|
1390
|
-
center_code: factories.string(),
|
|
1391
|
-
}); },
|
|
1392
|
-
'io.flow.fulfillment.v0.models.service_unknown': function () { return ({
|
|
1393
|
-
discriminator: 'service_unknown',
|
|
1394
|
-
name: factories.string(),
|
|
1395
|
-
}); },
|
|
1396
|
-
'io.flow.fulfillment.v0.models.shipping_address': function () { return ({
|
|
1397
|
-
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1398
|
-
location: factories['io.flow.common.v0.models.address'](),
|
|
1399
|
-
center_key: factories.string(),
|
|
1400
|
-
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
1401
|
-
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
1402
|
-
}); },
|
|
1403
|
-
'io.flow.fulfillment.v0.models.shipping_configuration': function () { return ({
|
|
1404
|
-
id: factories.string(),
|
|
1405
|
-
name: factories.string(),
|
|
1406
|
-
key: factories.string(),
|
|
1407
|
-
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1408
|
-
shipping_lanes: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.shipping_lane'](); }),
|
|
1409
|
-
}); },
|
|
1410
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_copy': function () { return ({
|
|
1411
|
-
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1412
|
-
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1413
|
-
}); },
|
|
1414
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': function () { return ({
|
|
1415
|
-
name: factories.string(),
|
|
1416
|
-
}); },
|
|
1417
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_form': function () { return ({
|
|
1418
|
-
name: factories.string(),
|
|
1419
|
-
}); },
|
|
1420
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': function () { return ({
|
|
1421
|
-
id: factories.string(),
|
|
1422
|
-
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1423
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1424
|
-
availabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_availability'](); }),
|
|
1425
|
-
}); },
|
|
1426
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': function () { return ({
|
|
1427
|
-
id: factories.string(),
|
|
1428
|
-
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
1429
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
1430
|
-
country_shipping_pricings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](); }),
|
|
1431
|
-
}); },
|
|
1432
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_reference': function () { return ({
|
|
1433
|
-
key: factories.string(),
|
|
1434
|
-
}); },
|
|
1435
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_summary': function () { return ({
|
|
1436
|
-
id: factories.string(),
|
|
1437
|
-
name: factories.string(),
|
|
1438
|
-
key: factories.string(),
|
|
1439
|
-
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
1440
|
-
}); },
|
|
1441
|
-
'io.flow.fulfillment.v0.models.shipping_configuration_version': function () { return ({
|
|
1442
|
-
id: factories.string(),
|
|
1443
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1444
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1445
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
1446
|
-
}); },
|
|
1447
|
-
'io.flow.fulfillment.v0.models.shipping_lane': function () { return ({
|
|
1448
|
-
id: factories.string(),
|
|
1449
|
-
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1450
|
-
region: factories.string(),
|
|
1451
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1452
|
-
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
1453
|
-
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
1454
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1455
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1456
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1457
|
-
}); },
|
|
1458
|
-
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': function () { return ({
|
|
1459
|
-
id: factories.string(),
|
|
1460
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
1461
|
-
}); },
|
|
1462
|
-
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': function () { return ({
|
|
1463
|
-
tier_id: factories.string(),
|
|
1464
|
-
}); },
|
|
1465
|
-
'io.flow.fulfillment.v0.models.shipping_lane_form': function () { return ({
|
|
1466
|
-
from: factories.string(),
|
|
1467
|
-
to: factories.string(),
|
|
1468
|
-
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
1469
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1470
|
-
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
1471
|
-
}); },
|
|
1472
|
-
'io.flow.fulfillment.v0.models.shipping_lane_summary': function () { return ({
|
|
1473
|
-
shipping_lane_id: factories.string(),
|
|
1474
|
-
region: factories.string(),
|
|
1475
|
-
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
1476
|
-
}); },
|
|
1477
|
-
'io.flow.fulfillment.v0.models.shipping_lane_version': function () { return ({
|
|
1478
|
-
id: factories.string(),
|
|
1479
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1480
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1481
|
-
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
1482
|
-
}); },
|
|
1483
|
-
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': function () { return ({
|
|
1484
|
-
name: factories.string(),
|
|
1485
|
-
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1486
|
-
}); },
|
|
1487
|
-
'io.flow.fulfillment.v0.models.surcharge_setting': function () { return ({
|
|
1488
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1489
|
-
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
1490
|
-
}); },
|
|
1491
|
-
'io.flow.fulfillment.v0.models.surcharge_setting_display': function () { return ({
|
|
1492
|
-
name: factories.string(),
|
|
1493
|
-
description: factories.string(),
|
|
1494
|
-
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
1495
|
-
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
1496
|
-
}); },
|
|
1497
|
-
'io.flow.fulfillment.v0.models.tier': function () { return ({
|
|
1498
|
-
id: factories.string(),
|
|
1499
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1500
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1501
|
-
name: factories.string(),
|
|
1502
|
-
message: factories.string(),
|
|
1503
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
1504
|
-
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
1505
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1506
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1507
|
-
currency: factories.string(),
|
|
1508
|
-
description: factories.string(),
|
|
1509
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1510
|
-
shipping_lane: factories.string(),
|
|
1511
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1512
|
-
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
1513
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1514
|
-
}); },
|
|
1515
|
-
'io.flow.fulfillment.v0.models.tier_display': function () { return ({
|
|
1516
|
-
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1517
|
-
}); },
|
|
1518
|
-
'io.flow.fulfillment.v0.models.tier_display_form': function () { return ({
|
|
1519
|
-
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
1520
|
-
}); },
|
|
1521
|
-
'io.flow.fulfillment.v0.models.tier_estimate': function () { return ({
|
|
1522
|
-
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
1523
|
-
label: factories.string(),
|
|
1524
|
-
}); },
|
|
1525
|
-
'io.flow.fulfillment.v0.models.tier_form': function () { return ({
|
|
1526
|
-
currency: factories.string(),
|
|
1527
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1528
|
-
name: factories.string(),
|
|
1529
|
-
message: factories.string(),
|
|
1530
|
-
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
1531
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
1532
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1533
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1534
|
-
description: factories.string(),
|
|
1535
|
-
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
1536
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
1537
|
-
shipping_lane: factories.string(),
|
|
1538
|
-
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
1539
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1540
|
-
}); },
|
|
1541
|
-
'io.flow.fulfillment.v0.models.tier_reference': function () { return ({
|
|
1542
|
-
id: factories.string(),
|
|
1543
|
-
}); },
|
|
1544
|
-
'io.flow.fulfillment.v0.models.tier_rule': function () { return ({
|
|
1545
|
-
id: factories.string(),
|
|
1546
|
-
position: factories.long(),
|
|
1547
|
-
query: factories.string(),
|
|
1548
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
1549
|
-
}); },
|
|
1550
|
-
'io.flow.fulfillment.v0.models.tier_rule_form': function () { return ({
|
|
1551
|
-
position: factories.long(),
|
|
1552
|
-
query: factories.string(),
|
|
1553
|
-
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
1554
|
-
}); },
|
|
1555
|
-
'io.flow.fulfillment.v0.models.tier_rule_version': function () { return ({
|
|
1556
|
-
id: factories.string(),
|
|
1557
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1558
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1559
|
-
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
1560
|
-
}); },
|
|
1561
|
-
'io.flow.fulfillment.v0.models.tier_settings': function () { return ({
|
|
1562
|
-
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
1563
|
-
}); },
|
|
1564
|
-
'io.flow.fulfillment.v0.models.tier_summary': function () { return ({
|
|
1565
|
-
id: factories.string(),
|
|
1566
|
-
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
1567
|
-
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
1568
|
-
name: factories.string(),
|
|
1569
|
-
services: arrayOf(function () { return factories.string(); }),
|
|
1570
|
-
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
1571
|
-
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
1572
|
-
currency: factories.string(),
|
|
1573
|
-
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
1574
|
-
message: factories.string(),
|
|
1575
|
-
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
1576
|
-
}); },
|
|
1577
|
-
'io.flow.fulfillment.v0.models.tier_version': function () { return ({
|
|
1578
|
-
id: factories.string(),
|
|
1579
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1580
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1581
|
-
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
1582
|
-
}); },
|
|
1583
|
-
'io.flow.fulfillment.v0.models.transit_estimate': function () { return ({
|
|
1584
|
-
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1585
|
-
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
1586
|
-
min_date: factories.date_time_iso_8601(),
|
|
1587
|
-
max_date: factories.date_time_iso_8601(),
|
|
1588
|
-
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
1589
|
-
}); },
|
|
1590
|
-
'io.flow.fulfillment.v0.unions.delivery': function () {
|
|
1591
|
-
var f = faker.helpers.arrayElement([
|
|
1592
|
-
function () { return factories['io.flow.fulfillment.v0.models.digital_delivery'](); },
|
|
1593
|
-
function () { return factories['io.flow.fulfillment.v0.models.physical_delivery'](); },
|
|
1594
|
-
]);
|
|
1595
|
-
return f();
|
|
1596
|
-
},
|
|
1597
|
-
'io.flow.fulfillment.v0.unions.expandable_center': function () {
|
|
1598
|
-
var f = faker.helpers.arrayElement([
|
|
1599
|
-
function () { return factories['io.flow.fulfillment.v0.models.center'](); },
|
|
1600
|
-
function () { return factories['io.flow.fulfillment.v0.models.center_reference'](); },
|
|
1601
|
-
]);
|
|
1602
|
-
return f();
|
|
1603
|
-
},
|
|
1604
|
-
'io.flow.fulfillment.v0.unions.partner_center_fee': function () {
|
|
1605
|
-
var f = faker.helpers.arrayElement([
|
|
1606
|
-
function () { return factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](); },
|
|
1607
|
-
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
1608
|
-
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
1609
|
-
]);
|
|
1610
|
-
return f();
|
|
1611
|
-
},
|
|
1612
|
-
'io.flow.fulfillment.v0.unions.service_description': function () {
|
|
1613
|
-
var f = faker.helpers.arrayElement([
|
|
1614
|
-
function () { return factories['io.flow.fulfillment.v0.models.service_summary'](); },
|
|
1615
|
-
function () { return factories['io.flow.fulfillment.v0.models.service_unknown'](); },
|
|
1616
|
-
]);
|
|
1617
|
-
return f();
|
|
1618
|
-
},
|
|
1619
|
-
'io.flow.fulfillment.v0.unions.tier_rule_outcome': function () {
|
|
1620
|
-
var f = faker.helpers.arrayElement([
|
|
1621
|
-
function () { return factories['io.flow.fulfillment.v0.models.amount_margin'](); },
|
|
1622
|
-
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1623
|
-
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
1624
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
1625
|
-
]);
|
|
1626
|
-
return f();
|
|
1627
|
-
},
|
|
1628
|
-
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': function () {
|
|
1629
|
-
var f = faker.helpers.arrayElement([
|
|
1630
|
-
function () { return factories['io.flow.fulfillment.v0.models.amount_margin_form'](); },
|
|
1631
|
-
function () { return factories['io.flow.fulfillment.v0.models.flat_rate_form'](); },
|
|
1632
|
-
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
1633
|
-
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
1634
|
-
]);
|
|
1635
|
-
return f();
|
|
1636
|
-
},
|
|
1637
|
-
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
1638
|
-
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
1639
|
-
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
1640
|
-
'io.flow.google.pay.v0.enums.card_network': function () { return faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
1641
|
-
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['CARD']); },
|
|
1642
|
-
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
1643
|
-
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
1644
|
-
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
1645
|
-
name: factories.string(),
|
|
1646
|
-
postalCode: factories.string(),
|
|
1647
|
-
countryCode: factories.string(),
|
|
1648
|
-
phoneNumber: factories.string(),
|
|
1649
|
-
companyName: factories.string(),
|
|
1650
|
-
address1: factories.string(),
|
|
1651
|
-
address2: factories.string(),
|
|
1652
|
-
address3: factories.string(),
|
|
1653
|
-
locality: factories.string(),
|
|
1654
|
-
administrativeArea: factories.string(),
|
|
1655
|
-
sortingCode: factories.string(),
|
|
1656
|
-
}); },
|
|
1657
|
-
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
1658
|
-
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
1659
|
-
phoneNumberRequired: factories.boolean(),
|
|
1660
|
-
}); },
|
|
1661
|
-
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
1662
|
-
gateway: factories.string(),
|
|
1663
|
-
gatewayMerchantId: factories.string(),
|
|
1664
|
-
}); },
|
|
1665
|
-
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
1666
|
-
protocolVersion: factories.string(),
|
|
1667
|
-
publicKey: factories.string(),
|
|
1668
|
-
}); },
|
|
1669
|
-
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
1670
|
-
cardDetails: factories.string(),
|
|
1671
|
-
cardNetwork: factories.string(),
|
|
1672
|
-
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
1673
|
-
}); },
|
|
1674
|
-
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
1675
|
-
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
1676
|
-
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
1677
|
-
billingAddressRequired: factories.boolean(),
|
|
1678
|
-
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
1679
|
-
}); },
|
|
1680
|
-
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
1681
|
-
discriminator: 'direct_payment_method_token',
|
|
1682
|
-
protocolVersion: factories.string(),
|
|
1683
|
-
signature: factories.string(),
|
|
1684
|
-
signedMessage: factories.string(),
|
|
1685
|
-
}); },
|
|
1686
|
-
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
1687
|
-
messageExpiration: factories.string(),
|
|
1688
|
-
messageId: factories.string(),
|
|
1689
|
-
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
1690
|
-
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
1691
|
-
}); },
|
|
1692
|
-
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
1693
|
-
merchantId: factories.string(),
|
|
1694
|
-
merchantName: factories.string(),
|
|
1695
|
-
authJwt: factories.string(),
|
|
1696
|
-
}); },
|
|
1697
|
-
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
1698
|
-
apiVersion: factories.integer(),
|
|
1699
|
-
apiVersionMinor: factories.integer(),
|
|
1700
|
-
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
1701
|
-
email: factories.string(),
|
|
1702
|
-
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
1703
|
-
}); },
|
|
1704
|
-
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
1705
|
-
apiVersion: factories.integer(),
|
|
1706
|
-
apiVersionMinor: factories.integer(),
|
|
1707
|
-
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
1708
|
-
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
1709
|
-
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
1710
|
-
emailRequired: factories.boolean(),
|
|
1711
|
-
shippingAddressRequired: factories.boolean(),
|
|
1712
|
-
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
1713
|
-
}); },
|
|
1714
|
-
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
1715
|
-
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1716
|
-
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
1717
|
-
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
1718
|
-
}); },
|
|
1719
|
-
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
1720
|
-
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
1721
|
-
description: factories.string(),
|
|
1722
|
-
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
1723
|
-
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
1724
|
-
}); },
|
|
1725
|
-
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
1726
|
-
pan: factories.string(),
|
|
1727
|
-
expirationMonth: factories.integer(),
|
|
1728
|
-
expirationYear: factories.integer(),
|
|
1729
|
-
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
1730
|
-
cryptogram: factories.string(),
|
|
1731
|
-
eciIndicator: factories.string(),
|
|
1732
|
-
}); },
|
|
1733
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
1734
|
-
type: factories.string(),
|
|
1735
|
-
token: factories.string(),
|
|
1736
|
-
}); },
|
|
1737
|
-
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
1738
|
-
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
1739
|
-
parameters: factories.object(),
|
|
1740
|
-
}); },
|
|
1741
|
-
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
1742
|
-
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
1743
|
-
}); },
|
|
1744
|
-
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
1745
|
-
encryptedMessage: factories.string(),
|
|
1746
|
-
ephemeralPublicKey: factories.string(),
|
|
1747
|
-
tag: factories.string(),
|
|
1748
|
-
}); },
|
|
1749
|
-
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
1750
|
-
discriminator: 'stripe_payment_method_token',
|
|
1751
|
-
token: factories['io.flow.stripe.v0.models.token'](),
|
|
1752
|
-
}); },
|
|
1753
|
-
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
1754
|
-
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
1755
|
-
totalPrice: factories.string(),
|
|
1756
|
-
currencyCode: factories.string(),
|
|
1757
|
-
}); },
|
|
1758
|
-
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
1759
|
-
var f = faker.helpers.arrayElement([
|
|
1760
|
-
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
1761
|
-
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
1762
|
-
]);
|
|
1763
|
-
return f();
|
|
1764
|
-
},
|
|
1765
|
-
'io.flow.inventory.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
1766
|
-
'io.flow.inventory.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
1767
|
-
'io.flow.inventory.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
1768
|
-
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
1769
|
-
code: 'external_api_timeout',
|
|
1770
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1771
|
-
}); },
|
|
1772
|
-
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
1773
|
-
code: 'generic_reservation_error',
|
|
1774
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1775
|
-
}); },
|
|
1776
|
-
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
1777
|
-
discriminator: 'inventory_backorder',
|
|
1778
|
-
quantity: factories.long(),
|
|
1779
|
-
}); },
|
|
1780
|
-
'io.flow.inventory.v0.models.inventory_center_reference': function () { return ({
|
|
1781
|
-
key: factories.string(),
|
|
1782
|
-
}); },
|
|
1783
|
-
'io.flow.inventory.v0.models.inventory_check_response': function () { return ({
|
|
1784
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_check_response_item'](); }),
|
|
1785
|
-
}); },
|
|
1786
|
-
'io.flow.inventory.v0.models.inventory_check_response_item': function () { return ({
|
|
1787
|
-
number: factories.string(),
|
|
1788
|
-
quantity: factories.long(),
|
|
1789
|
-
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
1790
|
-
}); },
|
|
1791
|
-
'io.flow.inventory.v0.models.inventory_experience_reference': function () { return ({
|
|
1792
|
-
key: factories.string(),
|
|
1793
|
-
}); },
|
|
1794
|
-
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
1795
|
-
discriminator: 'inventory_follow_ecommerce_platform',
|
|
1796
|
-
quantity: factories.long(),
|
|
1797
|
-
}); },
|
|
1798
|
-
'io.flow.inventory.v0.models.inventory_item_reference': function () { return ({
|
|
1799
|
-
number: factories.string(),
|
|
1800
|
-
}); },
|
|
1801
|
-
'io.flow.inventory.v0.models.inventory_request': function () { return ({
|
|
1802
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_request_item'](); }),
|
|
1803
|
-
}); },
|
|
1804
|
-
'io.flow.inventory.v0.models.inventory_request_item': function () { return ({
|
|
1805
|
-
number: factories.string(),
|
|
1806
|
-
quantity: factories.long(),
|
|
1807
|
-
}); },
|
|
1808
|
-
'io.flow.inventory.v0.models.inventory_rule': function () { return ({
|
|
1809
|
-
id: factories.string(),
|
|
1810
|
-
position: factories.long(),
|
|
1811
|
-
query: factories.string(),
|
|
1812
|
-
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1813
|
-
}); },
|
|
1814
|
-
'io.flow.inventory.v0.models.inventory_rule_form': function () { return ({
|
|
1815
|
-
position: factories.long(),
|
|
1816
|
-
query: factories.string(),
|
|
1817
|
-
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
1818
|
-
}); },
|
|
1819
|
-
'io.flow.inventory.v0.models.inventory_rule_version': function () { return ({
|
|
1820
|
-
id: factories.string(),
|
|
1821
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1822
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1823
|
-
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
1824
|
-
}); },
|
|
1825
|
-
'io.flow.inventory.v0.models.inventory_snapshot': function () { return ({
|
|
1826
|
-
id: factories.string(),
|
|
1827
|
-
available: factories.long(),
|
|
1828
|
-
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1829
|
-
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1830
|
-
quantity: factories.long(),
|
|
1831
|
-
}); },
|
|
1832
|
-
'io.flow.inventory.v0.models.inventory_snapshot_version': function () { return ({
|
|
1833
|
-
id: factories.string(),
|
|
1834
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1835
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1836
|
-
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
1837
|
-
}); },
|
|
1838
|
-
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
1839
|
-
discriminator: 'inventory_stock',
|
|
1840
|
-
quantity: factories.long(),
|
|
1841
|
-
}); },
|
|
1842
|
-
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
1843
|
-
discriminator: 'inventory_unlimited',
|
|
1844
|
-
placeholder: factories.string(),
|
|
1845
|
-
}); },
|
|
1846
|
-
'io.flow.inventory.v0.models.inventory_update': function () { return ({
|
|
1847
|
-
id: factories.string(),
|
|
1848
|
-
idempotency_key: factories.string(),
|
|
1849
|
-
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
1850
|
-
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
1851
|
-
notes: factories.object(),
|
|
1852
|
-
quantity: factories.long(),
|
|
1853
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1854
|
-
}); },
|
|
1855
|
-
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
1856
|
-
center: factories.string(),
|
|
1857
|
-
idempotency_key: factories.string(),
|
|
1858
|
-
item_number: factories.string(),
|
|
1859
|
-
quantity: factories.long(),
|
|
1860
|
-
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
1861
|
-
notes: factories.object(),
|
|
1862
|
-
}); },
|
|
1863
|
-
'io.flow.inventory.v0.models.inventory_update_version': function () { return ({
|
|
1864
|
-
id: factories.string(),
|
|
1865
|
-
timestamp: factories.date_time_iso_8601(),
|
|
1866
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1867
|
-
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
1868
|
-
}); },
|
|
1869
|
-
'io.flow.inventory.v0.models.no_inventory_reservation_error': function () { return ({
|
|
1870
|
-
code: 'no_inventory',
|
|
1871
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
1872
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](); }),
|
|
1873
|
-
}); },
|
|
1874
|
-
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
1875
|
-
number: factories.string(),
|
|
1876
|
-
requested_quantity: factories.long(),
|
|
1877
|
-
available_quantity: factories.long(),
|
|
1878
|
-
}); },
|
|
1879
|
-
'io.flow.inventory.v0.models.pfs_inventory_check_response': function () { return ({
|
|
1880
|
-
items: objectOf(function () { return factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](); }),
|
|
1881
|
-
}); },
|
|
1882
|
-
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
1883
|
-
number: factories.string(),
|
|
1884
|
-
ats: factories.long(),
|
|
1885
|
-
in_stock: factories.boolean(),
|
|
1886
|
-
}); },
|
|
1887
|
-
'io.flow.inventory.v0.models.pfs_inventory_status': function () { return ({
|
|
1888
|
-
status: factories.string(),
|
|
1889
|
-
}); },
|
|
1890
|
-
'io.flow.inventory.v0.models.reservation': function () { return ({
|
|
1891
|
-
id: factories.string(),
|
|
1892
|
-
key: factories.string(),
|
|
1893
|
-
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
1894
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item'](); }),
|
|
1895
|
-
reserved_until: factories.date_time_iso_8601(),
|
|
1896
|
-
}); },
|
|
1897
|
-
'io.flow.inventory.v0.models.reservation_form': function () { return ({
|
|
1898
|
-
order_number: factories.string(),
|
|
1899
|
-
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item_form'](); }),
|
|
1900
|
-
}); },
|
|
1901
|
-
'io.flow.inventory.v0.models.reservation_item': function () { return ({
|
|
1902
|
-
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
1903
|
-
quantity: factories.long(),
|
|
1904
|
-
}); },
|
|
1905
|
-
'io.flow.inventory.v0.models.reservation_item_form': function () { return ({
|
|
1906
|
-
item_number: factories.string(),
|
|
1907
|
-
quantity: factories.long(),
|
|
1908
|
-
}); },
|
|
1909
|
-
'io.flow.inventory.v0.models.reservation_item_reference': function () { return ({
|
|
1910
|
-
number: factories.string(),
|
|
1911
|
-
}); },
|
|
1912
|
-
'io.flow.inventory.v0.models.reservation_order_reference': function () { return ({
|
|
1913
|
-
number: factories.string(),
|
|
1914
|
-
}); },
|
|
1915
|
-
'io.flow.inventory.v0.unions.inventory_strategy': function () {
|
|
1916
|
-
var f = faker.helpers.arrayElement([
|
|
1917
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_backorder'](); },
|
|
1918
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_stock'](); },
|
|
1919
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_unlimited'](); },
|
|
1920
|
-
function () { return factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
1921
|
-
]);
|
|
1922
|
-
return f();
|
|
1923
|
-
},
|
|
1924
|
-
'io.flow.inventory.v0.unions.reservation_error': function () {
|
|
1925
|
-
var f = faker.helpers.arrayElement([
|
|
1926
|
-
function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](); },
|
|
1927
|
-
function () { return factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](); },
|
|
1928
|
-
function () { return factories['io.flow.inventory.v0.models.generic_reservation_error'](); },
|
|
1929
|
-
]);
|
|
1930
|
-
return f();
|
|
1931
|
-
},
|
|
1932
|
-
'io.flow.merchant.of.record.v0.enums.economic_title_location': function () { return faker.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
1933
|
-
'io.flow.merchant.of.record.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can', 'ge-usa']); },
|
|
1934
|
-
'io.flow.order.price.v0.enums.order_price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
1935
|
-
'adjustment',
|
|
1936
|
-
'vat_deminimis',
|
|
1937
|
-
'duty_deminimis',
|
|
1938
|
-
'duties_item_price',
|
|
1939
|
-
'duties_freight',
|
|
1940
|
-
'duties_insurance',
|
|
1941
|
-
'vat_item_price',
|
|
1942
|
-
'vat_freight',
|
|
1943
|
-
'vat_insurance',
|
|
1944
|
-
'vat_duties_item_price',
|
|
1945
|
-
'vat_duties_freight',
|
|
1946
|
-
'vat_duties_insurance',
|
|
1947
|
-
'item_price',
|
|
1948
|
-
'item_discount',
|
|
1949
|
-
'rounding',
|
|
1950
|
-
'insurance',
|
|
1951
|
-
'shipping',
|
|
1952
|
-
'shipping_discount',
|
|
1953
|
-
'order_discount',
|
|
1954
|
-
'subtotal_percent_sales_margin',
|
|
1955
|
-
'subtotal_vat_percent_sales_margin',
|
|
1956
|
-
'subtotal_duty_percent_sales_margin',
|
|
1957
|
-
'vat_subsidy',
|
|
1958
|
-
'duty_subsidy',
|
|
1959
|
-
'remote_area_surcharge',
|
|
1960
|
-
'fuel_surcharge',
|
|
1961
|
-
'emergency_situation_surcharge',
|
|
1962
|
-
'peak_surcharge',
|
|
1963
|
-
'duties_taxes_paid_surcharge',
|
|
1964
|
-
'tip',
|
|
1965
|
-
]); },
|
|
1966
|
-
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker.helpers.arrayElement([
|
|
1967
|
-
'adjustment',
|
|
1968
|
-
'subtotal',
|
|
1969
|
-
'vat',
|
|
1970
|
-
'duty',
|
|
1971
|
-
'shipping',
|
|
1972
|
-
'insurance',
|
|
1973
|
-
'discount',
|
|
1974
|
-
'surcharges',
|
|
1975
|
-
'tip',
|
|
1976
|
-
]); },
|
|
1977
|
-
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
1978
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1979
|
-
currency: factories.string(),
|
|
1980
|
-
amount: factories.decimal(),
|
|
1981
|
-
label: factories.string(),
|
|
1982
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1983
|
-
components: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail_component'](); }),
|
|
1984
|
-
name: factories.string(),
|
|
1985
|
-
rate: factories.decimal(),
|
|
1986
|
-
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
1987
|
-
rate_label: factories.string(),
|
|
1988
|
-
}); },
|
|
1989
|
-
'io.flow.order.price.v0.models.order_price_detail_component': function () { return ({
|
|
1990
|
-
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1991
|
-
currency: factories.string(),
|
|
1992
|
-
amount: factories.decimal(),
|
|
1993
|
-
label: factories.string(),
|
|
1994
|
-
base: factories['io.flow.common.v0.models.price'](),
|
|
1995
|
-
name: factories.string(),
|
|
1996
|
-
}); },
|
|
1997
|
-
'io.flow.organization.v0.enums.country_picker_source': function () { return faker.helpers.arrayElement(['experience', 'destination']); },
|
|
1998
|
-
'io.flow.organization.v0.enums.ecommerce_platform_type': function () { return faker.helpers.arrayElement([
|
|
1999
|
-
'commercetools',
|
|
2000
|
-
'custom',
|
|
2001
|
-
'hybris',
|
|
2002
|
-
'magento',
|
|
2003
|
-
'shopify',
|
|
2004
|
-
'shopify_markets',
|
|
2005
|
-
'sfcc',
|
|
2006
|
-
'solidus',
|
|
2007
|
-
'workarea',
|
|
2008
|
-
]); },
|
|
2009
|
-
'io.flow.organization.v0.enums.invitation_error_code': function () { return faker.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
2010
|
-
'io.flow.organization.v0.models.country_picker': function () { return ({
|
|
2011
|
-
id: factories.string(),
|
|
2012
|
-
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2013
|
-
}); },
|
|
2014
|
-
'io.flow.organization.v0.models.country_picker_form': function () { return ({
|
|
2015
|
-
source: factories['io.flow.organization.v0.enums.country_picker_source'](),
|
|
2016
|
-
}); },
|
|
2017
|
-
'io.flow.organization.v0.models.ecommerce_platform': function () { return ({
|
|
2018
|
-
id: factories.string(),
|
|
2019
|
-
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2020
|
-
version: factories.string(),
|
|
2021
|
-
}); },
|
|
2022
|
-
'io.flow.organization.v0.models.ecommerce_platform_form': function () { return ({
|
|
2023
|
-
type: factories['io.flow.organization.v0.enums.ecommerce_platform_type'](),
|
|
2024
|
-
version: factories.string(),
|
|
2025
|
-
}); },
|
|
2026
|
-
'io.flow.organization.v0.models.invitation': function () { return ({
|
|
2027
|
-
id: factories.string(),
|
|
2028
|
-
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2029
|
-
email: factories.string(),
|
|
2030
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
2031
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2032
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2033
|
-
expiration: factories.date_time_iso_8601(),
|
|
2034
|
-
}); },
|
|
2035
|
-
'io.flow.organization.v0.models.invitation_error': function () { return ({
|
|
2036
|
-
code: factories['io.flow.organization.v0.enums.invitation_error_code'](),
|
|
2037
|
-
messages: arrayOf(function () { return factories.string(); }),
|
|
2038
|
-
}); },
|
|
2039
|
-
'io.flow.organization.v0.models.invitation_form': function () { return ({
|
|
2040
|
-
organization: factories.string(),
|
|
2041
|
-
email: factories.string(),
|
|
2042
|
-
name: factories['io.flow.common.v0.models.name'](),
|
|
2043
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2044
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2045
|
-
}); },
|
|
2046
|
-
'io.flow.organization.v0.models.invitation_version': function () { return ({
|
|
2047
|
-
id: factories.string(),
|
|
2048
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2049
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2050
|
-
invitation: factories['io.flow.organization.v0.models.invitation'](),
|
|
2051
|
-
}); },
|
|
2052
|
-
'io.flow.organization.v0.models.membership': function () { return ({
|
|
2053
|
-
id: factories.string(),
|
|
2054
|
-
organization: factories['io.flow.common.v0.unions.expandable_organization'](),
|
|
2055
|
-
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2056
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2057
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2058
|
-
}); },
|
|
2059
|
-
'io.flow.organization.v0.models.membership_form': function () { return ({
|
|
2060
|
-
organization: factories.string(),
|
|
2061
|
-
user: factories.string(),
|
|
2062
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2063
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2064
|
-
}); },
|
|
2065
|
-
'io.flow.organization.v0.models.membership_put_form': function () { return ({
|
|
2066
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2067
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2068
|
-
}); },
|
|
2069
|
-
'io.flow.organization.v0.models.membership_version': function () { return ({
|
|
2070
|
-
id: factories.string(),
|
|
2071
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2072
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2073
|
-
membership: factories['io.flow.organization.v0.models.membership'](),
|
|
2074
|
-
}); },
|
|
2075
|
-
'io.flow.organization.v0.models.organization_authorization': function () { return ({
|
|
2076
|
-
role: factories['io.flow.common.v0.enums.role'](),
|
|
2077
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2078
|
-
}); },
|
|
2079
|
-
'io.flow.organization.v0.models.organization_authorization_form': function () { return ({
|
|
2080
|
-
organization: factories.string(),
|
|
2081
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2082
|
-
}); },
|
|
2083
|
-
'io.flow.organization.v0.models.organization_configuration_reference': function () { return ({
|
|
2084
|
-
id: factories.string(),
|
|
2085
|
-
}); },
|
|
2086
|
-
'io.flow.organization.v0.models.organization_default_configurations': function () { return ({
|
|
2087
|
-
id: factories.string(),
|
|
2088
|
-
checkout_configuration: factories['io.flow.organization.v0.models.organization_configuration_reference'](),
|
|
2089
|
-
}); },
|
|
2090
|
-
'io.flow.organization.v0.models.organization_default_configurations_form': function () { return ({
|
|
2091
|
-
id: factories.string(),
|
|
2092
|
-
}); },
|
|
2093
|
-
'io.flow.organization.v0.models.organization_form': function () { return ({
|
|
2094
|
-
id: factories.string(),
|
|
2095
|
-
name: factories.string(),
|
|
2096
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2097
|
-
parent_id: factories.string(),
|
|
2098
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2099
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
2100
|
-
type: factories['io.flow.common.v0.enums.organization_type'](),
|
|
2101
|
-
}); },
|
|
2102
|
-
'io.flow.organization.v0.models.organization_put_form': function () { return ({
|
|
2103
|
-
name: factories.string(),
|
|
2104
|
-
environment: factories['io.flow.common.v0.enums.environment'](),
|
|
2105
|
-
parent_id: factories.string(),
|
|
2106
|
-
defaults: factories['io.flow.common.v0.models.organization_defaults'](),
|
|
2107
|
-
status: factories['io.flow.common.v0.enums.organization_status'](),
|
|
2108
|
-
}); },
|
|
2109
|
-
'io.flow.organization.v0.models.organization_version': function () { return ({
|
|
2110
|
-
id: factories.string(),
|
|
2111
|
-
timestamp: factories.date_time_iso_8601(),
|
|
2112
|
-
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2113
|
-
organization: factories['io.flow.common.v0.models.organization'](),
|
|
2114
|
-
}); },
|
|
2115
|
-
'io.flow.organization.v0.models.region_setting': function () { return ({
|
|
2116
|
-
id: factories.string(),
|
|
2117
|
-
region: factories.string(),
|
|
2118
|
-
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
2119
|
-
}); },
|
|
2120
|
-
'io.flow.organization.v0.models.region_setting_form': function () { return ({
|
|
2121
|
-
status: factories['io.flow.common.v0.enums.availability_status'](),
|
|
2122
|
-
}); },
|
|
2123
|
-
'io.flow.permission.v0.enums.authentication_technique': function () { return faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']); },
|
|
2124
|
-
'io.flow.permission.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
2125
|
-
'io.flow.permission.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
2126
|
-
'organization_admin',
|
|
2127
|
-
'organization_merchant',
|
|
2128
|
-
'organization_customer_service',
|
|
2129
|
-
'organization_fulfillment',
|
|
2130
|
-
'organization_marketing',
|
|
2131
|
-
'organization_finance',
|
|
2132
|
-
'organization_classification',
|
|
2133
|
-
'flow_operations',
|
|
2134
|
-
'channel_admin',
|
|
2135
|
-
'channel_organization_admin',
|
|
2136
|
-
]); },
|
|
2137
|
-
'io.flow.permission.v0.enums.permitted_http_method': function () { return faker.helpers.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']); },
|
|
2138
|
-
'io.flow.permission.v0.models.behavior_audit': function () { return ({
|
|
2139
|
-
behavior: factories['io.flow.permission.v0.enums.flow_behavior'](),
|
|
2140
|
-
authentication_techniques: arrayOf(function () { return factories['io.flow.permission.v0.enums.authentication_technique'](); }),
|
|
2141
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2142
|
-
}); },
|
|
2143
|
-
'io.flow.permission.v0.models.permission_audit': function () { return ({
|
|
2144
|
-
routes: arrayOf(function () { return factories['io.flow.permission.v0.models.route_audit'](); }),
|
|
2145
|
-
behaviors: arrayOf(function () { return factories['io.flow.permission.v0.models.behavior_audit'](); }),
|
|
2146
|
-
}); },
|
|
2147
|
-
'io.flow.permission.v0.models.permission_check': function () { return ({
|
|
2148
|
-
authentication_technique: factories['io.flow.permission.v0.enums.authentication_technique'](),
|
|
2149
|
-
user: factories['io.flow.common.v0.unions.expandable_user'](),
|
|
2150
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2151
|
-
behaviors: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_behavior'](); }),
|
|
2152
|
-
routes: arrayOf(function () { return factories['io.flow.permission.v0.models.permitted_route'](); }),
|
|
2153
|
-
}); },
|
|
2154
|
-
'io.flow.permission.v0.models.permitted_route': function () { return ({
|
|
2155
|
-
method: factories['io.flow.permission.v0.enums.permitted_http_method'](),
|
|
2156
|
-
path: factories.string(),
|
|
2157
|
-
}); },
|
|
2158
|
-
'io.flow.permission.v0.models.route_audit': function () { return ({
|
|
2159
|
-
method: factories['io.flow.permission.v0.enums.permitted_http_method'](),
|
|
2160
|
-
path: factories.string(),
|
|
2161
|
-
authentication_techniques: arrayOf(function () { return factories['io.flow.permission.v0.enums.authentication_technique'](); }),
|
|
2162
|
-
roles: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_role'](); }),
|
|
2163
|
-
}); },
|
|
2164
|
-
'io.flow.permission.v0.models.simple_permission_check': function () { return ({
|
|
2165
|
-
behaviors: arrayOf(function () { return factories['io.flow.permission.v0.enums.flow_behavior'](); }),
|
|
2166
|
-
}); },
|
|
2167
|
-
'io.flow.price.v0.enums.levy_component': function () { return faker.helpers.arrayElement(['goods', 'duty', 'insurance', 'freight', 'vat']); },
|
|
2168
|
-
'io.flow.price.v0.enums.levy_strategy': function () { return faker.helpers.arrayElement(['minimum', 'average', 'maximum']); },
|
|
2169
|
-
'io.flow.price.v0.enums.price_accuracy': function () { return faker.helpers.arrayElement(['calculated', 'estimated_from_partial_destination']); },
|
|
2170
|
-
'io.flow.price.v0.enums.price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
2171
|
-
'base_price',
|
|
2172
|
-
'discount',
|
|
2173
|
-
'currency_margin',
|
|
2174
|
-
'percent_item_margin',
|
|
2175
|
-
'fixed_item_margin',
|
|
2176
|
-
'duties_item_price',
|
|
2177
|
-
'duties_added_margin',
|
|
2178
|
-
'duties_rounding',
|
|
2179
|
-
'duties_deminimis',
|
|
2180
|
-
'vat_item_price',
|
|
2181
|
-
'vat_added_margin',
|
|
2182
|
-
'vat_rounding',
|
|
2183
|
-
'vat_duties_item_price',
|
|
2184
|
-
'vat_duties_added_margin',
|
|
2185
|
-
'vat_duties_rounding',
|
|
2186
|
-
'vat_deminimis',
|
|
2187
|
-
'item_price_percent_sales_margin',
|
|
2188
|
-
'margins_percent_sales_margin',
|
|
2189
|
-
'rounding_percent_sales_margin',
|
|
2190
|
-
'vat_percent_sales_margin',
|
|
2191
|
-
'vat_duty_percent_sales_margin',
|
|
2192
|
-
'duty_percent_sales_margin',
|
|
2193
|
-
]); },
|
|
2194
|
-
'io.flow.price.v0.enums.price_detail_key': function () { return faker.helpers.arrayElement(['item_price', 'margins', 'vat', 'duty', 'rounding', 'adjustment']); },
|
|
2195
|
-
'io.flow.price.v0.enums.pricing_levy_setting': function () { return faker.helpers.arrayElement(['included', 'displayed', 'ignored']); },
|
|
2196
|
-
'io.flow.price.v0.models.currency_format': function () { return ({
|
|
2197
|
-
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
2198
|
-
label_formatters: arrayOf(function () { return factories['io.flow.common.v0.enums.currency_label_formatter'](); }),
|
|
2199
|
-
}); },
|
|
2200
|
-
'io.flow.price.v0.models.deminimis_per_item': function () { return ({
|
|
2201
|
-
discriminator: 'deminimis_per_item',
|
|
2202
|
-
currency: factories.string(),
|
|
2203
|
-
minimum: factories.decimal(),
|
|
2204
|
-
maximum: factories.decimal(),
|
|
2205
|
-
}); },
|
|
2206
|
-
'io.flow.price.v0.models.deminimis_simple': function () { return ({
|
|
2207
|
-
discriminator: 'deminimis_simple',
|
|
2208
|
-
value: factories.decimal(),
|
|
2209
|
-
currency: factories.string(),
|
|
2210
|
-
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
2211
|
-
minimum: factories.decimal(),
|
|
2212
|
-
}); },
|
|
2213
|
-
'io.flow.price.v0.models.duty': function () { return ({
|
|
2214
|
-
rate: factories.decimal(),
|
|
2215
|
-
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
2216
|
-
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
2217
|
-
name: factories.string(),
|
|
2218
|
-
}); },
|
|
2219
|
-
'io.flow.price.v0.models.local_price_details': function () { return ({
|
|
2220
|
-
base: factories['io.flow.price.v0.models.price_details'](),
|
|
2221
|
-
local: factories['io.flow.price.v0.models.price_details'](),
|
|
2222
|
-
discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
2223
|
-
local_before_discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
2224
|
-
}); },
|
|
2225
|
-
'io.flow.price.v0.models.price_book': function () { return ({
|
|
2226
|
-
id: factories.string(),
|
|
2227
|
-
key: factories.string(),
|
|
2228
|
-
currency: factories.string(),
|
|
2229
|
-
name: factories.string(),
|
|
2230
|
-
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
2231
|
-
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
2232
|
-
}); },
|
|
2233
|
-
'io.flow.price.v0.models.price_book_form': function () { return ({
|
|
2234
|
-
currency: factories.string(),
|
|
2235
|
-
name: factories.string(),
|
|
2236
|
-
includes: factories['io.flow.common.v0.enums.included_levy_key'](),
|
|
2237
|
-
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
2238
|
-
}); },
|
|
2239
|
-
'io.flow.price.v0.models.price_book_item': function () { return ({
|
|
2240
|
-
id: factories.string(),
|
|
2241
|
-
key: factories.string(),
|
|
2242
|
-
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
2243
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
2244
|
-
item_number: factories.string(),
|
|
2245
|
-
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2246
|
-
item_attributes: objectOf(function () { return factories.string(); }),
|
|
2247
|
-
}); },
|
|
2248
|
-
'io.flow.price.v0.models.price_book_item_form': function () { return ({
|
|
2249
|
-
price_book_key: factories.string(),
|
|
2250
|
-
item_number: factories.string(),
|
|
2251
|
-
amount: factories.decimal(),
|
|
2252
|
-
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2253
|
-
item_attributes: objectOf(function () { return factories.string(); }),
|
|
2254
|
-
}); },
|
|
2255
|
-
'io.flow.price.v0.models.price_book_item_query_form': function () { return ({
|
|
2256
|
-
price_book_key: factories.string(),
|
|
2257
|
-
item_query: factories.string(),
|
|
2258
|
-
amount: factories.decimal(),
|
|
2259
|
-
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
2260
|
-
item_attributes: objectOf(function () { return factories.string(); }),
|
|
2261
|
-
}); },
|
|
2262
|
-
'io.flow.price.v0.models.price_book_item_schedule': function () { return ({
|
|
2263
|
-
starts_at: factories.date_time_iso_8601(),
|
|
2264
|
-
ends_at: factories.date_time_iso_8601(),
|
|
2265
|
-
}); },
|
|
2266
|
-
'io.flow.price.v0.models.price_book_reference': function () { return ({
|
|
2267
|
-
id: factories.string(),
|
|
2268
|
-
key: factories.string(),
|
|
2269
|
-
}); },
|
|
2270
|
-
'io.flow.price.v0.models.price_check': function () { return ({
|
|
2271
|
-
display: factories['io.flow.price.v0.models.local_price_details'](),
|
|
2272
|
-
'final': factories['io.flow.price.v0.models.local_price_details'](),
|
|
2273
|
-
}); },
|
|
2274
|
-
'io.flow.price.v0.models.price_detail': function () { return ({
|
|
2275
|
-
key: factories['io.flow.price.v0.enums.price_detail_key'](),
|
|
2276
|
-
components: arrayOf(function () { return factories['io.flow.price.v0.models.price_detail_component'](); }),
|
|
2277
|
-
amount: factories.decimal(),
|
|
2278
|
-
label: factories.string(),
|
|
2279
|
-
name: factories.string(),
|
|
2280
|
-
basis: factories.decimal(),
|
|
2281
|
-
}); },
|
|
2282
|
-
'io.flow.price.v0.models.price_detail_component': function () { return ({
|
|
2283
|
-
key: factories['io.flow.price.v0.enums.price_detail_component_key'](),
|
|
2284
|
-
amount: factories.decimal(),
|
|
2285
|
-
label: factories.string(),
|
|
2286
|
-
name: factories.string(),
|
|
2287
|
-
}); },
|
|
2288
|
-
'io.flow.price.v0.models.price_details': function () { return ({
|
|
2289
|
-
currency: factories.string(),
|
|
2290
|
-
item_price: factories['io.flow.price.v0.models.price_detail'](),
|
|
2291
|
-
margins: factories['io.flow.price.v0.models.price_detail'](),
|
|
2292
|
-
vat: factories['io.flow.price.v0.models.price_detail'](),
|
|
2293
|
-
duty: factories['io.flow.price.v0.models.price_detail'](),
|
|
2294
|
-
rounding: factories['io.flow.price.v0.models.price_detail'](),
|
|
2295
|
-
price: factories['io.flow.common.v0.models.price'](),
|
|
2296
|
-
total: factories['io.flow.common.v0.models.price'](),
|
|
2297
|
-
adjustment: factories['io.flow.price.v0.models.price_detail'](),
|
|
2298
|
-
}); },
|
|
2299
|
-
'io.flow.price.v0.models.price_equation': function () { return ({
|
|
2300
|
-
contracted_rate: factories.decimal(),
|
|
2301
|
-
rate: factories.decimal(),
|
|
2302
|
-
pricing: factories['io.flow.price.v0.models.pricing'](),
|
|
2303
|
-
base_price: factories.decimal(),
|
|
2304
|
-
discount: factories.decimal(),
|
|
2305
|
-
fixed_margin: factories.decimal(),
|
|
2306
|
-
percent_margin: factories.decimal(),
|
|
2307
|
-
insurance: factories.decimal(),
|
|
2308
|
-
freight: factories.decimal(),
|
|
2309
|
-
duty: factories['io.flow.price.v0.models.duty'](),
|
|
2310
|
-
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2311
|
-
percent_sales_margin: factories.decimal(),
|
|
2312
|
-
}); },
|
|
2313
|
-
'io.flow.price.v0.models.pricing': function () { return ({
|
|
2314
|
-
vat: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2315
|
-
duty: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2316
|
-
rounding: factories['io.flow.common.v0.models.rounding'](),
|
|
2317
|
-
}); },
|
|
2318
|
-
'io.flow.price.v0.models.tax': function () { return ({
|
|
2319
|
-
name: factories.string(),
|
|
2320
|
-
rate: factories.decimal(),
|
|
2321
|
-
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
2322
|
-
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
2323
|
-
}); },
|
|
2324
|
-
'io.flow.price.v0.unions.deminimis': function () {
|
|
2325
|
-
var f = faker.helpers.arrayElement([
|
|
2326
|
-
function () { return factories['io.flow.price.v0.models.deminimis_simple'](); },
|
|
2327
|
-
function () { return factories['io.flow.price.v0.models.deminimis_per_item'](); },
|
|
2328
|
-
]);
|
|
2329
|
-
return f();
|
|
2330
|
-
},
|
|
2331
|
-
'io.flow.product.v0.models.product': function () { return ({
|
|
2332
|
-
organization_id: factories.string(),
|
|
2333
|
-
number: factories.string(),
|
|
2334
|
-
taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
2335
|
-
taxonomy_data: arrayOf(function () { return factories['io.flow.product.v0.models.product_taxonomy_data'](); }),
|
|
2336
|
-
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2337
|
-
highest_value_item_number: factories.string(),
|
|
2338
|
-
updated_at: factories.date_time_iso_8601(),
|
|
2339
|
-
deleted_at: factories.date_time_iso_8601(),
|
|
2340
|
-
}); },
|
|
2341
|
-
'io.flow.product.v0.models.product_taxonomy_category': function () { return ({
|
|
2342
|
-
name: factories.string(),
|
|
2343
|
-
full_name: factories.string(),
|
|
2344
|
-
}); },
|
|
2345
|
-
'io.flow.product.v0.models.product_taxonomy_data': function () { return ({
|
|
2346
|
-
key: factories.string(),
|
|
2347
|
-
value: arrayOf(function () { return factories.string(); }),
|
|
2348
|
-
}); },
|
|
2349
|
-
'io.flow.query.builder.v0.enums.available_filter_format': function () { return faker.helpers.arrayElement([
|
|
2350
|
-
'boolean',
|
|
2351
|
-
'date',
|
|
2352
|
-
'money',
|
|
2353
|
-
'decimal',
|
|
2354
|
-
'string',
|
|
2355
|
-
'unit_of_length',
|
|
2356
|
-
'unit_of_mass',
|
|
2357
|
-
]); },
|
|
2358
|
-
'io.flow.query.builder.v0.models.available_filter_structured': function () { return ({
|
|
2359
|
-
discriminator: 'structured',
|
|
2360
|
-
field: factories.string(),
|
|
2361
|
-
operators: arrayOf(function () { return factories.string(); }),
|
|
2362
|
-
format: factories['io.flow.query.builder.v0.enums.available_filter_format'](),
|
|
2363
|
-
valid_values: arrayOf(function () { return factories.string(); }),
|
|
2364
|
-
placeholder: factories.string(),
|
|
2365
|
-
}); },
|
|
2366
|
-
'io.flow.query.builder.v0.models.available_filter_unstructured': function () { return ({
|
|
2367
|
-
discriminator: 'unstructured',
|
|
2368
|
-
placeholder: factories.string(),
|
|
2369
|
-
}); },
|
|
2370
|
-
'io.flow.query.builder.v0.models.query': function () { return ({
|
|
2371
|
-
q: factories.string(),
|
|
2372
|
-
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter'](); }),
|
|
2373
|
-
}); },
|
|
2374
|
-
'io.flow.query.builder.v0.models.query_builder': function () { return ({
|
|
2375
|
-
q: factories.string(),
|
|
2376
|
-
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter'](); }),
|
|
2377
|
-
available: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.available_filter'](); }),
|
|
2378
|
-
}); },
|
|
2379
|
-
'io.flow.query.builder.v0.models.query_builder_filter_form': function () { return ({
|
|
2380
|
-
discriminator: 'filter',
|
|
2381
|
-
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter_form'](); }),
|
|
2382
|
-
}); },
|
|
2383
|
-
'io.flow.query.builder.v0.models.query_builder_query_form': function () { return ({
|
|
2384
|
-
discriminator: 'query',
|
|
2385
|
-
q: factories.string(),
|
|
2386
|
-
}); },
|
|
2387
|
-
'io.flow.query.builder.v0.models.query_filter_structured': function () { return ({
|
|
2388
|
-
discriminator: 'structured',
|
|
2389
|
-
q: factories.string(),
|
|
2390
|
-
field: factories.string(),
|
|
2391
|
-
operator: factories.string(),
|
|
2392
|
-
values: arrayOf(function () { return factories.string(); }),
|
|
2393
|
-
}); },
|
|
2394
|
-
'io.flow.query.builder.v0.models.query_filter_structured_form': function () { return ({
|
|
2395
|
-
discriminator: 'structured',
|
|
2396
|
-
field: factories.string(),
|
|
2397
|
-
operator: factories.string(),
|
|
2398
|
-
values: arrayOf(function () { return factories.string(); }),
|
|
2399
|
-
}); },
|
|
2400
|
-
'io.flow.query.builder.v0.models.query_filter_unstructured': function () { return ({
|
|
2401
|
-
discriminator: 'unstructured',
|
|
2402
|
-
q: factories.string(),
|
|
2403
|
-
}); },
|
|
2404
|
-
'io.flow.query.builder.v0.models.query_filter_unstructured_form': function () { return ({
|
|
2405
|
-
discriminator: 'unstructured',
|
|
2406
|
-
q: factories.string(),
|
|
2407
|
-
}); },
|
|
2408
|
-
'io.flow.query.builder.v0.unions.available_filter': function () {
|
|
695
|
+
return f();
|
|
696
|
+
},
|
|
697
|
+
'io.flow.common.v0.unions.input_specification_limitation': function () {
|
|
2409
698
|
var f = faker.helpers.arrayElement([
|
|
2410
|
-
function () { return factories['io.flow.
|
|
2411
|
-
function () { return factories['io.flow.query.builder.v0.models.available_filter_unstructured'](); },
|
|
699
|
+
function () { return factories['io.flow.common.v0.models.input_specification_limitation_max'](); },
|
|
2412
700
|
]);
|
|
2413
701
|
return f();
|
|
2414
702
|
},
|
|
2415
|
-
'io.flow.
|
|
703
|
+
'io.flow.common.v0.unions.logo_image': function () {
|
|
2416
704
|
var f = faker.helpers.arrayElement([
|
|
2417
|
-
function () { return factories['io.flow.
|
|
2418
|
-
function () { return factories['io.flow.
|
|
705
|
+
function () { return factories['io.flow.common.v0.models.logo_image_svg'](); },
|
|
706
|
+
function () { return factories['io.flow.common.v0.models.logo_image_set_static'](); },
|
|
2419
707
|
]);
|
|
2420
708
|
return f();
|
|
2421
709
|
},
|
|
2422
|
-
'io.flow.
|
|
710
|
+
'io.flow.common.v0.unions.price_source': function () {
|
|
2423
711
|
var f = faker.helpers.arrayElement([
|
|
2424
|
-
function () { return factories['io.flow.
|
|
2425
|
-
function () { return factories['io.flow.
|
|
712
|
+
function () { return factories['io.flow.common.v0.models.price_source_price_book'](); },
|
|
713
|
+
function () { return factories['io.flow.common.v0.models.price_source_catalog'](); },
|
|
714
|
+
function () { return factories['io.flow.common.v0.models.price_source_provided'](); },
|
|
2426
715
|
]);
|
|
2427
716
|
return f();
|
|
2428
717
|
},
|
|
2429
|
-
'io.flow.
|
|
718
|
+
'io.flow.common.v0.unions.repeat_schedule': function () {
|
|
2430
719
|
var f = faker.helpers.arrayElement([
|
|
2431
|
-
function () { return factories['io.flow.
|
|
2432
|
-
function () { return factories['io.flow.
|
|
720
|
+
function () { return factories['io.flow.common.v0.models.repeat_hourly'](); },
|
|
721
|
+
function () { return factories['io.flow.common.v0.models.repeat_daily'](); },
|
|
722
|
+
function () { return factories['io.flow.common.v0.models.repeat_weekly'](); },
|
|
723
|
+
function () { return factories['io.flow.common.v0.models.repeat_monthly'](); },
|
|
2433
724
|
]);
|
|
2434
725
|
return f();
|
|
2435
726
|
},
|
|
2436
|
-
'io.flow.
|
|
2437
|
-
'io.flow.
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
'area',
|
|
2441
|
-
'city',
|
|
2442
|
-
'county',
|
|
2443
|
-
'department',
|
|
2444
|
-
'dependency',
|
|
2445
|
-
'district',
|
|
2446
|
-
'do_si',
|
|
2447
|
-
'emirate',
|
|
2448
|
-
'entity',
|
|
2449
|
-
'island',
|
|
2450
|
-
'municipality',
|
|
2451
|
-
'oblast',
|
|
2452
|
-
'outlying_area',
|
|
2453
|
-
'parish',
|
|
2454
|
-
'prefecture',
|
|
2455
|
-
'province',
|
|
2456
|
-
'state',
|
|
2457
|
-
'territory',
|
|
2458
|
-
'other',
|
|
2459
|
-
]); },
|
|
2460
|
-
'io.flow.reference.v0.models.carrier': function () { return ({
|
|
2461
|
-
id: factories.string(),
|
|
2462
|
-
name: factories.string(),
|
|
2463
|
-
tracking_url: factories.string(),
|
|
727
|
+
'io.flow.error.v0.enums.generic_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']); },
|
|
728
|
+
'io.flow.error.v0.models.generic_error': function () { return ({
|
|
729
|
+
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
730
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
2464
731
|
}); },
|
|
2465
|
-
'io.flow.
|
|
2466
|
-
|
|
2467
|
-
|
|
732
|
+
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
733
|
+
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
734
|
+
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
735
|
+
'io.flow.google.pay.v0.enums.card_network': function () { return faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
736
|
+
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['CARD']); },
|
|
737
|
+
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
738
|
+
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
739
|
+
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
2468
740
|
name: factories.string(),
|
|
741
|
+
postalCode: factories.string(),
|
|
742
|
+
countryCode: factories.string(),
|
|
743
|
+
phoneNumber: factories.string(),
|
|
744
|
+
companyName: factories.string(),
|
|
745
|
+
address1: factories.string(),
|
|
746
|
+
address2: factories.string(),
|
|
747
|
+
address3: factories.string(),
|
|
748
|
+
locality: factories.string(),
|
|
749
|
+
administrativeArea: factories.string(),
|
|
750
|
+
sortingCode: factories.string(),
|
|
2469
751
|
}); },
|
|
2470
|
-
'io.flow.
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
iso_3166_3: factories.string(),
|
|
2474
|
-
languages: arrayOf(function () { return factories.string(); }),
|
|
2475
|
-
measurement_system: factories.string(),
|
|
2476
|
-
default_currency: factories.string(),
|
|
2477
|
-
default_language: factories.string(),
|
|
2478
|
-
timezones: arrayOf(function () { return factories.string(); }),
|
|
2479
|
-
default_delivered_duty: factories.string(),
|
|
752
|
+
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
753
|
+
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
754
|
+
phoneNumberRequired: factories.boolean(),
|
|
2480
755
|
}); },
|
|
2481
|
-
'io.flow.
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
number_decimals: factories.integer(),
|
|
2485
|
-
symbols: factories['io.flow.reference.v0.models.currency_symbols'](),
|
|
2486
|
-
default_locale: factories.string(),
|
|
756
|
+
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
757
|
+
gateway: factories.string(),
|
|
758
|
+
gatewayMerchantId: factories.string(),
|
|
2487
759
|
}); },
|
|
2488
|
-
'io.flow.
|
|
2489
|
-
|
|
2490
|
-
|
|
760
|
+
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
761
|
+
protocolVersion: factories.string(),
|
|
762
|
+
publicKey: factories.string(),
|
|
2491
763
|
}); },
|
|
2492
|
-
'io.flow.
|
|
2493
|
-
|
|
2494
|
-
|
|
764
|
+
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
765
|
+
cardDetails: factories.string(),
|
|
766
|
+
cardNetwork: factories.string(),
|
|
767
|
+
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2495
768
|
}); },
|
|
2496
|
-
'io.flow.
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
numbers: factories['io.flow.reference.v0.models.locale_numbers'](),
|
|
769
|
+
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
770
|
+
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
771
|
+
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
772
|
+
billingAddressRequired: factories.boolean(),
|
|
773
|
+
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2502
774
|
}); },
|
|
2503
|
-
'io.flow.
|
|
2504
|
-
|
|
2505
|
-
|
|
775
|
+
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
776
|
+
discriminator: 'direct_payment_method_token',
|
|
777
|
+
protocolVersion: factories.string(),
|
|
778
|
+
signature: factories.string(),
|
|
779
|
+
signedMessage: factories.string(),
|
|
2506
780
|
}); },
|
|
2507
|
-
'io.flow.
|
|
2508
|
-
|
|
2509
|
-
|
|
781
|
+
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
782
|
+
messageExpiration: factories.string(),
|
|
783
|
+
messageId: factories.string(),
|
|
784
|
+
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
785
|
+
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
2510
786
|
}); },
|
|
2511
|
-
'io.flow.
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
images: factories['io.flow.reference.v0.models.payment_method_images'](),
|
|
2516
|
-
regions: arrayOf(function () { return factories.string(); }),
|
|
2517
|
-
capabilities: arrayOf(function () { return factories['io.flow.reference.v0.enums.payment_method_capability'](); }),
|
|
787
|
+
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
788
|
+
merchantId: factories.string(),
|
|
789
|
+
merchantName: factories.string(),
|
|
790
|
+
authJwt: factories.string(),
|
|
2518
791
|
}); },
|
|
2519
|
-
'io.flow.
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
792
|
+
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
793
|
+
apiVersion: factories.integer(),
|
|
794
|
+
apiVersionMinor: factories.integer(),
|
|
795
|
+
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
796
|
+
email: factories.string(),
|
|
797
|
+
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2523
798
|
}); },
|
|
2524
|
-
'io.flow.
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
799
|
+
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
800
|
+
apiVersion: factories.integer(),
|
|
801
|
+
apiVersionMinor: factories.integer(),
|
|
802
|
+
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
803
|
+
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
804
|
+
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
805
|
+
emailRequired: factories.boolean(),
|
|
806
|
+
shippingAddressRequired: factories.boolean(),
|
|
807
|
+
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2528
808
|
}); },
|
|
2529
|
-
'io.flow.
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
country: factories.string(),
|
|
2534
|
-
province_type: factories['io.flow.reference.v0.enums.province_type'](),
|
|
2535
|
-
translations: arrayOf(function () { return factories['io.flow.reference.v0.models.localized_translation'](); }),
|
|
809
|
+
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
810
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
811
|
+
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
812
|
+
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2536
813
|
}); },
|
|
2537
|
-
'io.flow.
|
|
2538
|
-
|
|
814
|
+
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
815
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
816
|
+
description: factories.string(),
|
|
817
|
+
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
818
|
+
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
819
|
+
}); },
|
|
820
|
+
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
821
|
+
pan: factories.string(),
|
|
822
|
+
expirationMonth: factories.integer(),
|
|
823
|
+
expirationYear: factories.integer(),
|
|
824
|
+
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
825
|
+
cryptogram: factories.string(),
|
|
826
|
+
eciIndicator: factories.string(),
|
|
827
|
+
}); },
|
|
828
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
829
|
+
type: factories.string(),
|
|
830
|
+
token: factories.string(),
|
|
831
|
+
}); },
|
|
832
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
833
|
+
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
834
|
+
parameters: factories.object(),
|
|
835
|
+
}); },
|
|
836
|
+
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
837
|
+
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
838
|
+
}); },
|
|
839
|
+
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
840
|
+
encryptedMessage: factories.string(),
|
|
841
|
+
ephemeralPublicKey: factories.string(),
|
|
842
|
+
tag: factories.string(),
|
|
843
|
+
}); },
|
|
844
|
+
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
845
|
+
discriminator: 'stripe_payment_method_token',
|
|
846
|
+
token: factories['io.flow.stripe.v0.models.token'](),
|
|
847
|
+
}); },
|
|
848
|
+
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
849
|
+
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
850
|
+
totalPrice: factories.string(),
|
|
851
|
+
currencyCode: factories.string(),
|
|
852
|
+
}); },
|
|
853
|
+
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
854
|
+
var f = faker.helpers.arrayElement([
|
|
855
|
+
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
856
|
+
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
857
|
+
]);
|
|
858
|
+
return f();
|
|
859
|
+
},
|
|
860
|
+
'io.flow.product.v0.models.product': function () { return ({
|
|
861
|
+
organization_id: factories.string(),
|
|
862
|
+
number: factories.string(),
|
|
863
|
+
taxonomy_category: factories['io.flow.product.v0.models.product_taxonomy_category'](),
|
|
864
|
+
taxonomy_data: arrayOf(function () { return factories['io.flow.product.v0.models.product_taxonomy_data'](); }),
|
|
865
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
866
|
+
highest_value_item_number: factories.string(),
|
|
867
|
+
updated_at: factories.date_time_iso_8601(),
|
|
868
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
869
|
+
}); },
|
|
870
|
+
'io.flow.product.v0.models.product_taxonomy_category': function () { return ({
|
|
2539
871
|
name: factories.string(),
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
872
|
+
full_name: factories.string(),
|
|
873
|
+
}); },
|
|
874
|
+
'io.flow.product.v0.models.product_taxonomy_data': function () { return ({
|
|
875
|
+
key: factories.string(),
|
|
876
|
+
value: arrayOf(function () { return factories.string(); }),
|
|
877
|
+
value_obj: arrayOf(function () { return factories['io.flow.product.v0.models.product_taxonomy_value'](); }),
|
|
2545
878
|
}); },
|
|
2546
|
-
'io.flow.
|
|
879
|
+
'io.flow.product.v0.models.product_taxonomy_value': function () { return ({
|
|
880
|
+
handle: factories.string(),
|
|
2547
881
|
name: factories.string(),
|
|
2548
|
-
description: factories.string(),
|
|
2549
|
-
offset: factories.integer(),
|
|
2550
882
|
}); },
|
|
2551
883
|
'io.flow.shopify.external.v0.enums.cancel_reason': function () { return faker.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']); },
|
|
2552
884
|
'io.flow.shopify.external.v0.enums.discount_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled', 'depleted']); },
|
|
@@ -2735,6 +1067,7 @@ var factories = {
|
|
|
2735
1067
|
'io.flow.shopify.external.v0.models.graphql_metaobject_field': function () { return ({
|
|
2736
1068
|
key: factories.string(),
|
|
2737
1069
|
value: factories.string(),
|
|
1070
|
+
type: factories.string(),
|
|
2738
1071
|
}); },
|
|
2739
1072
|
'io.flow.shopify.external.v0.models.graphql_option': function () { return ({
|
|
2740
1073
|
id: factories.string(),
|
|
@@ -5258,6 +3591,7 @@ var factories = {
|
|
|
5258
3591
|
return f();
|
|
5259
3592
|
},
|
|
5260
3593
|
'io.flow.tech.onboarding.playground.v0.enums.aldo_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3594
|
+
'io.flow.tech.onboarding.playground.v0.enums.anirban_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5261
3595
|
'io.flow.tech.onboarding.playground.v0.enums.ansh_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5262
3596
|
'io.flow.tech.onboarding.playground.v0.enums.hosein_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
5263
3597
|
'io.flow.tech.onboarding.playground.v0.enums.niall_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
@@ -5279,6 +3613,21 @@ var factories = {
|
|
|
5279
3613
|
type: factories['io.flow.tech.onboarding.playground.v0.enums.aldo_item_type'](),
|
|
5280
3614
|
added_on: factories.date_iso_8601(),
|
|
5281
3615
|
}); },
|
|
3616
|
+
'io.flow.tech.onboarding.playground.v0.models.anirban_item': function () { return ({
|
|
3617
|
+
id: factories.string(),
|
|
3618
|
+
number: factories.string(),
|
|
3619
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3620
|
+
description: factories.string(),
|
|
3621
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.anirban_item_type'](),
|
|
3622
|
+
added_on: factories.date_time_iso_8601(),
|
|
3623
|
+
}); },
|
|
3624
|
+
'io.flow.tech.onboarding.playground.v0.models.anirban_item_form': function () { return ({
|
|
3625
|
+
number: factories.string(),
|
|
3626
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
3627
|
+
description: factories.string(),
|
|
3628
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.anirban_item_type'](),
|
|
3629
|
+
added_on: factories.date_time_iso_8601(),
|
|
3630
|
+
}); },
|
|
5282
3631
|
'io.flow.tech.onboarding.playground.v0.models.ansh_item': function () { return ({
|
|
5283
3632
|
id: factories.string(),
|
|
5284
3633
|
number: factories.string(),
|
|
@@ -5574,6 +3923,8 @@ var factories = {
|
|
|
5574
3923
|
'aldo_item_deleted',
|
|
5575
3924
|
'ansh_item_upserted',
|
|
5576
3925
|
'ansh_item_deleted',
|
|
3926
|
+
'anirban_item_upserted',
|
|
3927
|
+
'anirban_item_deleted',
|
|
5577
3928
|
'transaction_upserted',
|
|
5578
3929
|
'organization_transaction_upserted',
|
|
5579
3930
|
'organization_transaction_deleted',
|
|
@@ -5966,6 +4317,7 @@ var factories = {
|
|
|
5966
4317
|
'surcharges',
|
|
5967
4318
|
'tip',
|
|
5968
4319
|
]); },
|
|
4320
|
+
'io.flow.v0.enums.order_price_fee_type': function () { return faker.helpers.arrayElement(['service', 'fx', 'tax', 'duties', 'tax_and_duties', 'product']); },
|
|
5969
4321
|
'io.flow.v0.enums.order_refund_summary_includes': function () { return faker.helpers.arrayElement(['duties', 'vat', 'shipping']); },
|
|
5970
4322
|
'io.flow.v0.enums.order_refund_summary_partial_charged': function () { return faker.helpers.arrayElement(['per_item', 'for_order', 'by_value_percentage', 'by_quantity_percentage']); },
|
|
5971
4323
|
'io.flow.v0.enums.order_status': function () { return faker.helpers.arrayElement(['open', 'submitted']); },
|
|
@@ -6118,40 +4470,6 @@ var factories = {
|
|
|
6118
4470
|
'io.flow.v0.enums.price_detail_key': function () { return faker.helpers.arrayElement(['item_price', 'margins', 'vat', 'duty', 'rounding', 'adjustment']); },
|
|
6119
4471
|
'io.flow.v0.enums.price_facet_boundary': function () { return faker.helpers.arrayElement(['min', 'max']); },
|
|
6120
4472
|
'io.flow.v0.enums.pricing_levy_setting': function () { return faker.helpers.arrayElement(['included', 'displayed', 'ignored']); },
|
|
6121
|
-
'io.flow.v0.enums.product_restriction_rule': function () { return faker.helpers.arrayElement([
|
|
6122
|
-
'Adult Products',
|
|
6123
|
-
'Alcohol',
|
|
6124
|
-
'Anti Money Laundering',
|
|
6125
|
-
'Collagen',
|
|
6126
|
-
'Consumer Safety',
|
|
6127
|
-
'Cosmetics',
|
|
6128
|
-
'DG - Batteries',
|
|
6129
|
-
'DG - Hazmat',
|
|
6130
|
-
'Drugs',
|
|
6131
|
-
'Dual Use',
|
|
6132
|
-
'Fine Art',
|
|
6133
|
-
'Fish & Wildlife - CITES',
|
|
6134
|
-
'Fish & Wildlife - Plant',
|
|
6135
|
-
'Fish & Wildlife - USFWS',
|
|
6136
|
-
'Food',
|
|
6137
|
-
'Gambling',
|
|
6138
|
-
'Health',
|
|
6139
|
-
'Human hair',
|
|
6140
|
-
'Insufficient Details',
|
|
6141
|
-
'Intangible',
|
|
6142
|
-
'Jewelry',
|
|
6143
|
-
'Jewelry & Watches Over 5000',
|
|
6144
|
-
'Knives',
|
|
6145
|
-
'Liquids',
|
|
6146
|
-
'Oversized',
|
|
6147
|
-
'Pending Classification',
|
|
6148
|
-
'Restrict by Default',
|
|
6149
|
-
'Supplements',
|
|
6150
|
-
'Tattoo Ink And PMU',
|
|
6151
|
-
'Unknown Bundles',
|
|
6152
|
-
'Weapon',
|
|
6153
|
-
'Wood',
|
|
6154
|
-
]); },
|
|
6155
4473
|
'io.flow.v0.enums.promotion_trigger_type': function () { return faker.helpers.arrayElement(['automatic', 'order_subtotal']); },
|
|
6156
4474
|
'io.flow.v0.enums.province_type': function () { return faker.helpers.arrayElement([
|
|
6157
4475
|
'area',
|
|
@@ -6438,6 +4756,7 @@ var factories = {
|
|
|
6438
4756
|
'saturday_stop',
|
|
6439
4757
|
'residential_extended_area_pickup',
|
|
6440
4758
|
'package_level_detail',
|
|
4759
|
+
'pickup',
|
|
6441
4760
|
]); },
|
|
6442
4761
|
'io.flow.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
6443
4762
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
@@ -6873,6 +5192,18 @@ var factories = {
|
|
|
6873
5192
|
region: factories.string(),
|
|
6874
5193
|
interval: factories['io.flow.v0.enums.unit_of_time'](),
|
|
6875
5194
|
}); },
|
|
5195
|
+
'io.flow.v0.models.anirban_item_deleted': function () { return ({
|
|
5196
|
+
discriminator: 'anirban_item_deleted',
|
|
5197
|
+
event_id: factories.string(),
|
|
5198
|
+
timestamp: factories.date_time_iso_8601(),
|
|
5199
|
+
id: factories.string(),
|
|
5200
|
+
}); },
|
|
5201
|
+
'io.flow.v0.models.anirban_item_upserted': function () { return ({
|
|
5202
|
+
discriminator: 'anirban_item_upserted',
|
|
5203
|
+
event_id: factories.string(),
|
|
5204
|
+
timestamp: factories.date_time_iso_8601(),
|
|
5205
|
+
item: factories['io.flow.tech.onboarding.playground.v0.models.anirban_item'](),
|
|
5206
|
+
}); },
|
|
6876
5207
|
'io.flow.v0.models.ansh_item_deleted': function () { return ({
|
|
6877
5208
|
discriminator: 'ansh_item_deleted',
|
|
6878
5209
|
event_id: factories.string(),
|
|
@@ -8581,6 +6912,7 @@ var factories = {
|
|
|
8581
6912
|
package_dimensions_source: factories['io.flow.v0.enums.package_dimensions_source'](),
|
|
8582
6913
|
origin_location_source: factories['io.flow.v0.enums.origin_location_source'](),
|
|
8583
6914
|
reference_id: factories.string(),
|
|
6915
|
+
shipping_date_time: factories.date_time_iso_8601(),
|
|
8584
6916
|
}); },
|
|
8585
6917
|
'io.flow.v0.models.detailed_shipping_notification_form': function () { return ({
|
|
8586
6918
|
discriminator: 'detailed_shipping_notification_form',
|
|
@@ -8842,6 +7174,10 @@ var factories = {
|
|
|
8842
7174
|
organization: factories.string(),
|
|
8843
7175
|
ecommerce_platform: factories['io.flow.v0.models.ecommerce_platform'](),
|
|
8844
7176
|
}); },
|
|
7177
|
+
'io.flow.v0.models.edit_summary': function () { return ({
|
|
7178
|
+
id: factories.string(),
|
|
7179
|
+
edited_at: factories.date_time_iso_8601(),
|
|
7180
|
+
}); },
|
|
8845
7181
|
'io.flow.v0.models.eei_filing_ratecard_fee': function () { return ({
|
|
8846
7182
|
discriminator: 'eei_filing_ratecard_fee',
|
|
8847
7183
|
amount: factories['io.flow.v0.models.money'](),
|
|
@@ -10421,6 +8757,7 @@ var factories = {
|
|
|
10421
8757
|
local: factories['io.flow.v0.models.local'](),
|
|
10422
8758
|
shipment_estimate: factories['io.flow.v0.models.datetime_range'](),
|
|
10423
8759
|
price_source: factories['io.flow.v0.unions.price_source'](),
|
|
8760
|
+
breakdown: factories['io.flow.v0.models.order_price_detail_breakdown'](),
|
|
10424
8761
|
}); },
|
|
10425
8762
|
'io.flow.v0.models.localized_line_item_discount': function () { return ({
|
|
10426
8763
|
amount: factories.double(),
|
|
@@ -10436,6 +8773,7 @@ var factories = {
|
|
|
10436
8773
|
amount: factories.double(),
|
|
10437
8774
|
label: factories.string(),
|
|
10438
8775
|
base: factories['io.flow.v0.models.price'](),
|
|
8776
|
+
breakdown: factories['io.flow.v0.models.order_price_detail_breakdown'](),
|
|
10439
8777
|
}); },
|
|
10440
8778
|
'io.flow.v0.models.localized_translation': function () { return ({
|
|
10441
8779
|
locale: factories['io.flow.v0.models.locale'](),
|
|
@@ -10687,6 +9025,10 @@ var factories = {
|
|
|
10687
9025
|
first: factories.string(),
|
|
10688
9026
|
last: factories.string(),
|
|
10689
9027
|
}); },
|
|
9028
|
+
'io.flow.v0.models.needs_action_attributes': function () { return ({
|
|
9029
|
+
reason_code: factories.string(),
|
|
9030
|
+
category_metafield_handles: arrayOf(function () { return factories.string(); }),
|
|
9031
|
+
}); },
|
|
10690
9032
|
'io.flow.v0.models.niall_item_deleted': function () { return ({
|
|
10691
9033
|
discriminator: 'niall_item_deleted',
|
|
10692
9034
|
event_id: factories.string(),
|
|
@@ -10831,6 +9173,8 @@ var factories = {
|
|
|
10831
9173
|
destination_contact_details: arrayOf(function () { return factories['io.flow.v0.models.destination_contact_detail'](); }),
|
|
10832
9174
|
incoterm_summary: factories['io.flow.v0.models.incoterm_summary'](),
|
|
10833
9175
|
payment_source: factories['io.flow.v0.enums.order_payment_source_type'](),
|
|
9176
|
+
edits: arrayOf(function () { return factories['io.flow.v0.models.edit_summary'](); }),
|
|
9177
|
+
rates: arrayOf(function () { return factories['io.flow.v0.models.order_rate'](); }),
|
|
10834
9178
|
}); },
|
|
10835
9179
|
'io.flow.v0.models.order_address': function () { return ({
|
|
10836
9180
|
text: factories.string(),
|
|
@@ -11087,6 +9431,11 @@ var factories = {
|
|
|
11087
9431
|
rate: factories.decimal(),
|
|
11088
9432
|
accuracy: factories['io.flow.v0.enums.price_accuracy'](),
|
|
11089
9433
|
rate_label: factories.string(),
|
|
9434
|
+
breakdown: factories['io.flow.v0.models.order_price_detail_breakdown'](),
|
|
9435
|
+
}); },
|
|
9436
|
+
'io.flow.v0.models.order_price_detail_breakdown': function () { return ({
|
|
9437
|
+
purchase_price: factories['io.flow.v0.models.purchase_price_breakdown'](),
|
|
9438
|
+
fees: arrayOf(function () { return factories['io.flow.v0.models.order_price_fee'](); }),
|
|
11090
9439
|
}); },
|
|
11091
9440
|
'io.flow.v0.models.order_price_detail_component': function () { return ({
|
|
11092
9441
|
key: factories['io.flow.v0.enums.order_price_detail_component_key'](),
|
|
@@ -11096,6 +9445,11 @@ var factories = {
|
|
|
11096
9445
|
base: factories['io.flow.v0.models.price'](),
|
|
11097
9446
|
name: factories.string(),
|
|
11098
9447
|
}); },
|
|
9448
|
+
'io.flow.v0.models.order_price_fee': function () { return ({
|
|
9449
|
+
key: factories.string(),
|
|
9450
|
+
value: factories['io.flow.v0.models.price_with_base'](),
|
|
9451
|
+
type: factories['io.flow.v0.enums.order_price_fee_type'](),
|
|
9452
|
+
}); },
|
|
11099
9453
|
'io.flow.v0.models.order_promotion_trigger': function () { return ({
|
|
11100
9454
|
type: factories['io.flow.v0.enums.promotion_trigger_type'](),
|
|
11101
9455
|
min: factories['io.flow.v0.models.price'](),
|
|
@@ -11115,6 +9469,11 @@ var factories = {
|
|
|
11115
9469
|
device_details: factories['io.flow.v0.unions.device_details'](),
|
|
11116
9470
|
payment_source: factories['io.flow.v0.enums.order_payment_source_type'](),
|
|
11117
9471
|
}); },
|
|
9472
|
+
'io.flow.v0.models.order_rate': function () { return ({
|
|
9473
|
+
from: factories.string(),
|
|
9474
|
+
to: factories.string(),
|
|
9475
|
+
rate: factories.decimal(),
|
|
9476
|
+
}); },
|
|
11118
9477
|
'io.flow.v0.models.order_reference': function () { return ({
|
|
11119
9478
|
discriminator: 'order_reference',
|
|
11120
9479
|
id: factories.string(),
|
|
@@ -12558,11 +10917,12 @@ var factories = {
|
|
|
12558
10917
|
sellability_restricted_regions: arrayOf(function () { return factories.string(); }),
|
|
12559
10918
|
reasons_per_region: arrayOf(function () { return factories['io.flow.v0.models.reasons_per_region'](); }),
|
|
12560
10919
|
review_status: factories['io.flow.v0.enums.review_status'](),
|
|
12561
|
-
rules: arrayOf(function () { return factories
|
|
10920
|
+
rules: arrayOf(function () { return factories.string(); }),
|
|
12562
10921
|
updated_by: factories.string(),
|
|
12563
10922
|
product_restriction_id: factories.string(),
|
|
12564
10923
|
hs_code: factories.string(),
|
|
12565
10924
|
restricted_regions_by_type: arrayOf(function () { return factories['io.flow.v0.models.sellablility_region_result'](); }),
|
|
10925
|
+
needs_action_attributes: arrayOf(function () { return factories['io.flow.v0.models.needs_action_attributes'](); }),
|
|
12566
10926
|
}); },
|
|
12567
10927
|
'io.flow.v0.models.product_restriction_result_deleted': function () { return ({
|
|
12568
10928
|
discriminator: 'product_restriction_result_deleted',
|
|
@@ -12603,6 +10963,11 @@ var factories = {
|
|
|
12603
10963
|
'io.flow.v0.models.product_taxonomy_data': function () { return ({
|
|
12604
10964
|
key: factories.string(),
|
|
12605
10965
|
value: arrayOf(function () { return factories.string(); }),
|
|
10966
|
+
value_obj: arrayOf(function () { return factories['io.flow.v0.models.product_taxonomy_value'](); }),
|
|
10967
|
+
}); },
|
|
10968
|
+
'io.flow.v0.models.product_taxonomy_value': function () { return ({
|
|
10969
|
+
handle: factories.string(),
|
|
10970
|
+
name: factories.string(),
|
|
12606
10971
|
}); },
|
|
12607
10972
|
'io.flow.v0.models.product_updated': function () { return ({
|
|
12608
10973
|
discriminator: 'product_updated',
|
|
@@ -12635,6 +11000,11 @@ var factories = {
|
|
|
12635
11000
|
'io.flow.v0.models.public_key': function () { return ({
|
|
12636
11001
|
id: factories.string(),
|
|
12637
11002
|
}); },
|
|
11003
|
+
'io.flow.v0.models.purchase_price_breakdown': function () { return ({
|
|
11004
|
+
total_price: factories['io.flow.v0.models.price_with_base'](),
|
|
11005
|
+
product_price: factories['io.flow.v0.models.price_with_base'](),
|
|
11006
|
+
fees: arrayOf(function () { return factories['io.flow.v0.models.order_price_fee'](); }),
|
|
11007
|
+
}); },
|
|
12638
11008
|
'io.flow.v0.models.query': function () { return ({
|
|
12639
11009
|
q: factories.string(),
|
|
12640
11010
|
filters: arrayOf(function () { return factories['io.flow.v0.unions.query_filter'](); }),
|
|
@@ -15298,6 +13668,8 @@ var factories = {
|
|
|
15298
13668
|
function () { return factories['io.flow.v0.models.aldo_item_deleted'](); },
|
|
15299
13669
|
function () { return factories['io.flow.v0.models.ansh_item_upserted'](); },
|
|
15300
13670
|
function () { return factories['io.flow.v0.models.ansh_item_deleted'](); },
|
|
13671
|
+
function () { return factories['io.flow.v0.models.anirban_item_upserted'](); },
|
|
13672
|
+
function () { return factories['io.flow.v0.models.anirban_item_deleted'](); },
|
|
15301
13673
|
function () { return factories['io.flow.v0.models.transaction_upserted'](); },
|
|
15302
13674
|
function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
|
|
15303
13675
|
function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
|
|
@@ -16161,6 +14533,8 @@ export var makeAllocationV2 = function () { return factories['io.flow.v0.models.
|
|
|
16161
14533
|
export var makeAmountMargin = function () { return factories['io.flow.v0.models.amount_margin'](); };
|
|
16162
14534
|
export var makeAmountMarginForm = function () { return factories['io.flow.v0.models.amount_margin_form'](); };
|
|
16163
14535
|
export var makeAnalyticsExportType = function () { return factories['io.flow.v0.models.analytics_export_type'](); };
|
|
14536
|
+
export var makeAnirbanItemDeleted = function () { return factories['io.flow.v0.models.anirban_item_deleted'](); };
|
|
14537
|
+
export var makeAnirbanItemUpserted = function () { return factories['io.flow.v0.models.anirban_item_upserted'](); };
|
|
16164
14538
|
export var makeAnshItemDeleted = function () { return factories['io.flow.v0.models.ansh_item_deleted'](); };
|
|
16165
14539
|
export var makeAnshItemUpserted = function () { return factories['io.flow.v0.models.ansh_item_upserted'](); };
|
|
16166
14540
|
export var makeApplePayMerchantValidationPayload = function () { return factories['io.flow.v0.models.apple_pay_merchant_validation_payload'](); };
|
|
@@ -16546,6 +14920,7 @@ export var makeEcommercePlatformForm = function () { return factories['io.flow.v
|
|
|
16546
14920
|
export var makeEcommercePlatformType = function () { return factories['io.flow.v0.enums.ecommerce_platform_type'](); };
|
|
16547
14921
|
export var makeEcommercePlatformUpserted = function () { return factories['io.flow.v0.models.ecommerce_platform_upserted'](); };
|
|
16548
14922
|
export var makeEconomicTitleLocation = function () { return factories['io.flow.v0.enums.economic_title_location'](); };
|
|
14923
|
+
export var makeEditSummary = function () { return factories['io.flow.v0.models.edit_summary'](); };
|
|
16549
14924
|
export var makeEeiFilingRatecardFee = function () { return factories['io.flow.v0.models.eei_filing_ratecard_fee'](); };
|
|
16550
14925
|
export var makeEeiFilingServiceFee = function () { return factories['io.flow.v0.models.eei_filing_service_fee'](); };
|
|
16551
14926
|
export var makeEmailAbandonedOrderPromotion = function () { return factories['io.flow.v0.models.email_abandoned_order_promotion'](); };
|
|
@@ -16943,6 +15318,7 @@ export var makeMonthlyAverage = function () { return factories['io.flow.v0.model
|
|
|
16943
15318
|
export var makeMonthlyAverageVolume = function () { return factories['io.flow.v0.models.monthly_average_volume'](); };
|
|
16944
15319
|
export var makeName = function () { return factories['io.flow.v0.models.name'](); };
|
|
16945
15320
|
export var makeNameForm = function () { return factories['io.flow.v0.models.name_form'](); };
|
|
15321
|
+
export var makeNeedsActionAttributes = function () { return factories['io.flow.v0.models.needs_action_attributes'](); };
|
|
16946
15322
|
export var makeNiallItemDeleted = function () { return factories['io.flow.v0.models.niall_item_deleted'](); };
|
|
16947
15323
|
export var makeNiallItemUpserted = function () { return factories['io.flow.v0.models.niall_item_upserted'](); };
|
|
16948
15324
|
export var makeNotificationDeletedV2 = function () { return factories['io.flow.v0.models.notification_deleted_v2'](); };
|
|
@@ -17015,13 +15391,17 @@ export var makeOrderPlaced = function () { return factories['io.flow.v0.models.o
|
|
|
17015
15391
|
export var makeOrderPlacedDetails = function () { return factories['io.flow.v0.models.order_placed_details'](); };
|
|
17016
15392
|
export var makeOrderPlacedV2 = function () { return factories['io.flow.v0.models.order_placed_v2'](); };
|
|
17017
15393
|
export var makeOrderPriceDetail = function () { return factories['io.flow.v0.models.order_price_detail'](); };
|
|
15394
|
+
export var makeOrderPriceDetailBreakdown = function () { return factories['io.flow.v0.models.order_price_detail_breakdown'](); };
|
|
17018
15395
|
export var makeOrderPriceDetailComponent = function () { return factories['io.flow.v0.models.order_price_detail_component'](); };
|
|
17019
15396
|
export var makeOrderPriceDetailComponentKey = function () { return factories['io.flow.v0.enums.order_price_detail_component_key'](); };
|
|
17020
15397
|
export var makeOrderPriceDetailKey = function () { return factories['io.flow.v0.enums.order_price_detail_key'](); };
|
|
15398
|
+
export var makeOrderPriceFee = function () { return factories['io.flow.v0.models.order_price_fee'](); };
|
|
15399
|
+
export var makeOrderPriceFeeType = function () { return factories['io.flow.v0.enums.order_price_fee_type'](); };
|
|
17021
15400
|
export var makeOrderPromotion = function () { return factories['io.flow.v0.unions.order_promotion'](); };
|
|
17022
15401
|
export var makeOrderPromotionForm = function () { return factories['io.flow.v0.unions.order_promotion_form'](); };
|
|
17023
15402
|
export var makeOrderPromotionTrigger = function () { return factories['io.flow.v0.models.order_promotion_trigger'](); };
|
|
17024
15403
|
export var makeOrderPutForm = function () { return factories['io.flow.v0.models.order_put_form'](); };
|
|
15404
|
+
export var makeOrderRate = function () { return factories['io.flow.v0.models.order_rate'](); };
|
|
17025
15405
|
export var makeOrderReference = function () { return factories['io.flow.v0.models.order_reference'](); };
|
|
17026
15406
|
export var makeOrderRefundSummary = function () { return factories['io.flow.v0.models.order_refund_summary'](); };
|
|
17027
15407
|
export var makeOrderRefundSummaryAmounts = function () { return factories['io.flow.v0.models.order_refund_summary_amounts'](); };
|
|
@@ -17326,11 +15706,11 @@ export var makeProductInserted = function () { return factories['io.flow.v0.mode
|
|
|
17326
15706
|
export var makeProductRestrictionResult = function () { return factories['io.flow.v0.models.product_restriction_result'](); };
|
|
17327
15707
|
export var makeProductRestrictionResultDeleted = function () { return factories['io.flow.v0.models.product_restriction_result_deleted'](); };
|
|
17328
15708
|
export var makeProductRestrictionResultUpserted = function () { return factories['io.flow.v0.models.product_restriction_result_upserted'](); };
|
|
17329
|
-
export var makeProductRestrictionRule = function () { return factories['io.flow.v0.enums.product_restriction_rule'](); };
|
|
17330
15709
|
export var makeProductSellability = function () { return factories['io.flow.v0.models.product_sellability'](); };
|
|
17331
15710
|
export var makeProductSellabilityForm = function () { return factories['io.flow.v0.models.product_sellability_form'](); };
|
|
17332
15711
|
export var makeProductTaxonomyCategory = function () { return factories['io.flow.v0.models.product_taxonomy_category'](); };
|
|
17333
15712
|
export var makeProductTaxonomyData = function () { return factories['io.flow.v0.models.product_taxonomy_data'](); };
|
|
15713
|
+
export var makeProductTaxonomyValue = function () { return factories['io.flow.v0.models.product_taxonomy_value'](); };
|
|
17334
15714
|
export var makeProductUpdated = function () { return factories['io.flow.v0.models.product_updated'](); };
|
|
17335
15715
|
export var makePromotion = function () { return factories['io.flow.v0.unions.promotion'](); };
|
|
17336
15716
|
export var makePromotionTrigger = function () { return factories['io.flow.v0.models.promotion_trigger'](); };
|
|
@@ -17340,6 +15720,7 @@ export var makePromotions = function () { return factories['io.flow.v0.models.pr
|
|
|
17340
15720
|
export var makeProvince = function () { return factories['io.flow.v0.models.province'](); };
|
|
17341
15721
|
export var makeProvinceType = function () { return factories['io.flow.v0.enums.province_type'](); };
|
|
17342
15722
|
export var makePublicKey = function () { return factories['io.flow.v0.models.public_key'](); };
|
|
15723
|
+
export var makePurchasePriceBreakdown = function () { return factories['io.flow.v0.models.purchase_price_breakdown'](); };
|
|
17343
15724
|
export var makeQuery = function () { return factories['io.flow.v0.models.query'](); };
|
|
17344
15725
|
export var makeQueryBuilder = function () { return factories['io.flow.v0.models.query_builder'](); };
|
|
17345
15726
|
export var makeQueryBuilderFilterForm = function () { return factories['io.flow.v0.models.query_builder_filter_form'](); };
|