@flowio/api-factories 0.0.126 → 0.0.128
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 +4062 -107
- package/dist/esm/api.js +4062 -107
- package/package.json +1 -1
- package/src/api.ts +4913 -168
package/dist/esm/api.js
CHANGED
|
@@ -120,6 +120,304 @@ var factories = {
|
|
|
120
120
|
]);
|
|
121
121
|
return f();
|
|
122
122
|
},
|
|
123
|
+
'io.flow.catalog.v0.enums.adjustment_reason_key': function () { return faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']); },
|
|
124
|
+
'io.flow.catalog.v0.enums.attribute_intent': function () { return faker.helpers.arrayElement([
|
|
125
|
+
'brand',
|
|
126
|
+
'color',
|
|
127
|
+
'countries_of_origin',
|
|
128
|
+
'product_id',
|
|
129
|
+
'fulfillment_method',
|
|
130
|
+
'hazardous',
|
|
131
|
+
'price',
|
|
132
|
+
'size',
|
|
133
|
+
'sku',
|
|
134
|
+
'taxability',
|
|
135
|
+
'consumer_url',
|
|
136
|
+
'gtin',
|
|
137
|
+
'mpn',
|
|
138
|
+
'facet',
|
|
139
|
+
'eccn',
|
|
140
|
+
'returnable',
|
|
141
|
+
'searchable',
|
|
142
|
+
'barcode',
|
|
143
|
+
'min_days_to_ship',
|
|
144
|
+
'max_days_to_ship',
|
|
145
|
+
'commercial_invoice_item_number',
|
|
146
|
+
'include_in_product_feeds',
|
|
147
|
+
]); },
|
|
148
|
+
'io.flow.catalog.v0.enums.cpsc_attribute': function () { return faker.helpers.arrayElement([
|
|
149
|
+
'certification_id',
|
|
150
|
+
'citation_codes',
|
|
151
|
+
'manufactured_date',
|
|
152
|
+
'manufactured_location',
|
|
153
|
+
'product_test_date',
|
|
154
|
+
'test_lab_name',
|
|
155
|
+
'point_of_contact',
|
|
156
|
+
'certification_version',
|
|
157
|
+
'certification_product_id',
|
|
158
|
+
'certificate_type',
|
|
159
|
+
'lab_type',
|
|
160
|
+
'taxonomy_reference',
|
|
161
|
+
]); },
|
|
162
|
+
'io.flow.catalog.v0.enums.fulfillment_method_type': function () { return faker.helpers.arrayElement(['fulfillment_method']); },
|
|
163
|
+
'io.flow.catalog.v0.enums.fulfillment_method_value': function () { return faker.helpers.arrayElement(['digital', 'physical']); },
|
|
164
|
+
'io.flow.catalog.v0.enums.image_tag': function () { return faker.helpers.arrayElement(['thumbnail', 'checkout']); },
|
|
165
|
+
'io.flow.catalog.v0.enums.return_item_status': function () { return faker.helpers.arrayElement(['returnable', 'non-returnable']); },
|
|
166
|
+
'io.flow.catalog.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
167
|
+
'io.flow.catalog.v0.enums.taxability_type': function () { return faker.helpers.arrayElement(['tax_rule']); },
|
|
168
|
+
'io.flow.catalog.v0.enums.taxability_value': function () { return faker.helpers.arrayElement(['exempt']); },
|
|
169
|
+
'io.flow.catalog.v0.enums.update_policy': function () { return faker.helpers.arrayElement(['auto', 'queue', 'discard']); },
|
|
170
|
+
'io.flow.catalog.v0.models.adjustment_reason': function () { return ({
|
|
171
|
+
key: factories['io.flow.catalog.v0.enums.adjustment_reason_key'](),
|
|
172
|
+
label: factories.string(),
|
|
173
|
+
}); },
|
|
174
|
+
'io.flow.catalog.v0.models.attribute': function () { return ({
|
|
175
|
+
id: factories.string(),
|
|
176
|
+
key: factories.string(),
|
|
177
|
+
options: factories['io.flow.catalog.v0.models.options'](),
|
|
178
|
+
label: factories.string(),
|
|
179
|
+
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
180
|
+
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
181
|
+
position: factories.long(),
|
|
182
|
+
}); },
|
|
183
|
+
'io.flow.catalog.v0.models.attribute_form': function () { return ({
|
|
184
|
+
key: factories.string(),
|
|
185
|
+
options: factories['io.flow.catalog.v0.models.options'](),
|
|
186
|
+
label: factories.string(),
|
|
187
|
+
intent: factories['io.flow.catalog.v0.enums.attribute_intent'](),
|
|
188
|
+
type: factories['io.flow.common.v0.enums.attribute_data_type'](),
|
|
189
|
+
position: factories.long(),
|
|
190
|
+
}); },
|
|
191
|
+
'io.flow.catalog.v0.models.attribute_version': function () { return ({
|
|
192
|
+
id: factories.string(),
|
|
193
|
+
timestamp: factories.date_time_iso_8601(),
|
|
194
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
195
|
+
attribute: factories['io.flow.catalog.v0.models.attribute'](),
|
|
196
|
+
}); },
|
|
197
|
+
'io.flow.catalog.v0.models.catalog': function () { return ({
|
|
198
|
+
id: factories.string(),
|
|
199
|
+
}); },
|
|
200
|
+
'io.flow.catalog.v0.models.catalog_reference': function () { return ({
|
|
201
|
+
id: factories.string(),
|
|
202
|
+
}); },
|
|
203
|
+
'io.flow.catalog.v0.models.catalog_statistics': function () { return ({
|
|
204
|
+
id: factories.string(),
|
|
205
|
+
items: factories.long(),
|
|
206
|
+
categories: factories.long(),
|
|
207
|
+
}); },
|
|
208
|
+
'io.flow.catalog.v0.models.catalog_version': function () { return ({
|
|
209
|
+
id: factories.string(),
|
|
210
|
+
timestamp: factories.date_time_iso_8601(),
|
|
211
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
212
|
+
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
213
|
+
}); },
|
|
214
|
+
'io.flow.catalog.v0.models.flow_item_index_metadata': function () { return ({
|
|
215
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
216
|
+
}); },
|
|
217
|
+
'io.flow.catalog.v0.models.image': function () { return ({
|
|
218
|
+
url: factories.string(),
|
|
219
|
+
tags: arrayOf(function () { return factories['io.flow.catalog.v0.enums.image_tag'](); }),
|
|
220
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
221
|
+
}); },
|
|
222
|
+
'io.flow.catalog.v0.models.image_form': function () { return ({
|
|
223
|
+
url: factories.string(),
|
|
224
|
+
tags: arrayOf(function () { return factories['io.flow.catalog.v0.enums.image_tag'](); }),
|
|
225
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
226
|
+
}); },
|
|
227
|
+
'io.flow.catalog.v0.models.item': function () { return ({
|
|
228
|
+
id: factories.string(),
|
|
229
|
+
number: factories.string(),
|
|
230
|
+
locale: factories.string(),
|
|
231
|
+
name: factories.string(),
|
|
232
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
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'](); }),
|
|
238
|
+
local: factories['io.flow.catalog.v0.models.local'](),
|
|
239
|
+
created_at: factories.date_time_iso_8601(),
|
|
240
|
+
updated_at: factories.date_time_iso_8601(),
|
|
241
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
242
|
+
}); },
|
|
243
|
+
'io.flow.catalog.v0.models.item_attributes_patch_form': function () { return ({
|
|
244
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
245
|
+
}); },
|
|
246
|
+
'io.flow.catalog.v0.models.item_form': function () { return ({
|
|
247
|
+
number: factories.string(),
|
|
248
|
+
locale: factories.string(),
|
|
249
|
+
name: factories.string(),
|
|
250
|
+
currency: factories.string(),
|
|
251
|
+
price: factories.double(),
|
|
252
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
253
|
+
description: factories.string(),
|
|
254
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
255
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
256
|
+
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
257
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
258
|
+
}); },
|
|
259
|
+
'io.flow.catalog.v0.models.item_form_overlay': function () { return ({
|
|
260
|
+
id: factories.string(),
|
|
261
|
+
number: factories.string(),
|
|
262
|
+
key: factories.string(),
|
|
263
|
+
position: factories.long(),
|
|
264
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
265
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
266
|
+
description: factories.string(),
|
|
267
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
268
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
269
|
+
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
270
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
271
|
+
}); },
|
|
272
|
+
'io.flow.catalog.v0.models.item_form_overlay_form': function () { return ({
|
|
273
|
+
number: factories.string(),
|
|
274
|
+
price: factories.double(),
|
|
275
|
+
currency: factories.string(),
|
|
276
|
+
position: factories.long(),
|
|
277
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
278
|
+
description: factories.string(),
|
|
279
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
280
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
281
|
+
images: arrayOf(function () { return factories['io.flow.catalog.v0.models.image_form'](); }),
|
|
282
|
+
deleted_at: factories.date_time_iso_8601(),
|
|
283
|
+
}); },
|
|
284
|
+
'io.flow.catalog.v0.models.item_price_update_form': function () { return ({
|
|
285
|
+
number: factories.string(),
|
|
286
|
+
currency: factories.string(),
|
|
287
|
+
price: factories.decimal(),
|
|
288
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
289
|
+
}); },
|
|
290
|
+
'io.flow.catalog.v0.models.item_price_update_put_form': function () { return ({
|
|
291
|
+
currency: factories.string(),
|
|
292
|
+
price: factories.decimal(),
|
|
293
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
294
|
+
}); },
|
|
295
|
+
'io.flow.catalog.v0.models.item_statistics': function () { return ({
|
|
296
|
+
items: factories.long(),
|
|
297
|
+
categories: factories.long(),
|
|
298
|
+
}); },
|
|
299
|
+
'io.flow.catalog.v0.models.item_version': function () { return ({
|
|
300
|
+
id: factories.string(),
|
|
301
|
+
timestamp: factories.date_time_iso_8601(),
|
|
302
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
303
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
304
|
+
}); },
|
|
305
|
+
'io.flow.catalog.v0.models.local': function () { return ({
|
|
306
|
+
experience: factories['io.flow.common.v0.models.experience_summary'](),
|
|
307
|
+
prices: arrayOf(function () { return factories['io.flow.catalog.v0.unions.localized_price'](); }),
|
|
308
|
+
rates: arrayOf(function () { return factories['io.flow.currency.v0.models.rate'](); }),
|
|
309
|
+
spot_rates: arrayOf(function () { return factories.object(); }),
|
|
310
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
311
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
312
|
+
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price_with_base'](); }),
|
|
313
|
+
}); },
|
|
314
|
+
'io.flow.catalog.v0.models.localized_adjustment': function () { return ({
|
|
315
|
+
currency: factories.string(),
|
|
316
|
+
amount: factories.double(),
|
|
317
|
+
label: factories.string(),
|
|
318
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
319
|
+
reason: factories['io.flow.catalog.v0.models.adjustment_reason'](),
|
|
320
|
+
}); },
|
|
321
|
+
'io.flow.catalog.v0.models.localized_item_duty': function () { return ({
|
|
322
|
+
key: 'localized_item_duty',
|
|
323
|
+
currency: factories.string(),
|
|
324
|
+
amount: factories.double(),
|
|
325
|
+
label: factories.string(),
|
|
326
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
327
|
+
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
328
|
+
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
329
|
+
}); },
|
|
330
|
+
'io.flow.catalog.v0.models.localized_item_price': function () { return ({
|
|
331
|
+
key: 'localized_item_price',
|
|
332
|
+
currency: factories.string(),
|
|
333
|
+
amount: factories.double(),
|
|
334
|
+
label: factories.string(),
|
|
335
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
336
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
337
|
+
}); },
|
|
338
|
+
'io.flow.catalog.v0.models.localized_item_vat': function () { return ({
|
|
339
|
+
key: 'localized_item_vat',
|
|
340
|
+
currency: factories.string(),
|
|
341
|
+
amount: factories.double(),
|
|
342
|
+
label: factories.string(),
|
|
343
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
344
|
+
name: factories.string(),
|
|
345
|
+
adjustment: factories['io.flow.catalog.v0.models.localized_adjustment'](),
|
|
346
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
347
|
+
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
348
|
+
}); },
|
|
349
|
+
'io.flow.catalog.v0.models.localized_total': function () { return ({
|
|
350
|
+
key: 'localized_total',
|
|
351
|
+
currency: factories.string(),
|
|
352
|
+
amount: factories.double(),
|
|
353
|
+
label: factories.string(),
|
|
354
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
355
|
+
breakdown: factories['io.flow.order.price.v0.models.order_price_detail_breakdown'](),
|
|
356
|
+
}); },
|
|
357
|
+
'io.flow.catalog.v0.models.options': function () { return ({
|
|
358
|
+
required: factories.boolean(),
|
|
359
|
+
show_in_catalog: factories.boolean(),
|
|
360
|
+
show_in_harmonization: factories.boolean(),
|
|
361
|
+
}); },
|
|
362
|
+
'io.flow.catalog.v0.models.subcatalog': function () { return ({
|
|
363
|
+
discriminator: 'subcatalog',
|
|
364
|
+
id: factories.string(),
|
|
365
|
+
catalog: factories['io.flow.catalog.v0.models.catalog'](),
|
|
366
|
+
settings: factories['io.flow.catalog.v0.models.subcatalog_settings'](),
|
|
367
|
+
}); },
|
|
368
|
+
'io.flow.catalog.v0.models.subcatalog_form': function () { return ({
|
|
369
|
+
settings: factories['io.flow.catalog.v0.models.subcatalog_settings_form'](),
|
|
370
|
+
}); },
|
|
371
|
+
'io.flow.catalog.v0.models.subcatalog_item': function () { return ({
|
|
372
|
+
id: factories.string(),
|
|
373
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
374
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
375
|
+
}); },
|
|
376
|
+
'io.flow.catalog.v0.models.subcatalog_item_version': function () { return ({
|
|
377
|
+
id: factories.string(),
|
|
378
|
+
timestamp: factories.date_time_iso_8601(),
|
|
379
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
380
|
+
subcatalog_item: factories['io.flow.catalog.v0.models.subcatalog_item'](),
|
|
381
|
+
}); },
|
|
382
|
+
'io.flow.catalog.v0.models.subcatalog_reference': function () { return ({
|
|
383
|
+
discriminator: 'subcatalog_reference',
|
|
384
|
+
id: factories.string(),
|
|
385
|
+
}); },
|
|
386
|
+
'io.flow.catalog.v0.models.subcatalog_settings': function () { return ({
|
|
387
|
+
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
388
|
+
}); },
|
|
389
|
+
'io.flow.catalog.v0.models.subcatalog_settings_form': function () { return ({
|
|
390
|
+
update_policy: factories['io.flow.catalog.v0.enums.update_policy'](),
|
|
391
|
+
}); },
|
|
392
|
+
'io.flow.catalog.v0.models.subcatalog_statistics': function () { return ({
|
|
393
|
+
excluded: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
394
|
+
included: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
395
|
+
restricted: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
396
|
+
queue: factories['io.flow.catalog.v0.models.item_statistics'](),
|
|
397
|
+
catalog: factories['io.flow.catalog.v0.models.catalog_statistics'](),
|
|
398
|
+
}); },
|
|
399
|
+
'io.flow.catalog.v0.models.subcatalog_version': function () { return ({
|
|
400
|
+
id: factories.string(),
|
|
401
|
+
timestamp: factories.date_time_iso_8601(),
|
|
402
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
403
|
+
subcatalog: factories['io.flow.catalog.v0.models.subcatalog'](),
|
|
404
|
+
}); },
|
|
405
|
+
'io.flow.catalog.v0.unions.expandable_subcatalog': function () {
|
|
406
|
+
var f = faker.helpers.arrayElement([
|
|
407
|
+
function () { return factories['io.flow.catalog.v0.models.subcatalog'](); },
|
|
408
|
+
function () { return factories['io.flow.catalog.v0.models.subcatalog_reference'](); },
|
|
409
|
+
]);
|
|
410
|
+
return f();
|
|
411
|
+
},
|
|
412
|
+
'io.flow.catalog.v0.unions.localized_price': function () {
|
|
413
|
+
var f = faker.helpers.arrayElement([
|
|
414
|
+
function () { return factories['io.flow.catalog.v0.models.localized_item_price'](); },
|
|
415
|
+
function () { return factories['io.flow.catalog.v0.models.localized_item_vat'](); },
|
|
416
|
+
function () { return factories['io.flow.catalog.v0.models.localized_item_duty'](); },
|
|
417
|
+
function () { return factories['io.flow.catalog.v0.models.localized_total'](); },
|
|
418
|
+
]);
|
|
419
|
+
return f();
|
|
420
|
+
},
|
|
123
421
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_error_action': function () { return faker.helpers.arrayElement(['auto_reject', 'auto_accept']); },
|
|
124
422
|
'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']); },
|
|
125
423
|
'io.flow.channel.internal.v0.enums.channel_order_acceptance_next_action_from': function () { return faker.helpers.arrayElement([
|
|
@@ -218,6 +516,13 @@ var factories = {
|
|
|
218
516
|
description: factories.string(),
|
|
219
517
|
rejection_reason: factories['io.flow.channel.internal.v0.enums.channel_order_acceptance_rejection_reason'](),
|
|
220
518
|
}); },
|
|
519
|
+
'io.flow.channel.internal.v0.models.channel_order_tax_and_duty_inclusivity_setting': function () { return ({
|
|
520
|
+
id: factories.string(),
|
|
521
|
+
organization: factories['io.flow.common.v0.models.organization_reference'](),
|
|
522
|
+
order_number: factories.string(),
|
|
523
|
+
channel: factories['io.flow.common.v0.models.channel_reference'](),
|
|
524
|
+
tax_and_duty_inclusivity_setting: factories['io.flow.experience.v0.enums.tax_and_duty_inclusivity_setting'](),
|
|
525
|
+
}); },
|
|
221
526
|
'io.flow.channel.internal.v0.models.channel_organization_domains': function () { return ({
|
|
222
527
|
internal: factories.string(),
|
|
223
528
|
external: factories.string(),
|
|
@@ -774,136 +1079,3566 @@ var factories = {
|
|
|
774
1079
|
]);
|
|
775
1080
|
return f();
|
|
776
1081
|
},
|
|
1082
|
+
'io.flow.currency.v0.models.rate': function () { return ({
|
|
1083
|
+
id: factories.string(),
|
|
1084
|
+
base: factories.string(),
|
|
1085
|
+
target: factories.string(),
|
|
1086
|
+
effective_at: factories.date_time_iso_8601(),
|
|
1087
|
+
value: factories.decimal(),
|
|
1088
|
+
}); },
|
|
1089
|
+
'io.flow.currency.v0.models.rate_form': function () { return ({
|
|
1090
|
+
base: factories.string(),
|
|
1091
|
+
target: factories.string(),
|
|
1092
|
+
effective_at: factories.date_time_iso_8601(),
|
|
1093
|
+
}); },
|
|
1094
|
+
'io.flow.currency.v0.models.rate_version': function () { return ({
|
|
1095
|
+
id: factories.string(),
|
|
1096
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1097
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1098
|
+
rate: factories['io.flow.currency.v0.models.rate'](),
|
|
1099
|
+
}); },
|
|
777
1100
|
'io.flow.error.v0.enums.generic_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']); },
|
|
778
1101
|
'io.flow.error.v0.models.generic_error': function () { return ({
|
|
779
1102
|
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
780
1103
|
messages: arrayOf(function () { return factories.string(); }),
|
|
781
1104
|
}); },
|
|
782
|
-
'io.flow.
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
'io.flow.
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
'io.flow.
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1105
|
+
'io.flow.experience.v0.enums.address_field_name': function () { return faker.helpers.arrayElement([
|
|
1106
|
+
'first_name',
|
|
1107
|
+
'last_name',
|
|
1108
|
+
'street_1',
|
|
1109
|
+
'street_2',
|
|
1110
|
+
'city',
|
|
1111
|
+
'province',
|
|
1112
|
+
'postal',
|
|
1113
|
+
'country',
|
|
1114
|
+
'phone',
|
|
1115
|
+
'company',
|
|
1116
|
+
'vat_registration_number',
|
|
1117
|
+
]); },
|
|
1118
|
+
'io.flow.experience.v0.enums.credit_payment_error_code': function () { return faker.helpers.arrayElement([
|
|
1119
|
+
'generic_error',
|
|
1120
|
+
'invalid_order_number',
|
|
1121
|
+
'invalid_currency',
|
|
1122
|
+
'invalid_description',
|
|
1123
|
+
'duplicate',
|
|
1124
|
+
'amount_must_be_positive',
|
|
1125
|
+
'amount_exceeds_balance',
|
|
1126
|
+
'insufficient_amount',
|
|
1127
|
+
]); },
|
|
1128
|
+
'io.flow.experience.v0.enums.delivered_duty_display_type': function () { return faker.helpers.arrayElement(['all', 'single']); },
|
|
1129
|
+
'io.flow.experience.v0.enums.discount_rule_status': function () { return faker.helpers.arrayElement(['active', 'scheduled', 'expired']); },
|
|
1130
|
+
'io.flow.experience.v0.enums.discount_rule_subsidy_target': function () { return faker.helpers.arrayElement(['vat', 'duty']); },
|
|
1131
|
+
'io.flow.experience.v0.enums.experience_clone_status': function () { return faker.helpers.arrayElement(['pending', 'updating', 'completed', 'failed']); },
|
|
1132
|
+
'io.flow.experience.v0.enums.experience_country_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled']); },
|
|
1133
|
+
'io.flow.experience.v0.enums.experience_payment_method_tag': function () { return faker.helpers.arrayElement(['display']); },
|
|
1134
|
+
'io.flow.experience.v0.enums.experience_status': function () { return faker.helpers.arrayElement(['draft', 'active', 'archiving', 'archived']); },
|
|
1135
|
+
'io.flow.experience.v0.enums.incoterm_configuration': function () { return faker.helpers.arrayElement(['DDP', 'DAP', 'DDU', 'UNSUPPORTED']); },
|
|
1136
|
+
'io.flow.experience.v0.enums.order_error_code': function () { return faker.helpers.arrayElement([
|
|
1137
|
+
'generic_error',
|
|
1138
|
+
'order_item_not_available',
|
|
1139
|
+
'order_identifier_error',
|
|
1140
|
+
'authorization_invalid',
|
|
1141
|
+
'domestic_shipping_unavailable',
|
|
1142
|
+
'shipping_unavailable',
|
|
1143
|
+
'value_threshold_exceeded',
|
|
1144
|
+
'invalid_currency',
|
|
1145
|
+
'invalid_country',
|
|
1146
|
+
'invalid_region',
|
|
1147
|
+
'invalid_language',
|
|
1148
|
+
'item_out_of_stock',
|
|
1149
|
+
'gift_card_not_accepted',
|
|
1150
|
+
'total_changed',
|
|
1151
|
+
]); },
|
|
1152
|
+
'io.flow.experience.v0.enums.order_payment_source_type': function () { return faker.helpers.arrayElement(['globale', 'third_party']); },
|
|
1153
|
+
'io.flow.experience.v0.enums.order_payment_type': function () { return faker.helpers.arrayElement([
|
|
1154
|
+
'card',
|
|
1155
|
+
'online',
|
|
1156
|
+
'credit',
|
|
1157
|
+
'external',
|
|
1158
|
+
'subsidized',
|
|
1159
|
+
'installment_plan',
|
|
1160
|
+
'cash_on_delivery',
|
|
1161
|
+
]); },
|
|
1162
|
+
'io.flow.experience.v0.enums.order_refund_summary_includes': function () { return faker.helpers.arrayElement(['duties', 'vat', 'shipping']); },
|
|
1163
|
+
'io.flow.experience.v0.enums.order_refund_summary_partial_charged': function () { return faker.helpers.arrayElement(['per_item', 'for_order', 'by_value_percentage', 'by_quantity_percentage']); },
|
|
1164
|
+
'io.flow.experience.v0.enums.order_status': function () { return faker.helpers.arrayElement(['open', 'submitted']); },
|
|
1165
|
+
'io.flow.experience.v0.enums.order_storage': function () { return faker.helpers.arrayElement(['do_not_persist', 'persist']); },
|
|
1166
|
+
'io.flow.experience.v0.enums.order_type': function () { return faker.helpers.arrayElement(['standard', 'replacement', 'edit']); },
|
|
1167
|
+
'io.flow.experience.v0.enums.organization_payment_method_tag': function () { return faker.helpers.arrayElement(['deny']); },
|
|
1168
|
+
'io.flow.experience.v0.enums.payment_method_rule_content_key': function () { return faker.helpers.arrayElement(['description']); },
|
|
1169
|
+
'io.flow.experience.v0.enums.price_facet_boundary': function () { return faker.helpers.arrayElement(['min', 'max']); },
|
|
1170
|
+
'io.flow.experience.v0.enums.pricing_type': function () { return faker.helpers.arrayElement(['inclusive_pricing', 'inclusive_pricing_with_shipping']); },
|
|
1171
|
+
'io.flow.experience.v0.enums.promotion_trigger_type': function () { return faker.helpers.arrayElement(['automatic', 'order_subtotal']); },
|
|
1172
|
+
'io.flow.experience.v0.enums.tax_and_duty_inclusivity_setting': function () { return faker.helpers.arrayElement([
|
|
1173
|
+
'duty_exclusive_tax_exclusive',
|
|
1174
|
+
'duty_inclusive_tax_exclusive',
|
|
1175
|
+
'duty_exclusive_tax_inclusive',
|
|
1176
|
+
'duty_inclusive_tax_inclusive',
|
|
1177
|
+
]); },
|
|
1178
|
+
'io.flow.experience.v0.models.address_configuration': function () { return ({
|
|
1179
|
+
country: factories.string(),
|
|
1180
|
+
field_validation: factories['io.flow.experience.v0.models.address_field_validation'](),
|
|
1181
|
+
provinces: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_province'](); }),
|
|
1182
|
+
formats: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_format'](); }),
|
|
1183
|
+
province_type: factories['io.flow.reference.v0.enums.province_type'](),
|
|
1184
|
+
postal_type: factories['io.flow.reference.v0.enums.postal_type'](),
|
|
1185
|
+
}); },
|
|
1186
|
+
'io.flow.experience.v0.models.address_configuration_field_placement': function () { return ({
|
|
1187
|
+
name: factories['io.flow.experience.v0.enums.address_field_name'](),
|
|
1188
|
+
}); },
|
|
1189
|
+
'io.flow.experience.v0.models.address_configuration_format': function () { return ({
|
|
1190
|
+
placements: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_field_placement'](); }),
|
|
1191
|
+
}); },
|
|
1192
|
+
'io.flow.experience.v0.models.address_configuration_province': function () { return ({
|
|
1193
|
+
value: factories.string(),
|
|
1194
|
+
name: factories.string(),
|
|
1195
|
+
translations: arrayOf(function () { return factories['io.flow.experience.v0.models.address_configuration_province_translation'](); }),
|
|
1196
|
+
}); },
|
|
1197
|
+
'io.flow.experience.v0.models.address_configuration_province_translation': function () { return ({
|
|
1198
|
+
locale: factories['io.flow.experience.v0.models.address_configuration_province_translation_locale'](),
|
|
1199
|
+
name: factories.string(),
|
|
1200
|
+
}); },
|
|
1201
|
+
'io.flow.experience.v0.models.address_configuration_province_translation_locale': function () { return ({
|
|
1202
|
+
id: factories.string(),
|
|
1203
|
+
name: factories.string(),
|
|
1204
|
+
language: factories.string(),
|
|
1205
|
+
}); },
|
|
1206
|
+
'io.flow.experience.v0.models.address_field_validation': function () { return ({
|
|
1207
|
+
first_name: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1208
|
+
last_name: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1209
|
+
street_1: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1210
|
+
street_2: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1211
|
+
city: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1212
|
+
province: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1213
|
+
postal: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1214
|
+
phone: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1215
|
+
vat_registration_number: arrayOf(function () { return factories['io.flow.field.validation.v0.unions.field_validation_rule'](); }),
|
|
1216
|
+
}); },
|
|
1217
|
+
'io.flow.experience.v0.models.allocation': function () { return ({
|
|
1218
|
+
order: factories['io.flow.experience.v0.models.allocation_order_summary'](),
|
|
1219
|
+
details: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_detail'](); }),
|
|
1220
|
+
}); },
|
|
1221
|
+
'io.flow.experience.v0.models.allocation_detail_component': function () { return ({
|
|
1222
|
+
discriminator: 'allocation_detail_component',
|
|
1223
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1224
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1225
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1226
|
+
}); },
|
|
1227
|
+
'io.flow.experience.v0.models.allocation_levy_component': function () { return ({
|
|
1228
|
+
discriminator: 'allocation_levy_component',
|
|
1229
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
1230
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1231
|
+
rate: factories.decimal(),
|
|
1232
|
+
name: factories.string(),
|
|
1233
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1234
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
1235
|
+
basis: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1236
|
+
}); },
|
|
1237
|
+
'io.flow.experience.v0.models.allocation_line_detail': function () { return ({
|
|
1238
|
+
discriminator: 'allocation_line_detail',
|
|
1239
|
+
id: factories.string(),
|
|
1240
|
+
number: factories.string(),
|
|
1241
|
+
quantity: factories.long(),
|
|
1242
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1243
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1244
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1245
|
+
included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1246
|
+
not_included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1247
|
+
}); },
|
|
1248
|
+
'io.flow.experience.v0.models.allocation_line_summary': function () { return ({
|
|
1249
|
+
line_items: arrayOf(function () { return factories['io.flow.experience.v0.models.allocation_line_summary_line_item'](); }),
|
|
1250
|
+
shipping: factories['io.flow.experience.v0.models.allocation_line_summary_shipping'](),
|
|
1251
|
+
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1252
|
+
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1253
|
+
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1254
|
+
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1255
|
+
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1256
|
+
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1257
|
+
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1258
|
+
}); },
|
|
1259
|
+
'io.flow.experience.v0.models.allocation_line_summary_line_item': function () { return ({
|
|
1260
|
+
item_number: factories.string(),
|
|
1261
|
+
line_number: factories.string(),
|
|
1262
|
+
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1263
|
+
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1264
|
+
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1265
|
+
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1266
|
+
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1267
|
+
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1268
|
+
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1269
|
+
}); },
|
|
1270
|
+
'io.flow.experience.v0.models.allocation_line_summary_shipping': function () { return ({
|
|
1271
|
+
subtotal: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1272
|
+
discount: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1273
|
+
duties: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1274
|
+
tax: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1275
|
+
tax_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1276
|
+
duties_subsidy: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1277
|
+
total: factories['io.flow.common.v0.models.money_with_base'](),
|
|
1278
|
+
}); },
|
|
1279
|
+
'io.flow.experience.v0.models.allocation_order_detail': function () { return ({
|
|
1280
|
+
discriminator: 'allocation_order_detail',
|
|
1281
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
1282
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1283
|
+
included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1284
|
+
not_included: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_component'](); }),
|
|
1285
|
+
}); },
|
|
1286
|
+
'io.flow.experience.v0.models.allocation_order_summary': function () { return ({
|
|
1287
|
+
id: factories.string(),
|
|
1288
|
+
number: factories.string(),
|
|
1289
|
+
submitted_at: factories.date_time_iso_8601(),
|
|
1290
|
+
}); },
|
|
1291
|
+
'io.flow.experience.v0.models.allocation_v2': function () { return ({
|
|
1292
|
+
id: factories.string(),
|
|
1293
|
+
order: factories['io.flow.experience.v0.models.allocation_order_summary'](),
|
|
1294
|
+
details: arrayOf(function () { return factories['io.flow.experience.v0.unions.allocation_detail'](); }),
|
|
1295
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1296
|
+
}); },
|
|
1297
|
+
'io.flow.experience.v0.models.available_promotion': function () { return ({
|
|
1298
|
+
id: factories.string(),
|
|
1299
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1300
|
+
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1301
|
+
promotions: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
1302
|
+
}); },
|
|
1303
|
+
'io.flow.experience.v0.models.checkout_attribute': function () { return ({
|
|
1304
|
+
id: factories.string(),
|
|
1305
|
+
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1306
|
+
key: factories.string(),
|
|
1307
|
+
name: factories.string(),
|
|
1308
|
+
attribute_keys: arrayOf(function () { return factories.string(); }),
|
|
1309
|
+
position: factories.long(),
|
|
1310
|
+
}); },
|
|
1311
|
+
'io.flow.experience.v0.models.checkout_attribute_form': function () { return ({
|
|
1312
|
+
key: factories.string(),
|
|
1313
|
+
name: factories.string(),
|
|
1314
|
+
experience_key: factories.string(),
|
|
1315
|
+
attribute_keys: arrayOf(function () { return factories.string(); }),
|
|
1316
|
+
position: factories.long(),
|
|
1317
|
+
}); },
|
|
1318
|
+
'io.flow.experience.v0.models.checkout_item_content': function () { return ({
|
|
1319
|
+
item: factories['io.flow.catalog.v0.models.item'](),
|
|
1320
|
+
name: factories.string(),
|
|
1321
|
+
description: factories.string(),
|
|
1322
|
+
attributes: arrayOf(function () { return factories['io.flow.experience.v0.models.checkout_item_content_attribute'](); }),
|
|
1323
|
+
image: factories['io.flow.catalog.v0.models.image'](),
|
|
1324
|
+
}); },
|
|
1325
|
+
'io.flow.experience.v0.models.checkout_item_content_attribute': function () { return ({
|
|
1326
|
+
key: factories.string(),
|
|
1327
|
+
name: factories.string(),
|
|
1328
|
+
value: factories.string(),
|
|
1329
|
+
}); },
|
|
1330
|
+
'io.flow.experience.v0.models.country_status': function () { return ({
|
|
1331
|
+
id: factories.string(),
|
|
1332
|
+
country: factories.string(),
|
|
1333
|
+
status: factories['io.flow.experience.v0.enums.experience_country_status'](),
|
|
1334
|
+
}); },
|
|
1335
|
+
'io.flow.experience.v0.models.country_status_form': function () { return ({
|
|
1336
|
+
status: factories['io.flow.experience.v0.enums.experience_country_status'](),
|
|
1337
|
+
}); },
|
|
1338
|
+
'io.flow.experience.v0.models.credit_payment': function () { return ({
|
|
1339
|
+
id: factories.string(),
|
|
1340
|
+
order: factories['io.flow.experience.v0.unions.expandable_order'](),
|
|
1341
|
+
key: factories.string(),
|
|
1342
|
+
description: factories.string(),
|
|
1343
|
+
value: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1344
|
+
original: factories['io.flow.experience.v0.models.original_prices'](),
|
|
1345
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1346
|
+
}); },
|
|
1347
|
+
'io.flow.experience.v0.models.credit_payment_error': function () { return ({
|
|
1348
|
+
code: factories['io.flow.experience.v0.enums.credit_payment_error_code'](),
|
|
1349
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1350
|
+
codes: arrayOf(function () { return factories['io.flow.experience.v0.enums.credit_payment_error_code'](); }),
|
|
1351
|
+
}); },
|
|
1352
|
+
'io.flow.experience.v0.models.credit_payment_form': function () { return ({
|
|
1353
|
+
order_number: factories.string(),
|
|
1354
|
+
description: factories.string(),
|
|
1355
|
+
amount: factories.decimal(),
|
|
1356
|
+
max: factories.decimal(),
|
|
1357
|
+
currency: factories.string(),
|
|
1358
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1359
|
+
}); },
|
|
1360
|
+
'io.flow.experience.v0.models.credit_payment_version': function () { return ({
|
|
1361
|
+
id: factories.string(),
|
|
1362
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1363
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1364
|
+
credit_payment: factories['io.flow.experience.v0.models.credit_payment'](),
|
|
1365
|
+
}); },
|
|
1366
|
+
'io.flow.experience.v0.models.datetime_with_timezone': function () { return ({
|
|
1367
|
+
datetime: factories.date_time_iso_8601(),
|
|
1368
|
+
timezone: factories.string(),
|
|
1369
|
+
}); },
|
|
1370
|
+
'io.flow.experience.v0.models.delivered_duty_setting': function () { return ({
|
|
1371
|
+
'default': factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1372
|
+
available: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
1373
|
+
display: factories['io.flow.experience.v0.enums.delivered_duty_display_type'](),
|
|
1374
|
+
}); },
|
|
1375
|
+
'io.flow.experience.v0.models.destination_contact_detail': function () { return ({
|
|
1376
|
+
title: factories.string(),
|
|
1377
|
+
country: factories.string(),
|
|
1378
|
+
import_identifier: factories.string(),
|
|
1379
|
+
}); },
|
|
1380
|
+
'io.flow.experience.v0.models.discount': function () { return ({
|
|
1381
|
+
discriminator: 'discount',
|
|
1382
|
+
id: factories.string(),
|
|
1383
|
+
code: factories.string(),
|
|
1384
|
+
label: factories.string(),
|
|
1385
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1386
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1387
|
+
}); },
|
|
1388
|
+
'io.flow.experience.v0.models.discount_rule': function () { return ({
|
|
1389
|
+
offers: arrayOf(function () { return factories['io.flow.experience.v0.models.discount_rule_offer'](); }),
|
|
1390
|
+
}); },
|
|
1391
|
+
'io.flow.experience.v0.models.discount_rule_offer': function () { return ({
|
|
1392
|
+
discount: factories['io.flow.common.v0.unions.discount_offer'](),
|
|
1393
|
+
entitlement: factories['io.flow.experience.v0.unions.discount_rule_entitlement'](),
|
|
1394
|
+
}); },
|
|
1395
|
+
'io.flow.experience.v0.models.discount_rule_settings': function () { return ({
|
|
1396
|
+
id: factories.string(),
|
|
1397
|
+
name: factories.string(),
|
|
1398
|
+
from_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1399
|
+
to_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1400
|
+
status: factories['io.flow.experience.v0.enums.discount_rule_status'](),
|
|
1401
|
+
experience_keys: arrayOf(function () { return factories.string(); }),
|
|
1402
|
+
rule: factories['io.flow.experience.v0.models.discount_rule'](),
|
|
1403
|
+
}); },
|
|
1404
|
+
'io.flow.experience.v0.models.discount_rule_settings_form': function () { return ({
|
|
1405
|
+
name: factories.string(),
|
|
1406
|
+
from_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1407
|
+
to_with_tz: factories['io.flow.experience.v0.models.datetime_with_timezone'](),
|
|
1408
|
+
experience_keys: arrayOf(function () { return factories.string(); }),
|
|
1409
|
+
rule: factories['io.flow.experience.v0.models.discount_rule'](),
|
|
1410
|
+
}); },
|
|
1411
|
+
'io.flow.experience.v0.models.discount_rule_subsidy_entitlement': function () { return ({
|
|
1412
|
+
discriminator: 'subsidy',
|
|
1413
|
+
targets: arrayOf(function () { return factories['io.flow.experience.v0.enums.discount_rule_subsidy_target'](); }),
|
|
1414
|
+
}); },
|
|
1415
|
+
'io.flow.experience.v0.models.edit_summary': function () { return ({
|
|
1416
|
+
id: factories.string(),
|
|
1417
|
+
edited_at: factories.date_time_iso_8601(),
|
|
1418
|
+
}); },
|
|
1419
|
+
'io.flow.experience.v0.models.experience': function () { return ({
|
|
1420
|
+
discriminator: 'experience',
|
|
1421
|
+
id: factories.string(),
|
|
1422
|
+
key: factories.string(),
|
|
1423
|
+
name: factories.string(),
|
|
1424
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1425
|
+
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1426
|
+
country: factories.string(),
|
|
1427
|
+
currency: factories.string(),
|
|
1428
|
+
language: factories.string(),
|
|
1429
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1430
|
+
subcatalog: factories['io.flow.catalog.v0.models.subcatalog_reference'](),
|
|
1431
|
+
position: factories.long(),
|
|
1432
|
+
settings: factories['io.flow.experience.v0.models.experience_settings'](),
|
|
1433
|
+
status: factories['io.flow.experience.v0.enums.experience_status'](),
|
|
1434
|
+
}); },
|
|
1435
|
+
'io.flow.experience.v0.models.experience_checkout_configuration_settings': function () { return ({
|
|
1436
|
+
configuration: factories['io.flow.experience.v0.models.experience_configuration_reference'](),
|
|
1437
|
+
}); },
|
|
1438
|
+
'io.flow.experience.v0.models.experience_checkout_settings': function () { return ({
|
|
1439
|
+
id: factories.string(),
|
|
1440
|
+
experience: factories['io.flow.experience.v0.models.experience_overview'](),
|
|
1441
|
+
checkout_configuration: factories['io.flow.experience.v0.models.experience_configuration_reference'](),
|
|
1442
|
+
}); },
|
|
1443
|
+
'io.flow.experience.v0.models.experience_checkout_settings_form': function () { return ({
|
|
1444
|
+
checkout_configuration_id: factories.string(),
|
|
1445
|
+
}); },
|
|
1446
|
+
'io.flow.experience.v0.models.experience_clone': function () { return ({
|
|
1447
|
+
id: factories.string(),
|
|
1448
|
+
source_experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1449
|
+
cloned_experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1450
|
+
status: factories['io.flow.experience.v0.enums.experience_clone_status'](),
|
|
1451
|
+
}); },
|
|
1452
|
+
'io.flow.experience.v0.models.experience_clone_form': function () { return ({
|
|
1453
|
+
name: factories.string(),
|
|
1454
|
+
}); },
|
|
1455
|
+
'io.flow.experience.v0.models.experience_configuration_reference': function () { return ({
|
|
1456
|
+
id: factories.string(),
|
|
1457
|
+
}); },
|
|
1458
|
+
'io.flow.experience.v0.models.experience_currency_format': function () { return ({
|
|
1459
|
+
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
1460
|
+
label_formatters: arrayOf(function () { return factories['io.flow.common.v0.enums.currency_label_formatter'](); }),
|
|
1461
|
+
}); },
|
|
1462
|
+
'io.flow.experience.v0.models.experience_currency_format_form': function () { return ({
|
|
1463
|
+
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
1464
|
+
label_formatters: arrayOf(function () { return factories['io.flow.common.v0.enums.currency_label_formatter'](); }),
|
|
1465
|
+
}); },
|
|
1466
|
+
'io.flow.experience.v0.models.experience_defaults': function () { return ({
|
|
1467
|
+
key: factories.string(),
|
|
1468
|
+
name: factories.string(),
|
|
1469
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1470
|
+
country: factories.string(),
|
|
1471
|
+
currency: factories.string(),
|
|
1472
|
+
language: factories.string(),
|
|
1473
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1474
|
+
}); },
|
|
1475
|
+
'io.flow.experience.v0.models.experience_form': function () { return ({
|
|
1476
|
+
region_id: factories.string(),
|
|
1477
|
+
name: factories.string(),
|
|
1478
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1479
|
+
country: factories.string(),
|
|
1480
|
+
currency: factories.string(),
|
|
1481
|
+
language: factories.string(),
|
|
1482
|
+
key: factories.string(),
|
|
1483
|
+
position: factories.long(),
|
|
1484
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1485
|
+
subcatalog_id: factories.string(),
|
|
1486
|
+
}); },
|
|
1487
|
+
'io.flow.experience.v0.models.experience_geo': function () { return ({
|
|
1488
|
+
key: factories.string(),
|
|
1489
|
+
name: factories.string(),
|
|
1490
|
+
region: factories['io.flow.experience.v0.models.region_reference'](),
|
|
1491
|
+
country: factories.string(),
|
|
1492
|
+
currency: factories.string(),
|
|
1493
|
+
language: factories.string(),
|
|
1494
|
+
measurement_system: factories['io.flow.common.v0.enums.measurement_system'](),
|
|
1495
|
+
}); },
|
|
1496
|
+
'io.flow.experience.v0.models.experience_logistics_settings': function () { return ({
|
|
1497
|
+
id: factories.string(),
|
|
1498
|
+
experience: factories['io.flow.experience.v0.models.experience_overview'](),
|
|
1499
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1500
|
+
}); },
|
|
1501
|
+
'io.flow.experience.v0.models.experience_logistics_settings_put_form': function () { return ({
|
|
1502
|
+
shipping_configuration_key: factories.string(),
|
|
1503
|
+
}); },
|
|
1504
|
+
'io.flow.experience.v0.models.experience_logistics_summary': function () { return ({
|
|
1505
|
+
outbound: factories['io.flow.experience.v0.models.experience_logistics_tier_summary'](),
|
|
1506
|
+
'return': factories['io.flow.experience.v0.models.experience_logistics_tier_summary'](),
|
|
1507
|
+
}); },
|
|
1508
|
+
'io.flow.experience.v0.models.experience_logistics_tier_summary': function () { return ({
|
|
1509
|
+
prices: factories['io.flow.experience.v0.models.experience_logistics_tier_summary_prices'](),
|
|
1510
|
+
}); },
|
|
1511
|
+
'io.flow.experience.v0.models.experience_logistics_tier_summary_prices': function () { return ({
|
|
1512
|
+
minimum: factories['io.flow.common.v0.models.price'](),
|
|
1513
|
+
}); },
|
|
1514
|
+
'io.flow.experience.v0.models.experience_overview': function () { return ({
|
|
1515
|
+
id: factories.string(),
|
|
1516
|
+
key: factories.string(),
|
|
1517
|
+
}); },
|
|
1518
|
+
'io.flow.experience.v0.models.experience_payment_method_rule': function () { return ({
|
|
1519
|
+
experience_key: factories.string(),
|
|
1520
|
+
payment_method_rules: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_rule'](); }),
|
|
1521
|
+
}); },
|
|
1522
|
+
'io.flow.experience.v0.models.experience_payment_method_rule_form': function () { return ({
|
|
1523
|
+
payment_method_id: factories.string(),
|
|
1524
|
+
tags: arrayOf(function () { return factories['io.flow.experience.v0.enums.experience_payment_method_tag'](); }),
|
|
1525
|
+
q: factories.string(),
|
|
1526
|
+
}); },
|
|
1527
|
+
'io.flow.experience.v0.models.experience_price_book_mapping': function () { return ({
|
|
1528
|
+
id: factories.string(),
|
|
1529
|
+
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1530
|
+
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
1531
|
+
position: factories.long(),
|
|
1532
|
+
}); },
|
|
1533
|
+
'io.flow.experience.v0.models.experience_price_book_mapping_form': function () { return ({
|
|
1534
|
+
price_book_key: factories.string(),
|
|
1535
|
+
position: factories.long(),
|
|
1536
|
+
}); },
|
|
1537
|
+
'io.flow.experience.v0.models.experience_price_book_mapping_put_form': function () { return ({
|
|
1538
|
+
price_books: arrayOf(function () { return factories['io.flow.experience.v0.models.experience_price_book_mapping_form'](); }),
|
|
1539
|
+
}); },
|
|
1540
|
+
'io.flow.experience.v0.models.experience_price_conversion': function () { return ({
|
|
1541
|
+
request: factories['io.flow.experience.v0.models.experience_price_conversion_request'](),
|
|
1542
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1543
|
+
}); },
|
|
1544
|
+
'io.flow.experience.v0.models.experience_price_conversion_request': function () { return ({
|
|
1545
|
+
value: factories.decimal(),
|
|
1546
|
+
base: factories.string(),
|
|
1547
|
+
local: factories.string(),
|
|
1548
|
+
}); },
|
|
1549
|
+
'io.flow.experience.v0.models.experience_price_conversion_response': function () { return ({
|
|
1550
|
+
prices: arrayOf(function () { return factories['io.flow.experience.v0.models.experience_price_conversion'](); }),
|
|
1551
|
+
}); },
|
|
1552
|
+
'io.flow.experience.v0.models.experience_price_facet_conversion': function () { return ({
|
|
1553
|
+
request: factories['io.flow.experience.v0.models.experience_price_facet_conversion_request'](),
|
|
1554
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1555
|
+
}); },
|
|
1556
|
+
'io.flow.experience.v0.models.experience_price_facet_conversion_request': function () { return ({
|
|
1557
|
+
boundary: factories['io.flow.experience.v0.enums.price_facet_boundary'](),
|
|
1558
|
+
value: factories.decimal(),
|
|
1559
|
+
base: factories.string(),
|
|
1560
|
+
local: factories.string(),
|
|
1561
|
+
}); },
|
|
1562
|
+
'io.flow.experience.v0.models.experience_price_facet_conversion_response': function () { return ({
|
|
1563
|
+
facets: arrayOf(function () { return factories['io.flow.experience.v0.models.experience_price_facet_conversion'](); }),
|
|
1564
|
+
}); },
|
|
1565
|
+
'io.flow.experience.v0.models.experience_reference': function () { return ({
|
|
1566
|
+
discriminator: 'experience_reference',
|
|
1567
|
+
key: factories.string(),
|
|
1568
|
+
}); },
|
|
1569
|
+
'io.flow.experience.v0.models.experience_settings': function () { return ({
|
|
1570
|
+
delivered_duty: factories['io.flow.experience.v0.models.delivered_duty_setting'](),
|
|
1571
|
+
pricing_settings: factories['io.flow.experience.v0.models.pricing_settings'](),
|
|
1572
|
+
logistics_settings: factories['io.flow.experience.v0.models.logistics_settings'](),
|
|
1573
|
+
checkout_settings: factories['io.flow.experience.v0.models.experience_checkout_configuration_settings'](),
|
|
1574
|
+
}); },
|
|
1575
|
+
'io.flow.experience.v0.models.experience_status_form': function () { return ({
|
|
1576
|
+
status: factories['io.flow.experience.v0.enums.experience_status'](),
|
|
1577
|
+
}); },
|
|
1578
|
+
'io.flow.experience.v0.models.experience_version': function () { return ({
|
|
1579
|
+
id: factories.string(),
|
|
1580
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1581
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1582
|
+
experience: factories['io.flow.experience.v0.models.experience'](),
|
|
1583
|
+
}); },
|
|
1584
|
+
'io.flow.experience.v0.models.free_shipping': function () { return ({
|
|
1585
|
+
discriminator: 'free_shipping',
|
|
1586
|
+
trigger: factories['io.flow.experience.v0.models.promotion_trigger'](),
|
|
1587
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
1588
|
+
}); },
|
|
1589
|
+
'io.flow.experience.v0.models.free_shipping_order_promotion': function () { return ({
|
|
1590
|
+
discriminator: 'free_shipping_order_promotion',
|
|
1591
|
+
id: factories.string(),
|
|
1592
|
+
order: factories['io.flow.experience.v0.unions.expandable_order'](),
|
|
1593
|
+
key: factories.string(),
|
|
1594
|
+
trigger: factories['io.flow.experience.v0.models.order_promotion_trigger'](),
|
|
1595
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
1596
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1597
|
+
}); },
|
|
1598
|
+
'io.flow.experience.v0.models.free_shipping_order_promotion_form': function () { return ({
|
|
1599
|
+
discriminator: 'free_shipping_order_promotion_form',
|
|
1600
|
+
trigger: factories['io.flow.experience.v0.models.promotion_trigger_form'](),
|
|
1601
|
+
max: factories['io.flow.common.v0.models.price_form'](),
|
|
1602
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1603
|
+
}); },
|
|
1604
|
+
'io.flow.experience.v0.models.incoterm_includes': function () { return ({
|
|
1605
|
+
duties: factories.boolean(),
|
|
1606
|
+
taxes: factories.boolean(),
|
|
1607
|
+
}); },
|
|
1608
|
+
'io.flow.experience.v0.models.incoterm_summary': function () { return ({
|
|
1609
|
+
configuration: factories['io.flow.experience.v0.enums.incoterm_configuration'](),
|
|
1610
|
+
includes: factories['io.flow.experience.v0.models.incoterm_includes'](),
|
|
1611
|
+
reason: factories.string(),
|
|
1612
|
+
}); },
|
|
1613
|
+
'io.flow.experience.v0.models.item_margin': function () { return ({
|
|
1614
|
+
id: factories.string(),
|
|
1615
|
+
key: factories.string(),
|
|
1616
|
+
name: factories.string(),
|
|
1617
|
+
q: factories.string(),
|
|
1618
|
+
fixed: factories.decimal(),
|
|
1619
|
+
percent: factories.decimal(),
|
|
1620
|
+
position: factories.long(),
|
|
1621
|
+
experience: factories['io.flow.experience.v0.models.experience_reference'](),
|
|
1622
|
+
}); },
|
|
1623
|
+
'io.flow.experience.v0.models.item_margin_post_form': function () { return ({
|
|
1624
|
+
name: factories.string(),
|
|
1625
|
+
q: factories.string(),
|
|
1626
|
+
key: factories.string(),
|
|
1627
|
+
fixed: factories.decimal(),
|
|
1628
|
+
percent: factories.decimal(),
|
|
1629
|
+
position: factories.long(),
|
|
1630
|
+
}); },
|
|
1631
|
+
'io.flow.experience.v0.models.item_margin_put_form': function () { return ({
|
|
1632
|
+
name: factories.string(),
|
|
1633
|
+
q: factories.string(),
|
|
1634
|
+
fixed: factories.decimal(),
|
|
1635
|
+
percent: factories.decimal(),
|
|
1636
|
+
position: factories.long(),
|
|
1637
|
+
}); },
|
|
1638
|
+
'io.flow.experience.v0.models.item_margin_version': function () { return ({
|
|
1639
|
+
id: factories.string(),
|
|
1640
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1641
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1642
|
+
item_margin: factories['io.flow.experience.v0.models.item_margin'](),
|
|
1643
|
+
}); },
|
|
1644
|
+
'io.flow.experience.v0.models.line': function () { return ({
|
|
1645
|
+
id: factories.string(),
|
|
1646
|
+
item_number: factories.string(),
|
|
1647
|
+
quantity: factories.long(),
|
|
1648
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1649
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1650
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1651
|
+
}); },
|
|
1652
|
+
'io.flow.experience.v0.models.localized_line_item': function () { return ({
|
|
1653
|
+
id: factories.string(),
|
|
1654
|
+
number: factories.string(),
|
|
1655
|
+
name: factories.string(),
|
|
1656
|
+
quantity: factories.long(),
|
|
1657
|
+
image: factories['io.flow.experience.v0.models.order_summary_image'](),
|
|
1658
|
+
center: factories.string(),
|
|
1659
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
1660
|
+
discount: factories['io.flow.experience.v0.models.localized_line_item_discount'](),
|
|
1661
|
+
discounts: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item_discount'](); }),
|
|
1662
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1663
|
+
local: factories['io.flow.catalog.v0.models.local'](),
|
|
1664
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
1665
|
+
price_source: factories['io.flow.common.v0.unions.price_source'](),
|
|
1666
|
+
breakdown: factories['io.flow.order.price.v0.models.order_price_detail_breakdown'](),
|
|
1667
|
+
}); },
|
|
1668
|
+
'io.flow.experience.v0.models.localized_line_item_discount': function () { return ({
|
|
1669
|
+
amount: factories.double(),
|
|
1670
|
+
currency: factories.string(),
|
|
1671
|
+
label: factories.string(),
|
|
1672
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
1673
|
+
requested: factories['io.flow.common.v0.models.money'](),
|
|
1674
|
+
discount_label: factories.string(),
|
|
1675
|
+
}); },
|
|
1676
|
+
'io.flow.experience.v0.models.logistics_settings': function () { return ({
|
|
1677
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
1678
|
+
}); },
|
|
1679
|
+
'io.flow.experience.v0.models.order': function () { return ({
|
|
1680
|
+
discriminator: 'order',
|
|
1681
|
+
id: factories.string(),
|
|
1682
|
+
number: factories.string(),
|
|
1683
|
+
order_type: factories['io.flow.experience.v0.enums.order_type'](),
|
|
1684
|
+
merchant_of_record: factories['io.flow.common.v0.enums.order_merchant_of_record'](),
|
|
1685
|
+
experience: factories['io.flow.experience.v0.unions.expandable_experience'](),
|
|
1686
|
+
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
1687
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1688
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1689
|
+
expires_at: factories.date_time_iso_8601(),
|
|
1690
|
+
items: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item'](); }),
|
|
1691
|
+
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1692
|
+
selections: arrayOf(function () { return factories.string(); }),
|
|
1693
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1694
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1695
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1696
|
+
submitted_at: factories.date_time_iso_8601(),
|
|
1697
|
+
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.line'](); }),
|
|
1698
|
+
identifiers: arrayOf(function () { return factories.string(); }),
|
|
1699
|
+
promotions: factories['io.flow.experience.v0.models.promotions'](),
|
|
1700
|
+
payments: arrayOf(function () { return factories['io.flow.experience.v0.models.order_payment'](); }),
|
|
1701
|
+
balance: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1702
|
+
rules: factories['io.flow.experience.v0.models.order_rules_summary'](),
|
|
1703
|
+
tax_registration: factories['io.flow.harmonization.v0.models.tax_registration'](),
|
|
1704
|
+
geo: factories['io.flow.experience.v0.models.order_geo'](),
|
|
1705
|
+
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1706
|
+
destination_contact_details: arrayOf(function () { return factories['io.flow.experience.v0.models.destination_contact_detail'](); }),
|
|
1707
|
+
incoterm_summary: factories['io.flow.experience.v0.models.incoterm_summary'](),
|
|
1708
|
+
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1709
|
+
edits: arrayOf(function () { return factories['io.flow.experience.v0.models.edit_summary'](); }),
|
|
1710
|
+
rates: arrayOf(function () { return factories['io.flow.experience.v0.models.order_rate'](); }),
|
|
1711
|
+
pricing_type: factories['io.flow.experience.v0.enums.pricing_type'](),
|
|
1712
|
+
}); },
|
|
1713
|
+
'io.flow.experience.v0.models.order_address': function () { return ({
|
|
1714
|
+
text: factories.string(),
|
|
1715
|
+
streets: arrayOf(function () { return factories.string(); }),
|
|
1716
|
+
city: factories.string(),
|
|
1717
|
+
province: factories.string(),
|
|
1718
|
+
postal: factories.string(),
|
|
1719
|
+
country: factories.string(),
|
|
1720
|
+
latitude: factories.string(),
|
|
1721
|
+
longitude: factories.string(),
|
|
1722
|
+
contact: factories['io.flow.common.v0.models.contact'](),
|
|
1723
|
+
}); },
|
|
1724
|
+
'io.flow.experience.v0.models.order_builder': function () { return ({
|
|
1725
|
+
order: factories['io.flow.experience.v0.models.order'](),
|
|
1726
|
+
errors: arrayOf(function () { return factories['io.flow.experience.v0.models.order_error'](); }),
|
|
1727
|
+
}); },
|
|
1728
|
+
'io.flow.experience.v0.models.order_builder_attributes_form': function () { return ({
|
|
1729
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1730
|
+
}); },
|
|
1731
|
+
'io.flow.experience.v0.models.order_builder_customer_form': function () { return ({
|
|
1732
|
+
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1733
|
+
}); },
|
|
1734
|
+
'io.flow.experience.v0.models.order_builder_customer_invoice_address_form': function () { return ({
|
|
1735
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
1736
|
+
}); },
|
|
1737
|
+
'io.flow.experience.v0.models.order_builder_delivered_duty_form': function () { return ({
|
|
1738
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1739
|
+
}); },
|
|
1740
|
+
'io.flow.experience.v0.models.order_builder_destination_country_form': function () { return ({
|
|
1741
|
+
country: factories.string(),
|
|
1742
|
+
}); },
|
|
1743
|
+
'io.flow.experience.v0.models.order_builder_destination_form': function () { return ({
|
|
1744
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1745
|
+
}); },
|
|
1746
|
+
'io.flow.experience.v0.models.order_builder_selections_form': function () { return ({
|
|
1747
|
+
selections: arrayOf(function () { return factories.string(); }),
|
|
1748
|
+
}); },
|
|
1749
|
+
'io.flow.experience.v0.models.order_destination_put_form': function () { return ({
|
|
1750
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1751
|
+
}); },
|
|
1752
|
+
'io.flow.experience.v0.models.order_error': function () { return ({
|
|
1753
|
+
code: factories['io.flow.experience.v0.enums.order_error_code'](),
|
|
1754
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
1755
|
+
numbers: arrayOf(function () { return factories.string(); }),
|
|
1756
|
+
destination_country: factories['io.flow.reference.v0.models.country'](),
|
|
1757
|
+
threshold: factories['io.flow.experience.v0.models.value_threshold_exceeded_details'](),
|
|
1758
|
+
}); },
|
|
1759
|
+
'io.flow.experience.v0.models.order_estimate': function () { return ({
|
|
1760
|
+
id: factories.string(),
|
|
1761
|
+
items: arrayOf(function () { return factories['io.flow.experience.v0.models.localized_line_item'](); }),
|
|
1762
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1763
|
+
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
1764
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
1765
|
+
selections: arrayOf(function () { return factories.string(); }),
|
|
1766
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
1767
|
+
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.line'](); }),
|
|
1768
|
+
promotions: factories['io.flow.experience.v0.models.promotions'](),
|
|
1769
|
+
}); },
|
|
1770
|
+
'io.flow.experience.v0.models.order_estimate_form': function () { return ({
|
|
1771
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1772
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1773
|
+
selections: arrayOf(function () { return factories.string(); }),
|
|
1774
|
+
}); },
|
|
1775
|
+
'io.flow.experience.v0.models.order_form': function () { return ({
|
|
1776
|
+
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1777
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1778
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1779
|
+
number: factories.string(),
|
|
1780
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1781
|
+
discount: factories['io.flow.common.v0.models.money'](),
|
|
1782
|
+
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
1783
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1784
|
+
authorization_keys: arrayOf(function () { return factories.string(); }),
|
|
1785
|
+
options: factories['io.flow.experience.v0.models.order_options'](),
|
|
1786
|
+
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1787
|
+
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1788
|
+
}); },
|
|
1789
|
+
'io.flow.experience.v0.models.order_geo': function () { return ({
|
|
1790
|
+
ip: factories.string(),
|
|
1791
|
+
country: factories.string(),
|
|
1792
|
+
currency: factories.string(),
|
|
1793
|
+
language: factories.string(),
|
|
1794
|
+
}); },
|
|
1795
|
+
'io.flow.experience.v0.models.order_identifier': function () { return ({
|
|
1796
|
+
id: factories.string(),
|
|
1797
|
+
order: factories['io.flow.experience.v0.models.order_reference'](),
|
|
1798
|
+
name: factories.string(),
|
|
1799
|
+
identifier: factories.string(),
|
|
1800
|
+
primary: factories.boolean(),
|
|
1801
|
+
number: factories.string(),
|
|
1802
|
+
}); },
|
|
1803
|
+
'io.flow.experience.v0.models.order_identifier_form': function () { return ({
|
|
1804
|
+
order: factories.string(),
|
|
1805
|
+
name: factories.string(),
|
|
1806
|
+
identifier: factories.string(),
|
|
1807
|
+
number: factories.string(),
|
|
1808
|
+
primary: factories.boolean(),
|
|
1809
|
+
}); },
|
|
1810
|
+
'io.flow.experience.v0.models.order_identifier_put_form': function () { return ({
|
|
1811
|
+
order: factories.string(),
|
|
1812
|
+
name: factories.string(),
|
|
1813
|
+
primary: factories.boolean(),
|
|
1814
|
+
}); },
|
|
1815
|
+
'io.flow.experience.v0.models.order_identifier_version': function () { return ({
|
|
1816
|
+
id: factories.string(),
|
|
1817
|
+
timestamp: factories.date_time_iso_8601(),
|
|
1818
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
1819
|
+
order_identifier: factories['io.flow.experience.v0.models.order_identifier'](),
|
|
1820
|
+
}); },
|
|
1821
|
+
'io.flow.experience.v0.models.order_number_generator_defaults': function () { return ({
|
|
1822
|
+
starts_with: factories.long(),
|
|
1823
|
+
min_hex_length: factories.integer(),
|
|
1824
|
+
min_starts_with: factories.long(),
|
|
1825
|
+
}); },
|
|
1826
|
+
'io.flow.experience.v0.models.order_number_generator_fixed_length': function () { return ({
|
|
1827
|
+
length: factories.integer(),
|
|
1828
|
+
padding: factories.string(),
|
|
1829
|
+
}); },
|
|
1830
|
+
'io.flow.experience.v0.models.order_number_generator_generated_number': function () { return ({
|
|
1831
|
+
number: factories.string(),
|
|
1832
|
+
}); },
|
|
1833
|
+
'io.flow.experience.v0.models.order_number_generator_hexadecimal': function () { return ({
|
|
1834
|
+
discriminator: 'hexadecimal',
|
|
1835
|
+
length: factories.integer(),
|
|
1836
|
+
}); },
|
|
1837
|
+
'io.flow.experience.v0.models.order_number_generator_prefix_suffix': function () { return ({
|
|
1838
|
+
discriminator: 'prefix_suffix',
|
|
1839
|
+
prefix: factories.string(),
|
|
1840
|
+
starts_with: factories.long(),
|
|
1841
|
+
suffix: factories.string(),
|
|
1842
|
+
fixed_length: factories['io.flow.experience.v0.models.order_number_generator_fixed_length'](),
|
|
1843
|
+
}); },
|
|
1844
|
+
'io.flow.experience.v0.models.order_number_generator_uuid': function () { return ({
|
|
1845
|
+
discriminator: 'uuid',
|
|
1846
|
+
prefix: factories.string(),
|
|
1847
|
+
}); },
|
|
1848
|
+
'io.flow.experience.v0.models.order_number_reference': function () { return ({
|
|
1849
|
+
number: factories.string(),
|
|
1850
|
+
}); },
|
|
1851
|
+
'io.flow.experience.v0.models.order_options': function () { return ({
|
|
1852
|
+
storage: factories['io.flow.experience.v0.enums.order_storage'](),
|
|
1853
|
+
}); },
|
|
1854
|
+
'io.flow.experience.v0.models.order_payment': function () { return ({
|
|
1855
|
+
id: factories.string(),
|
|
1856
|
+
type: factories['io.flow.experience.v0.enums.order_payment_type'](),
|
|
1857
|
+
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
1858
|
+
reference: factories.string(),
|
|
1859
|
+
description: factories.string(),
|
|
1860
|
+
total: factories['io.flow.common.v0.models.price_with_base'](),
|
|
1861
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
1862
|
+
date: factories.date_time_iso_8601(),
|
|
1863
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1864
|
+
method: factories.string(),
|
|
1865
|
+
}); },
|
|
1866
|
+
'io.flow.experience.v0.models.order_promotion_trigger': function () { return ({
|
|
1867
|
+
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
1868
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
1869
|
+
}); },
|
|
1870
|
+
'io.flow.experience.v0.models.order_put_form': function () { return ({
|
|
1871
|
+
order_type: factories['io.flow.experience.v0.enums.order_type'](),
|
|
1872
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1873
|
+
customer: factories['io.flow.common.v0.models.order_customer_form'](),
|
|
1874
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
1875
|
+
selections: arrayOf(function () { return factories.string(); }),
|
|
1876
|
+
destination: factories['io.flow.experience.v0.models.order_address'](),
|
|
1877
|
+
discount: factories['io.flow.common.v0.models.money'](),
|
|
1878
|
+
discounts: factories['io.flow.common.v0.models.discounts_form'](),
|
|
1879
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1880
|
+
authorization_keys: arrayOf(function () { return factories.string(); }),
|
|
1881
|
+
options: factories['io.flow.experience.v0.models.order_options'](),
|
|
1882
|
+
device_details: factories['io.flow.payment.v0.unions.device_details'](),
|
|
1883
|
+
payment_source: factories['io.flow.experience.v0.enums.order_payment_source_type'](),
|
|
1884
|
+
}); },
|
|
1885
|
+
'io.flow.experience.v0.models.order_rate': function () { return ({
|
|
1886
|
+
from: factories.string(),
|
|
1887
|
+
to: factories.string(),
|
|
1888
|
+
rate: factories.decimal(),
|
|
1889
|
+
}); },
|
|
1890
|
+
'io.flow.experience.v0.models.order_reference': function () { return ({
|
|
1891
|
+
discriminator: 'order_reference',
|
|
1892
|
+
id: factories.string(),
|
|
1893
|
+
number: factories.string(),
|
|
1894
|
+
}); },
|
|
1895
|
+
'io.flow.experience.v0.models.order_refund_summary': function () { return ({
|
|
1896
|
+
currency: factories.string(),
|
|
1897
|
+
amounts: factories['io.flow.experience.v0.models.order_refund_summary_amounts'](),
|
|
1898
|
+
}); },
|
|
1899
|
+
'io.flow.experience.v0.models.order_refund_summary_amounts': function () { return ({
|
|
1900
|
+
balance: factories.decimal(),
|
|
1901
|
+
item_subtotal: factories.decimal(),
|
|
1902
|
+
discount: factories.decimal(),
|
|
1903
|
+
refund_total: factories.decimal(),
|
|
1904
|
+
shipping: factories.decimal(),
|
|
1905
|
+
vat: factories.decimal(),
|
|
1906
|
+
duty: factories.decimal(),
|
|
1907
|
+
}); },
|
|
1908
|
+
'io.flow.experience.v0.models.order_refund_summary_full_form': function () { return ({
|
|
1909
|
+
discriminator: 'order_refund_summary_full_form',
|
|
1910
|
+
includes: arrayOf(function () { return factories['io.flow.experience.v0.enums.order_refund_summary_includes'](); }),
|
|
1911
|
+
}); },
|
|
1912
|
+
'io.flow.experience.v0.models.order_refund_summary_item': function () { return ({
|
|
1913
|
+
number: factories.string(),
|
|
1914
|
+
quantity_to_refund: factories.long(),
|
|
1915
|
+
}); },
|
|
1916
|
+
'io.flow.experience.v0.models.order_refund_summary_partial_form': function () { return ({
|
|
1917
|
+
discriminator: 'order_refund_summary_partial_form',
|
|
1918
|
+
includes: arrayOf(function () { return factories['io.flow.experience.v0.models.order_refund_summary_partial_includes'](); }),
|
|
1919
|
+
items: arrayOf(function () { return factories['io.flow.experience.v0.models.order_refund_summary_item'](); }),
|
|
1920
|
+
}); },
|
|
1921
|
+
'io.flow.experience.v0.models.order_refund_summary_partial_includes': function () { return ({
|
|
1922
|
+
key: factories['io.flow.experience.v0.enums.order_refund_summary_includes'](),
|
|
1923
|
+
charged: factories['io.flow.experience.v0.enums.order_refund_summary_partial_charged'](),
|
|
1924
|
+
}); },
|
|
1925
|
+
'io.flow.experience.v0.models.order_replacement': function () { return ({
|
|
1926
|
+
id: factories.string(),
|
|
1927
|
+
parent_order: factories['io.flow.experience.v0.models.order'](),
|
|
1928
|
+
replacement_order: factories['io.flow.experience.v0.models.order'](),
|
|
1929
|
+
}); },
|
|
1930
|
+
'io.flow.experience.v0.models.order_replacement_form': function () { return ({
|
|
1931
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
1932
|
+
}); },
|
|
1933
|
+
'io.flow.experience.v0.models.order_rule_reference': function () { return ({
|
|
1934
|
+
id: factories.string(),
|
|
1935
|
+
key: factories.string(),
|
|
1936
|
+
}); },
|
|
1937
|
+
'io.flow.experience.v0.models.order_rules_summary': function () { return ({
|
|
1938
|
+
applied: arrayOf(function () { return factories['io.flow.experience.v0.models.order_rule_reference'](); }),
|
|
1939
|
+
}); },
|
|
1940
|
+
'io.flow.experience.v0.models.order_service_change': function () { return ({
|
|
1941
|
+
id: factories.string(),
|
|
1942
|
+
from: factories['io.flow.reference.v0.models.carrier_service'](),
|
|
1943
|
+
to: factories['io.flow.reference.v0.models.carrier_service'](),
|
|
1944
|
+
}); },
|
|
1945
|
+
'io.flow.experience.v0.models.order_service_change_form': function () { return ({
|
|
1946
|
+
from_service_id: factories.string(),
|
|
1947
|
+
to_service_id: factories.string(),
|
|
1948
|
+
}); },
|
|
1949
|
+
'io.flow.experience.v0.models.order_service_change_request_data': function () { return ({
|
|
1950
|
+
id: factories.string(),
|
|
1951
|
+
source_url: factories.string(),
|
|
1952
|
+
filename: factories.string(),
|
|
1953
|
+
}); },
|
|
1954
|
+
'io.flow.experience.v0.models.order_submission_form': function () { return ({
|
|
1955
|
+
identifiers: arrayOf(function () { return factories['io.flow.experience.v0.models.order_submission_identifier_form'](); }),
|
|
1956
|
+
}); },
|
|
1957
|
+
'io.flow.experience.v0.models.order_submission_identifier_form': function () { return ({
|
|
1958
|
+
identifier: factories.string(),
|
|
1959
|
+
name: factories.string(),
|
|
1960
|
+
primary: factories.boolean(),
|
|
1961
|
+
}); },
|
|
1962
|
+
'io.flow.experience.v0.models.order_summary': function () { return ({
|
|
1963
|
+
number: factories.string(),
|
|
1964
|
+
subtotal: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1965
|
+
shipping: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1966
|
+
tax: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1967
|
+
duty: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1968
|
+
insurance: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1969
|
+
discount: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1970
|
+
surcharges: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1971
|
+
adjustment: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1972
|
+
total: factories['io.flow.experience.v0.models.order_summary_price_detail'](),
|
|
1973
|
+
lines: arrayOf(function () { return factories['io.flow.experience.v0.models.order_summary_line_item'](); }),
|
|
1974
|
+
identifiers: objectOf(function () { return factories.string(); }),
|
|
1975
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
1976
|
+
}); },
|
|
1977
|
+
'io.flow.experience.v0.models.order_summary_image': function () { return ({
|
|
1978
|
+
url: factories.string(),
|
|
1979
|
+
}); },
|
|
1980
|
+
'io.flow.experience.v0.models.order_summary_item': function () { return ({
|
|
1981
|
+
number: factories.string(),
|
|
1982
|
+
name: factories.string(),
|
|
1983
|
+
description: factories.string(),
|
|
1984
|
+
attributes: arrayOf(function () { return factories['io.flow.experience.v0.models.checkout_item_content_attribute'](); }),
|
|
1985
|
+
image: factories['io.flow.experience.v0.models.order_summary_image'](),
|
|
1986
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
1987
|
+
discount: factories['io.flow.common.v0.models.price'](),
|
|
1988
|
+
tax: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1989
|
+
duty: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
1990
|
+
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price'](); }),
|
|
1991
|
+
}); },
|
|
1992
|
+
'io.flow.experience.v0.models.order_summary_levy': function () { return ({
|
|
1993
|
+
rate: factories.decimal(),
|
|
1994
|
+
rate_label: factories.string(),
|
|
1995
|
+
value: factories['io.flow.common.v0.models.price'](),
|
|
1996
|
+
}); },
|
|
1997
|
+
'io.flow.experience.v0.models.order_summary_line_item': function () { return ({
|
|
1998
|
+
id: factories.string(),
|
|
1999
|
+
item: factories['io.flow.experience.v0.models.order_summary_item'](),
|
|
2000
|
+
quantity: factories.long(),
|
|
2001
|
+
discount: factories['io.flow.common.v0.models.price'](),
|
|
2002
|
+
tax: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
2003
|
+
duty: factories['io.flow.experience.v0.models.order_summary_levy'](),
|
|
2004
|
+
total: factories['io.flow.common.v0.models.price'](),
|
|
2005
|
+
price_attributes: objectOf(function () { return factories['io.flow.common.v0.models.price'](); }),
|
|
2006
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
2007
|
+
}); },
|
|
2008
|
+
'io.flow.experience.v0.models.order_summary_price_detail': function () { return ({
|
|
2009
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2010
|
+
name: factories.string(),
|
|
2011
|
+
rate: factories.decimal(),
|
|
2012
|
+
rate_label: factories.string(),
|
|
2013
|
+
}); },
|
|
2014
|
+
'io.flow.experience.v0.models.order_version': function () { return ({
|
|
2015
|
+
id: factories.string(),
|
|
2016
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2017
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2018
|
+
order: factories['io.flow.experience.v0.models.order'](),
|
|
2019
|
+
}); },
|
|
2020
|
+
'io.flow.experience.v0.models.order_with_discounts_form': function () { return ({
|
|
2021
|
+
order: factories['io.flow.experience.v0.models.order_form'](),
|
|
2022
|
+
discounts: arrayOf(function () { return factories.string(); }),
|
|
2023
|
+
}); },
|
|
2024
|
+
'io.flow.experience.v0.models.original_prices': function () { return ({
|
|
2025
|
+
value: factories['io.flow.common.v0.models.price'](),
|
|
2026
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
2027
|
+
}); },
|
|
2028
|
+
'io.flow.experience.v0.models.payment_method_issuer': function () { return ({
|
|
2029
|
+
id: factories.string(),
|
|
2030
|
+
name: factories.string(),
|
|
2031
|
+
logo: factories['io.flow.common.v0.unions.logo_image'](),
|
|
2032
|
+
}); },
|
|
2033
|
+
'io.flow.experience.v0.models.payment_method_rule': function () { return ({
|
|
2034
|
+
tags: arrayOf(function () { return factories['io.flow.experience.v0.unions.payment_method_tag'](); }),
|
|
2035
|
+
payment_method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
2036
|
+
display_position: factories.integer(),
|
|
2037
|
+
content: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_rule_content'](); }),
|
|
2038
|
+
issuers: arrayOf(function () { return factories['io.flow.experience.v0.models.payment_method_issuer'](); }),
|
|
2039
|
+
programs: arrayOf(function () { return factories.object(); }),
|
|
2040
|
+
q: factories['io.flow.query.builder.v0.models.query'](),
|
|
2041
|
+
}); },
|
|
2042
|
+
'io.flow.experience.v0.models.payment_method_rule_content': function () { return ({
|
|
2043
|
+
key: factories['io.flow.experience.v0.enums.payment_method_rule_content_key'](),
|
|
2044
|
+
value: factories.string(),
|
|
2045
|
+
}); },
|
|
2046
|
+
'io.flow.experience.v0.models.pricing_settings': function () { return ({
|
|
2047
|
+
editable: factories.boolean(),
|
|
2048
|
+
default_tax_display: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2049
|
+
default_duty_display: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
2050
|
+
}); },
|
|
2051
|
+
'io.flow.experience.v0.models.pricing_version': function () { return ({
|
|
2052
|
+
id: factories.string(),
|
|
2053
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2054
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2055
|
+
pricing: factories['io.flow.price.v0.models.pricing'](),
|
|
2056
|
+
}); },
|
|
2057
|
+
'io.flow.experience.v0.models.promotion_trigger': function () { return ({
|
|
2058
|
+
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
2059
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
2060
|
+
remaining: factories['io.flow.common.v0.models.price'](),
|
|
2061
|
+
}); },
|
|
2062
|
+
'io.flow.experience.v0.models.promotion_trigger_form': function () { return ({
|
|
2063
|
+
type: factories['io.flow.experience.v0.enums.promotion_trigger_type'](),
|
|
2064
|
+
min: factories['io.flow.common.v0.models.price_form'](),
|
|
2065
|
+
}); },
|
|
2066
|
+
'io.flow.experience.v0.models.promotions': function () { return ({
|
|
2067
|
+
applied: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
2068
|
+
available: arrayOf(function () { return factories['io.flow.experience.v0.unions.promotion'](); }),
|
|
2069
|
+
}); },
|
|
2070
|
+
'io.flow.experience.v0.models.region_reference': function () { return ({
|
|
2071
|
+
id: factories.string(),
|
|
2072
|
+
}); },
|
|
2073
|
+
'io.flow.experience.v0.models.value_threshold_exceeded_details': function () { return ({
|
|
2074
|
+
local: factories['io.flow.common.v0.models.price'](),
|
|
2075
|
+
original: factories['io.flow.common.v0.models.price'](),
|
|
2076
|
+
}); },
|
|
2077
|
+
'io.flow.experience.v0.unions.allocation_component': function () {
|
|
2078
|
+
var f = faker.helpers.arrayElement([
|
|
2079
|
+
function () { return factories['io.flow.experience.v0.models.allocation_detail_component'](); },
|
|
2080
|
+
function () { return factories['io.flow.experience.v0.models.allocation_levy_component'](); },
|
|
2081
|
+
]);
|
|
2082
|
+
return f();
|
|
2083
|
+
},
|
|
2084
|
+
'io.flow.experience.v0.unions.allocation_detail': function () {
|
|
2085
|
+
var f = faker.helpers.arrayElement([
|
|
2086
|
+
function () { return factories['io.flow.experience.v0.models.allocation_line_detail'](); },
|
|
2087
|
+
function () { return factories['io.flow.experience.v0.models.allocation_order_detail'](); },
|
|
2088
|
+
]);
|
|
2089
|
+
return f();
|
|
2090
|
+
},
|
|
2091
|
+
'io.flow.experience.v0.unions.discount_rule_entitlement': function () {
|
|
2092
|
+
var f = faker.helpers.arrayElement([
|
|
2093
|
+
function () { return factories['io.flow.experience.v0.models.discount_rule_subsidy_entitlement'](); },
|
|
2094
|
+
]);
|
|
2095
|
+
return f();
|
|
2096
|
+
},
|
|
2097
|
+
'io.flow.experience.v0.unions.expandable_experience': function () {
|
|
2098
|
+
var f = faker.helpers.arrayElement([
|
|
2099
|
+
function () { return factories['io.flow.experience.v0.models.experience'](); },
|
|
2100
|
+
function () { return factories['io.flow.experience.v0.models.experience_reference'](); },
|
|
2101
|
+
]);
|
|
2102
|
+
return f();
|
|
2103
|
+
},
|
|
2104
|
+
'io.flow.experience.v0.unions.expandable_order': function () {
|
|
2105
|
+
var f = faker.helpers.arrayElement([
|
|
2106
|
+
function () { return factories['io.flow.experience.v0.models.order'](); },
|
|
2107
|
+
function () { return factories['io.flow.experience.v0.models.order_reference'](); },
|
|
2108
|
+
]);
|
|
2109
|
+
return f();
|
|
2110
|
+
},
|
|
2111
|
+
'io.flow.experience.v0.unions.order_number_generator': function () {
|
|
2112
|
+
var f = faker.helpers.arrayElement([
|
|
2113
|
+
function () { return factories['io.flow.experience.v0.models.order_number_generator_uuid'](); },
|
|
2114
|
+
function () { return factories['io.flow.experience.v0.models.order_number_generator_hexadecimal'](); },
|
|
2115
|
+
function () { return factories['io.flow.experience.v0.models.order_number_generator_prefix_suffix'](); },
|
|
2116
|
+
]);
|
|
2117
|
+
return f();
|
|
2118
|
+
},
|
|
2119
|
+
'io.flow.experience.v0.unions.order_promotion': function () {
|
|
2120
|
+
var f = faker.helpers.arrayElement([
|
|
2121
|
+
function () { return factories['io.flow.experience.v0.models.free_shipping_order_promotion'](); },
|
|
2122
|
+
]);
|
|
2123
|
+
return f();
|
|
2124
|
+
},
|
|
2125
|
+
'io.flow.experience.v0.unions.order_promotion_form': function () {
|
|
2126
|
+
var f = faker.helpers.arrayElement([
|
|
2127
|
+
function () { return factories['io.flow.experience.v0.models.free_shipping_order_promotion_form'](); },
|
|
2128
|
+
]);
|
|
2129
|
+
return f();
|
|
2130
|
+
},
|
|
2131
|
+
'io.flow.experience.v0.unions.order_refund_summary_form': function () {
|
|
2132
|
+
var f = faker.helpers.arrayElement([
|
|
2133
|
+
function () { return factories['io.flow.experience.v0.models.order_refund_summary_full_form'](); },
|
|
2134
|
+
function () { return factories['io.flow.experience.v0.models.order_refund_summary_partial_form'](); },
|
|
2135
|
+
]);
|
|
2136
|
+
return f();
|
|
2137
|
+
},
|
|
2138
|
+
'io.flow.experience.v0.unions.payment_method_tag': function () {
|
|
2139
|
+
var f = faker.helpers.arrayElement([function () { return ({
|
|
2140
|
+
discriminator: 'organization_payment_method_tag',
|
|
2141
|
+
value: factories['io.flow.experience.v0.enums.organization_payment_method_tag'](),
|
|
2142
|
+
}); }, function () { return ({
|
|
2143
|
+
discriminator: 'experience_payment_method_tag',
|
|
2144
|
+
value: factories['io.flow.experience.v0.enums.experience_payment_method_tag'](),
|
|
2145
|
+
}); }]);
|
|
2146
|
+
return f();
|
|
2147
|
+
},
|
|
2148
|
+
'io.flow.experience.v0.unions.promotion': function () {
|
|
2149
|
+
var f = faker.helpers.arrayElement([
|
|
2150
|
+
function () { return factories['io.flow.experience.v0.models.free_shipping'](); },
|
|
2151
|
+
function () { return factories['io.flow.experience.v0.models.discount'](); },
|
|
2152
|
+
]);
|
|
2153
|
+
return f();
|
|
2154
|
+
},
|
|
2155
|
+
'io.flow.field.validation.v0.models.field_validation_max': function () { return ({
|
|
2156
|
+
discriminator: 'max',
|
|
2157
|
+
length: factories.integer(),
|
|
2158
|
+
}); },
|
|
2159
|
+
'io.flow.field.validation.v0.models.field_validation_min': function () { return ({
|
|
2160
|
+
discriminator: 'min',
|
|
2161
|
+
length: factories.integer(),
|
|
2162
|
+
}); },
|
|
2163
|
+
'io.flow.field.validation.v0.models.field_validation_pattern': function () { return ({
|
|
2164
|
+
discriminator: 'pattern',
|
|
2165
|
+
pattern: factories.string(),
|
|
2166
|
+
}); },
|
|
2167
|
+
'io.flow.field.validation.v0.models.field_validation_required': function () { return ({
|
|
2168
|
+
discriminator: 'required',
|
|
2169
|
+
placeholder: factories.string(),
|
|
2170
|
+
}); },
|
|
2171
|
+
'io.flow.field.validation.v0.models.field_validation_required_if_present': function () { return ({
|
|
2172
|
+
discriminator: 'required_if_present',
|
|
2173
|
+
placeholder: factories.string(),
|
|
2174
|
+
}); },
|
|
2175
|
+
'io.flow.field.validation.v0.unions.field_validation_rule': function () {
|
|
2176
|
+
var f = faker.helpers.arrayElement([
|
|
2177
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_required'](); },
|
|
2178
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_required_if_present'](); },
|
|
2179
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_min'](); },
|
|
2180
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_max'](); },
|
|
2181
|
+
function () { return factories['io.flow.field.validation.v0.models.field_validation_pattern'](); },
|
|
2182
|
+
]);
|
|
2183
|
+
return f();
|
|
2184
|
+
},
|
|
2185
|
+
'io.flow.fulfillment.v0.enums.center_capability': function () { return faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
2186
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
2187
|
+
'ratecard_base_cost',
|
|
2188
|
+
'ratecard_ddp_fee',
|
|
2189
|
+
'ratecard_fuel_surcharge',
|
|
2190
|
+
'ratecard_oversized_shipment_fee',
|
|
2191
|
+
'ratecard_rural_shipment_fee',
|
|
2192
|
+
'ratecard_emergency_situation_surcharge_fee',
|
|
2193
|
+
'ratecard_peak_surcharge_fee',
|
|
2194
|
+
'ratecard_duties_taxes_paid_surcharge_fee',
|
|
2195
|
+
'center_commercial_invoice_fee',
|
|
2196
|
+
'center_inbound_carton_fee',
|
|
2197
|
+
'center_outbound_carton_fee',
|
|
2198
|
+
]); },
|
|
2199
|
+
'io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source': function () { return faker.helpers.arrayElement(['center', 'ratecard']); },
|
|
2200
|
+
'io.flow.fulfillment.v0.enums.delivery_window_component_source': function () { return faker.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
2201
|
+
'io.flow.fulfillment.v0.enums.delivery_window_location': function () { return faker.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
2202
|
+
'io.flow.fulfillment.v0.enums.fulfillment_routing': function () { return faker.helpers.arrayElement(['fulfilled_from_center', 'fulfillment_service']); },
|
|
2203
|
+
'io.flow.fulfillment.v0.enums.item_availability_status': function () { return faker.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
2204
|
+
'io.flow.fulfillment.v0.enums.lane_direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
|
|
2205
|
+
'io.flow.fulfillment.v0.enums.lane_preselect_preference': function () { return faker.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
2206
|
+
'io.flow.fulfillment.v0.enums.lane_strategy': function () { return faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
2207
|
+
'io.flow.fulfillment.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
2208
|
+
'io.flow.fulfillment.v0.enums.preferred_service_selection_strategy': function () { return faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
2209
|
+
'io.flow.fulfillment.v0.enums.quote_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
2210
|
+
'io.flow.fulfillment.v0.enums.ratecard_owner': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
2211
|
+
'io.flow.fulfillment.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
2212
|
+
'io.flow.fulfillment.v0.enums.shipping_configuration_type': function () { return faker.helpers.arrayElement(['default', 'variant']); },
|
|
2213
|
+
'io.flow.fulfillment.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
2214
|
+
'io.flow.fulfillment.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
2215
|
+
'io.flow.fulfillment.v0.enums.tier_availability': function () { return faker.helpers.arrayElement(['always', 'backup']); },
|
|
2216
|
+
'io.flow.fulfillment.v0.enums.tier_estimate_type': function () { return faker.helpers.arrayElement(['calculated', 'custom']); },
|
|
2217
|
+
'io.flow.fulfillment.v0.enums.tier_strategy': function () { return faker.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
2218
|
+
'io.flow.fulfillment.v0.enums.zero_amount_indicator': function () { return faker.helpers.arrayElement(['zero', 'free']); },
|
|
2219
|
+
'io.flow.fulfillment.v0.models.amount_margin': function () { return ({
|
|
2220
|
+
discriminator: 'amount_margin',
|
|
2221
|
+
margin: factories['io.flow.common.v0.models.price'](),
|
|
2222
|
+
}); },
|
|
2223
|
+
'io.flow.fulfillment.v0.models.amount_margin_form': function () { return ({
|
|
2224
|
+
discriminator: 'amount_margin_form',
|
|
2225
|
+
margin: factories['io.flow.common.v0.models.money'](),
|
|
2226
|
+
}); },
|
|
2227
|
+
'io.flow.fulfillment.v0.models.at_cost': function () { return ({
|
|
2228
|
+
discriminator: 'at_cost',
|
|
2229
|
+
ignore: factories.string(),
|
|
2230
|
+
}); },
|
|
2231
|
+
'io.flow.fulfillment.v0.models.available_service': function () { return ({
|
|
2232
|
+
service: factories.string(),
|
|
2233
|
+
scheduled_pickups: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.scheduled_pickup'](); }),
|
|
2234
|
+
lead_days: factories['io.flow.fulfillment.v0.models.number_range'](),
|
|
2235
|
+
}); },
|
|
2236
|
+
'io.flow.fulfillment.v0.models.carrier_reference': function () { return ({
|
|
2237
|
+
id: factories.string(),
|
|
2238
|
+
}); },
|
|
2239
|
+
'io.flow.fulfillment.v0.models.center': function () { return ({
|
|
2240
|
+
discriminator: 'center',
|
|
2241
|
+
id: factories.string(),
|
|
2242
|
+
key: factories.string(),
|
|
2243
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2244
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
2245
|
+
name: factories.string(),
|
|
2246
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
2247
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
2248
|
+
timezone: factories.string(),
|
|
2249
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
2250
|
+
partner_center: factories['io.flow.fulfillment.v0.models.partner_center'](),
|
|
2251
|
+
}); },
|
|
2252
|
+
'io.flow.fulfillment.v0.models.center_form': function () { return ({
|
|
2253
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2254
|
+
packaging: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.packaging'](); }),
|
|
2255
|
+
name: factories.string(),
|
|
2256
|
+
services: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.available_service'](); }),
|
|
2257
|
+
schedule: factories['io.flow.common.v0.models.schedule'](),
|
|
2258
|
+
timezone: factories.string(),
|
|
2259
|
+
key: factories.string(),
|
|
2260
|
+
capabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.center_capability'](); }),
|
|
2261
|
+
partner_center_form: factories['io.flow.fulfillment.v0.models.partner_center_form'](),
|
|
2262
|
+
}); },
|
|
2263
|
+
'io.flow.fulfillment.v0.models.center_query': function () { return ({
|
|
2264
|
+
q: factories.string(),
|
|
2265
|
+
}); },
|
|
2266
|
+
'io.flow.fulfillment.v0.models.center_reference': function () { return ({
|
|
2267
|
+
discriminator: 'center_reference',
|
|
2268
|
+
organization_id: factories.string(),
|
|
2269
|
+
center_key: factories.string(),
|
|
2270
|
+
}); },
|
|
2271
|
+
'io.flow.fulfillment.v0.models.center_summary': function () { return ({
|
|
2272
|
+
id: factories.string(),
|
|
2273
|
+
key: factories.string(),
|
|
2274
|
+
address: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2275
|
+
}); },
|
|
2276
|
+
'io.flow.fulfillment.v0.models.center_version': function () { return ({
|
|
2277
|
+
id: factories.string(),
|
|
2278
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2279
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2280
|
+
center: factories['io.flow.fulfillment.v0.models.center'](),
|
|
2281
|
+
}); },
|
|
2282
|
+
'io.flow.fulfillment.v0.models.commercial_invoice_fee': function () { return ({
|
|
2283
|
+
discriminator: 'commercial_invoice_fee',
|
|
2284
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
2285
|
+
}); },
|
|
2286
|
+
'io.flow.fulfillment.v0.models.country_availability': function () { return ({
|
|
2287
|
+
status: factories['io.flow.fulfillment.v0.enums.item_availability_status'](),
|
|
2288
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
2289
|
+
}); },
|
|
2290
|
+
'io.flow.fulfillment.v0.models.country_shipping_pricing': function () { return ({
|
|
2291
|
+
pricing: factories['io.flow.fulfillment.v0.models.item_shipping_pricing'](),
|
|
2292
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
2293
|
+
}); },
|
|
2294
|
+
'io.flow.fulfillment.v0.models.delivery_item': function () { return ({
|
|
2295
|
+
id: factories.string(),
|
|
2296
|
+
number: factories.string(),
|
|
2297
|
+
quantity: factories.long(),
|
|
2298
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
2299
|
+
price: factories['io.flow.common.v0.models.money_with_optional_base'](),
|
|
2300
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
2301
|
+
center: factories.string(),
|
|
2302
|
+
line_number: factories.long(),
|
|
2303
|
+
}); },
|
|
2304
|
+
'io.flow.fulfillment.v0.models.delivery_option': function () { return ({
|
|
2305
|
+
id: factories.string(),
|
|
2306
|
+
cost: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2307
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2308
|
+
price: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2309
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
2310
|
+
actual_service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
2311
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
2312
|
+
window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
2313
|
+
rule_outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
2314
|
+
weight: factories['io.flow.fulfillment.v0.models.option_weight_estimates'](),
|
|
2315
|
+
send_to: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2316
|
+
surcharge: factories['io.flow.fulfillment.v0.models.price_with_base_and_details'](),
|
|
2317
|
+
ratecard_owner: factories['io.flow.fulfillment.v0.enums.ratecard_owner'](),
|
|
2318
|
+
}); },
|
|
2319
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_component': function () { return ({
|
|
2320
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2321
|
+
currency: factories.string(),
|
|
2322
|
+
amount: factories.decimal(),
|
|
2323
|
+
label: factories.string(),
|
|
2324
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
2325
|
+
}); },
|
|
2326
|
+
'io.flow.fulfillment.v0.models.delivery_option_cost_detail': function () { return ({
|
|
2327
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_source'](),
|
|
2328
|
+
ratecard_id: factories.string(),
|
|
2329
|
+
currency: factories.string(),
|
|
2330
|
+
amount: factories.decimal(),
|
|
2331
|
+
label: factories.string(),
|
|
2332
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
2333
|
+
components: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_component'](); }),
|
|
2334
|
+
}); },
|
|
2335
|
+
'io.flow.fulfillment.v0.models.delivery_option_form': function () { return ({
|
|
2336
|
+
delivery: factories.string(),
|
|
2337
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
2338
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2339
|
+
}); },
|
|
2340
|
+
'io.flow.fulfillment.v0.models.delivery_option_reference': function () { return ({
|
|
2341
|
+
id: factories.string(),
|
|
2342
|
+
}); },
|
|
2343
|
+
'io.flow.fulfillment.v0.models.delivery_option_summary': function () { return ({
|
|
2344
|
+
id: factories.string(),
|
|
2345
|
+
cost: factories['io.flow.common.v0.models.price'](),
|
|
2346
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2347
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2348
|
+
service: factories['io.flow.fulfillment.v0.models.service_reference'](),
|
|
2349
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
2350
|
+
window: factories['io.flow.common.v0.models.datetime_range'](),
|
|
2351
|
+
}); },
|
|
2352
|
+
'io.flow.fulfillment.v0.models.delivery_option_version': function () { return ({
|
|
2353
|
+
id: factories.string(),
|
|
2354
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2355
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2356
|
+
delivery_option: factories['io.flow.fulfillment.v0.models.delivery_option_summary'](),
|
|
2357
|
+
}); },
|
|
2358
|
+
'io.flow.fulfillment.v0.models.delivery_summary': function () { return ({
|
|
2359
|
+
id: factories.string(),
|
|
2360
|
+
items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item_form'](); }),
|
|
2361
|
+
}); },
|
|
2362
|
+
'io.flow.fulfillment.v0.models.delivery_version': function () { return ({
|
|
2363
|
+
id: factories.string(),
|
|
2364
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2365
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2366
|
+
delivery: factories['io.flow.fulfillment.v0.models.delivery_summary'](),
|
|
2367
|
+
}); },
|
|
2368
|
+
'io.flow.fulfillment.v0.models.delivery_window': function () { return ({
|
|
2369
|
+
from: factories.date_time_iso_8601(),
|
|
2370
|
+
to: factories.date_time_iso_8601(),
|
|
2371
|
+
timezone: factories.string(),
|
|
2372
|
+
label: factories.string(),
|
|
2373
|
+
min_days: factories.long(),
|
|
2374
|
+
max_days: factories.long(),
|
|
2375
|
+
}); },
|
|
2376
|
+
'io.flow.fulfillment.v0.models.delivery_window_component': function () { return ({
|
|
2377
|
+
from: factories.date_time_iso_8601(),
|
|
2378
|
+
to: factories.date_time_iso_8601(),
|
|
2379
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
2380
|
+
}); },
|
|
2381
|
+
'io.flow.fulfillment.v0.models.delivery_window_components': function () { return ({
|
|
2382
|
+
shipment_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
2383
|
+
transit_estimate: factories['io.flow.fulfillment.v0.models.delivery_window_component'](),
|
|
2384
|
+
}); },
|
|
2385
|
+
'io.flow.fulfillment.v0.models.delivery_window_components_v2': function () { return ({
|
|
2386
|
+
processing_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.processing_estimate'](); }),
|
|
2387
|
+
transit_estimates: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.transit_estimate'](); }),
|
|
2388
|
+
}); },
|
|
2389
|
+
'io.flow.fulfillment.v0.models.delivery_window_summary': function () { return ({
|
|
2390
|
+
country: factories.string(),
|
|
2391
|
+
delivery_window: factories['io.flow.fulfillment.v0.models.delivery_window'](),
|
|
2392
|
+
}); },
|
|
2393
|
+
'io.flow.fulfillment.v0.models.digital_delivery': function () { return ({
|
|
2394
|
+
discriminator: 'digital_delivery',
|
|
2395
|
+
id: factories.string(),
|
|
2396
|
+
key: factories.string(),
|
|
2397
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
2398
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
2399
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
2400
|
+
}); },
|
|
2401
|
+
'io.flow.fulfillment.v0.models.estimated_window': function () { return ({
|
|
2402
|
+
from: factories.long(),
|
|
2403
|
+
to: factories.long(),
|
|
2404
|
+
unit: factories['io.flow.common.v0.enums.unit_of_time'](),
|
|
2405
|
+
}); },
|
|
2406
|
+
'io.flow.fulfillment.v0.models.flat_rate': function () { return ({
|
|
2407
|
+
discriminator: 'flat_rate',
|
|
2408
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
2409
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
2410
|
+
}); },
|
|
2411
|
+
'io.flow.fulfillment.v0.models.flat_rate_form': function () { return ({
|
|
2412
|
+
discriminator: 'flat_rate_form',
|
|
2413
|
+
price: factories['io.flow.common.v0.models.money'](),
|
|
2414
|
+
zero_amount_indicator: factories['io.flow.fulfillment.v0.enums.zero_amount_indicator'](),
|
|
2415
|
+
}); },
|
|
2416
|
+
'io.flow.fulfillment.v0.models.fulfillment_experience_reference': function () { return ({
|
|
2417
|
+
id: factories.string(),
|
|
2418
|
+
currency: factories.string(),
|
|
2419
|
+
}); },
|
|
2420
|
+
'io.flow.fulfillment.v0.models.inbound_carton_fee': function () { return ({
|
|
2421
|
+
discriminator: 'inbound_carton_fee',
|
|
2422
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
2423
|
+
}); },
|
|
2424
|
+
'io.flow.fulfillment.v0.models.item_shipping_pricing': function () { return ({
|
|
2425
|
+
min: factories['io.flow.common.v0.models.price'](),
|
|
2426
|
+
max: factories['io.flow.common.v0.models.price'](),
|
|
2427
|
+
}); },
|
|
2428
|
+
'io.flow.fulfillment.v0.models.number_range': function () { return ({
|
|
2429
|
+
min: factories.long(),
|
|
2430
|
+
max: factories.long(),
|
|
2431
|
+
}); },
|
|
2432
|
+
'io.flow.fulfillment.v0.models.option_weight_estimates': function () { return ({
|
|
2433
|
+
gravitational: factories['io.flow.common.v0.models.measurement'](),
|
|
2434
|
+
dimensional: factories['io.flow.common.v0.models.measurement'](),
|
|
2435
|
+
}); },
|
|
2436
|
+
'io.flow.fulfillment.v0.models.outbound_carton_fee': function () { return ({
|
|
2437
|
+
discriminator: 'outbound_carton_fee',
|
|
2438
|
+
amount: factories['io.flow.common.v0.models.money'](),
|
|
2439
|
+
}); },
|
|
2440
|
+
'io.flow.fulfillment.v0.models.packaging': function () { return ({
|
|
2441
|
+
dimensions: factories['io.flow.common.v0.models.dimensions'](),
|
|
2442
|
+
name: factories.string(),
|
|
2443
|
+
number: factories.string(),
|
|
2444
|
+
}); },
|
|
2445
|
+
'io.flow.fulfillment.v0.models.partner_center': function () { return ({
|
|
2446
|
+
partner_reference: factories['io.flow.common.v0.models.partner_reference'](),
|
|
2447
|
+
number: factories.string(),
|
|
2448
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
2449
|
+
}); },
|
|
2450
|
+
'io.flow.fulfillment.v0.models.partner_center_form': function () { return ({
|
|
2451
|
+
partner_id: factories.string(),
|
|
2452
|
+
number: factories.string(),
|
|
2453
|
+
fees: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.partner_center_fee'](); }),
|
|
2454
|
+
}); },
|
|
2455
|
+
'io.flow.fulfillment.v0.models.percent_margin': function () { return ({
|
|
2456
|
+
discriminator: 'percent_margin',
|
|
2457
|
+
percentage: factories.double(),
|
|
2458
|
+
}); },
|
|
2459
|
+
'io.flow.fulfillment.v0.models.physical_delivery': function () { return ({
|
|
2460
|
+
discriminator: 'physical_delivery',
|
|
2461
|
+
id: factories.string(),
|
|
2462
|
+
key: factories.string(),
|
|
2463
|
+
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
2464
|
+
fulfillment_routing: factories['io.flow.fulfillment.v0.enums.fulfillment_routing'](),
|
|
2465
|
+
ship_from_country: factories.string(),
|
|
2466
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_item'](); }),
|
|
2467
|
+
options: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option'](); }),
|
|
2468
|
+
special_services: arrayOf(function () { return factories['io.flow.fulfillment.v0.enums.physical_delivery_special_serivce'](); }),
|
|
2469
|
+
prices: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail'](); }),
|
|
2470
|
+
total: factories['io.flow.catalog.v0.models.localized_total'](),
|
|
2471
|
+
goods_supply: factories['io.flow.common.v0.enums.goods_supply'](),
|
|
2472
|
+
merchant_of_record_flow_entity: factories['io.flow.merchant.of.record.v0.enums.flow_entity'](),
|
|
2473
|
+
preferred_service: factories['io.flow.fulfillment.v0.models.physical_delivery_preferred_service'](),
|
|
2474
|
+
}); },
|
|
2475
|
+
'io.flow.fulfillment.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
2476
|
+
id: factories.string(),
|
|
2477
|
+
selection_stratey: factories['io.flow.fulfillment.v0.enums.preferred_service_selection_strategy'](),
|
|
2478
|
+
}); },
|
|
2479
|
+
'io.flow.fulfillment.v0.models.price_with_base_and_details': function () { return ({
|
|
2480
|
+
currency: factories.string(),
|
|
2481
|
+
amount: factories.double(),
|
|
2482
|
+
label: factories.string(),
|
|
2483
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
2484
|
+
details: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_cost_detail'](); }),
|
|
2485
|
+
}); },
|
|
2486
|
+
'io.flow.fulfillment.v0.models.processing_estimate': function () { return ({
|
|
2487
|
+
location: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2488
|
+
min_date: factories.date_time_iso_8601(),
|
|
2489
|
+
max_date: factories.date_time_iso_8601(),
|
|
2490
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
2491
|
+
}); },
|
|
2492
|
+
'io.flow.fulfillment.v0.models.quote': function () { return ({
|
|
2493
|
+
id: factories.string(),
|
|
2494
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2495
|
+
deliveries: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.delivery'](); }),
|
|
2496
|
+
selections: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.delivery_option_reference'](); }),
|
|
2497
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2498
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
2499
|
+
}); },
|
|
2500
|
+
'io.flow.fulfillment.v0.models.quote_error': function () { return ({
|
|
2501
|
+
code: factories['io.flow.fulfillment.v0.enums.quote_error_code'](),
|
|
2502
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
2503
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2504
|
+
}); },
|
|
2505
|
+
'io.flow.fulfillment.v0.models.quote_form': function () { return ({
|
|
2506
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2507
|
+
experience: factories.string(),
|
|
2508
|
+
items: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.quote_line_item_form'](); }),
|
|
2509
|
+
delivered_duty: factories['io.flow.common.v0.enums.delivered_duty'](),
|
|
2510
|
+
delivered_duties: arrayOf(function () { return factories['io.flow.common.v0.enums.delivered_duty'](); }),
|
|
2511
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2512
|
+
}); },
|
|
2513
|
+
'io.flow.fulfillment.v0.models.quote_line_item_form': function () { return ({
|
|
2514
|
+
number: factories.string(),
|
|
2515
|
+
quantity: factories.long(),
|
|
2516
|
+
shipment_estimate: factories['io.flow.common.v0.models.datetime_range'](),
|
|
2517
|
+
price: factories['io.flow.common.v0.models.money_with_base'](),
|
|
2518
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
2519
|
+
center: factories.string(),
|
|
2520
|
+
}); },
|
|
2521
|
+
'io.flow.fulfillment.v0.models.quote_summary': function () { return ({
|
|
2522
|
+
id: factories.string(),
|
|
2523
|
+
destination: factories['io.flow.fulfillment.v0.models.shipping_address'](),
|
|
2524
|
+
}); },
|
|
2525
|
+
'io.flow.fulfillment.v0.models.quote_version': function () { return ({
|
|
2526
|
+
id: factories.string(),
|
|
2527
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2528
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2529
|
+
quote: factories['io.flow.fulfillment.v0.models.quote_summary'](),
|
|
2530
|
+
}); },
|
|
2531
|
+
'io.flow.fulfillment.v0.models.scheduled_pickup': function () { return ({
|
|
2532
|
+
day_of_week: factories['io.flow.common.v0.enums.day_of_week'](),
|
|
2533
|
+
hour_of_day: factories.string(),
|
|
2534
|
+
minute_of_hour: factories.string(),
|
|
2535
|
+
}); },
|
|
2536
|
+
'io.flow.fulfillment.v0.models.service_reference': function () { return ({
|
|
2537
|
+
id: factories.string(),
|
|
2538
|
+
}); },
|
|
2539
|
+
'io.flow.fulfillment.v0.models.service_summary': function () { return ({
|
|
2540
|
+
discriminator: 'service_summary',
|
|
2541
|
+
id: factories.string(),
|
|
2542
|
+
carrier: factories['io.flow.fulfillment.v0.models.carrier_reference'](),
|
|
2543
|
+
name: factories.string(),
|
|
2544
|
+
center_code: factories.string(),
|
|
2545
|
+
}); },
|
|
2546
|
+
'io.flow.fulfillment.v0.models.service_unknown': function () { return ({
|
|
2547
|
+
discriminator: 'service_unknown',
|
|
2548
|
+
name: factories.string(),
|
|
2549
|
+
}); },
|
|
2550
|
+
'io.flow.fulfillment.v0.models.shipping_address': function () { return ({
|
|
2551
|
+
contact: factories['io.flow.common.v0.models.contact'](),
|
|
2552
|
+
location: factories['io.flow.common.v0.models.address'](),
|
|
2553
|
+
center_key: factories.string(),
|
|
2554
|
+
center_reference: factories['io.flow.fulfillment.v0.models.center_reference'](),
|
|
2555
|
+
service: factories['io.flow.fulfillment.v0.models.service_summary'](),
|
|
2556
|
+
}); },
|
|
2557
|
+
'io.flow.fulfillment.v0.models.shipping_configuration': function () { return ({
|
|
2558
|
+
id: factories.string(),
|
|
2559
|
+
name: factories.string(),
|
|
2560
|
+
key: factories.string(),
|
|
2561
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
2562
|
+
shipping_lanes: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.shipping_lane'](); }),
|
|
2563
|
+
}); },
|
|
2564
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy': function () { return ({
|
|
2565
|
+
original: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2566
|
+
'new': factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2567
|
+
}); },
|
|
2568
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_copy_form': function () { return ({
|
|
2569
|
+
name: factories.string(),
|
|
2570
|
+
}); },
|
|
2571
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_form': function () { return ({
|
|
2572
|
+
name: factories.string(),
|
|
2573
|
+
}); },
|
|
2574
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_availability': function () { return ({
|
|
2575
|
+
id: factories.string(),
|
|
2576
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
2577
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
2578
|
+
availabilities: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_availability'](); }),
|
|
2579
|
+
}); },
|
|
2580
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_item_shipping_pricing': function () { return ({
|
|
2581
|
+
id: factories.string(),
|
|
2582
|
+
item: factories['io.flow.common.v0.models.item_reference'](),
|
|
2583
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_summary'](),
|
|
2584
|
+
country_shipping_pricings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.country_shipping_pricing'](); }),
|
|
2585
|
+
}); },
|
|
2586
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_reference': function () { return ({
|
|
2587
|
+
key: factories.string(),
|
|
2588
|
+
}); },
|
|
2589
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_summary': function () { return ({
|
|
2590
|
+
id: factories.string(),
|
|
2591
|
+
name: factories.string(),
|
|
2592
|
+
key: factories.string(),
|
|
2593
|
+
type: factories['io.flow.fulfillment.v0.enums.shipping_configuration_type'](),
|
|
2594
|
+
}); },
|
|
2595
|
+
'io.flow.fulfillment.v0.models.shipping_configuration_version': function () { return ({
|
|
2596
|
+
id: factories.string(),
|
|
2597
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2598
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2599
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration'](),
|
|
2600
|
+
}); },
|
|
2601
|
+
'io.flow.fulfillment.v0.models.shipping_lane': function () { return ({
|
|
2602
|
+
id: factories.string(),
|
|
2603
|
+
shipping_configuration: factories['io.flow.fulfillment.v0.models.shipping_configuration_reference'](),
|
|
2604
|
+
region: factories.string(),
|
|
2605
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
2606
|
+
tiers: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier'](); }),
|
|
2607
|
+
query: factories['io.flow.query.builder.v0.models.query'](),
|
|
2608
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
2609
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2610
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
2611
|
+
}); },
|
|
2612
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier': function () { return ({
|
|
2613
|
+
id: factories.string(),
|
|
2614
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_reference'](),
|
|
2615
|
+
}); },
|
|
2616
|
+
'io.flow.fulfillment.v0.models.shipping_lane_default_tier_form': function () { return ({
|
|
2617
|
+
tier_id: factories.string(),
|
|
2618
|
+
}); },
|
|
2619
|
+
'io.flow.fulfillment.v0.models.shipping_lane_form': function () { return ({
|
|
2620
|
+
from: factories.string(),
|
|
2621
|
+
to: factories.string(),
|
|
2622
|
+
strategy: factories['io.flow.fulfillment.v0.enums.lane_strategy'](),
|
|
2623
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2624
|
+
preference: factories['io.flow.fulfillment.v0.enums.lane_preselect_preference'](),
|
|
2625
|
+
}); },
|
|
2626
|
+
'io.flow.fulfillment.v0.models.shipping_lane_summary': function () { return ({
|
|
2627
|
+
shipping_lane_id: factories.string(),
|
|
2628
|
+
region: factories.string(),
|
|
2629
|
+
centers: arrayOf(function () { return factories['io.flow.fulfillment.v0.unions.expandable_center'](); }),
|
|
2630
|
+
}); },
|
|
2631
|
+
'io.flow.fulfillment.v0.models.shipping_lane_version': function () { return ({
|
|
2632
|
+
id: factories.string(),
|
|
2633
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2634
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2635
|
+
shipping_lane: factories['io.flow.fulfillment.v0.models.shipping_lane'](),
|
|
2636
|
+
}); },
|
|
2637
|
+
'io.flow.fulfillment.v0.models.surcharge_responsible_party_display': function () { return ({
|
|
2638
|
+
name: factories.string(),
|
|
2639
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
2640
|
+
}); },
|
|
2641
|
+
'io.flow.fulfillment.v0.models.surcharge_setting': function () { return ({
|
|
2642
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2643
|
+
responsible_party: factories['io.flow.fulfillment.v0.enums.surcharge_responsible_party'](),
|
|
2644
|
+
}); },
|
|
2645
|
+
'io.flow.fulfillment.v0.models.surcharge_setting_display': function () { return ({
|
|
2646
|
+
name: factories.string(),
|
|
2647
|
+
description: factories.string(),
|
|
2648
|
+
key: factories['io.flow.fulfillment.v0.enums.delivery_option_cost_detail_component_key'](),
|
|
2649
|
+
available: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_responsible_party_display'](); }),
|
|
2650
|
+
}); },
|
|
2651
|
+
'io.flow.fulfillment.v0.models.tier': function () { return ({
|
|
2652
|
+
id: factories.string(),
|
|
2653
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2654
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2655
|
+
name: factories.string(),
|
|
2656
|
+
message: factories.string(),
|
|
2657
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule'](); }),
|
|
2658
|
+
services: arrayOf(function () { return factories['io.flow.reference.v0.models.carrier_service'](); }),
|
|
2659
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2660
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2661
|
+
currency: factories.string(),
|
|
2662
|
+
description: factories.string(),
|
|
2663
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
2664
|
+
shipping_lane: factories.string(),
|
|
2665
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
2666
|
+
lane: factories['io.flow.fulfillment.v0.models.shipping_lane_summary'](),
|
|
2667
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2668
|
+
}); },
|
|
2669
|
+
'io.flow.fulfillment.v0.models.tier_display': function () { return ({
|
|
2670
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
2671
|
+
}); },
|
|
2672
|
+
'io.flow.fulfillment.v0.models.tier_display_form': function () { return ({
|
|
2673
|
+
estimate: factories['io.flow.fulfillment.v0.models.tier_estimate'](),
|
|
2674
|
+
}); },
|
|
2675
|
+
'io.flow.fulfillment.v0.models.tier_estimate': function () { return ({
|
|
2676
|
+
type: factories['io.flow.fulfillment.v0.enums.tier_estimate_type'](),
|
|
2677
|
+
label: factories.string(),
|
|
2678
|
+
}); },
|
|
2679
|
+
'io.flow.fulfillment.v0.models.tier_form': function () { return ({
|
|
2680
|
+
currency: factories.string(),
|
|
2681
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2682
|
+
name: factories.string(),
|
|
2683
|
+
message: factories.string(),
|
|
2684
|
+
rules: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.tier_rule_form'](); }),
|
|
2685
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
2686
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2687
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2688
|
+
description: factories.string(),
|
|
2689
|
+
direction: factories['io.flow.fulfillment.v0.enums.lane_direction'](),
|
|
2690
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display_form'](),
|
|
2691
|
+
shipping_lane: factories.string(),
|
|
2692
|
+
surcharge_settings: arrayOf(function () { return factories['io.flow.fulfillment.v0.models.surcharge_setting'](); }),
|
|
2693
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2694
|
+
}); },
|
|
2695
|
+
'io.flow.fulfillment.v0.models.tier_reference': function () { return ({
|
|
2696
|
+
id: factories.string(),
|
|
2697
|
+
}); },
|
|
2698
|
+
'io.flow.fulfillment.v0.models.tier_rule': function () { return ({
|
|
2699
|
+
id: factories.string(),
|
|
2700
|
+
position: factories.long(),
|
|
2701
|
+
query: factories.string(),
|
|
2702
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome'](),
|
|
2703
|
+
}); },
|
|
2704
|
+
'io.flow.fulfillment.v0.models.tier_rule_form': function () { return ({
|
|
2705
|
+
position: factories.long(),
|
|
2706
|
+
query: factories.string(),
|
|
2707
|
+
outcome: factories['io.flow.fulfillment.v0.unions.tier_rule_outcome_form'](),
|
|
2708
|
+
}); },
|
|
2709
|
+
'io.flow.fulfillment.v0.models.tier_rule_version': function () { return ({
|
|
2710
|
+
id: factories.string(),
|
|
2711
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2712
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2713
|
+
tier_rule: factories['io.flow.fulfillment.v0.models.tier_rule'](),
|
|
2714
|
+
}); },
|
|
2715
|
+
'io.flow.fulfillment.v0.models.tier_settings': function () { return ({
|
|
2716
|
+
availability: factories['io.flow.fulfillment.v0.enums.tier_availability'](),
|
|
2717
|
+
}); },
|
|
2718
|
+
'io.flow.fulfillment.v0.models.tier_summary': function () { return ({
|
|
2719
|
+
id: factories.string(),
|
|
2720
|
+
experience: factories['io.flow.fulfillment.v0.models.fulfillment_experience_reference'](),
|
|
2721
|
+
integration: factories['io.flow.fulfillment.v0.enums.shipment_integration_type'](),
|
|
2722
|
+
name: factories.string(),
|
|
2723
|
+
services: arrayOf(function () { return factories.string(); }),
|
|
2724
|
+
strategy: factories['io.flow.fulfillment.v0.enums.tier_strategy'](),
|
|
2725
|
+
visibility: factories['io.flow.common.v0.enums.visibility'](),
|
|
2726
|
+
currency: factories.string(),
|
|
2727
|
+
display: factories['io.flow.fulfillment.v0.models.tier_display'](),
|
|
2728
|
+
message: factories.string(),
|
|
2729
|
+
settings: factories['io.flow.fulfillment.v0.models.tier_settings'](),
|
|
2730
|
+
}); },
|
|
2731
|
+
'io.flow.fulfillment.v0.models.tier_version': function () { return ({
|
|
2732
|
+
id: factories.string(),
|
|
2733
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2734
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
2735
|
+
tier: factories['io.flow.fulfillment.v0.models.tier_summary'](),
|
|
2736
|
+
}); },
|
|
2737
|
+
'io.flow.fulfillment.v0.models.transit_estimate': function () { return ({
|
|
2738
|
+
origin: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2739
|
+
destination: factories['io.flow.fulfillment.v0.enums.delivery_window_location'](),
|
|
2740
|
+
min_date: factories.date_time_iso_8601(),
|
|
2741
|
+
max_date: factories.date_time_iso_8601(),
|
|
2742
|
+
source: factories['io.flow.fulfillment.v0.enums.delivery_window_component_source'](),
|
|
2743
|
+
}); },
|
|
2744
|
+
'io.flow.fulfillment.v0.unions.delivery': function () {
|
|
2745
|
+
var f = faker.helpers.arrayElement([
|
|
2746
|
+
function () { return factories['io.flow.fulfillment.v0.models.digital_delivery'](); },
|
|
2747
|
+
function () { return factories['io.flow.fulfillment.v0.models.physical_delivery'](); },
|
|
2748
|
+
]);
|
|
2749
|
+
return f();
|
|
2750
|
+
},
|
|
2751
|
+
'io.flow.fulfillment.v0.unions.expandable_center': function () {
|
|
2752
|
+
var f = faker.helpers.arrayElement([
|
|
2753
|
+
function () { return factories['io.flow.fulfillment.v0.models.center'](); },
|
|
2754
|
+
function () { return factories['io.flow.fulfillment.v0.models.center_reference'](); },
|
|
2755
|
+
]);
|
|
2756
|
+
return f();
|
|
2757
|
+
},
|
|
2758
|
+
'io.flow.fulfillment.v0.unions.partner_center_fee': function () {
|
|
2759
|
+
var f = faker.helpers.arrayElement([
|
|
2760
|
+
function () { return factories['io.flow.fulfillment.v0.models.commercial_invoice_fee'](); },
|
|
2761
|
+
function () { return factories['io.flow.fulfillment.v0.models.inbound_carton_fee'](); },
|
|
2762
|
+
function () { return factories['io.flow.fulfillment.v0.models.outbound_carton_fee'](); },
|
|
2763
|
+
]);
|
|
2764
|
+
return f();
|
|
2765
|
+
},
|
|
2766
|
+
'io.flow.fulfillment.v0.unions.service_description': function () {
|
|
2767
|
+
var f = faker.helpers.arrayElement([
|
|
2768
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_summary'](); },
|
|
2769
|
+
function () { return factories['io.flow.fulfillment.v0.models.service_unknown'](); },
|
|
2770
|
+
]);
|
|
2771
|
+
return f();
|
|
2772
|
+
},
|
|
2773
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome': function () {
|
|
2774
|
+
var f = faker.helpers.arrayElement([
|
|
2775
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin'](); },
|
|
2776
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
2777
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate'](); },
|
|
2778
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2779
|
+
]);
|
|
2780
|
+
return f();
|
|
2781
|
+
},
|
|
2782
|
+
'io.flow.fulfillment.v0.unions.tier_rule_outcome_form': function () {
|
|
2783
|
+
var f = faker.helpers.arrayElement([
|
|
2784
|
+
function () { return factories['io.flow.fulfillment.v0.models.amount_margin_form'](); },
|
|
2785
|
+
function () { return factories['io.flow.fulfillment.v0.models.flat_rate_form'](); },
|
|
2786
|
+
function () { return factories['io.flow.fulfillment.v0.models.at_cost'](); },
|
|
2787
|
+
function () { return factories['io.flow.fulfillment.v0.models.percent_margin'](); },
|
|
2788
|
+
]);
|
|
2789
|
+
return f();
|
|
2790
|
+
},
|
|
2791
|
+
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
2792
|
+
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
2793
|
+
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
2794
|
+
'io.flow.google.pay.v0.enums.card_network': function () { return faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
2795
|
+
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['CARD']); },
|
|
2796
|
+
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
2797
|
+
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
2798
|
+
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
2799
|
+
name: factories.string(),
|
|
2800
|
+
postalCode: factories.string(),
|
|
2801
|
+
countryCode: factories.string(),
|
|
2802
|
+
phoneNumber: factories.string(),
|
|
2803
|
+
companyName: factories.string(),
|
|
2804
|
+
address1: factories.string(),
|
|
2805
|
+
address2: factories.string(),
|
|
2806
|
+
address3: factories.string(),
|
|
2807
|
+
locality: factories.string(),
|
|
2808
|
+
administrativeArea: factories.string(),
|
|
2809
|
+
sortingCode: factories.string(),
|
|
2810
|
+
}); },
|
|
2811
|
+
'io.flow.google.pay.v0.models.billing_address_parameters': function () { return ({
|
|
2812
|
+
format: factories['io.flow.google.pay.v0.enums.billing_address_format'](),
|
|
2813
|
+
phoneNumberRequired: factories.boolean(),
|
|
2814
|
+
}); },
|
|
2815
|
+
'io.flow.google.pay.v0.models.card_adyen_tokenization_parameters': function () { return ({
|
|
2816
|
+
gateway: factories.string(),
|
|
2817
|
+
gatewayMerchantId: factories.string(),
|
|
2818
|
+
}); },
|
|
2819
|
+
'io.flow.google.pay.v0.models.card_direct_tokenization_parameters': function () { return ({
|
|
2820
|
+
protocolVersion: factories.string(),
|
|
2821
|
+
publicKey: factories.string(),
|
|
2822
|
+
}); },
|
|
2823
|
+
'io.flow.google.pay.v0.models.card_payment_method_data_info': function () { return ({
|
|
2824
|
+
cardDetails: factories.string(),
|
|
2825
|
+
cardNetwork: factories.string(),
|
|
2826
|
+
billingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2827
|
+
}); },
|
|
2828
|
+
'io.flow.google.pay.v0.models.card_payment_method_parameters': function () { return ({
|
|
2829
|
+
allowedAuthMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.auth_method'](); }),
|
|
2830
|
+
allowedCardNetworks: arrayOf(function () { return factories['io.flow.google.pay.v0.enums.card_network'](); }),
|
|
2831
|
+
billingAddressRequired: factories.boolean(),
|
|
2832
|
+
billingAddressParameters: factories['io.flow.google.pay.v0.models.billing_address_parameters'](),
|
|
2833
|
+
}); },
|
|
2834
|
+
'io.flow.google.pay.v0.models.direct_payment_method_token': function () { return ({
|
|
2835
|
+
discriminator: 'direct_payment_method_token',
|
|
2836
|
+
protocolVersion: factories.string(),
|
|
2837
|
+
signature: factories.string(),
|
|
2838
|
+
signedMessage: factories.string(),
|
|
2839
|
+
}); },
|
|
2840
|
+
'io.flow.google.pay.v0.models.encrypted_message': function () { return ({
|
|
832
2841
|
messageExpiration: factories.string(),
|
|
833
2842
|
messageId: factories.string(),
|
|
834
2843
|
paymentMethod: factories['io.flow.google.pay.v0.models.payment_method'](),
|
|
835
2844
|
paymentMethodDetails: factories['io.flow.google.pay.v0.models.payment_method_details'](),
|
|
836
2845
|
}); },
|
|
837
|
-
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
838
|
-
merchantId: factories.string(),
|
|
839
|
-
merchantName: factories.string(),
|
|
840
|
-
authJwt: factories.string(),
|
|
2846
|
+
'io.flow.google.pay.v0.models.merchant_info': function () { return ({
|
|
2847
|
+
merchantId: factories.string(),
|
|
2848
|
+
merchantName: factories.string(),
|
|
2849
|
+
authJwt: factories.string(),
|
|
2850
|
+
}); },
|
|
2851
|
+
'io.flow.google.pay.v0.models.payment_data': function () { return ({
|
|
2852
|
+
apiVersion: factories.integer(),
|
|
2853
|
+
apiVersionMinor: factories.integer(),
|
|
2854
|
+
paymentMethodData: factories['io.flow.google.pay.v0.models.payment_method_data'](),
|
|
2855
|
+
email: factories.string(),
|
|
2856
|
+
shippingAddress: factories['io.flow.google.pay.v0.models.address'](),
|
|
2857
|
+
}); },
|
|
2858
|
+
'io.flow.google.pay.v0.models.payment_data_request': function () { return ({
|
|
2859
|
+
apiVersion: factories.integer(),
|
|
2860
|
+
apiVersionMinor: factories.integer(),
|
|
2861
|
+
merchantInfo: factories['io.flow.google.pay.v0.models.merchant_info'](),
|
|
2862
|
+
allowedPaymentMethods: arrayOf(function () { return factories['io.flow.google.pay.v0.models.payment_method'](); }),
|
|
2863
|
+
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
2864
|
+
emailRequired: factories.boolean(),
|
|
2865
|
+
shippingAddressRequired: factories.boolean(),
|
|
2866
|
+
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
2867
|
+
}); },
|
|
2868
|
+
'io.flow.google.pay.v0.models.payment_method': function () { return ({
|
|
2869
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
2870
|
+
parameters: factories['io.flow.google.pay.v0.models.card_payment_method_parameters'](),
|
|
2871
|
+
tokenizationSpecification: factories['io.flow.google.pay.v0.models.payment_method_tokenization_specification'](),
|
|
2872
|
+
}); },
|
|
2873
|
+
'io.flow.google.pay.v0.models.payment_method_data': function () { return ({
|
|
2874
|
+
type: factories['io.flow.google.pay.v0.enums.payment_method_type'](),
|
|
2875
|
+
description: factories.string(),
|
|
2876
|
+
info: factories['io.flow.google.pay.v0.models.card_payment_method_data_info'](),
|
|
2877
|
+
tokenizationData: factories['io.flow.google.pay.v0.models.payment_method_tokenization_data'](),
|
|
2878
|
+
}); },
|
|
2879
|
+
'io.flow.google.pay.v0.models.payment_method_details': function () { return ({
|
|
2880
|
+
pan: factories.string(),
|
|
2881
|
+
expirationMonth: factories.integer(),
|
|
2882
|
+
expirationYear: factories.integer(),
|
|
2883
|
+
authMethod: factories['io.flow.google.pay.v0.enums.auth_method'](),
|
|
2884
|
+
cryptogram: factories.string(),
|
|
2885
|
+
eciIndicator: factories.string(),
|
|
2886
|
+
}); },
|
|
2887
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_data': function () { return ({
|
|
2888
|
+
type: factories.string(),
|
|
2889
|
+
token: factories.string(),
|
|
2890
|
+
}); },
|
|
2891
|
+
'io.flow.google.pay.v0.models.payment_method_tokenization_specification': function () { return ({
|
|
2892
|
+
type: factories['io.flow.google.pay.v0.enums.tokenization_type'](),
|
|
2893
|
+
parameters: factories.object(),
|
|
2894
|
+
}); },
|
|
2895
|
+
'io.flow.google.pay.v0.models.shipping_address_parameters': function () { return ({
|
|
2896
|
+
allowedCountryCodes: arrayOf(function () { return factories.string(); }),
|
|
2897
|
+
}); },
|
|
2898
|
+
'io.flow.google.pay.v0.models.signed_message': function () { return ({
|
|
2899
|
+
encryptedMessage: factories.string(),
|
|
2900
|
+
ephemeralPublicKey: factories.string(),
|
|
2901
|
+
tag: factories.string(),
|
|
2902
|
+
}); },
|
|
2903
|
+
'io.flow.google.pay.v0.models.stripe_payment_method_token': function () { return ({
|
|
2904
|
+
discriminator: 'stripe_payment_method_token',
|
|
2905
|
+
token: factories['io.flow.stripe.v0.models.token'](),
|
|
2906
|
+
}); },
|
|
2907
|
+
'io.flow.google.pay.v0.models.transaction_info': function () { return ({
|
|
2908
|
+
totalPriceStatus: factories['io.flow.google.pay.v0.enums.total_price_status'](),
|
|
2909
|
+
totalPrice: factories.string(),
|
|
2910
|
+
currencyCode: factories.string(),
|
|
2911
|
+
}); },
|
|
2912
|
+
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
2913
|
+
var f = faker.helpers.arrayElement([
|
|
2914
|
+
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
2915
|
+
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
2916
|
+
]);
|
|
2917
|
+
return f();
|
|
2918
|
+
},
|
|
2919
|
+
'io.flow.harmonization.v0.enums.tax_applicability': function () { return faker.helpers.arrayElement(['none', 'all']); },
|
|
2920
|
+
'io.flow.harmonization.v0.enums.tax_verification_result': function () { return faker.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']); },
|
|
2921
|
+
'io.flow.harmonization.v0.models.detailed_tax_registration': function () { return ({
|
|
2922
|
+
id: factories.string(),
|
|
2923
|
+
key: factories.string(),
|
|
2924
|
+
consumer_company_name: factories.string(),
|
|
2925
|
+
number: factories.string(),
|
|
2926
|
+
country: factories.string(),
|
|
2927
|
+
success: factories.boolean(),
|
|
2928
|
+
timestamp: factories.date_time_iso_8601(),
|
|
2929
|
+
vies_result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2930
|
+
vies_result_reason: factories.string(),
|
|
2931
|
+
vies_company_name: factories.string(),
|
|
2932
|
+
vies_company_address: factories.string(),
|
|
2933
|
+
company_name_match_result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
2934
|
+
company_name_match_result_reason: factories.string(),
|
|
2935
|
+
}); },
|
|
2936
|
+
'io.flow.harmonization.v0.models.harmonization_tariff_code': function () { return ({
|
|
2937
|
+
tariff_code: factories.string(),
|
|
2938
|
+
destination: factories.string(),
|
|
2939
|
+
}); },
|
|
2940
|
+
'io.flow.harmonization.v0.models.harmonized_category_reference': function () { return ({
|
|
2941
|
+
id: factories.string(),
|
|
2942
|
+
}); },
|
|
2943
|
+
'io.flow.harmonization.v0.models.harmonized_item': function () { return ({
|
|
2944
|
+
id: factories.string(),
|
|
2945
|
+
number: factories.string(),
|
|
2946
|
+
name: factories.string(),
|
|
2947
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
2948
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
2949
|
+
description: factories.string(),
|
|
2950
|
+
}); },
|
|
2951
|
+
'io.flow.harmonization.v0.models.harmonized_item_form': function () { return ({
|
|
2952
|
+
name: factories.string(),
|
|
2953
|
+
number: factories.string(),
|
|
2954
|
+
currency: factories.string(),
|
|
2955
|
+
price: factories.double(),
|
|
2956
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
2957
|
+
description: factories.string(),
|
|
2958
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
2959
|
+
}); },
|
|
2960
|
+
'io.flow.harmonization.v0.models.harmonized_item_put_form': function () { return ({
|
|
2961
|
+
name: factories.string(),
|
|
2962
|
+
currency: factories.string(),
|
|
2963
|
+
price: factories.double(),
|
|
2964
|
+
categories: arrayOf(function () { return factories.string(); }),
|
|
2965
|
+
description: factories.string(),
|
|
2966
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
2967
|
+
}); },
|
|
2968
|
+
'io.flow.harmonization.v0.models.harmonized_item_reference': function () { return ({
|
|
2969
|
+
id: factories.string(),
|
|
2970
|
+
number: factories.string(),
|
|
2971
|
+
description: factories.string(),
|
|
2972
|
+
}); },
|
|
2973
|
+
'io.flow.harmonization.v0.models.harmonized_landed_cost': function () { return ({
|
|
2974
|
+
address: factories['io.flow.common.v0.models.address'](),
|
|
2975
|
+
items: arrayOf(function () { return factories['io.flow.harmonization.v0.models.harmonized_landed_cost_item'](); }),
|
|
2976
|
+
tax_registration: factories['io.flow.harmonization.v0.models.tax_registration'](),
|
|
2977
|
+
}); },
|
|
2978
|
+
'io.flow.harmonization.v0.models.harmonized_landed_cost_form': function () { return ({
|
|
2979
|
+
address: factories['io.flow.common.v0.models.address'](),
|
|
2980
|
+
item_numbers: arrayOf(function () { return factories.string(); }),
|
|
2981
|
+
source_address: factories['io.flow.common.v0.models.address'](),
|
|
2982
|
+
order_number: factories.string(),
|
|
2983
|
+
line_items: arrayOf(function () { return factories['io.flow.common.v0.models.line_item'](); }),
|
|
2984
|
+
tax_registration_id: factories.string(),
|
|
2985
|
+
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
2986
|
+
}); },
|
|
2987
|
+
'io.flow.harmonization.v0.models.harmonized_landed_cost_item': function () { return ({
|
|
2988
|
+
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
2989
|
+
duty: factories['io.flow.price.v0.models.duty'](),
|
|
2990
|
+
tax: factories['io.flow.price.v0.models.tax'](),
|
|
2991
|
+
tax_applicability: factories['io.flow.harmonization.v0.enums.tax_applicability'](),
|
|
2992
|
+
origin: factories.string(),
|
|
2993
|
+
hs_code: factories.string(),
|
|
2994
|
+
tariff_code: factories.string(),
|
|
2995
|
+
customs_description: factories.string(),
|
|
2996
|
+
source_address: factories['io.flow.common.v0.models.address'](),
|
|
2997
|
+
}); },
|
|
2998
|
+
'io.flow.harmonization.v0.models.hs10': function () { return ({
|
|
2999
|
+
id: factories.string(),
|
|
3000
|
+
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
3001
|
+
origin: factories.string(),
|
|
3002
|
+
destination: factories.string(),
|
|
3003
|
+
code: factories.string(),
|
|
3004
|
+
}); },
|
|
3005
|
+
'io.flow.harmonization.v0.models.hs10_version': function () { return ({
|
|
3006
|
+
id: factories.string(),
|
|
3007
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3008
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3009
|
+
hs10: factories['io.flow.harmonization.v0.models.hs10'](),
|
|
3010
|
+
}); },
|
|
3011
|
+
'io.flow.harmonization.v0.models.hs6': function () { return ({
|
|
3012
|
+
id: factories.string(),
|
|
3013
|
+
item: factories['io.flow.harmonization.v0.models.harmonized_item_reference'](),
|
|
3014
|
+
code: factories.string(),
|
|
3015
|
+
}); },
|
|
3016
|
+
'io.flow.harmonization.v0.models.lane_landed_cost': function () { return ({
|
|
3017
|
+
origin: factories.string(),
|
|
3018
|
+
destination: factories.string(),
|
|
3019
|
+
tariff_code: factories.string(),
|
|
3020
|
+
effective_duty: factories['io.flow.price.v0.models.duty'](),
|
|
3021
|
+
tax: factories['io.flow.price.v0.models.tax'](),
|
|
3022
|
+
}); },
|
|
3023
|
+
'io.flow.harmonization.v0.models.tariff_codes': function () { return ({
|
|
3024
|
+
item_number: factories.string(),
|
|
3025
|
+
product_id: factories.string(),
|
|
3026
|
+
hs6_code: factories.string(),
|
|
3027
|
+
codes: arrayOf(function () { return factories['io.flow.harmonization.v0.models.harmonization_tariff_code'](); }),
|
|
3028
|
+
}); },
|
|
3029
|
+
'io.flow.harmonization.v0.models.tax_registration': function () { return ({
|
|
3030
|
+
id: factories.string(),
|
|
3031
|
+
key: factories.string(),
|
|
3032
|
+
number: factories.string(),
|
|
3033
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3034
|
+
result: factories['io.flow.harmonization.v0.enums.tax_verification_result'](),
|
|
3035
|
+
result_reason: factories.string(),
|
|
3036
|
+
name: factories.string(),
|
|
3037
|
+
address: factories.string(),
|
|
3038
|
+
company_name: factories.string(),
|
|
3039
|
+
}); },
|
|
3040
|
+
'io.flow.harmonization.v0.models.tax_registration_form': function () { return ({
|
|
3041
|
+
number: factories.string(),
|
|
3042
|
+
company_name: factories.string(),
|
|
3043
|
+
}); },
|
|
3044
|
+
'io.flow.inventory.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
3045
|
+
'io.flow.inventory.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
3046
|
+
'io.flow.inventory.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
3047
|
+
'io.flow.inventory.v0.models.external_api_timeout_reservation_error': function () { return ({
|
|
3048
|
+
code: 'external_api_timeout',
|
|
3049
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
3050
|
+
}); },
|
|
3051
|
+
'io.flow.inventory.v0.models.generic_reservation_error': function () { return ({
|
|
3052
|
+
code: 'generic_reservation_error',
|
|
3053
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
3054
|
+
}); },
|
|
3055
|
+
'io.flow.inventory.v0.models.inventory_backorder': function () { return ({
|
|
3056
|
+
discriminator: 'inventory_backorder',
|
|
3057
|
+
quantity: factories.long(),
|
|
3058
|
+
}); },
|
|
3059
|
+
'io.flow.inventory.v0.models.inventory_center_reference': function () { return ({
|
|
3060
|
+
key: factories.string(),
|
|
3061
|
+
}); },
|
|
3062
|
+
'io.flow.inventory.v0.models.inventory_check_response': function () { return ({
|
|
3063
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_check_response_item'](); }),
|
|
3064
|
+
}); },
|
|
3065
|
+
'io.flow.inventory.v0.models.inventory_check_response_item': function () { return ({
|
|
3066
|
+
number: factories.string(),
|
|
3067
|
+
quantity: factories.long(),
|
|
3068
|
+
inventory_status: factories['io.flow.inventory.v0.enums.inventory_status'](),
|
|
3069
|
+
}); },
|
|
3070
|
+
'io.flow.inventory.v0.models.inventory_experience_reference': function () { return ({
|
|
3071
|
+
key: factories.string(),
|
|
3072
|
+
}); },
|
|
3073
|
+
'io.flow.inventory.v0.models.inventory_follow_ecommerce_platform': function () { return ({
|
|
3074
|
+
discriminator: 'inventory_follow_ecommerce_platform',
|
|
3075
|
+
quantity: factories.long(),
|
|
3076
|
+
}); },
|
|
3077
|
+
'io.flow.inventory.v0.models.inventory_item_reference': function () { return ({
|
|
3078
|
+
number: factories.string(),
|
|
3079
|
+
}); },
|
|
3080
|
+
'io.flow.inventory.v0.models.inventory_request': function () { return ({
|
|
3081
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.inventory_request_item'](); }),
|
|
3082
|
+
}); },
|
|
3083
|
+
'io.flow.inventory.v0.models.inventory_request_item': function () { return ({
|
|
3084
|
+
number: factories.string(),
|
|
3085
|
+
quantity: factories.long(),
|
|
3086
|
+
}); },
|
|
3087
|
+
'io.flow.inventory.v0.models.inventory_rule': function () { return ({
|
|
3088
|
+
id: factories.string(),
|
|
3089
|
+
position: factories.long(),
|
|
3090
|
+
query: factories.string(),
|
|
3091
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
3092
|
+
}); },
|
|
3093
|
+
'io.flow.inventory.v0.models.inventory_rule_form': function () { return ({
|
|
3094
|
+
position: factories.long(),
|
|
3095
|
+
query: factories.string(),
|
|
3096
|
+
strategy: factories['io.flow.inventory.v0.unions.inventory_strategy'](),
|
|
3097
|
+
}); },
|
|
3098
|
+
'io.flow.inventory.v0.models.inventory_rule_version': function () { return ({
|
|
3099
|
+
id: factories.string(),
|
|
3100
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3101
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3102
|
+
inventory_rule: factories['io.flow.inventory.v0.models.inventory_rule'](),
|
|
3103
|
+
}); },
|
|
3104
|
+
'io.flow.inventory.v0.models.inventory_snapshot': function () { return ({
|
|
3105
|
+
id: factories.string(),
|
|
3106
|
+
available: factories.long(),
|
|
3107
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
3108
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
3109
|
+
quantity: factories.long(),
|
|
3110
|
+
}); },
|
|
3111
|
+
'io.flow.inventory.v0.models.inventory_snapshot_version': function () { return ({
|
|
3112
|
+
id: factories.string(),
|
|
3113
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3114
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3115
|
+
inventory_snapshot: factories['io.flow.inventory.v0.models.inventory_snapshot'](),
|
|
3116
|
+
}); },
|
|
3117
|
+
'io.flow.inventory.v0.models.inventory_stock': function () { return ({
|
|
3118
|
+
discriminator: 'inventory_stock',
|
|
3119
|
+
quantity: factories.long(),
|
|
3120
|
+
}); },
|
|
3121
|
+
'io.flow.inventory.v0.models.inventory_unlimited': function () { return ({
|
|
3122
|
+
discriminator: 'inventory_unlimited',
|
|
3123
|
+
placeholder: factories.string(),
|
|
3124
|
+
}); },
|
|
3125
|
+
'io.flow.inventory.v0.models.inventory_update': function () { return ({
|
|
3126
|
+
id: factories.string(),
|
|
3127
|
+
idempotency_key: factories.string(),
|
|
3128
|
+
center: factories['io.flow.inventory.v0.models.inventory_center_reference'](),
|
|
3129
|
+
item: factories['io.flow.inventory.v0.models.inventory_item_reference'](),
|
|
3130
|
+
notes: factories.object(),
|
|
3131
|
+
quantity: factories.long(),
|
|
3132
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
3133
|
+
}); },
|
|
3134
|
+
'io.flow.inventory.v0.models.inventory_update_form': function () { return ({
|
|
3135
|
+
center: factories.string(),
|
|
3136
|
+
idempotency_key: factories.string(),
|
|
3137
|
+
item_number: factories.string(),
|
|
3138
|
+
quantity: factories.long(),
|
|
3139
|
+
type: factories['io.flow.inventory.v0.enums.update_type'](),
|
|
3140
|
+
notes: factories.object(),
|
|
3141
|
+
}); },
|
|
3142
|
+
'io.flow.inventory.v0.models.inventory_update_version': function () { return ({
|
|
3143
|
+
id: factories.string(),
|
|
3144
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3145
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3146
|
+
inventory_update: factories['io.flow.inventory.v0.models.inventory_update'](),
|
|
3147
|
+
}); },
|
|
3148
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error': function () { return ({
|
|
3149
|
+
code: 'no_inventory',
|
|
3150
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
3151
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error_item'](); }),
|
|
3152
|
+
}); },
|
|
3153
|
+
'io.flow.inventory.v0.models.no_inventory_reservation_error_item': function () { return ({
|
|
3154
|
+
number: factories.string(),
|
|
3155
|
+
requested_quantity: factories.long(),
|
|
3156
|
+
available_quantity: factories.long(),
|
|
3157
|
+
}); },
|
|
3158
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response': function () { return ({
|
|
3159
|
+
items: objectOf(function () { return factories['io.flow.inventory.v0.models.pfs_inventory_check_response_item'](); }),
|
|
3160
|
+
}); },
|
|
3161
|
+
'io.flow.inventory.v0.models.pfs_inventory_check_response_item': function () { return ({
|
|
3162
|
+
number: factories.string(),
|
|
3163
|
+
ats: factories.long(),
|
|
3164
|
+
in_stock: factories.boolean(),
|
|
3165
|
+
}); },
|
|
3166
|
+
'io.flow.inventory.v0.models.pfs_inventory_status': function () { return ({
|
|
3167
|
+
status: factories.string(),
|
|
3168
|
+
}); },
|
|
3169
|
+
'io.flow.inventory.v0.models.reservation': function () { return ({
|
|
3170
|
+
id: factories.string(),
|
|
3171
|
+
key: factories.string(),
|
|
3172
|
+
order: factories['io.flow.inventory.v0.models.reservation_order_reference'](),
|
|
3173
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item'](); }),
|
|
3174
|
+
reserved_until: factories.date_time_iso_8601(),
|
|
3175
|
+
}); },
|
|
3176
|
+
'io.flow.inventory.v0.models.reservation_form': function () { return ({
|
|
3177
|
+
order_number: factories.string(),
|
|
3178
|
+
items: arrayOf(function () { return factories['io.flow.inventory.v0.models.reservation_item_form'](); }),
|
|
3179
|
+
}); },
|
|
3180
|
+
'io.flow.inventory.v0.models.reservation_item': function () { return ({
|
|
3181
|
+
item: factories['io.flow.inventory.v0.models.reservation_item_reference'](),
|
|
3182
|
+
quantity: factories.long(),
|
|
3183
|
+
}); },
|
|
3184
|
+
'io.flow.inventory.v0.models.reservation_item_form': function () { return ({
|
|
3185
|
+
item_number: factories.string(),
|
|
3186
|
+
quantity: factories.long(),
|
|
3187
|
+
}); },
|
|
3188
|
+
'io.flow.inventory.v0.models.reservation_item_reference': function () { return ({
|
|
3189
|
+
number: factories.string(),
|
|
3190
|
+
}); },
|
|
3191
|
+
'io.flow.inventory.v0.models.reservation_order_reference': function () { return ({
|
|
3192
|
+
number: factories.string(),
|
|
3193
|
+
}); },
|
|
3194
|
+
'io.flow.inventory.v0.unions.inventory_strategy': function () {
|
|
3195
|
+
var f = faker.helpers.arrayElement([
|
|
3196
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_backorder'](); },
|
|
3197
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_stock'](); },
|
|
3198
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_unlimited'](); },
|
|
3199
|
+
function () { return factories['io.flow.inventory.v0.models.inventory_follow_ecommerce_platform'](); },
|
|
3200
|
+
]);
|
|
3201
|
+
return f();
|
|
3202
|
+
},
|
|
3203
|
+
'io.flow.inventory.v0.unions.reservation_error': function () {
|
|
3204
|
+
var f = faker.helpers.arrayElement([
|
|
3205
|
+
function () { return factories['io.flow.inventory.v0.models.no_inventory_reservation_error'](); },
|
|
3206
|
+
function () { return factories['io.flow.inventory.v0.models.external_api_timeout_reservation_error'](); },
|
|
3207
|
+
function () { return factories['io.flow.inventory.v0.models.generic_reservation_error'](); },
|
|
3208
|
+
]);
|
|
3209
|
+
return f();
|
|
3210
|
+
},
|
|
3211
|
+
'io.flow.item.v0.models.local_item': function () { return ({
|
|
3212
|
+
id: factories.string(),
|
|
3213
|
+
experience: factories['io.flow.common.v0.models.experience_summary'](),
|
|
3214
|
+
center: factories['io.flow.fulfillment.v0.models.center_summary'](),
|
|
3215
|
+
item: factories['io.flow.common.v0.models.catalog_item_reference'](),
|
|
3216
|
+
pricing: factories['io.flow.item.v0.models.local_item_pricing'](),
|
|
3217
|
+
status: factories['io.flow.catalog.v0.enums.subcatalog_item_status'](),
|
|
3218
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3219
|
+
}); },
|
|
3220
|
+
'io.flow.item.v0.models.local_item_attribute_pricing': function () { return ({
|
|
3221
|
+
pretax_price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3222
|
+
vat: factories['io.flow.catalog.v0.models.localized_item_vat'](),
|
|
3223
|
+
duty: factories['io.flow.catalog.v0.models.localized_item_duty'](),
|
|
3224
|
+
price: factories['io.flow.catalog.v0.models.localized_item_price'](),
|
|
3225
|
+
}); },
|
|
3226
|
+
'io.flow.item.v0.models.local_item_pricing': function () { return ({
|
|
3227
|
+
price: factories['io.flow.catalog.v0.models.localized_item_price'](),
|
|
3228
|
+
vat: factories['io.flow.catalog.v0.models.localized_item_vat'](),
|
|
3229
|
+
duty: factories['io.flow.catalog.v0.models.localized_item_duty'](),
|
|
3230
|
+
shipping: factories['io.flow.common.v0.models.price'](),
|
|
3231
|
+
attributes: objectOf(function () { return factories['io.flow.common.v0.models.price_with_base'](); }),
|
|
3232
|
+
price_attributes: objectOf(function () { return factories['io.flow.item.v0.models.local_item_attribute_pricing'](); }),
|
|
3233
|
+
}); },
|
|
3234
|
+
'io.flow.merchant.of.record.v0.enums.economic_title_location': function () { return faker.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
3235
|
+
'io.flow.merchant.of.record.v0.enums.flow_entity': function () { return faker.helpers.arrayElement([
|
|
3236
|
+
'flow-usa',
|
|
3237
|
+
'flow-irl',
|
|
3238
|
+
'flow-can',
|
|
3239
|
+
'ge-usa',
|
|
3240
|
+
'ge-can',
|
|
3241
|
+
'ge-can-ship',
|
|
3242
|
+
'ge-gbr',
|
|
3243
|
+
'ge-irl',
|
|
3244
|
+
]); },
|
|
3245
|
+
'io.flow.order.price.v0.enums.order_price_coefficient_type': function () { return faker.helpers.arrayElement(['item_shipping']); },
|
|
3246
|
+
'io.flow.order.price.v0.enums.order_price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
3247
|
+
'adjustment',
|
|
3248
|
+
'vat_deminimis',
|
|
3249
|
+
'duty_deminimis',
|
|
3250
|
+
'duties_item_price',
|
|
3251
|
+
'duties_freight',
|
|
3252
|
+
'duties_insurance',
|
|
3253
|
+
'vat_item_price',
|
|
3254
|
+
'vat_freight',
|
|
3255
|
+
'vat_insurance',
|
|
3256
|
+
'vat_duties_item_price',
|
|
3257
|
+
'vat_duties_freight',
|
|
3258
|
+
'vat_duties_insurance',
|
|
3259
|
+
'item_price',
|
|
3260
|
+
'item_discount',
|
|
3261
|
+
'rounding',
|
|
3262
|
+
'insurance',
|
|
3263
|
+
'shipping',
|
|
3264
|
+
'shipping_discount',
|
|
3265
|
+
'order_discount',
|
|
3266
|
+
'subtotal_percent_sales_margin',
|
|
3267
|
+
'subtotal_vat_percent_sales_margin',
|
|
3268
|
+
'subtotal_duty_percent_sales_margin',
|
|
3269
|
+
'vat_subsidy',
|
|
3270
|
+
'duty_subsidy',
|
|
3271
|
+
'remote_area_surcharge',
|
|
3272
|
+
'fuel_surcharge',
|
|
3273
|
+
'emergency_situation_surcharge',
|
|
3274
|
+
'peak_surcharge',
|
|
3275
|
+
'duties_taxes_paid_surcharge',
|
|
3276
|
+
'tip',
|
|
3277
|
+
]); },
|
|
3278
|
+
'io.flow.order.price.v0.enums.order_price_detail_key': function () { return faker.helpers.arrayElement([
|
|
3279
|
+
'adjustment',
|
|
3280
|
+
'subtotal',
|
|
3281
|
+
'vat',
|
|
3282
|
+
'duty',
|
|
3283
|
+
'shipping',
|
|
3284
|
+
'insurance',
|
|
3285
|
+
'discount',
|
|
3286
|
+
'surcharges',
|
|
3287
|
+
'tip',
|
|
3288
|
+
]); },
|
|
3289
|
+
'io.flow.order.price.v0.enums.order_price_fee_type': function () { return faker.helpers.arrayElement(['service', 'fx', 'tax', 'duties', 'tax_and_duties', 'product', 'mor_tax']); },
|
|
3290
|
+
'io.flow.order.price.v0.enums.order_price_subsidy_type': function () { return faker.helpers.arrayElement(['shipping_subsidy']); },
|
|
3291
|
+
'io.flow.order.price.v0.models.order_price_coefficient': function () { return ({
|
|
3292
|
+
type: factories['io.flow.order.price.v0.enums.order_price_coefficient_type'](),
|
|
3293
|
+
value: factories.decimal(),
|
|
3294
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3295
|
+
}); },
|
|
3296
|
+
'io.flow.order.price.v0.models.order_price_detail': function () { return ({
|
|
3297
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_key'](),
|
|
3298
|
+
currency: factories.string(),
|
|
3299
|
+
amount: factories.decimal(),
|
|
3300
|
+
label: factories.string(),
|
|
3301
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
3302
|
+
components: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_detail_component'](); }),
|
|
3303
|
+
name: factories.string(),
|
|
3304
|
+
rate: factories.decimal(),
|
|
3305
|
+
accuracy: factories['io.flow.price.v0.enums.price_accuracy'](),
|
|
3306
|
+
rate_label: factories.string(),
|
|
3307
|
+
breakdown: factories['io.flow.order.price.v0.models.order_price_detail_breakdown'](),
|
|
3308
|
+
}); },
|
|
3309
|
+
'io.flow.order.price.v0.models.order_price_detail_breakdown': function () { return ({
|
|
3310
|
+
purchase_price: factories['io.flow.order.price.v0.models.purchase_price_breakdown'](),
|
|
3311
|
+
fees: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_fee'](); }),
|
|
3312
|
+
}); },
|
|
3313
|
+
'io.flow.order.price.v0.models.order_price_detail_component': function () { return ({
|
|
3314
|
+
key: factories['io.flow.order.price.v0.enums.order_price_detail_component_key'](),
|
|
3315
|
+
currency: factories.string(),
|
|
3316
|
+
amount: factories.decimal(),
|
|
3317
|
+
label: factories.string(),
|
|
3318
|
+
base: factories['io.flow.common.v0.models.price'](),
|
|
3319
|
+
name: factories.string(),
|
|
3320
|
+
}); },
|
|
3321
|
+
'io.flow.order.price.v0.models.order_price_fee': function () { return ({
|
|
3322
|
+
key: factories.string(),
|
|
3323
|
+
value: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3324
|
+
type: factories['io.flow.order.price.v0.enums.order_price_fee_type'](),
|
|
3325
|
+
}); },
|
|
3326
|
+
'io.flow.order.price.v0.models.order_price_subsidy': function () { return ({
|
|
3327
|
+
type: factories['io.flow.order.price.v0.enums.order_price_subsidy_type'](),
|
|
3328
|
+
price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3329
|
+
}); },
|
|
3330
|
+
'io.flow.order.price.v0.models.purchase_price_breakdown': function () { return ({
|
|
3331
|
+
total_price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3332
|
+
product_price: factories['io.flow.common.v0.models.price_with_base'](),
|
|
3333
|
+
fees: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_fee'](); }),
|
|
3334
|
+
coefficients: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_coefficient'](); }),
|
|
3335
|
+
subsidies: arrayOf(function () { return factories['io.flow.order.price.v0.models.order_price_subsidy'](); }),
|
|
3336
|
+
}); },
|
|
3337
|
+
'io.flow.payment.v0.enums.address_verification_result_field_code': function () { return faker.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
3338
|
+
'io.flow.payment.v0.enums.authorization_decline_code': function () { return faker.helpers.arrayElement([
|
|
3339
|
+
'expired',
|
|
3340
|
+
'invalid_name',
|
|
3341
|
+
'invalid_number',
|
|
3342
|
+
'invalid_expiration',
|
|
3343
|
+
'invalid_address',
|
|
3344
|
+
'invalid_token_type',
|
|
3345
|
+
'invalid_token',
|
|
3346
|
+
'no_account',
|
|
3347
|
+
'avs',
|
|
3348
|
+
'cvv',
|
|
3349
|
+
'fraud',
|
|
3350
|
+
'duplicate',
|
|
3351
|
+
'not_supported',
|
|
3352
|
+
'unknown',
|
|
3353
|
+
'online_payment_error',
|
|
3354
|
+
]); },
|
|
3355
|
+
'io.flow.payment.v0.enums.authorization_option': function () { return faker.helpers.arrayElement(['store_card']); },
|
|
3356
|
+
'io.flow.payment.v0.enums.authorization_result_action_type': function () { return faker.helpers.arrayElement(['native', 'redirect', 'wait']); },
|
|
3357
|
+
'io.flow.payment.v0.enums.authorization_status': function () { return faker.helpers.arrayElement([
|
|
3358
|
+
'initiated',
|
|
3359
|
+
'pending',
|
|
3360
|
+
'expired',
|
|
3361
|
+
'authorized',
|
|
3362
|
+
'review',
|
|
3363
|
+
'declined',
|
|
3364
|
+
'reversed',
|
|
3365
|
+
]); },
|
|
3366
|
+
'io.flow.payment.v0.enums.avs_code': function () { return faker.helpers.arrayElement(['match', 'partial', 'unsupported', 'no_match']); },
|
|
3367
|
+
'io.flow.payment.v0.enums.capture_decline_code': function () { return faker.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
3368
|
+
'io.flow.payment.v0.enums.capture_status': function () { return faker.helpers.arrayElement(['initiated', 'pending', 'succeeded', 'failed', 'canceled']); },
|
|
3369
|
+
'io.flow.payment.v0.enums.card_error_code': function () { return faker.helpers.arrayElement([
|
|
3370
|
+
'invalid_address',
|
|
3371
|
+
'invalid_currency',
|
|
3372
|
+
'invalid_name',
|
|
3373
|
+
'invalid_number',
|
|
3374
|
+
'invalid_expiration',
|
|
3375
|
+
'invalid_token_type',
|
|
3376
|
+
'avs',
|
|
3377
|
+
'cvv',
|
|
3378
|
+
'fraud',
|
|
3379
|
+
'unknown',
|
|
3380
|
+
]); },
|
|
3381
|
+
'io.flow.payment.v0.enums.card_type': function () { return faker.helpers.arrayElement([
|
|
3382
|
+
'american_express',
|
|
3383
|
+
'cartes_bancaires',
|
|
3384
|
+
'china_union_pay',
|
|
3385
|
+
'dankort',
|
|
3386
|
+
'diners_club',
|
|
3387
|
+
'discover',
|
|
3388
|
+
'jcb',
|
|
3389
|
+
'maestro',
|
|
3390
|
+
'mastercard',
|
|
3391
|
+
'visa',
|
|
3392
|
+
]); },
|
|
3393
|
+
'io.flow.payment.v0.enums.cvv_code': function () { return faker.helpers.arrayElement(['match', 'suspicious', 'unsupported', 'no_match']); },
|
|
3394
|
+
'io.flow.payment.v0.enums.cvv_result_code': function () { return faker.helpers.arrayElement(['matched', 'not_available', 'not_checked', 'not_matched']); },
|
|
3395
|
+
'io.flow.payment.v0.enums.payment_error_code': function () { return faker.helpers.arrayElement([
|
|
3396
|
+
'duplicate',
|
|
3397
|
+
'invalid_amount',
|
|
3398
|
+
'invalid_currency',
|
|
3399
|
+
'invalid_method',
|
|
3400
|
+
'invalid_order',
|
|
3401
|
+
'invalid_customer',
|
|
3402
|
+
'invalid_destination',
|
|
3403
|
+
'unknown',
|
|
3404
|
+
]); },
|
|
3405
|
+
'io.flow.payment.v0.enums.payment_fee_type': function () { return faker.helpers.arrayElement(['fx', 'mor', 'sp', 'mor_tax']); },
|
|
3406
|
+
'io.flow.payment.v0.enums.payment_source_confirmation_action_type': function () { return faker.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
3407
|
+
'io.flow.payment.v0.enums.refund_decline_code': function () { return faker.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
3408
|
+
'io.flow.payment.v0.enums.refund_failure_category': function () { return faker.helpers.arrayElement([
|
|
3409
|
+
'amount_too_high',
|
|
3410
|
+
'amount_too_low',
|
|
3411
|
+
'not_enough_balance',
|
|
3412
|
+
'insufficient_funds',
|
|
3413
|
+
'refund_period_expired',
|
|
3414
|
+
'dispute',
|
|
3415
|
+
'not_captured',
|
|
3416
|
+
'unsupported_payment_method',
|
|
3417
|
+
'unsupported_partial_refund',
|
|
3418
|
+
'invalid_currency',
|
|
3419
|
+
'card_no_longer_valid',
|
|
3420
|
+
'general',
|
|
3421
|
+
]); },
|
|
3422
|
+
'io.flow.payment.v0.enums.refund_status': function () { return faker.helpers.arrayElement(['pending', 'succeeded', 'failed', 'canceled']); },
|
|
3423
|
+
'io.flow.payment.v0.enums.reversal_error_code': function () { return faker.helpers.arrayElement([
|
|
3424
|
+
'amount_exceeds_balance',
|
|
3425
|
+
'authorization_declined',
|
|
3426
|
+
'authorization_expired',
|
|
3427
|
+
'invalid_authorization',
|
|
3428
|
+
'invalid_key',
|
|
3429
|
+
'invalid_amount',
|
|
3430
|
+
'invalid_currency',
|
|
3431
|
+
'no_remaining_balance',
|
|
3432
|
+
'partial_reversal_not_supported',
|
|
3433
|
+
'unknown',
|
|
3434
|
+
]); },
|
|
3435
|
+
'io.flow.payment.v0.enums.reversal_status': function () { return faker.helpers.arrayElement(['pending', 'processed', 'failed']); },
|
|
3436
|
+
'io.flow.payment.v0.enums.stored_method_usage_step': function () { return faker.helpers.arrayElement(['initial', 'subsequent']); },
|
|
3437
|
+
'io.flow.payment.v0.enums.three_d_secure_code': function () { return faker.helpers.arrayElement(['verified', 'not_verified', 'failed']); },
|
|
3438
|
+
'io.flow.payment.v0.enums.threeds_two_challenge_viewport': function () { return faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen']); },
|
|
3439
|
+
'io.flow.payment.v0.enums.token_type': function () { return faker.helpers.arrayElement(['permanent', 'one_time']); },
|
|
3440
|
+
'io.flow.payment.v0.enums.transfer_status': function () { return faker.helpers.arrayElement(['succeeded', 'canceled']); },
|
|
3441
|
+
'io.flow.payment.v0.enums.transfer_type': function () { return faker.helpers.arrayElement([
|
|
3442
|
+
'payout_to_merchant',
|
|
3443
|
+
'disputed_amount_to_merchant',
|
|
3444
|
+
'duties_and_taxes_adjustment_to_merchant',
|
|
3445
|
+
'disputed_amount_from_merchant',
|
|
3446
|
+
'duties_and_taxes_adjustment_from_merchant',
|
|
3447
|
+
'refund_from_merchant',
|
|
3448
|
+
]); },
|
|
3449
|
+
'io.flow.payment.v0.models.ach_authorization_form': function () { return ({
|
|
3450
|
+
discriminator: 'ach_authorization_form',
|
|
3451
|
+
account_owner_name: factories.string(),
|
|
3452
|
+
account_number: factories.string(),
|
|
3453
|
+
routing_number: factories.string(),
|
|
3454
|
+
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3455
|
+
order_number: factories.string(),
|
|
3456
|
+
amount: factories.decimal(),
|
|
3457
|
+
currency: factories.string(),
|
|
3458
|
+
key: factories.string(),
|
|
3459
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3460
|
+
ip: factories.string(),
|
|
3461
|
+
}); },
|
|
3462
|
+
'io.flow.payment.v0.models.address_verification_result': function () { return ({
|
|
3463
|
+
street_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3464
|
+
postal_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3465
|
+
name_code: factories['io.flow.payment.v0.enums.address_verification_result_field_code'](),
|
|
3466
|
+
raw: factories.string(),
|
|
3467
|
+
}); },
|
|
3468
|
+
'io.flow.payment.v0.models.adyen_challenge_shopper_data': function () { return ({
|
|
3469
|
+
discriminator: 'adyen_challenge_shopper_data',
|
|
3470
|
+
challenge_token: factories.string(),
|
|
3471
|
+
}); },
|
|
3472
|
+
'io.flow.payment.v0.models.adyen_identify_shopper_data': function () { return ({
|
|
3473
|
+
discriminator: 'adyen_identify_shopper_data',
|
|
3474
|
+
fingerprint_token: factories.string(),
|
|
3475
|
+
}); },
|
|
3476
|
+
'io.flow.payment.v0.models.adyen_native_action_details': function () { return ({
|
|
3477
|
+
discriminator: 'adyen_native_action_details',
|
|
3478
|
+
origin_key: factories.string(),
|
|
3479
|
+
data: factories['io.flow.payment.v0.unions.adyen_native_data'](),
|
|
3480
|
+
}); },
|
|
3481
|
+
'io.flow.payment.v0.models.apple_pay_merchant_validation_payload': function () { return ({
|
|
3482
|
+
discriminator: 'apple_pay_merchant_validation_payload',
|
|
3483
|
+
validation_url: factories.string(),
|
|
3484
|
+
display_name: factories.string(),
|
|
3485
|
+
}); },
|
|
3486
|
+
'io.flow.payment.v0.models.applepay_sdk_create_result_action_details': function () { return ({
|
|
3487
|
+
discriminator: 'applepay_sdk_create_result_action_details',
|
|
3488
|
+
merchant_identifier: factories.string(),
|
|
3489
|
+
payment_data_request: factories.object(),
|
|
3490
|
+
}); },
|
|
3491
|
+
'io.flow.payment.v0.models.applepay_sdk_validate_result_action_details': function () { return ({
|
|
3492
|
+
discriminator: 'applepay_sdk_validate_result_action_details',
|
|
3493
|
+
payment_session: factories.object(),
|
|
3494
|
+
}); },
|
|
3495
|
+
'io.flow.payment.v0.models.authorization_code': function () { return ({
|
|
3496
|
+
result_code: factories.string(),
|
|
3497
|
+
code: factories.string(),
|
|
3498
|
+
}); },
|
|
3499
|
+
'io.flow.payment.v0.models.authorization_copy_form': function () { return ({
|
|
3500
|
+
discriminator: 'authorization_copy_form',
|
|
3501
|
+
source_authorization_key: factories.string(),
|
|
3502
|
+
amount: factories.decimal(),
|
|
3503
|
+
currency: factories.string(),
|
|
3504
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3505
|
+
}); },
|
|
3506
|
+
'io.flow.payment.v0.models.authorization_error': function () { return ({
|
|
3507
|
+
code: factories['io.flow.payment.v0.enums.authorization_decline_code'](),
|
|
3508
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
3509
|
+
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3510
|
+
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3511
|
+
}); },
|
|
3512
|
+
'io.flow.payment.v0.models.authorization_order_reference': function () { return ({
|
|
3513
|
+
discriminator: 'flow_order',
|
|
3514
|
+
number: factories.string(),
|
|
3515
|
+
}); },
|
|
3516
|
+
'io.flow.payment.v0.models.authorization_payload': function () { return ({
|
|
3517
|
+
parameters: factories['io.flow.payment.v0.unions.authorization_payload_parameters'](),
|
|
3518
|
+
}); },
|
|
3519
|
+
'io.flow.payment.v0.models.authorization_reference': function () { return ({
|
|
3520
|
+
id: factories.string(),
|
|
3521
|
+
key: factories.string(),
|
|
3522
|
+
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3523
|
+
}); },
|
|
3524
|
+
'io.flow.payment.v0.models.authorization_result': function () { return ({
|
|
3525
|
+
status: factories['io.flow.payment.v0.enums.authorization_status'](),
|
|
3526
|
+
action: factories['io.flow.payment.v0.unions.authorization_result_action'](),
|
|
3527
|
+
decline_code: factories['io.flow.payment.v0.enums.authorization_decline_code'](),
|
|
3528
|
+
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3529
|
+
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3530
|
+
three_d_secure: factories['io.flow.payment.v0.models.three_d_secure'](),
|
|
3531
|
+
description: factories['io.flow.payment.v0.models.authorization_result_description'](),
|
|
3532
|
+
authorization_code: factories['io.flow.payment.v0.models.authorization_code'](),
|
|
3533
|
+
}); },
|
|
3534
|
+
'io.flow.payment.v0.models.authorization_result_action_get': function () { return ({
|
|
3535
|
+
discriminator: 'authorization_result_action_get',
|
|
3536
|
+
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3537
|
+
url: factories.string(),
|
|
3538
|
+
details: factories['io.flow.payment.v0.unions.authorization_result_action_details'](),
|
|
3539
|
+
}); },
|
|
3540
|
+
'io.flow.payment.v0.models.authorization_result_action_native': function () { return ({
|
|
3541
|
+
discriminator: 'authorization_result_action_native',
|
|
3542
|
+
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3543
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
3544
|
+
details: factories['io.flow.payment.v0.unions.authorization_result_action_details'](),
|
|
3545
|
+
}); },
|
|
3546
|
+
'io.flow.payment.v0.models.authorization_result_action_post': function () { return ({
|
|
3547
|
+
discriminator: 'authorization_result_action_post',
|
|
3548
|
+
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3549
|
+
url: factories.string(),
|
|
3550
|
+
parameters: factories.object(),
|
|
3551
|
+
}); },
|
|
3552
|
+
'io.flow.payment.v0.models.authorization_result_action_wait': function () { return ({
|
|
3553
|
+
discriminator: 'authorization_result_action_wait',
|
|
3554
|
+
type: factories['io.flow.payment.v0.enums.authorization_result_action_type'](),
|
|
3555
|
+
}); },
|
|
3556
|
+
'io.flow.payment.v0.models.authorization_result_description': function () { return ({
|
|
3557
|
+
display: factories.string(),
|
|
3558
|
+
}); },
|
|
3559
|
+
'io.flow.payment.v0.models.authorization_retry': function () { return ({
|
|
3560
|
+
id: factories.string(),
|
|
3561
|
+
authorization_request_id: factories.string(),
|
|
3562
|
+
authorization_id: factories.string(),
|
|
3563
|
+
organization_id: factories.string(),
|
|
3564
|
+
attempt: factories.integer(),
|
|
3565
|
+
last_failure_code: factories.string(),
|
|
3566
|
+
created_at: factories.date_time_iso_8601(),
|
|
3567
|
+
updated_at: factories.date_time_iso_8601(),
|
|
3568
|
+
}); },
|
|
3569
|
+
'io.flow.payment.v0.models.authorization_version': function () { return ({
|
|
3570
|
+
id: factories.string(),
|
|
3571
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3572
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3573
|
+
authorization: factories['io.flow.payment.v0.unions.authorization'](),
|
|
3574
|
+
}); },
|
|
3575
|
+
'io.flow.payment.v0.models.avs': function () { return ({
|
|
3576
|
+
code: factories['io.flow.payment.v0.enums.avs_code'](),
|
|
3577
|
+
name: factories.boolean(),
|
|
3578
|
+
address: factories.boolean(),
|
|
3579
|
+
postal: factories.boolean(),
|
|
3580
|
+
description: factories.string(),
|
|
3581
|
+
}); },
|
|
3582
|
+
'io.flow.payment.v0.models.browser_info': function () { return ({
|
|
3583
|
+
origin: factories.string(),
|
|
3584
|
+
language: factories.string(),
|
|
3585
|
+
java_enabled: factories.boolean(),
|
|
3586
|
+
color_depth: factories.integer(),
|
|
3587
|
+
screen_height: factories.integer(),
|
|
3588
|
+
screen_width: factories.integer(),
|
|
3589
|
+
time_zone_offset: factories.integer(),
|
|
3590
|
+
user_agent: factories.string(),
|
|
3591
|
+
accept: factories.string(),
|
|
3592
|
+
}); },
|
|
3593
|
+
'io.flow.payment.v0.models.browser_inline_action_configuration': function () { return ({
|
|
3594
|
+
discriminator: 'browser_inline_action_configuration',
|
|
3595
|
+
inline_notification_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3596
|
+
action_configuration: factories['io.flow.payment.v0.unions.browser_action_configuration'](),
|
|
3597
|
+
}); },
|
|
3598
|
+
'io.flow.payment.v0.models.capture': function () { return ({
|
|
3599
|
+
id: factories.string(),
|
|
3600
|
+
key: factories.string(),
|
|
3601
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
3602
|
+
amount: factories.decimal(),
|
|
3603
|
+
currency: factories.string(),
|
|
3604
|
+
requested: factories['io.flow.common.v0.models.money'](),
|
|
3605
|
+
created_at: factories.date_time_iso_8601(),
|
|
3606
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3607
|
+
status: factories['io.flow.payment.v0.enums.capture_status'](),
|
|
3608
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
3609
|
+
fees: arrayOf(function () { return factories['io.flow.payment.v0.models.payment_fee'](); }),
|
|
3610
|
+
}); },
|
|
3611
|
+
'io.flow.payment.v0.models.capture_error': function () { return ({
|
|
3612
|
+
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
3613
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
3614
|
+
decline_code: factories['io.flow.payment.v0.enums.capture_decline_code'](),
|
|
3615
|
+
}); },
|
|
3616
|
+
'io.flow.payment.v0.models.capture_form': function () { return ({
|
|
3617
|
+
authorization_id: factories.string(),
|
|
3618
|
+
key: factories.string(),
|
|
3619
|
+
amount: factories.decimal(),
|
|
3620
|
+
currency: factories.string(),
|
|
3621
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3622
|
+
}); },
|
|
3623
|
+
'io.flow.payment.v0.models.capture_identifier': function () { return ({
|
|
3624
|
+
id: factories.string(),
|
|
3625
|
+
capture: factories['io.flow.payment.v0.models.capture_reference'](),
|
|
3626
|
+
name: factories.string(),
|
|
3627
|
+
identifier: factories.string(),
|
|
3628
|
+
primary: factories.boolean(),
|
|
3629
|
+
}); },
|
|
3630
|
+
'io.flow.payment.v0.models.capture_reference': function () { return ({
|
|
3631
|
+
discriminator: 'capture_reference',
|
|
3632
|
+
id: factories.string(),
|
|
3633
|
+
key: factories.string(),
|
|
3634
|
+
}); },
|
|
3635
|
+
'io.flow.payment.v0.models.capture_version': function () { return ({
|
|
3636
|
+
id: factories.string(),
|
|
3637
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3638
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3639
|
+
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
3640
|
+
}); },
|
|
3641
|
+
'io.flow.payment.v0.models.card': function () { return ({
|
|
3642
|
+
discriminator: 'card',
|
|
3643
|
+
id: factories.string(),
|
|
3644
|
+
token: factories.string(),
|
|
3645
|
+
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3646
|
+
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3647
|
+
iin: factories.string(),
|
|
3648
|
+
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3649
|
+
last4: factories.string(),
|
|
3650
|
+
name: factories.string(),
|
|
3651
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3652
|
+
}); },
|
|
3653
|
+
'io.flow.payment.v0.models.card_authorization': function () { return ({
|
|
3654
|
+
discriminator: 'card_authorization',
|
|
3655
|
+
id: factories.string(),
|
|
3656
|
+
key: factories.string(),
|
|
3657
|
+
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
3658
|
+
method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
3659
|
+
card: factories['io.flow.payment.v0.unions.expandable_card'](),
|
|
3660
|
+
amount: factories.decimal(),
|
|
3661
|
+
currency: factories.string(),
|
|
3662
|
+
requested: factories['io.flow.common.v0.models.money'](),
|
|
3663
|
+
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3664
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3665
|
+
destination: factories['io.flow.common.v0.models.address'](),
|
|
3666
|
+
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3667
|
+
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3668
|
+
payment_order_reference: factories['io.flow.payment.v0.unions.payment_order_reference'](),
|
|
3669
|
+
ip: factories.string(),
|
|
3670
|
+
result: factories['io.flow.payment.v0.models.authorization_result'](),
|
|
3671
|
+
created_at: factories.date_time_iso_8601(),
|
|
3672
|
+
expires_at: factories.date_time_iso_8601(),
|
|
3673
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
3674
|
+
processor: factories['io.flow.payment.v0.unions.expandable_payment_processor'](),
|
|
3675
|
+
stored_method_usage_step: factories['io.flow.payment.v0.enums.stored_method_usage_step'](),
|
|
3676
|
+
authorized_at: factories.date_time_iso_8601(),
|
|
3677
|
+
authorization_request_id: factories.string(),
|
|
3678
|
+
}); },
|
|
3679
|
+
'io.flow.payment.v0.models.card_browser_action_configuration': function () { return ({
|
|
3680
|
+
discriminator: 'card_browser_action_configuration',
|
|
3681
|
+
viewport: factories['io.flow.payment.v0.enums.threeds_two_challenge_viewport'](),
|
|
3682
|
+
}); },
|
|
3683
|
+
'io.flow.payment.v0.models.card_confirmation_summary': function () { return ({
|
|
3684
|
+
discriminator: 'card_confirmation_summary',
|
|
3685
|
+
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3686
|
+
funding_type: factories.string(),
|
|
3687
|
+
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3688
|
+
iin: factories.string(),
|
|
3689
|
+
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3690
|
+
last4: factories.string(),
|
|
3691
|
+
}); },
|
|
3692
|
+
'io.flow.payment.v0.models.card_error': function () { return ({
|
|
3693
|
+
code: factories['io.flow.payment.v0.enums.card_error_code'](),
|
|
3694
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
3695
|
+
avs: factories['io.flow.payment.v0.models.avs'](),
|
|
3696
|
+
cvv: factories['io.flow.payment.v0.models.cvv'](),
|
|
3697
|
+
}); },
|
|
3698
|
+
'io.flow.payment.v0.models.card_form': function () { return ({
|
|
3699
|
+
number: factories.string(),
|
|
3700
|
+
cipher: factories.string(),
|
|
3701
|
+
expiration_month: factories.integer(),
|
|
3702
|
+
expiration_year: factories.integer(),
|
|
3703
|
+
name: factories.string(),
|
|
3704
|
+
cvv: factories.string(),
|
|
3705
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3706
|
+
ip: factories.string(),
|
|
3707
|
+
challenge_text: factories.string(),
|
|
3708
|
+
challenge_cipher: factories.string(),
|
|
3709
|
+
token_type: factories['io.flow.payment.v0.enums.token_type'](),
|
|
3710
|
+
requested_currency: factories.string(),
|
|
3711
|
+
metadata: factories['io.flow.payment.v0.models.card_metadata'](),
|
|
3712
|
+
}); },
|
|
3713
|
+
'io.flow.payment.v0.models.card_metadata': function () { return ({
|
|
3714
|
+
merchant_of_record: factories['io.flow.common.v0.enums.order_merchant_of_record'](),
|
|
3715
|
+
}); },
|
|
3716
|
+
'io.flow.payment.v0.models.card_nonce_form': function () { return ({
|
|
3717
|
+
token: factories.string(),
|
|
3718
|
+
}); },
|
|
3719
|
+
'io.flow.payment.v0.models.card_payment_source': function () { return ({
|
|
3720
|
+
discriminator: 'card_payment_source',
|
|
3721
|
+
id: factories.string(),
|
|
3722
|
+
actions: arrayOf(function () { return factories['io.flow.payment.v0.models.payment_source_confirmation_action'](); }),
|
|
3723
|
+
summary: factories['io.flow.payment.v0.models.card_payment_source_summary'](),
|
|
3724
|
+
}); },
|
|
3725
|
+
'io.flow.payment.v0.models.card_payment_source_authorization_form': function () { return ({
|
|
3726
|
+
discriminator: 'card_payment_source_authorization_form',
|
|
3727
|
+
key: factories.string(),
|
|
3728
|
+
card_payment_source_id: factories.string(),
|
|
3729
|
+
order_number: factories.string(),
|
|
3730
|
+
amount: factories.decimal(),
|
|
3731
|
+
currency: factories.string(),
|
|
3732
|
+
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3733
|
+
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3734
|
+
}); },
|
|
3735
|
+
'io.flow.payment.v0.models.card_payment_source_form': function () { return ({
|
|
3736
|
+
discriminator: 'card_payment_source_form',
|
|
3737
|
+
customer_number: factories.string(),
|
|
3738
|
+
card_id: factories.string(),
|
|
3739
|
+
}); },
|
|
3740
|
+
'io.flow.payment.v0.models.card_payment_source_summary': function () { return ({
|
|
3741
|
+
customer_number: factories.string(),
|
|
3742
|
+
card: factories['io.flow.payment.v0.models.card_summary'](),
|
|
3743
|
+
}); },
|
|
3744
|
+
'io.flow.payment.v0.models.card_reference': function () { return ({
|
|
3745
|
+
discriminator: 'card_reference',
|
|
3746
|
+
id: factories.string(),
|
|
3747
|
+
token: factories.string(),
|
|
3748
|
+
}); },
|
|
3749
|
+
'io.flow.payment.v0.models.card_summary': function () { return ({
|
|
3750
|
+
discriminator: 'card_summary',
|
|
3751
|
+
id: factories.string(),
|
|
3752
|
+
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3753
|
+
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
3754
|
+
iin: factories.string(),
|
|
3755
|
+
issuer: factories['io.flow.payment.v0.models.issuer_summary'](),
|
|
3756
|
+
last4: factories.string(),
|
|
3757
|
+
name: factories.string(),
|
|
3758
|
+
address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3759
|
+
}); },
|
|
3760
|
+
'io.flow.payment.v0.models.card_token_form': function () { return ({
|
|
3761
|
+
token: factories.string(),
|
|
3762
|
+
}); },
|
|
3763
|
+
'io.flow.payment.v0.models.card_version': function () { return ({
|
|
3764
|
+
id: factories.string(),
|
|
3765
|
+
timestamp: factories.date_time_iso_8601(),
|
|
3766
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
3767
|
+
card: factories['io.flow.payment.v0.models.card'](),
|
|
3768
|
+
}); },
|
|
3769
|
+
'io.flow.payment.v0.models.cryptopay_authorization_details': function () { return ({
|
|
3770
|
+
discriminator: 'cryptopay_authorization_details',
|
|
3771
|
+
payment_id: factories.string(),
|
|
3772
|
+
}); },
|
|
3773
|
+
'io.flow.payment.v0.models.cvv': function () { return ({
|
|
3774
|
+
code: factories['io.flow.payment.v0.enums.cvv_code'](),
|
|
3775
|
+
description: factories.string(),
|
|
3776
|
+
}); },
|
|
3777
|
+
'io.flow.payment.v0.models.cvv_result': function () { return ({
|
|
3778
|
+
code: factories['io.flow.payment.v0.enums.cvv_result_code'](),
|
|
3779
|
+
raw: factories.string(),
|
|
3780
|
+
}); },
|
|
3781
|
+
'io.flow.payment.v0.models.device_details_browser': function () { return ({
|
|
3782
|
+
type: 'browser',
|
|
3783
|
+
user_agent: factories.string(),
|
|
3784
|
+
origin: factories.string(),
|
|
3785
|
+
accept_language: factories.string(),
|
|
3786
|
+
ip: factories.string(),
|
|
3787
|
+
time_zone_offset: factories.integer(),
|
|
3788
|
+
date_string: factories.string(),
|
|
3789
|
+
navigator_language: factories.string(),
|
|
3790
|
+
navigator_hardware_concurrency: factories.integer(),
|
|
3791
|
+
cookie_created_at: factories.integer(),
|
|
3792
|
+
session_duration: factories.integer(),
|
|
3793
|
+
fingerprint: factories.string(),
|
|
3794
|
+
fraud_references: objectOf(function () { return factories.string(); }),
|
|
3795
|
+
}); },
|
|
3796
|
+
'io.flow.payment.v0.models.direct_authorization_form': function () { return ({
|
|
3797
|
+
discriminator: 'direct_authorization_form',
|
|
3798
|
+
token: factories.string(),
|
|
3799
|
+
amount: factories.decimal(),
|
|
3800
|
+
currency: factories.string(),
|
|
3801
|
+
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3802
|
+
key: factories.string(),
|
|
3803
|
+
cvv: factories.string(),
|
|
3804
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3805
|
+
destination: factories['io.flow.common.v0.models.address'](),
|
|
3806
|
+
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3807
|
+
ip: factories.string(),
|
|
3808
|
+
options: arrayOf(function () { return factories['io.flow.payment.v0.enums.authorization_option'](); }),
|
|
3809
|
+
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3810
|
+
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3811
|
+
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3812
|
+
}); },
|
|
3813
|
+
'io.flow.payment.v0.models.direct_debit': function () { return ({
|
|
3814
|
+
discriminator: 'direct_debit',
|
|
3815
|
+
bank_name: factories.string(),
|
|
3816
|
+
bic: factories.string(),
|
|
3817
|
+
iban: factories.string(),
|
|
3818
|
+
routing_number: factories.string(),
|
|
3819
|
+
last4: factories.string(),
|
|
3820
|
+
account_holder_name: factories.string(),
|
|
3821
|
+
}); },
|
|
3822
|
+
'io.flow.payment.v0.models.dispute_reference': function () { return ({
|
|
3823
|
+
discriminator: 'dispute_reference',
|
|
3824
|
+
id: factories.string(),
|
|
3825
|
+
key: factories.string(),
|
|
3826
|
+
}); },
|
|
3827
|
+
'io.flow.payment.v0.models.exchanged_money': function () { return ({
|
|
3828
|
+
fx_rate: factories.decimal(),
|
|
3829
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
3830
|
+
}); },
|
|
3831
|
+
'io.flow.payment.v0.models.expiration': function () { return ({
|
|
3832
|
+
month: factories.integer(),
|
|
3833
|
+
year: factories.integer(),
|
|
3834
|
+
}); },
|
|
3835
|
+
'io.flow.payment.v0.models.external_card': function () { return ({
|
|
3836
|
+
discriminator: 'external_card',
|
|
3837
|
+
id: factories.string(),
|
|
3838
|
+
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
3839
|
+
}); },
|
|
3840
|
+
'io.flow.payment.v0.models.google_pay_authorization_payload': function () { return ({
|
|
3841
|
+
discriminator: 'google_pay_authorization_payload',
|
|
3842
|
+
payload: factories.object(),
|
|
3843
|
+
}); },
|
|
3844
|
+
'io.flow.payment.v0.models.identifier_form': function () { return ({
|
|
3845
|
+
primary: factories.boolean(),
|
|
3846
|
+
name: factories.string(),
|
|
3847
|
+
}); },
|
|
3848
|
+
'io.flow.payment.v0.models.inline_authorization_details': function () { return ({
|
|
3849
|
+
discriminator: 'inline_authorization_details',
|
|
3850
|
+
id: factories.string(),
|
|
3851
|
+
client_token: factories.string(),
|
|
3852
|
+
parameters: factories.object(),
|
|
3853
|
+
}); },
|
|
3854
|
+
'io.flow.payment.v0.models.inline_authorization_form': function () { return ({
|
|
3855
|
+
discriminator: 'inline_authorization_form',
|
|
3856
|
+
method: factories.string(),
|
|
3857
|
+
issuer: factories['io.flow.payment.v0.models.issuer_reference'](),
|
|
3858
|
+
order_number: factories.string(),
|
|
3859
|
+
amount: factories.decimal(),
|
|
3860
|
+
currency: factories.string(),
|
|
3861
|
+
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3862
|
+
key: factories.string(),
|
|
3863
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3864
|
+
ip: factories.string(),
|
|
3865
|
+
payload: factories['io.flow.payment.v0.models.authorization_payload'](),
|
|
3866
|
+
}); },
|
|
3867
|
+
'io.flow.payment.v0.models.issuer_reference': function () { return ({
|
|
3868
|
+
id: factories.string(),
|
|
3869
|
+
}); },
|
|
3870
|
+
'io.flow.payment.v0.models.issuer_summary': function () { return ({
|
|
3871
|
+
iin: factories.string(),
|
|
3872
|
+
name: factories.string(),
|
|
3873
|
+
country: factories.string(),
|
|
3874
|
+
}); },
|
|
3875
|
+
'io.flow.payment.v0.models.issuer_v1': function () { return ({
|
|
3876
|
+
iin: factories.string(),
|
|
3877
|
+
card_brand: factories.string(),
|
|
3878
|
+
card_type: factories.string(),
|
|
3879
|
+
name: factories.string(),
|
|
3880
|
+
country: factories.string(),
|
|
3881
|
+
}); },
|
|
3882
|
+
'io.flow.payment.v0.models.klarna_payment_method_category': function () { return ({
|
|
3883
|
+
id: factories.string(),
|
|
3884
|
+
name: factories.string(),
|
|
3885
|
+
standard_asset_url: factories.string(),
|
|
3886
|
+
descriptive_asset_url: factories.string(),
|
|
3887
|
+
}); },
|
|
3888
|
+
'io.flow.payment.v0.models.klarna_sdk_authorization_result_action_details': function () { return ({
|
|
3889
|
+
discriminator: 'klarna_sdk_authorization_result_action_details',
|
|
3890
|
+
client_token: factories.string(),
|
|
3891
|
+
payment_method_categories: arrayOf(function () { return factories['io.flow.payment.v0.models.klarna_payment_method_category'](); }),
|
|
3892
|
+
}); },
|
|
3893
|
+
'io.flow.payment.v0.models.merchant_of_record_authorization_form': function () { return ({
|
|
3894
|
+
discriminator: 'merchant_of_record_authorization_form',
|
|
3895
|
+
token: factories.string(),
|
|
3896
|
+
order_number: factories.string(),
|
|
3897
|
+
amount: factories.decimal(),
|
|
3898
|
+
currency: factories.string(),
|
|
3899
|
+
key: factories.string(),
|
|
3900
|
+
cvv: factories.string(),
|
|
3901
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3902
|
+
ip: factories.string(),
|
|
3903
|
+
options: arrayOf(function () { return factories['io.flow.payment.v0.enums.authorization_option'](); }),
|
|
3904
|
+
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
3905
|
+
browser_info: factories['io.flow.payment.v0.models.browser_info'](),
|
|
3906
|
+
inline_action_configuration: factories['io.flow.payment.v0.unions.inline_action_configuration'](),
|
|
3907
|
+
}); },
|
|
3908
|
+
'io.flow.payment.v0.models.merchant_of_record_payment_form': function () { return ({
|
|
3909
|
+
discriminator: 'merchant_of_record_payment_form',
|
|
3910
|
+
method: factories.string(),
|
|
3911
|
+
order_number: factories.string(),
|
|
3912
|
+
amount: factories.decimal(),
|
|
3913
|
+
currency: factories.string(),
|
|
3914
|
+
}); },
|
|
3915
|
+
'io.flow.payment.v0.models.online_authorization': function () { return ({
|
|
3916
|
+
discriminator: 'online_authorization',
|
|
3917
|
+
id: factories.string(),
|
|
3918
|
+
key: factories.string(),
|
|
3919
|
+
method: factories['io.flow.reference.v0.models.payment_method'](),
|
|
3920
|
+
merchant_of_record: factories['io.flow.common.v0.enums.merchant_of_record'](),
|
|
3921
|
+
details: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3922
|
+
payment: factories.object(),
|
|
3923
|
+
amount: factories.decimal(),
|
|
3924
|
+
currency: factories.string(),
|
|
3925
|
+
requested: factories['io.flow.common.v0.models.money'](),
|
|
3926
|
+
customer: factories['io.flow.common.v0.models.order_customer'](),
|
|
3927
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
3928
|
+
destination: factories['io.flow.common.v0.models.address'](),
|
|
3929
|
+
billing_address: factories['io.flow.common.v0.models.billing_address'](),
|
|
3930
|
+
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3931
|
+
payment_order_reference: factories['io.flow.payment.v0.unions.payment_order_reference'](),
|
|
3932
|
+
ip: factories.string(),
|
|
3933
|
+
result: factories['io.flow.payment.v0.models.authorization_result'](),
|
|
3934
|
+
created_at: factories.date_time_iso_8601(),
|
|
3935
|
+
expires_at: factories.date_time_iso_8601(),
|
|
3936
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
3937
|
+
processor: factories['io.flow.payment.v0.unions.expandable_payment_processor'](),
|
|
3938
|
+
confirmation_details: factories['io.flow.payment.v0.unions.confirmation_details'](),
|
|
3939
|
+
authorized_at: factories.date_time_iso_8601(),
|
|
3940
|
+
authorization_request_id: factories.string(),
|
|
3941
|
+
}); },
|
|
3942
|
+
'io.flow.payment.v0.models.online_payment_authorization_form': function () { return ({
|
|
3943
|
+
discriminator: 'online_payment_authorization_form',
|
|
3944
|
+
payment_id: factories.string(),
|
|
3945
|
+
key: factories.string(),
|
|
3946
|
+
}); },
|
|
3947
|
+
'io.flow.payment.v0.models.payment_cryptopay': function () { return ({
|
|
3948
|
+
discriminator: 'payment_cryptopay',
|
|
3949
|
+
id: factories.string(),
|
|
3950
|
+
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3951
|
+
amount: factories.decimal(),
|
|
3952
|
+
currency: factories.string(),
|
|
3953
|
+
created_at: factories.date_time_iso_8601(),
|
|
3954
|
+
cryptopay: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3955
|
+
}); },
|
|
3956
|
+
'io.flow.payment.v0.models.payment_error': function () { return ({
|
|
3957
|
+
code: factories.string(),
|
|
3958
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
3959
|
+
codes: arrayOf(function () { return factories['io.flow.payment.v0.enums.payment_error_code'](); }),
|
|
3960
|
+
}); },
|
|
3961
|
+
'io.flow.payment.v0.models.payment_fee': function () { return ({
|
|
3962
|
+
type: factories['io.flow.payment.v0.enums.payment_fee_type'](),
|
|
3963
|
+
money: factories['io.flow.common.v0.models.money'](),
|
|
3964
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
3965
|
+
}); },
|
|
3966
|
+
'io.flow.payment.v0.models.payment_payment_request_reference': function () { return ({
|
|
3967
|
+
discriminator: 'payment_request',
|
|
3968
|
+
payment_request_id: factories.string(),
|
|
3969
|
+
}); },
|
|
3970
|
+
'io.flow.payment.v0.models.payment_paypal': function () { return ({
|
|
3971
|
+
discriminator: 'payment_paypal',
|
|
3972
|
+
id: factories.string(),
|
|
3973
|
+
order: factories['io.flow.payment.v0.models.authorization_order_reference'](),
|
|
3974
|
+
amount: factories.decimal(),
|
|
3975
|
+
currency: factories.string(),
|
|
3976
|
+
created_at: factories.date_time_iso_8601(),
|
|
3977
|
+
paypal: factories['io.flow.payment.v0.unions.online_authorization_details'](),
|
|
3978
|
+
}); },
|
|
3979
|
+
'io.flow.payment.v0.models.payment_processor': function () { return ({
|
|
3980
|
+
discriminator: 'payment_processor',
|
|
3981
|
+
processor: factories.string(),
|
|
3982
|
+
operation_identifier: factories['io.flow.payment.v0.models.payment_processor_identifier'](),
|
|
3983
|
+
account: factories['io.flow.payment.v0.models.payment_processor_account'](),
|
|
3984
|
+
transaction_details: factories['io.flow.payment.v0.unions.payment_processor_transaction_details'](),
|
|
3985
|
+
}); },
|
|
3986
|
+
'io.flow.payment.v0.models.payment_processor_account': function () { return ({
|
|
3987
|
+
organization: factories.string(),
|
|
3988
|
+
key: factories.string(),
|
|
3989
|
+
identifier: factories['io.flow.payment.v0.models.payment_processor_identifier'](),
|
|
3990
|
+
parent_account: factories['io.flow.payment.v0.models.payment_processor_account_reference'](),
|
|
3991
|
+
}); },
|
|
3992
|
+
'io.flow.payment.v0.models.payment_processor_account_reference': function () { return ({
|
|
3993
|
+
organization: factories.string(),
|
|
3994
|
+
key: factories.string(),
|
|
3995
|
+
}); },
|
|
3996
|
+
'io.flow.payment.v0.models.payment_processor_identifier': function () { return ({
|
|
3997
|
+
id: factories.string(),
|
|
3998
|
+
label: factories.string(),
|
|
3999
|
+
}); },
|
|
4000
|
+
'io.flow.payment.v0.models.payment_processor_reference': function () { return ({
|
|
4001
|
+
discriminator: 'payment_processor_reference',
|
|
4002
|
+
processor: factories.string(),
|
|
4003
|
+
}); },
|
|
4004
|
+
'io.flow.payment.v0.models.payment_processor_transaction_details_apm': function () { return ({
|
|
4005
|
+
discriminator: 'apm',
|
|
4006
|
+
transaction_identifier: factories.string(),
|
|
4007
|
+
capture_identifier: factories.string(),
|
|
4008
|
+
method_type: factories.string(),
|
|
4009
|
+
result_status: factories.string(),
|
|
4010
|
+
reason_code: factories.string(),
|
|
4011
|
+
}); },
|
|
4012
|
+
'io.flow.payment.v0.models.payment_processor_transaction_details_card': function () { return ({
|
|
4013
|
+
discriminator: 'card',
|
|
4014
|
+
transaction_identifier: factories.string(),
|
|
4015
|
+
method_type: factories.string(),
|
|
4016
|
+
result_status: factories.string(),
|
|
4017
|
+
reason_code: factories.string(),
|
|
4018
|
+
avs_result_code: factories.string(),
|
|
4019
|
+
cvv_result_code: factories.string(),
|
|
4020
|
+
threeds_result_code: factories.string(),
|
|
4021
|
+
}); },
|
|
4022
|
+
'io.flow.payment.v0.models.payment_reference': function () { return ({
|
|
4023
|
+
id: factories.string(),
|
|
4024
|
+
}); },
|
|
4025
|
+
'io.flow.payment.v0.models.payment_source_confirmation_action': function () { return ({
|
|
4026
|
+
type: factories['io.flow.payment.v0.enums.payment_source_confirmation_action_type'](),
|
|
4027
|
+
}); },
|
|
4028
|
+
'io.flow.payment.v0.models.payment_version': function () { return ({
|
|
4029
|
+
id: factories.string(),
|
|
4030
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4031
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4032
|
+
payment: factories['io.flow.payment.v0.unions.payment'](),
|
|
4033
|
+
}); },
|
|
4034
|
+
'io.flow.payment.v0.models.paypal_authorization_details': function () { return ({
|
|
4035
|
+
discriminator: 'paypal_authorization_details',
|
|
4036
|
+
payment_id: factories.string(),
|
|
4037
|
+
internal_payment_id: factories.string(),
|
|
4038
|
+
payment_method: factories.string(),
|
|
4039
|
+
payment_state: factories.string(),
|
|
4040
|
+
payer_id: factories.string(),
|
|
4041
|
+
payer_email: factories.string(),
|
|
4042
|
+
payer_status: factories.string(),
|
|
4043
|
+
approval_url: factories.string(),
|
|
4044
|
+
}); },
|
|
4045
|
+
'io.flow.payment.v0.models.paypal_authorization_form': function () { return ({
|
|
4046
|
+
discriminator: 'paypal_authorization_form',
|
|
4047
|
+
paypal_payment_id: factories.string(),
|
|
4048
|
+
paypal_payer_id: factories.string(),
|
|
4049
|
+
key: factories.string(),
|
|
4050
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4051
|
+
ip: factories.string(),
|
|
4052
|
+
}); },
|
|
4053
|
+
'io.flow.payment.v0.models.post_payment_redirect_urls': function () { return ({
|
|
4054
|
+
success: factories.string(),
|
|
4055
|
+
failure: factories.string(),
|
|
4056
|
+
}); },
|
|
4057
|
+
'io.flow.payment.v0.models.public_key': function () { return ({
|
|
4058
|
+
id: factories.string(),
|
|
4059
|
+
}); },
|
|
4060
|
+
'io.flow.payment.v0.models.redirect_authorization_details': function () { return ({
|
|
4061
|
+
discriminator: 'redirect_authorization_details',
|
|
4062
|
+
id: factories.string(),
|
|
4063
|
+
payment_redirect_url: factories.string(),
|
|
4064
|
+
}); },
|
|
4065
|
+
'io.flow.payment.v0.models.redirect_authorization_form': function () { return ({
|
|
4066
|
+
discriminator: 'redirect_authorization_form',
|
|
4067
|
+
method: factories.string(),
|
|
4068
|
+
issuer: factories['io.flow.payment.v0.models.issuer_reference'](),
|
|
4069
|
+
order_number: factories.string(),
|
|
4070
|
+
amount: factories.decimal(),
|
|
4071
|
+
currency: factories.string(),
|
|
4072
|
+
redirect_urls: factories['io.flow.payment.v0.models.post_payment_redirect_urls'](),
|
|
4073
|
+
key: factories.string(),
|
|
4074
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4075
|
+
ip: factories.string(),
|
|
4076
|
+
}); },
|
|
4077
|
+
'io.flow.payment.v0.models.refund': function () { return ({
|
|
4078
|
+
id: factories.string(),
|
|
4079
|
+
key: factories.string(),
|
|
4080
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4081
|
+
amount: factories.decimal(),
|
|
4082
|
+
currency: factories.string(),
|
|
4083
|
+
requested: factories['io.flow.common.v0.models.money'](),
|
|
4084
|
+
captures: arrayOf(function () { return factories['io.flow.payment.v0.models.refund_capture_summary'](); }),
|
|
4085
|
+
created_at: factories.date_time_iso_8601(),
|
|
4086
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4087
|
+
status: factories['io.flow.payment.v0.enums.refund_status'](),
|
|
4088
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
4089
|
+
failure_category: factories['io.flow.payment.v0.enums.refund_failure_category'](),
|
|
4090
|
+
failure_psp_reason: factories.string(),
|
|
4091
|
+
}); },
|
|
4092
|
+
'io.flow.payment.v0.models.refund_capture': function () { return ({
|
|
4093
|
+
id: factories.string(),
|
|
4094
|
+
refund: factories['io.flow.payment.v0.models.refund'](),
|
|
4095
|
+
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
4096
|
+
amount: factories.decimal(),
|
|
4097
|
+
currency: factories.string(),
|
|
4098
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
4099
|
+
status: factories['io.flow.payment.v0.enums.refund_status'](),
|
|
4100
|
+
}); },
|
|
4101
|
+
'io.flow.payment.v0.models.refund_capture_summary': function () { return ({
|
|
4102
|
+
capture: factories['io.flow.payment.v0.models.capture'](),
|
|
4103
|
+
amount: factories.decimal(),
|
|
4104
|
+
}); },
|
|
4105
|
+
'io.flow.payment.v0.models.refund_error': function () { return ({
|
|
4106
|
+
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
4107
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
4108
|
+
decline_code: factories['io.flow.payment.v0.enums.refund_decline_code'](),
|
|
4109
|
+
}); },
|
|
4110
|
+
'io.flow.payment.v0.models.refund_form': function () { return ({
|
|
4111
|
+
authorization_id: factories.string(),
|
|
4112
|
+
capture_id: factories.string(),
|
|
4113
|
+
order_number: factories.string(),
|
|
4114
|
+
key: factories.string(),
|
|
4115
|
+
amount: factories.decimal(),
|
|
4116
|
+
currency: factories.string(),
|
|
4117
|
+
rma_key: factories.string(),
|
|
4118
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4119
|
+
}); },
|
|
4120
|
+
'io.flow.payment.v0.models.refund_identifier': function () { return ({
|
|
4121
|
+
id: factories.string(),
|
|
4122
|
+
refund: factories['io.flow.payment.v0.models.refund_reference'](),
|
|
4123
|
+
name: factories.string(),
|
|
4124
|
+
identifier: factories.string(),
|
|
4125
|
+
primary: factories.boolean(),
|
|
4126
|
+
}); },
|
|
4127
|
+
'io.flow.payment.v0.models.refund_order_summary': function () { return ({
|
|
4128
|
+
order_number: factories.string(),
|
|
4129
|
+
currency: factories.string(),
|
|
4130
|
+
captured: factories.decimal(),
|
|
4131
|
+
refunded: factories.decimal(),
|
|
4132
|
+
amounts: factories['io.flow.payment.v0.models.refund_order_summary_amounts'](),
|
|
4133
|
+
}); },
|
|
4134
|
+
'io.flow.payment.v0.models.refund_order_summary_amounts': function () { return ({
|
|
4135
|
+
balance: factories.decimal(),
|
|
4136
|
+
balance_excluding_shipping: factories.decimal(),
|
|
4137
|
+
shipping: factories.decimal(),
|
|
4138
|
+
}); },
|
|
4139
|
+
'io.flow.payment.v0.models.refund_reference': function () { return ({
|
|
4140
|
+
discriminator: 'refund_reference',
|
|
4141
|
+
id: factories.string(),
|
|
4142
|
+
key: factories.string(),
|
|
4143
|
+
}); },
|
|
4144
|
+
'io.flow.payment.v0.models.refund_version': function () { return ({
|
|
4145
|
+
id: factories.string(),
|
|
4146
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4147
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4148
|
+
refund: factories['io.flow.payment.v0.models.refund'](),
|
|
4149
|
+
}); },
|
|
4150
|
+
'io.flow.payment.v0.models.reversal': function () { return ({
|
|
4151
|
+
id: factories.string(),
|
|
4152
|
+
key: factories.string(),
|
|
4153
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4154
|
+
status: factories['io.flow.payment.v0.enums.reversal_status'](),
|
|
4155
|
+
amount: factories.decimal(),
|
|
4156
|
+
currency: factories.string(),
|
|
4157
|
+
requested: factories['io.flow.common.v0.models.money'](),
|
|
4158
|
+
created_at: factories.date_time_iso_8601(),
|
|
4159
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4160
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
4161
|
+
}); },
|
|
4162
|
+
'io.flow.payment.v0.models.reversal_error': function () { return ({
|
|
4163
|
+
code: factories.string(),
|
|
4164
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
4165
|
+
codes: arrayOf(function () { return factories['io.flow.payment.v0.enums.reversal_error_code'](); }),
|
|
4166
|
+
}); },
|
|
4167
|
+
'io.flow.payment.v0.models.reversal_form': function () { return ({
|
|
4168
|
+
key: factories.string(),
|
|
4169
|
+
authorization_id: factories.string(),
|
|
4170
|
+
amount: factories.decimal(),
|
|
4171
|
+
currency: factories.string(),
|
|
4172
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4173
|
+
}); },
|
|
4174
|
+
'io.flow.payment.v0.models.reversal_put_form': function () { return ({
|
|
4175
|
+
authorization_id: factories.string(),
|
|
4176
|
+
amount: factories.decimal(),
|
|
4177
|
+
currency: factories.string(),
|
|
4178
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4179
|
+
}); },
|
|
4180
|
+
'io.flow.payment.v0.models.reversal_version': function () { return ({
|
|
4181
|
+
id: factories.string(),
|
|
4182
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4183
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4184
|
+
reversal: factories['io.flow.payment.v0.models.reversal'](),
|
|
4185
|
+
}); },
|
|
4186
|
+
'io.flow.payment.v0.models.select_issuer_option_action_details': function () { return ({
|
|
4187
|
+
discriminator: 'select_issuer_option_action_details',
|
|
4188
|
+
issuer_options: arrayOf(function () { return factories['io.flow.payment.v0.models.issuer_reference'](); }),
|
|
4189
|
+
}); },
|
|
4190
|
+
'io.flow.payment.v0.models.stripe_authentication_data': function () { return ({
|
|
4191
|
+
discriminator: 'stripe_authentication_data',
|
|
4192
|
+
secret_key_reference: factories.string(),
|
|
4193
|
+
}); },
|
|
4194
|
+
'io.flow.payment.v0.models.stripe_authentication_data_form': function () { return ({
|
|
4195
|
+
discriminator: 'stripe_authentication_data_form',
|
|
4196
|
+
account_id: factories.string(),
|
|
4197
|
+
secret_key: factories.string(),
|
|
4198
|
+
key: factories.string(),
|
|
4199
|
+
}); },
|
|
4200
|
+
'io.flow.payment.v0.models.stripe_authorization_result_action_details': function () { return ({
|
|
4201
|
+
discriminator: 'stripe_authorization_result_action_details',
|
|
4202
|
+
client_secret: factories.string(),
|
|
4203
|
+
payment_method_id: factories.string(),
|
|
4204
|
+
publishable_key: factories.string(),
|
|
4205
|
+
}); },
|
|
4206
|
+
'io.flow.payment.v0.models.three_d_secure': function () { return ({
|
|
4207
|
+
code: factories['io.flow.payment.v0.enums.three_d_secure_code'](),
|
|
4208
|
+
description: factories.string(),
|
|
4209
|
+
eci: factories.string(),
|
|
4210
|
+
liability_sift: factories.boolean(),
|
|
4211
|
+
version: factories.string(),
|
|
4212
|
+
authenticated: factories.boolean(),
|
|
4213
|
+
authenticated_result: factories.string(),
|
|
4214
|
+
offered: factories.boolean(),
|
|
4215
|
+
offered_result: factories.string(),
|
|
4216
|
+
sca_exemption: factories.string(),
|
|
4217
|
+
}); },
|
|
4218
|
+
'io.flow.payment.v0.models.threeds_challenge_action_details': function () { return ({
|
|
4219
|
+
discriminator: 'threeds_challenge_action_details',
|
|
4220
|
+
threeds_challenge_action: factories['io.flow.payment.v0.unions.threeds_challenge_action'](),
|
|
4221
|
+
expires_at: factories.date_time_iso_8601(),
|
|
4222
|
+
}); },
|
|
4223
|
+
'io.flow.payment.v0.models.threeds_identify_action_details': function () { return ({
|
|
4224
|
+
discriminator: 'threeds_identify_action_details',
|
|
4225
|
+
threeds_identify_action: factories['io.flow.payment.v0.unions.threeds_identify_action'](),
|
|
4226
|
+
expires_at: factories.date_time_iso_8601(),
|
|
4227
|
+
}); },
|
|
4228
|
+
'io.flow.payment.v0.models.threeds_two_challenge_request': function () { return ({
|
|
4229
|
+
discriminator: 'threeds_two_challenge_request',
|
|
4230
|
+
acs_url: factories.string(),
|
|
4231
|
+
challenge_request: factories.string(),
|
|
4232
|
+
session_data: factories.string(),
|
|
4233
|
+
}); },
|
|
4234
|
+
'io.flow.payment.v0.models.threeds_two_method': function () { return ({
|
|
4235
|
+
discriminator: 'threeds_two_method',
|
|
4236
|
+
method: factories.string(),
|
|
4237
|
+
}); },
|
|
4238
|
+
'io.flow.payment.v0.models.transaction_details_card': function () { return ({
|
|
4239
|
+
type: 'card',
|
|
4240
|
+
address_verification_result: factories['io.flow.payment.v0.models.address_verification_result'](),
|
|
4241
|
+
cvv_result: factories['io.flow.payment.v0.models.cvv_result'](),
|
|
4242
|
+
network_details: factories['io.flow.payment.v0.models.transaction_network_details_card'](),
|
|
4243
|
+
}); },
|
|
4244
|
+
'io.flow.payment.v0.models.transaction_network_details_card': function () { return ({
|
|
4245
|
+
network_transaction_id: factories.string(),
|
|
4246
|
+
network: factories['io.flow.payment.v0.enums.card_type'](),
|
|
4247
|
+
}); },
|
|
4248
|
+
'io.flow.payment.v0.models.transfer': function () { return ({
|
|
4249
|
+
id: factories.string(),
|
|
4250
|
+
type: factories['io.flow.payment.v0.enums.transfer_type'](),
|
|
4251
|
+
base: factories['io.flow.common.v0.models.money'](),
|
|
4252
|
+
status: factories['io.flow.payment.v0.enums.transfer_status'](),
|
|
4253
|
+
created_at: factories.date_time_iso_8601(),
|
|
4254
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4255
|
+
transferred_at: factories.date_time_iso_8601(),
|
|
4256
|
+
}); },
|
|
4257
|
+
'io.flow.payment.v0.models.virtual_card': function () { return ({
|
|
4258
|
+
id: factories.string(),
|
|
4259
|
+
key: factories.string(),
|
|
4260
|
+
number: factories.string(),
|
|
4261
|
+
cvv: factories.string(),
|
|
4262
|
+
limit: factories['io.flow.common.v0.models.price'](),
|
|
4263
|
+
type: factories['io.flow.payment.v0.enums.card_type'](),
|
|
4264
|
+
expiration: factories['io.flow.payment.v0.models.expiration'](),
|
|
4265
|
+
iin: factories.string(),
|
|
4266
|
+
last4: factories.string(),
|
|
4267
|
+
name: factories.string(),
|
|
4268
|
+
attributes: objectOf(function () { return factories.string(); }),
|
|
4269
|
+
}); },
|
|
4270
|
+
'io.flow.payment.v0.models.virtual_card_capture': function () { return ({
|
|
4271
|
+
id: factories.string(),
|
|
4272
|
+
issuer: factories['io.flow.payment.v0.models.issuer_v1'](),
|
|
4273
|
+
virtual_card: factories['io.flow.payment.v0.models.virtual_card_reference'](),
|
|
4274
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4275
|
+
amount: factories.decimal(),
|
|
4276
|
+
currency: factories.string(),
|
|
4277
|
+
created_at: factories.date_time_iso_8601(),
|
|
4278
|
+
}); },
|
|
4279
|
+
'io.flow.payment.v0.models.virtual_card_capture_version': function () { return ({
|
|
4280
|
+
id: factories.string(),
|
|
4281
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4282
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4283
|
+
virtual_card_capture: factories['io.flow.payment.v0.models.virtual_card_capture'](),
|
|
4284
|
+
}); },
|
|
4285
|
+
'io.flow.payment.v0.models.virtual_card_reference': function () { return ({
|
|
4286
|
+
id: factories.string(),
|
|
4287
|
+
}); },
|
|
4288
|
+
'io.flow.payment.v0.models.virtual_card_refund': function () { return ({
|
|
4289
|
+
id: factories.string(),
|
|
4290
|
+
issuer: factories['io.flow.payment.v0.models.issuer_v1'](),
|
|
4291
|
+
virtual_card: factories['io.flow.payment.v0.models.virtual_card_reference'](),
|
|
4292
|
+
authorization: factories['io.flow.payment.v0.models.authorization_reference'](),
|
|
4293
|
+
amount: factories.decimal(),
|
|
4294
|
+
currency: factories.string(),
|
|
4295
|
+
created_at: factories.date_time_iso_8601(),
|
|
4296
|
+
}); },
|
|
4297
|
+
'io.flow.payment.v0.models.virtual_card_refund_version': function () { return ({
|
|
4298
|
+
id: factories.string(),
|
|
4299
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4300
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4301
|
+
virtual_card_refund: factories['io.flow.payment.v0.models.virtual_card_refund'](),
|
|
4302
|
+
}); },
|
|
4303
|
+
'io.flow.payment.v0.models.virtual_card_version': function () { return ({
|
|
4304
|
+
id: factories.string(),
|
|
4305
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4306
|
+
type: factories['io.flow.common.v0.enums.change_type'](),
|
|
4307
|
+
virtual_card: factories['io.flow.payment.v0.models.virtual_card'](),
|
|
4308
|
+
}); },
|
|
4309
|
+
'io.flow.payment.v0.unions.adyen_native_data': function () {
|
|
4310
|
+
var f = faker.helpers.arrayElement([
|
|
4311
|
+
function () { return factories['io.flow.payment.v0.models.adyen_identify_shopper_data'](); },
|
|
4312
|
+
function () { return factories['io.flow.payment.v0.models.adyen_challenge_shopper_data'](); },
|
|
4313
|
+
]);
|
|
4314
|
+
return f();
|
|
4315
|
+
},
|
|
4316
|
+
'io.flow.payment.v0.unions.authorization': function () {
|
|
4317
|
+
var f = faker.helpers.arrayElement([
|
|
4318
|
+
function () { return factories['io.flow.payment.v0.models.card_authorization'](); },
|
|
4319
|
+
function () { return factories['io.flow.payment.v0.models.online_authorization'](); },
|
|
4320
|
+
]);
|
|
4321
|
+
return f();
|
|
4322
|
+
},
|
|
4323
|
+
'io.flow.payment.v0.unions.authorization_form': function () {
|
|
4324
|
+
var f = faker.helpers.arrayElement([
|
|
4325
|
+
function () { return factories['io.flow.payment.v0.models.authorization_copy_form'](); },
|
|
4326
|
+
function () { return factories['io.flow.payment.v0.models.direct_authorization_form'](); },
|
|
4327
|
+
function () { return factories['io.flow.payment.v0.models.merchant_of_record_authorization_form'](); },
|
|
4328
|
+
function () { return factories['io.flow.payment.v0.models.paypal_authorization_form'](); },
|
|
4329
|
+
function () { return factories['io.flow.payment.v0.models.redirect_authorization_form'](); },
|
|
4330
|
+
function () { return factories['io.flow.payment.v0.models.inline_authorization_form'](); },
|
|
4331
|
+
function () { return factories['io.flow.payment.v0.models.ach_authorization_form'](); },
|
|
4332
|
+
function () { return factories['io.flow.payment.v0.models.card_payment_source_authorization_form'](); },
|
|
4333
|
+
function () { return factories['io.flow.payment.v0.models.online_payment_authorization_form'](); },
|
|
4334
|
+
]);
|
|
4335
|
+
return f();
|
|
4336
|
+
},
|
|
4337
|
+
'io.flow.payment.v0.unions.authorization_payload_parameters': function () {
|
|
4338
|
+
var f = faker.helpers.arrayElement([
|
|
4339
|
+
function () { return factories['io.flow.payment.v0.models.google_pay_authorization_payload'](); },
|
|
4340
|
+
function () { return factories['io.flow.payment.v0.models.apple_pay_merchant_validation_payload'](); },
|
|
4341
|
+
]);
|
|
4342
|
+
return f();
|
|
4343
|
+
},
|
|
4344
|
+
'io.flow.payment.v0.unions.authorization_result_action': function () {
|
|
4345
|
+
var f = faker.helpers.arrayElement([
|
|
4346
|
+
function () { return factories['io.flow.payment.v0.models.authorization_result_action_get'](); },
|
|
4347
|
+
function () { return factories['io.flow.payment.v0.models.authorization_result_action_post'](); },
|
|
4348
|
+
function () { return factories['io.flow.payment.v0.models.authorization_result_action_wait'](); },
|
|
4349
|
+
function () { return factories['io.flow.payment.v0.models.authorization_result_action_native'](); },
|
|
4350
|
+
]);
|
|
4351
|
+
return f();
|
|
4352
|
+
},
|
|
4353
|
+
'io.flow.payment.v0.unions.authorization_result_action_details': function () {
|
|
4354
|
+
var f = faker.helpers.arrayElement([
|
|
4355
|
+
function () { return factories['io.flow.payment.v0.models.adyen_native_action_details'](); },
|
|
4356
|
+
function () { return factories['io.flow.payment.v0.models.stripe_authorization_result_action_details'](); },
|
|
4357
|
+
function () { return factories['io.flow.payment.v0.models.threeds_identify_action_details'](); },
|
|
4358
|
+
function () { return factories['io.flow.payment.v0.models.threeds_challenge_action_details'](); },
|
|
4359
|
+
function () { return factories['io.flow.payment.v0.models.applepay_sdk_create_result_action_details'](); },
|
|
4360
|
+
function () { return factories['io.flow.payment.v0.models.applepay_sdk_validate_result_action_details'](); },
|
|
4361
|
+
function () { return factories['io.flow.payment.v0.models.klarna_sdk_authorization_result_action_details'](); },
|
|
4362
|
+
function () { return factories['io.flow.payment.v0.models.select_issuer_option_action_details'](); },
|
|
4363
|
+
]);
|
|
4364
|
+
return f();
|
|
4365
|
+
},
|
|
4366
|
+
'io.flow.payment.v0.unions.browser_action_configuration': function () {
|
|
4367
|
+
var f = faker.helpers.arrayElement([
|
|
4368
|
+
function () { return factories['io.flow.payment.v0.models.card_browser_action_configuration'](); },
|
|
4369
|
+
]);
|
|
4370
|
+
return f();
|
|
4371
|
+
},
|
|
4372
|
+
'io.flow.payment.v0.unions.confirmation_details': function () {
|
|
4373
|
+
var f = faker.helpers.arrayElement([
|
|
4374
|
+
function () { return factories['io.flow.payment.v0.models.direct_debit'](); },
|
|
4375
|
+
function () { return factories['io.flow.payment.v0.models.card_confirmation_summary'](); },
|
|
4376
|
+
]);
|
|
4377
|
+
return f();
|
|
4378
|
+
},
|
|
4379
|
+
'io.flow.payment.v0.unions.device_details': function () {
|
|
4380
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.device_details_browser'](); }]);
|
|
4381
|
+
return f();
|
|
4382
|
+
},
|
|
4383
|
+
'io.flow.payment.v0.unions.expandable_card': function () {
|
|
4384
|
+
var f = faker.helpers.arrayElement([
|
|
4385
|
+
function () { return factories['io.flow.payment.v0.models.card'](); },
|
|
4386
|
+
function () { return factories['io.flow.payment.v0.models.card_reference'](); },
|
|
4387
|
+
function () { return factories['io.flow.payment.v0.models.card_summary'](); },
|
|
4388
|
+
function () { return factories['io.flow.payment.v0.models.external_card'](); },
|
|
4389
|
+
]);
|
|
4390
|
+
return f();
|
|
4391
|
+
},
|
|
4392
|
+
'io.flow.payment.v0.unions.expandable_payment_processor': function () {
|
|
4393
|
+
var f = faker.helpers.arrayElement([
|
|
4394
|
+
function () { return factories['io.flow.payment.v0.models.payment_processor'](); },
|
|
4395
|
+
function () { return factories['io.flow.payment.v0.models.payment_processor_reference'](); },
|
|
4396
|
+
]);
|
|
4397
|
+
return f();
|
|
4398
|
+
},
|
|
4399
|
+
'io.flow.payment.v0.unions.gateway_authentication_data': function () {
|
|
4400
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.stripe_authentication_data'](); }]);
|
|
4401
|
+
return f();
|
|
4402
|
+
},
|
|
4403
|
+
'io.flow.payment.v0.unions.gateway_authentication_data_form': function () {
|
|
4404
|
+
var f = faker.helpers.arrayElement([
|
|
4405
|
+
function () { return factories['io.flow.payment.v0.models.stripe_authentication_data_form'](); },
|
|
4406
|
+
]);
|
|
4407
|
+
return f();
|
|
4408
|
+
},
|
|
4409
|
+
'io.flow.payment.v0.unions.inline_action_configuration': function () {
|
|
4410
|
+
var f = faker.helpers.arrayElement([
|
|
4411
|
+
function () { return factories['io.flow.payment.v0.models.browser_inline_action_configuration'](); },
|
|
4412
|
+
]);
|
|
4413
|
+
return f();
|
|
4414
|
+
},
|
|
4415
|
+
'io.flow.payment.v0.unions.online_authorization_details': function () {
|
|
4416
|
+
var f = faker.helpers.arrayElement([
|
|
4417
|
+
function () { return factories['io.flow.payment.v0.models.cryptopay_authorization_details'](); },
|
|
4418
|
+
function () { return factories['io.flow.payment.v0.models.paypal_authorization_details'](); },
|
|
4419
|
+
function () { return factories['io.flow.payment.v0.models.redirect_authorization_details'](); },
|
|
4420
|
+
function () { return factories['io.flow.payment.v0.models.inline_authorization_details'](); },
|
|
4421
|
+
]);
|
|
4422
|
+
return f();
|
|
4423
|
+
},
|
|
4424
|
+
'io.flow.payment.v0.unions.payment': function () {
|
|
4425
|
+
var f = faker.helpers.arrayElement([
|
|
4426
|
+
function () { return factories['io.flow.payment.v0.models.payment_paypal'](); },
|
|
4427
|
+
function () { return factories['io.flow.payment.v0.models.payment_cryptopay'](); },
|
|
4428
|
+
]);
|
|
4429
|
+
return f();
|
|
4430
|
+
},
|
|
4431
|
+
'io.flow.payment.v0.unions.payment_form': function () {
|
|
4432
|
+
var f = faker.helpers.arrayElement([
|
|
4433
|
+
function () { return factories['io.flow.payment.v0.models.merchant_of_record_payment_form'](); },
|
|
4434
|
+
]);
|
|
4435
|
+
return f();
|
|
4436
|
+
},
|
|
4437
|
+
'io.flow.payment.v0.unions.payment_order_reference': function () {
|
|
4438
|
+
var f = faker.helpers.arrayElement([
|
|
4439
|
+
function () { return factories['io.flow.payment.v0.models.authorization_order_reference'](); },
|
|
4440
|
+
function () { return factories['io.flow.payment.v0.models.payment_payment_request_reference'](); },
|
|
4441
|
+
]);
|
|
4442
|
+
return f();
|
|
4443
|
+
},
|
|
4444
|
+
'io.flow.payment.v0.unions.payment_processor_transaction_details': function () {
|
|
4445
|
+
var f = faker.helpers.arrayElement([
|
|
4446
|
+
function () { return factories['io.flow.payment.v0.models.payment_processor_transaction_details_card'](); },
|
|
4447
|
+
function () { return factories['io.flow.payment.v0.models.payment_processor_transaction_details_apm'](); },
|
|
4448
|
+
]);
|
|
4449
|
+
return f();
|
|
4450
|
+
},
|
|
4451
|
+
'io.flow.payment.v0.unions.payment_source': function () {
|
|
4452
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.card_payment_source'](); }]);
|
|
4453
|
+
return f();
|
|
4454
|
+
},
|
|
4455
|
+
'io.flow.payment.v0.unions.payment_source_form': function () {
|
|
4456
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.card_payment_source_form'](); }]);
|
|
4457
|
+
return f();
|
|
4458
|
+
},
|
|
4459
|
+
'io.flow.payment.v0.unions.threeds_challenge_action': function () {
|
|
4460
|
+
var f = faker.helpers.arrayElement([
|
|
4461
|
+
function () { return factories['io.flow.payment.v0.models.threeds_two_challenge_request'](); },
|
|
4462
|
+
]);
|
|
4463
|
+
return f();
|
|
4464
|
+
},
|
|
4465
|
+
'io.flow.payment.v0.unions.threeds_identify_action': function () {
|
|
4466
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.threeds_two_method'](); }]);
|
|
4467
|
+
return f();
|
|
4468
|
+
},
|
|
4469
|
+
'io.flow.payment.v0.unions.transaction_details': function () {
|
|
4470
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.payment.v0.models.transaction_details_card'](); }]);
|
|
4471
|
+
return f();
|
|
4472
|
+
},
|
|
4473
|
+
'io.flow.payment.v0.unions.transfer_reference': function () {
|
|
4474
|
+
var f = faker.helpers.arrayElement([
|
|
4475
|
+
function () { return factories['io.flow.payment.v0.models.capture_reference'](); },
|
|
4476
|
+
function () { return factories['io.flow.payment.v0.models.refund_reference'](); },
|
|
4477
|
+
function () { return factories['io.flow.payment.v0.models.dispute_reference'](); },
|
|
4478
|
+
]);
|
|
4479
|
+
return f();
|
|
4480
|
+
},
|
|
4481
|
+
'io.flow.price.v0.enums.levy_component': function () { return faker.helpers.arrayElement(['goods', 'duty', 'insurance', 'freight', 'vat']); },
|
|
4482
|
+
'io.flow.price.v0.enums.levy_strategy': function () { return faker.helpers.arrayElement(['minimum', 'average', 'maximum']); },
|
|
4483
|
+
'io.flow.price.v0.enums.price_accuracy': function () { return faker.helpers.arrayElement(['calculated', 'estimated_from_partial_destination']); },
|
|
4484
|
+
'io.flow.price.v0.enums.price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
4485
|
+
'base_price',
|
|
4486
|
+
'discount',
|
|
4487
|
+
'currency_margin',
|
|
4488
|
+
'percent_item_margin',
|
|
4489
|
+
'fixed_item_margin',
|
|
4490
|
+
'duties_item_price',
|
|
4491
|
+
'duties_added_margin',
|
|
4492
|
+
'duties_rounding',
|
|
4493
|
+
'duties_deminimis',
|
|
4494
|
+
'vat_item_price',
|
|
4495
|
+
'vat_added_margin',
|
|
4496
|
+
'vat_rounding',
|
|
4497
|
+
'vat_duties_item_price',
|
|
4498
|
+
'vat_duties_added_margin',
|
|
4499
|
+
'vat_duties_rounding',
|
|
4500
|
+
'vat_deminimis',
|
|
4501
|
+
'item_price_percent_sales_margin',
|
|
4502
|
+
'margins_percent_sales_margin',
|
|
4503
|
+
'rounding_percent_sales_margin',
|
|
4504
|
+
'vat_percent_sales_margin',
|
|
4505
|
+
'vat_duty_percent_sales_margin',
|
|
4506
|
+
'duty_percent_sales_margin',
|
|
4507
|
+
]); },
|
|
4508
|
+
'io.flow.price.v0.enums.price_detail_key': function () { return faker.helpers.arrayElement(['item_price', 'margins', 'vat', 'duty', 'rounding', 'adjustment']); },
|
|
4509
|
+
'io.flow.price.v0.enums.pricing_levy_setting': function () { return faker.helpers.arrayElement(['included', 'displayed', 'ignored']); },
|
|
4510
|
+
'io.flow.price.v0.models.currency_format': function () { return ({
|
|
4511
|
+
symbol: factories['io.flow.common.v0.enums.currency_symbol_format'](),
|
|
4512
|
+
label_formatters: arrayOf(function () { return factories['io.flow.common.v0.enums.currency_label_formatter'](); }),
|
|
4513
|
+
}); },
|
|
4514
|
+
'io.flow.price.v0.models.deminimis_per_item': function () { return ({
|
|
4515
|
+
discriminator: 'deminimis_per_item',
|
|
4516
|
+
currency: factories.string(),
|
|
4517
|
+
minimum: factories.decimal(),
|
|
4518
|
+
maximum: factories.decimal(),
|
|
4519
|
+
}); },
|
|
4520
|
+
'io.flow.price.v0.models.deminimis_simple': function () { return ({
|
|
4521
|
+
discriminator: 'deminimis_simple',
|
|
4522
|
+
value: factories.decimal(),
|
|
4523
|
+
currency: factories.string(),
|
|
4524
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
4525
|
+
minimum: factories.decimal(),
|
|
4526
|
+
}); },
|
|
4527
|
+
'io.flow.price.v0.models.duty': function () { return ({
|
|
4528
|
+
rate: factories.decimal(),
|
|
4529
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
4530
|
+
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
4531
|
+
name: factories.string(),
|
|
4532
|
+
}); },
|
|
4533
|
+
'io.flow.price.v0.models.local_price_details': function () { return ({
|
|
4534
|
+
base: factories['io.flow.price.v0.models.price_details'](),
|
|
4535
|
+
local: factories['io.flow.price.v0.models.price_details'](),
|
|
4536
|
+
discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
4537
|
+
local_before_discount: factories['io.flow.price.v0.models.price_detail'](),
|
|
841
4538
|
}); },
|
|
842
|
-
'io.flow.
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
4539
|
+
'io.flow.price.v0.models.price_book': function () { return ({
|
|
4540
|
+
id: factories.string(),
|
|
4541
|
+
key: factories.string(),
|
|
4542
|
+
currency: factories.string(),
|
|
4543
|
+
name: factories.string(),
|
|
4544
|
+
includes: factories['io.flow.common.v0.models.included_levies'](),
|
|
4545
|
+
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
848
4546
|
}); },
|
|
849
|
-
'io.flow.
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
transactionInfo: factories['io.flow.google.pay.v0.models.transaction_info'](),
|
|
855
|
-
emailRequired: factories.boolean(),
|
|
856
|
-
shippingAddressRequired: factories.boolean(),
|
|
857
|
-
shippingAddressParameters: factories['io.flow.google.pay.v0.models.shipping_address_parameters'](),
|
|
4547
|
+
'io.flow.price.v0.models.price_book_form': function () { return ({
|
|
4548
|
+
currency: factories.string(),
|
|
4549
|
+
name: factories.string(),
|
|
4550
|
+
includes: factories['io.flow.common.v0.enums.included_levy_key'](),
|
|
4551
|
+
status: factories['io.flow.common.v0.enums.price_book_status'](),
|
|
858
4552
|
}); },
|
|
859
|
-
'io.flow.
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
4553
|
+
'io.flow.price.v0.models.price_book_item': function () { return ({
|
|
4554
|
+
id: factories.string(),
|
|
4555
|
+
key: factories.string(),
|
|
4556
|
+
price_book: factories['io.flow.price.v0.models.price_book_reference'](),
|
|
4557
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
4558
|
+
item_number: factories.string(),
|
|
4559
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
4560
|
+
item_attributes: objectOf(function () { return factories.string(); }),
|
|
863
4561
|
}); },
|
|
864
|
-
'io.flow.
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
4562
|
+
'io.flow.price.v0.models.price_book_item_form': function () { return ({
|
|
4563
|
+
price_book_key: factories.string(),
|
|
4564
|
+
item_number: factories.string(),
|
|
4565
|
+
amount: factories.decimal(),
|
|
4566
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
4567
|
+
item_attributes: objectOf(function () { return factories.string(); }),
|
|
869
4568
|
}); },
|
|
870
|
-
'io.flow.
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
eciIndicator: factories.string(),
|
|
4569
|
+
'io.flow.price.v0.models.price_book_item_query_form': function () { return ({
|
|
4570
|
+
price_book_key: factories.string(),
|
|
4571
|
+
item_query: factories.string(),
|
|
4572
|
+
amount: factories.decimal(),
|
|
4573
|
+
schedule: factories['io.flow.price.v0.models.price_book_item_schedule'](),
|
|
4574
|
+
item_attributes: objectOf(function () { return factories.string(); }),
|
|
877
4575
|
}); },
|
|
878
|
-
'io.flow.
|
|
879
|
-
|
|
880
|
-
|
|
4576
|
+
'io.flow.price.v0.models.price_book_item_schedule': function () { return ({
|
|
4577
|
+
starts_at: factories.date_time_iso_8601(),
|
|
4578
|
+
ends_at: factories.date_time_iso_8601(),
|
|
881
4579
|
}); },
|
|
882
|
-
'io.flow.
|
|
883
|
-
|
|
884
|
-
|
|
4580
|
+
'io.flow.price.v0.models.price_book_reference': function () { return ({
|
|
4581
|
+
id: factories.string(),
|
|
4582
|
+
key: factories.string(),
|
|
885
4583
|
}); },
|
|
886
|
-
'io.flow.
|
|
887
|
-
|
|
4584
|
+
'io.flow.price.v0.models.price_check': function () { return ({
|
|
4585
|
+
display: factories['io.flow.price.v0.models.local_price_details'](),
|
|
4586
|
+
'final': factories['io.flow.price.v0.models.local_price_details'](),
|
|
888
4587
|
}); },
|
|
889
|
-
'io.flow.
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
4588
|
+
'io.flow.price.v0.models.price_detail': function () { return ({
|
|
4589
|
+
key: factories['io.flow.price.v0.enums.price_detail_key'](),
|
|
4590
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.models.price_detail_component'](); }),
|
|
4591
|
+
amount: factories.decimal(),
|
|
4592
|
+
label: factories.string(),
|
|
4593
|
+
name: factories.string(),
|
|
4594
|
+
basis: factories.decimal(),
|
|
893
4595
|
}); },
|
|
894
|
-
'io.flow.
|
|
895
|
-
|
|
896
|
-
|
|
4596
|
+
'io.flow.price.v0.models.price_detail_component': function () { return ({
|
|
4597
|
+
key: factories['io.flow.price.v0.enums.price_detail_component_key'](),
|
|
4598
|
+
amount: factories.decimal(),
|
|
4599
|
+
label: factories.string(),
|
|
4600
|
+
name: factories.string(),
|
|
897
4601
|
}); },
|
|
898
|
-
'io.flow.
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
4602
|
+
'io.flow.price.v0.models.price_details': function () { return ({
|
|
4603
|
+
currency: factories.string(),
|
|
4604
|
+
item_price: factories['io.flow.price.v0.models.price_detail'](),
|
|
4605
|
+
margins: factories['io.flow.price.v0.models.price_detail'](),
|
|
4606
|
+
vat: factories['io.flow.price.v0.models.price_detail'](),
|
|
4607
|
+
duty: factories['io.flow.price.v0.models.price_detail'](),
|
|
4608
|
+
rounding: factories['io.flow.price.v0.models.price_detail'](),
|
|
4609
|
+
price: factories['io.flow.common.v0.models.price'](),
|
|
4610
|
+
total: factories['io.flow.common.v0.models.price'](),
|
|
4611
|
+
adjustment: factories['io.flow.price.v0.models.price_detail'](),
|
|
4612
|
+
}); },
|
|
4613
|
+
'io.flow.price.v0.models.price_equation': function () { return ({
|
|
4614
|
+
contracted_rate: factories.decimal(),
|
|
4615
|
+
rate: factories.decimal(),
|
|
4616
|
+
pricing: factories['io.flow.price.v0.models.pricing'](),
|
|
4617
|
+
base_price: factories.decimal(),
|
|
4618
|
+
discount: factories.decimal(),
|
|
4619
|
+
fixed_margin: factories.decimal(),
|
|
4620
|
+
percent_margin: factories.decimal(),
|
|
4621
|
+
insurance: factories.decimal(),
|
|
4622
|
+
freight: factories.decimal(),
|
|
4623
|
+
duty: factories['io.flow.price.v0.models.duty'](),
|
|
4624
|
+
tax: factories['io.flow.price.v0.models.tax'](),
|
|
4625
|
+
percent_sales_margin: factories.decimal(),
|
|
902
4626
|
}); },
|
|
903
|
-
'io.flow.
|
|
4627
|
+
'io.flow.price.v0.models.pricing': function () { return ({
|
|
4628
|
+
vat: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
4629
|
+
duty: factories['io.flow.price.v0.enums.pricing_levy_setting'](),
|
|
4630
|
+
rounding: factories['io.flow.common.v0.models.rounding'](),
|
|
4631
|
+
}); },
|
|
4632
|
+
'io.flow.price.v0.models.tax': function () { return ({
|
|
4633
|
+
name: factories.string(),
|
|
4634
|
+
rate: factories.decimal(),
|
|
4635
|
+
components: arrayOf(function () { return factories['io.flow.price.v0.enums.levy_component'](); }),
|
|
4636
|
+
deminimis: factories['io.flow.price.v0.unions.deminimis'](),
|
|
4637
|
+
}); },
|
|
4638
|
+
'io.flow.price.v0.unions.deminimis': function () {
|
|
904
4639
|
var f = faker.helpers.arrayElement([
|
|
905
|
-
function () { return factories['io.flow.
|
|
906
|
-
function () { return factories['io.flow.
|
|
4640
|
+
function () { return factories['io.flow.price.v0.models.deminimis_simple'](); },
|
|
4641
|
+
function () { return factories['io.flow.price.v0.models.deminimis_per_item'](); },
|
|
907
4642
|
]);
|
|
908
4643
|
return f();
|
|
909
4644
|
},
|
|
@@ -932,6 +4667,208 @@ var factories = {
|
|
|
932
4667
|
handle: factories.string(),
|
|
933
4668
|
name: factories.string(),
|
|
934
4669
|
}); },
|
|
4670
|
+
'io.flow.query.builder.v0.enums.available_filter_format': function () { return faker.helpers.arrayElement([
|
|
4671
|
+
'boolean',
|
|
4672
|
+
'date',
|
|
4673
|
+
'money',
|
|
4674
|
+
'decimal',
|
|
4675
|
+
'string',
|
|
4676
|
+
'unit_of_length',
|
|
4677
|
+
'unit_of_mass',
|
|
4678
|
+
]); },
|
|
4679
|
+
'io.flow.query.builder.v0.models.available_filter_structured': function () { return ({
|
|
4680
|
+
discriminator: 'structured',
|
|
4681
|
+
field: factories.string(),
|
|
4682
|
+
operators: arrayOf(function () { return factories.string(); }),
|
|
4683
|
+
format: factories['io.flow.query.builder.v0.enums.available_filter_format'](),
|
|
4684
|
+
valid_values: arrayOf(function () { return factories.string(); }),
|
|
4685
|
+
placeholder: factories.string(),
|
|
4686
|
+
}); },
|
|
4687
|
+
'io.flow.query.builder.v0.models.available_filter_unstructured': function () { return ({
|
|
4688
|
+
discriminator: 'unstructured',
|
|
4689
|
+
placeholder: factories.string(),
|
|
4690
|
+
}); },
|
|
4691
|
+
'io.flow.query.builder.v0.models.query': function () { return ({
|
|
4692
|
+
q: factories.string(),
|
|
4693
|
+
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter'](); }),
|
|
4694
|
+
}); },
|
|
4695
|
+
'io.flow.query.builder.v0.models.query_builder': function () { return ({
|
|
4696
|
+
q: factories.string(),
|
|
4697
|
+
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter'](); }),
|
|
4698
|
+
available: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.available_filter'](); }),
|
|
4699
|
+
}); },
|
|
4700
|
+
'io.flow.query.builder.v0.models.query_builder_filter_form': function () { return ({
|
|
4701
|
+
discriminator: 'filter',
|
|
4702
|
+
filters: arrayOf(function () { return factories['io.flow.query.builder.v0.unions.query_filter_form'](); }),
|
|
4703
|
+
}); },
|
|
4704
|
+
'io.flow.query.builder.v0.models.query_builder_query_form': function () { return ({
|
|
4705
|
+
discriminator: 'query',
|
|
4706
|
+
q: factories.string(),
|
|
4707
|
+
}); },
|
|
4708
|
+
'io.flow.query.builder.v0.models.query_filter_structured': function () { return ({
|
|
4709
|
+
discriminator: 'structured',
|
|
4710
|
+
q: factories.string(),
|
|
4711
|
+
field: factories.string(),
|
|
4712
|
+
operator: factories.string(),
|
|
4713
|
+
values: arrayOf(function () { return factories.string(); }),
|
|
4714
|
+
}); },
|
|
4715
|
+
'io.flow.query.builder.v0.models.query_filter_structured_form': function () { return ({
|
|
4716
|
+
discriminator: 'structured',
|
|
4717
|
+
field: factories.string(),
|
|
4718
|
+
operator: factories.string(),
|
|
4719
|
+
values: arrayOf(function () { return factories.string(); }),
|
|
4720
|
+
}); },
|
|
4721
|
+
'io.flow.query.builder.v0.models.query_filter_unstructured': function () { return ({
|
|
4722
|
+
discriminator: 'unstructured',
|
|
4723
|
+
q: factories.string(),
|
|
4724
|
+
}); },
|
|
4725
|
+
'io.flow.query.builder.v0.models.query_filter_unstructured_form': function () { return ({
|
|
4726
|
+
discriminator: 'unstructured',
|
|
4727
|
+
q: factories.string(),
|
|
4728
|
+
}); },
|
|
4729
|
+
'io.flow.query.builder.v0.unions.available_filter': function () {
|
|
4730
|
+
var f = faker.helpers.arrayElement([
|
|
4731
|
+
function () { return factories['io.flow.query.builder.v0.models.available_filter_structured'](); },
|
|
4732
|
+
function () { return factories['io.flow.query.builder.v0.models.available_filter_unstructured'](); },
|
|
4733
|
+
]);
|
|
4734
|
+
return f();
|
|
4735
|
+
},
|
|
4736
|
+
'io.flow.query.builder.v0.unions.query_builder_form': function () {
|
|
4737
|
+
var f = faker.helpers.arrayElement([
|
|
4738
|
+
function () { return factories['io.flow.query.builder.v0.models.query_builder_filter_form'](); },
|
|
4739
|
+
function () { return factories['io.flow.query.builder.v0.models.query_builder_query_form'](); },
|
|
4740
|
+
]);
|
|
4741
|
+
return f();
|
|
4742
|
+
},
|
|
4743
|
+
'io.flow.query.builder.v0.unions.query_filter': function () {
|
|
4744
|
+
var f = faker.helpers.arrayElement([
|
|
4745
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_structured'](); },
|
|
4746
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_unstructured'](); },
|
|
4747
|
+
]);
|
|
4748
|
+
return f();
|
|
4749
|
+
},
|
|
4750
|
+
'io.flow.query.builder.v0.unions.query_filter_form': function () {
|
|
4751
|
+
var f = faker.helpers.arrayElement([
|
|
4752
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_structured_form'](); },
|
|
4753
|
+
function () { return factories['io.flow.query.builder.v0.models.query_filter_unstructured_form'](); },
|
|
4754
|
+
]);
|
|
4755
|
+
return f();
|
|
4756
|
+
},
|
|
4757
|
+
'io.flow.reference.v0.enums.payment_method_capability': function () { return faker.helpers.arrayElement(['credit', 'debit']); },
|
|
4758
|
+
'io.flow.reference.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'online', 'offline']); },
|
|
4759
|
+
'io.flow.reference.v0.enums.postal_type': function () { return faker.helpers.arrayElement(['eircode', 'pin', 'postal', 'zip']); },
|
|
4760
|
+
'io.flow.reference.v0.enums.province_type': function () { return faker.helpers.arrayElement([
|
|
4761
|
+
'area',
|
|
4762
|
+
'city',
|
|
4763
|
+
'county',
|
|
4764
|
+
'department',
|
|
4765
|
+
'dependency',
|
|
4766
|
+
'district',
|
|
4767
|
+
'do_si',
|
|
4768
|
+
'emirate',
|
|
4769
|
+
'entity',
|
|
4770
|
+
'island',
|
|
4771
|
+
'municipality',
|
|
4772
|
+
'oblast',
|
|
4773
|
+
'outlying_area',
|
|
4774
|
+
'parish',
|
|
4775
|
+
'prefecture',
|
|
4776
|
+
'province',
|
|
4777
|
+
'state',
|
|
4778
|
+
'territory',
|
|
4779
|
+
'other',
|
|
4780
|
+
]); },
|
|
4781
|
+
'io.flow.reference.v0.models.carrier': function () { return ({
|
|
4782
|
+
id: factories.string(),
|
|
4783
|
+
name: factories.string(),
|
|
4784
|
+
tracking_url: factories.string(),
|
|
4785
|
+
}); },
|
|
4786
|
+
'io.flow.reference.v0.models.carrier_service': function () { return ({
|
|
4787
|
+
id: factories.string(),
|
|
4788
|
+
carrier: factories['io.flow.reference.v0.models.carrier'](),
|
|
4789
|
+
name: factories.string(),
|
|
4790
|
+
}); },
|
|
4791
|
+
'io.flow.reference.v0.models.country': function () { return ({
|
|
4792
|
+
name: factories.string(),
|
|
4793
|
+
iso_3166_2: factories.string(),
|
|
4794
|
+
iso_3166_3: factories.string(),
|
|
4795
|
+
languages: arrayOf(function () { return factories.string(); }),
|
|
4796
|
+
measurement_system: factories.string(),
|
|
4797
|
+
default_currency: factories.string(),
|
|
4798
|
+
default_language: factories.string(),
|
|
4799
|
+
timezones: arrayOf(function () { return factories.string(); }),
|
|
4800
|
+
default_delivered_duty: factories.string(),
|
|
4801
|
+
}); },
|
|
4802
|
+
'io.flow.reference.v0.models.currency': function () { return ({
|
|
4803
|
+
name: factories.string(),
|
|
4804
|
+
iso_4217_3: factories.string(),
|
|
4805
|
+
number_decimals: factories.integer(),
|
|
4806
|
+
symbols: factories['io.flow.reference.v0.models.currency_symbols'](),
|
|
4807
|
+
default_locale: factories.string(),
|
|
4808
|
+
}); },
|
|
4809
|
+
'io.flow.reference.v0.models.currency_symbols': function () { return ({
|
|
4810
|
+
primary: factories.string(),
|
|
4811
|
+
narrow: factories.string(),
|
|
4812
|
+
}); },
|
|
4813
|
+
'io.flow.reference.v0.models.language': function () { return ({
|
|
4814
|
+
name: factories.string(),
|
|
4815
|
+
iso_639_2: factories.string(),
|
|
4816
|
+
}); },
|
|
4817
|
+
'io.flow.reference.v0.models.locale': function () { return ({
|
|
4818
|
+
id: factories.string(),
|
|
4819
|
+
name: factories.string(),
|
|
4820
|
+
country: factories.string(),
|
|
4821
|
+
language: factories.string(),
|
|
4822
|
+
numbers: factories['io.flow.reference.v0.models.locale_numbers'](),
|
|
4823
|
+
}); },
|
|
4824
|
+
'io.flow.reference.v0.models.locale_numbers': function () { return ({
|
|
4825
|
+
decimal: factories.string(),
|
|
4826
|
+
group: factories.string(),
|
|
4827
|
+
}); },
|
|
4828
|
+
'io.flow.reference.v0.models.localized_translation': function () { return ({
|
|
4829
|
+
locale: factories['io.flow.reference.v0.models.locale'](),
|
|
4830
|
+
name: factories.string(),
|
|
4831
|
+
}); },
|
|
4832
|
+
'io.flow.reference.v0.models.payment_method': function () { return ({
|
|
4833
|
+
id: factories.string(),
|
|
4834
|
+
type: factories['io.flow.reference.v0.enums.payment_method_type'](),
|
|
4835
|
+
name: factories.string(),
|
|
4836
|
+
images: factories['io.flow.reference.v0.models.payment_method_images'](),
|
|
4837
|
+
regions: arrayOf(function () { return factories.string(); }),
|
|
4838
|
+
capabilities: arrayOf(function () { return factories['io.flow.reference.v0.enums.payment_method_capability'](); }),
|
|
4839
|
+
}); },
|
|
4840
|
+
'io.flow.reference.v0.models.payment_method_image': function () { return ({
|
|
4841
|
+
url: factories.string(),
|
|
4842
|
+
width: factories.integer(),
|
|
4843
|
+
height: factories.integer(),
|
|
4844
|
+
}); },
|
|
4845
|
+
'io.flow.reference.v0.models.payment_method_images': function () { return ({
|
|
4846
|
+
small: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
4847
|
+
medium: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
4848
|
+
large: factories['io.flow.reference.v0.models.payment_method_image'](),
|
|
4849
|
+
}); },
|
|
4850
|
+
'io.flow.reference.v0.models.province': function () { return ({
|
|
4851
|
+
id: factories.string(),
|
|
4852
|
+
iso_3166_2: factories.string(),
|
|
4853
|
+
name: factories.string(),
|
|
4854
|
+
country: factories.string(),
|
|
4855
|
+
province_type: factories['io.flow.reference.v0.enums.province_type'](),
|
|
4856
|
+
translations: arrayOf(function () { return factories['io.flow.reference.v0.models.localized_translation'](); }),
|
|
4857
|
+
}); },
|
|
4858
|
+
'io.flow.reference.v0.models.region': function () { return ({
|
|
4859
|
+
id: factories.string(),
|
|
4860
|
+
name: factories.string(),
|
|
4861
|
+
countries: arrayOf(function () { return factories.string(); }),
|
|
4862
|
+
currencies: arrayOf(function () { return factories.string(); }),
|
|
4863
|
+
languages: arrayOf(function () { return factories.string(); }),
|
|
4864
|
+
measurement_systems: arrayOf(function () { return factories.string(); }),
|
|
4865
|
+
timezones: arrayOf(function () { return factories.string(); }),
|
|
4866
|
+
}); },
|
|
4867
|
+
'io.flow.reference.v0.models.timezone': function () { return ({
|
|
4868
|
+
name: factories.string(),
|
|
4869
|
+
description: factories.string(),
|
|
4870
|
+
offset: factories.integer(),
|
|
4871
|
+
}); },
|
|
935
4872
|
'io.flow.shopify.external.v0.enums.cancel_reason': function () { return faker.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']); },
|
|
936
4873
|
'io.flow.shopify.external.v0.enums.discount_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled', 'depleted']); },
|
|
937
4874
|
'io.flow.shopify.external.v0.enums.discount_type': function () { return faker.helpers.arrayElement(['fixed_amount', 'percentage', 'shipping']); },
|
|
@@ -3656,6 +7593,7 @@ var factories = {
|
|
|
3656
7593
|
'io.flow.tech.onboarding.playground.v0.enums.bojana_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3657
7594
|
'io.flow.tech.onboarding.playground.v0.enums.chenglin_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3658
7595
|
'io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
7596
|
+
'io.flow.tech.onboarding.playground.v0.enums.john_strong_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3659
7597
|
'io.flow.tech.onboarding.playground.v0.enums.mahesh_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3660
7598
|
'io.flow.tech.onboarding.playground.v0.enums.raveena_item_type': function () { return faker.helpers.arrayElement(['physical', 'digital']); },
|
|
3661
7599
|
'io.flow.tech.onboarding.playground.v0.models.amrutha_item': function () { return ({
|
|
@@ -3718,6 +7656,21 @@ var factories = {
|
|
|
3718
7656
|
type: factories['io.flow.tech.onboarding.playground.v0.enums.gabriel_item_type'](),
|
|
3719
7657
|
added_on: factories.date_iso_8601(),
|
|
3720
7658
|
}); },
|
|
7659
|
+
'io.flow.tech.onboarding.playground.v0.models.john_strong_item': function () { return ({
|
|
7660
|
+
id: factories.string(),
|
|
7661
|
+
number: factories.string(),
|
|
7662
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
7663
|
+
description: factories.string(),
|
|
7664
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.john_strong_item_type'](),
|
|
7665
|
+
added_on: factories.date_time_iso_8601(),
|
|
7666
|
+
}); },
|
|
7667
|
+
'io.flow.tech.onboarding.playground.v0.models.john_strong_item_form': function () { return ({
|
|
7668
|
+
number: factories.string(),
|
|
7669
|
+
amount: factories['io.flow.common.v0.models.price'](),
|
|
7670
|
+
description: factories.string(),
|
|
7671
|
+
type: factories['io.flow.tech.onboarding.playground.v0.enums.john_strong_item_type'](),
|
|
7672
|
+
added_on: factories.date_time_iso_8601(),
|
|
7673
|
+
}); },
|
|
3721
7674
|
'io.flow.tech.onboarding.playground.v0.models.mahesh_item': function () { return ({
|
|
3722
7675
|
id: factories.string(),
|
|
3723
7676
|
number: factories.string(),
|
|
@@ -12378,6 +16331,8 @@ var factories = {
|
|
|
12378
16331
|
updated_at: factories.date_time_iso_8601(),
|
|
12379
16332
|
direction: factories['io.flow.v0.enums.direction'](),
|
|
12380
16333
|
shipping_cost_guarantee: factories['io.flow.v0.enums.shipping_cost_guarantee'](),
|
|
16334
|
+
delivery_window_days_from: factories.decimal(),
|
|
16335
|
+
delivery_window_days_to: factories.decimal(),
|
|
12381
16336
|
}); },
|
|
12382
16337
|
'io.flow.v0.models.shipping_label_document': function () { return ({
|
|
12383
16338
|
zpl: factories.string(),
|