@flowio/api-factories 0.0.39 → 0.0.40
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 +417 -409
- package/dist/esm/api.js +383 -376
- package/dist/types/api.d.ts +1 -0
- package/package.json +2 -2
- package/src/api.ts +391 -383
package/dist/esm/api.js
CHANGED
|
@@ -25,11 +25,11 @@ var factories = {
|
|
|
25
25
|
string: function () { return faker.datatype.string(); },
|
|
26
26
|
unit: function () { return undefined; },
|
|
27
27
|
uuid: function () { return faker.datatype.uuid(); },
|
|
28
|
-
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.
|
|
29
|
-
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker.
|
|
30
|
-
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': function () { return faker.
|
|
31
|
-
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker.
|
|
32
|
-
'io.flow.apple.pay.v0.enums.apple_pay_supported_networks': function () { return faker.
|
|
28
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', 'postal_address', 'phonetic_name']); },
|
|
29
|
+
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker.helpers.arrayElement(['final', 'pending']); },
|
|
30
|
+
'io.flow.apple.pay.v0.enums.apple_pay_merchant_capability': function () { return faker.helpers.arrayElement(['supports3DS', 'supportsCredit', 'supportsDebit', 'supportsEMV']); },
|
|
31
|
+
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']); },
|
|
32
|
+
'io.flow.apple.pay.v0.enums.apple_pay_supported_networks': function () { return faker.helpers.arrayElement([
|
|
33
33
|
'amex',
|
|
34
34
|
'chinaUnionPay',
|
|
35
35
|
'discover',
|
|
@@ -91,13 +91,13 @@ var factories = {
|
|
|
91
91
|
amount: factories.decimal(),
|
|
92
92
|
identifier: factories.string(),
|
|
93
93
|
}); },
|
|
94
|
-
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.
|
|
95
|
-
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.
|
|
96
|
-
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.
|
|
97
|
-
'io.flow.google.pay.v0.enums.card_network': function () { return faker.
|
|
98
|
-
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.
|
|
99
|
-
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.
|
|
100
|
-
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.
|
|
94
|
+
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
95
|
+
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
96
|
+
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
97
|
+
'io.flow.google.pay.v0.enums.card_network': function () { return faker.helpers.arrayElement(['AMEX', 'DISCOVER', 'JCB', 'MASTERCARD', 'VISA']); },
|
|
98
|
+
'io.flow.google.pay.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['CARD']); },
|
|
99
|
+
'io.flow.google.pay.v0.enums.tokenization_type': function () { return faker.helpers.arrayElement(['PAYMENT_GATEWAY', 'DIRECT']); },
|
|
100
|
+
'io.flow.google.pay.v0.enums.total_price_status': function () { return faker.helpers.arrayElement(['NOT_CURRENTLY_KNOWN', 'ESTIMATED', 'FINAL']); },
|
|
101
101
|
'io.flow.google.pay.v0.models.address': function () { return ({
|
|
102
102
|
name: factories.string(),
|
|
103
103
|
postalCode: factories.string(),
|
|
@@ -213,17 +213,17 @@ var factories = {
|
|
|
213
213
|
currencyCode: factories.string(),
|
|
214
214
|
}); },
|
|
215
215
|
'io.flow.google.pay.v0.unions.payment_method_token': function () {
|
|
216
|
-
var f = faker.
|
|
216
|
+
var f = faker.helpers.arrayElement([
|
|
217
217
|
function () { return factories['io.flow.google.pay.v0.models.direct_payment_method_token'](); },
|
|
218
218
|
function () { return factories['io.flow.google.pay.v0.models.stripe_payment_method_token'](); },
|
|
219
219
|
]);
|
|
220
220
|
return f();
|
|
221
221
|
},
|
|
222
|
-
'io.flow.shopify.external.v0.enums.cancel_reason': function () { return faker.
|
|
223
|
-
'io.flow.shopify.external.v0.enums.discount_status': function () { return faker.
|
|
224
|
-
'io.flow.shopify.external.v0.enums.discount_type': function () { return faker.
|
|
225
|
-
'io.flow.shopify.external.v0.enums.discrepancy_reason': function () { return faker.
|
|
226
|
-
'io.flow.shopify.external.v0.enums.event': function () { return faker.
|
|
222
|
+
'io.flow.shopify.external.v0.enums.cancel_reason': function () { return faker.helpers.arrayElement(['customer', 'fraud', 'inventory', 'declined', 'other']); },
|
|
223
|
+
'io.flow.shopify.external.v0.enums.discount_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled', 'depleted']); },
|
|
224
|
+
'io.flow.shopify.external.v0.enums.discount_type': function () { return faker.helpers.arrayElement(['fixed_amount', 'percentage', 'shipping']); },
|
|
225
|
+
'io.flow.shopify.external.v0.enums.discrepancy_reason': function () { return faker.helpers.arrayElement(['restock', 'damage', 'customer', 'other']); },
|
|
226
|
+
'io.flow.shopify.external.v0.enums.event': function () { return faker.helpers.arrayElement([
|
|
227
227
|
'cart',
|
|
228
228
|
'checkout',
|
|
229
229
|
'collection',
|
|
@@ -237,7 +237,7 @@ var factories = {
|
|
|
237
237
|
'refund',
|
|
238
238
|
'shop',
|
|
239
239
|
]); },
|
|
240
|
-
'io.flow.shopify.external.v0.enums.financial_status_type': function () { return faker.
|
|
240
|
+
'io.flow.shopify.external.v0.enums.financial_status_type': function () { return faker.helpers.arrayElement([
|
|
241
241
|
'pending',
|
|
242
242
|
'authorized',
|
|
243
243
|
'partially_paid',
|
|
@@ -246,32 +246,32 @@ var factories = {
|
|
|
246
246
|
'refunded',
|
|
247
247
|
'voided',
|
|
248
248
|
]); },
|
|
249
|
-
'io.flow.shopify.external.v0.enums.format': function () { return faker.
|
|
250
|
-
'io.flow.shopify.external.v0.enums.fulfillment_service': function () { return faker.
|
|
251
|
-
'io.flow.shopify.external.v0.enums.fulfillment_status_type': function () { return faker.
|
|
252
|
-
'io.flow.shopify.external.v0.enums.inventory_behaviour': function () { return faker.
|
|
253
|
-
'io.flow.shopify.external.v0.enums.inventory_management': function () { return faker.
|
|
254
|
-
'io.flow.shopify.external.v0.enums.inventory_policy': function () { return faker.
|
|
255
|
-
'io.flow.shopify.external.v0.enums.kind_type': function () { return faker.
|
|
256
|
-
'io.flow.shopify.external.v0.enums.localized_price': function () { return faker.
|
|
249
|
+
'io.flow.shopify.external.v0.enums.format': function () { return faker.helpers.arrayElement(['json', 'xml']); },
|
|
250
|
+
'io.flow.shopify.external.v0.enums.fulfillment_service': function () { return faker.helpers.arrayElement(['manual', 'gift_card']); },
|
|
251
|
+
'io.flow.shopify.external.v0.enums.fulfillment_status_type': function () { return faker.helpers.arrayElement(['fulfilled', 'null', 'partial']); },
|
|
252
|
+
'io.flow.shopify.external.v0.enums.inventory_behaviour': function () { return faker.helpers.arrayElement(['bypass', 'decrement_ignoring_policy', 'decrement_obeying_policy']); },
|
|
253
|
+
'io.flow.shopify.external.v0.enums.inventory_management': function () { return faker.helpers.arrayElement(['blank', 'shopify']); },
|
|
254
|
+
'io.flow.shopify.external.v0.enums.inventory_policy': function () { return faker.helpers.arrayElement(['deny', 'continue']); },
|
|
255
|
+
'io.flow.shopify.external.v0.enums.kind_type': function () { return faker.helpers.arrayElement(['authorization', 'capture', 'sale', 'void', 'refund']); },
|
|
256
|
+
'io.flow.shopify.external.v0.enums.localized_price': function () { return faker.helpers.arrayElement([
|
|
257
257
|
'localized_item_price',
|
|
258
258
|
'localized_item_vat',
|
|
259
259
|
'localized_item_duty',
|
|
260
260
|
'localized_total',
|
|
261
261
|
]); },
|
|
262
|
-
'io.flow.shopify.external.v0.enums.order_status_type': function () { return faker.
|
|
263
|
-
'io.flow.shopify.external.v0.enums.price_rule_allocation_method': function () { return faker.
|
|
264
|
-
'io.flow.shopify.external.v0.enums.price_rule_customer_selection': function () { return faker.
|
|
265
|
-
'io.flow.shopify.external.v0.enums.price_rule_target_selection': function () { return faker.
|
|
266
|
-
'io.flow.shopify.external.v0.enums.price_rule_target_type': function () { return faker.
|
|
267
|
-
'io.flow.shopify.external.v0.enums.price_rule_value_type': function () { return faker.
|
|
268
|
-
'io.flow.shopify.external.v0.enums.published_scope': function () { return faker.
|
|
269
|
-
'io.flow.shopify.external.v0.enums.restock_type': function () { return faker.
|
|
270
|
-
'io.flow.shopify.external.v0.enums.shopify_customer_state': function () { return faker.
|
|
271
|
-
'io.flow.shopify.external.v0.enums.shopify_discount_pagination_direction': function () { return faker.
|
|
272
|
-
'io.flow.shopify.external.v0.enums.shopify_gift_card_status': function () { return faker.
|
|
273
|
-
'io.flow.shopify.external.v0.enums.shopify_processing_method_type': function () { return faker.
|
|
274
|
-
'io.flow.shopify.external.v0.enums.shopify_transaction_error_code': function () { return faker.
|
|
262
|
+
'io.flow.shopify.external.v0.enums.order_status_type': function () { return faker.helpers.arrayElement(['open', 'closed', 'cancelled', 'any']); },
|
|
263
|
+
'io.flow.shopify.external.v0.enums.price_rule_allocation_method': function () { return faker.helpers.arrayElement(['across', 'each']); },
|
|
264
|
+
'io.flow.shopify.external.v0.enums.price_rule_customer_selection': function () { return faker.helpers.arrayElement(['all', 'prerequisite']); },
|
|
265
|
+
'io.flow.shopify.external.v0.enums.price_rule_target_selection': function () { return faker.helpers.arrayElement(['all', 'entitled']); },
|
|
266
|
+
'io.flow.shopify.external.v0.enums.price_rule_target_type': function () { return faker.helpers.arrayElement(['line_item', 'shipping_line']); },
|
|
267
|
+
'io.flow.shopify.external.v0.enums.price_rule_value_type': function () { return faker.helpers.arrayElement(['fixed_amount', 'percentage']); },
|
|
268
|
+
'io.flow.shopify.external.v0.enums.published_scope': function () { return faker.helpers.arrayElement(['global']); },
|
|
269
|
+
'io.flow.shopify.external.v0.enums.restock_type': function () { return faker.helpers.arrayElement(['no_restock', 'cancel', 'return']); },
|
|
270
|
+
'io.flow.shopify.external.v0.enums.shopify_customer_state': function () { return faker.helpers.arrayElement(['disabled', 'invited', 'enabled']); },
|
|
271
|
+
'io.flow.shopify.external.v0.enums.shopify_discount_pagination_direction': function () { return faker.helpers.arrayElement(['next', 'prev']); },
|
|
272
|
+
'io.flow.shopify.external.v0.enums.shopify_gift_card_status': function () { return faker.helpers.arrayElement(['any', 'enabled', 'disabled']); },
|
|
273
|
+
'io.flow.shopify.external.v0.enums.shopify_processing_method_type': function () { return faker.helpers.arrayElement(['checkout', 'direct', 'manual', 'offsite', 'express']); },
|
|
274
|
+
'io.flow.shopify.external.v0.enums.shopify_transaction_error_code': function () { return faker.helpers.arrayElement([
|
|
275
275
|
'incorrect_number',
|
|
276
276
|
'invalid_number',
|
|
277
277
|
'invalid_expiry_date',
|
|
@@ -285,8 +285,8 @@ var factories = {
|
|
|
285
285
|
'call_issuer',
|
|
286
286
|
'pick_up_card',
|
|
287
287
|
]); },
|
|
288
|
-
'io.flow.shopify.external.v0.enums.shopify_transaction_status': function () { return faker.
|
|
289
|
-
'io.flow.shopify.external.v0.enums.topic': function () { return faker.
|
|
288
|
+
'io.flow.shopify.external.v0.enums.shopify_transaction_status': function () { return faker.helpers.arrayElement(['pending', 'failure', 'success', 'error']); },
|
|
289
|
+
'io.flow.shopify.external.v0.enums.topic': function () { return faker.helpers.arrayElement([
|
|
290
290
|
'carts/create',
|
|
291
291
|
'carts/update',
|
|
292
292
|
'checkouts/create',
|
|
@@ -338,8 +338,8 @@ var factories = {
|
|
|
338
338
|
'themes/publish',
|
|
339
339
|
'themes/update',
|
|
340
340
|
]); },
|
|
341
|
-
'io.flow.shopify.external.v0.enums.value_type': function () { return faker.
|
|
342
|
-
'io.flow.shopify.external.v0.enums.weight_unit': function () { return faker.
|
|
341
|
+
'io.flow.shopify.external.v0.enums.value_type': function () { return faker.helpers.arrayElement(['string', 'integer']); },
|
|
342
|
+
'io.flow.shopify.external.v0.enums.weight_unit': function () { return faker.helpers.arrayElement(['g', 'kg', 'oz', 'lb']); },
|
|
343
343
|
'io.flow.shopify.external.v0.models.collection': function () { return ({
|
|
344
344
|
id: factories.long(),
|
|
345
345
|
handle: factories.string(),
|
|
@@ -1111,8 +1111,8 @@ var factories = {
|
|
|
1111
1111
|
'io.flow.shopify.external.v0.models.webhook_response_single': function () { return ({
|
|
1112
1112
|
webhook: factories['io.flow.shopify.external.v0.models.webhook'](),
|
|
1113
1113
|
}); },
|
|
1114
|
-
'io.flow.stripe.v0.enums.account_type': function () { return faker.
|
|
1115
|
-
'io.flow.stripe.v0.enums.cancellation_reason': function () { return faker.
|
|
1114
|
+
'io.flow.stripe.v0.enums.account_type': function () { return faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']); },
|
|
1115
|
+
'io.flow.stripe.v0.enums.cancellation_reason': function () { return faker.helpers.arrayElement([
|
|
1116
1116
|
'abandoned',
|
|
1117
1117
|
'automatic',
|
|
1118
1118
|
'duplicate',
|
|
@@ -1121,8 +1121,8 @@ var factories = {
|
|
|
1121
1121
|
'requested_by_customer',
|
|
1122
1122
|
'void_invoice',
|
|
1123
1123
|
]); },
|
|
1124
|
-
'io.flow.stripe.v0.enums.capture_method': function () { return faker.
|
|
1125
|
-
'io.flow.stripe.v0.enums.card_brand': function () { return faker.
|
|
1124
|
+
'io.flow.stripe.v0.enums.capture_method': function () { return faker.helpers.arrayElement(['automatic', 'manual']); },
|
|
1125
|
+
'io.flow.stripe.v0.enums.card_brand': function () { return faker.helpers.arrayElement([
|
|
1126
1126
|
'American Express',
|
|
1127
1127
|
'MasterCard',
|
|
1128
1128
|
'Discover',
|
|
@@ -1130,7 +1130,7 @@ var factories = {
|
|
|
1130
1130
|
'Diners Club',
|
|
1131
1131
|
'Unknown',
|
|
1132
1132
|
]); },
|
|
1133
|
-
'io.flow.stripe.v0.enums.card_error_code': function () { return faker.
|
|
1133
|
+
'io.flow.stripe.v0.enums.card_error_code': function () { return faker.helpers.arrayElement([
|
|
1134
1134
|
'invalid_number',
|
|
1135
1135
|
'invalid_expiry_month',
|
|
1136
1136
|
'invalid_expiry_year',
|
|
@@ -1144,11 +1144,11 @@ var factories = {
|
|
|
1144
1144
|
'missing',
|
|
1145
1145
|
'processing_error',
|
|
1146
1146
|
]); },
|
|
1147
|
-
'io.flow.stripe.v0.enums.card_funding_type': function () { return faker.
|
|
1148
|
-
'io.flow.stripe.v0.enums.check_outcome': function () { return faker.
|
|
1149
|
-
'io.flow.stripe.v0.enums.code_verification_status': function () { return faker.
|
|
1150
|
-
'io.flow.stripe.v0.enums.confirmation_method': function () { return faker.
|
|
1151
|
-
'io.flow.stripe.v0.enums.decline_code': function () { return faker.
|
|
1147
|
+
'io.flow.stripe.v0.enums.card_funding_type': function () { return faker.helpers.arrayElement(['credit', 'debit', 'prepaid', 'unknown']); },
|
|
1148
|
+
'io.flow.stripe.v0.enums.check_outcome': function () { return faker.helpers.arrayElement(['pass', 'fail', 'unavailable', 'unchecked']); },
|
|
1149
|
+
'io.flow.stripe.v0.enums.code_verification_status': function () { return faker.helpers.arrayElement(['pending', 'succeeded', 'failed']); },
|
|
1150
|
+
'io.flow.stripe.v0.enums.confirmation_method': function () { return faker.helpers.arrayElement(['automatic', 'manual']); },
|
|
1151
|
+
'io.flow.stripe.v0.enums.decline_code': function () { return faker.helpers.arrayElement([
|
|
1152
1152
|
'approve_with_id',
|
|
1153
1153
|
'call_issuer',
|
|
1154
1154
|
'card_not_supported',
|
|
@@ -1192,7 +1192,7 @@ var factories = {
|
|
|
1192
1192
|
'try_again_later',
|
|
1193
1193
|
'withdrawal_count_limit_exceeded',
|
|
1194
1194
|
]); },
|
|
1195
|
-
'io.flow.stripe.v0.enums.error_type': function () { return faker.
|
|
1195
|
+
'io.flow.stripe.v0.enums.error_type': function () { return faker.helpers.arrayElement([
|
|
1196
1196
|
'api_connection_error',
|
|
1197
1197
|
'api_error',
|
|
1198
1198
|
'authentication_error',
|
|
@@ -1202,7 +1202,7 @@ var factories = {
|
|
|
1202
1202
|
'rate_limit_error',
|
|
1203
1203
|
'validation_error',
|
|
1204
1204
|
]); },
|
|
1205
|
-
'io.flow.stripe.v0.enums.event_type': function () { return faker.
|
|
1205
|
+
'io.flow.stripe.v0.enums.event_type': function () { return faker.helpers.arrayElement([
|
|
1206
1206
|
'charge.captured',
|
|
1207
1207
|
'charge.failed',
|
|
1208
1208
|
'charge.pending',
|
|
@@ -1217,23 +1217,23 @@ var factories = {
|
|
|
1217
1217
|
'source.chargeable',
|
|
1218
1218
|
'source.failed',
|
|
1219
1219
|
]); },
|
|
1220
|
-
'io.flow.stripe.v0.enums.klarna_payment_method_category_type': function () { return faker.
|
|
1220
|
+
'io.flow.stripe.v0.enums.klarna_payment_method_category_type': function () { return faker.helpers.arrayElement([
|
|
1221
1221
|
'direct_bank_transfer',
|
|
1222
1222
|
'direct_debit',
|
|
1223
1223
|
'pay_later',
|
|
1224
1224
|
'pay_now',
|
|
1225
1225
|
'pay_over_time',
|
|
1226
1226
|
]); },
|
|
1227
|
-
'io.flow.stripe.v0.enums.klarna_product': function () { return faker.
|
|
1228
|
-
'io.flow.stripe.v0.enums.network_status': function () { return faker.
|
|
1227
|
+
'io.flow.stripe.v0.enums.klarna_product': function () { return faker.helpers.arrayElement(['payment']); },
|
|
1228
|
+
'io.flow.stripe.v0.enums.network_status': function () { return faker.helpers.arrayElement([
|
|
1229
1229
|
'approved_by_network',
|
|
1230
1230
|
'declined_by_network',
|
|
1231
1231
|
'not_sent_to_network',
|
|
1232
1232
|
'reversed_after_approval',
|
|
1233
1233
|
]); },
|
|
1234
|
-
'io.flow.stripe.v0.enums.next_action_type': function () { return faker.
|
|
1235
|
-
'io.flow.stripe.v0.enums.order_item_type': function () { return faker.
|
|
1236
|
-
'io.flow.stripe.v0.enums.payment_intent_status': function () { return faker.
|
|
1234
|
+
'io.flow.stripe.v0.enums.next_action_type': function () { return faker.helpers.arrayElement(['redirect_to_url', 'use_stripe_sdk']); },
|
|
1235
|
+
'io.flow.stripe.v0.enums.order_item_type': function () { return faker.helpers.arrayElement(['sku', 'tax', 'shipping', 'discount']); },
|
|
1236
|
+
'io.flow.stripe.v0.enums.payment_intent_status': function () { return faker.helpers.arrayElement([
|
|
1237
1237
|
'canceled',
|
|
1238
1238
|
'processing',
|
|
1239
1239
|
'requires_action',
|
|
@@ -1242,18 +1242,18 @@ var factories = {
|
|
|
1242
1242
|
'requires_payment_method',
|
|
1243
1243
|
'succeeded',
|
|
1244
1244
|
]); },
|
|
1245
|
-
'io.flow.stripe.v0.enums.payment_method_type': function () { return faker.
|
|
1246
|
-
'io.flow.stripe.v0.enums.payment_outcome_type': function () { return faker.
|
|
1247
|
-
'io.flow.stripe.v0.enums.payment_status': function () { return faker.
|
|
1248
|
-
'io.flow.stripe.v0.enums.refund_failure_reason': function () { return faker.
|
|
1249
|
-
'io.flow.stripe.v0.enums.refund_reason': function () { return faker.
|
|
1250
|
-
'io.flow.stripe.v0.enums.refund_status': function () { return faker.
|
|
1251
|
-
'io.flow.stripe.v0.enums.request_three_d_secure_type': function () { return faker.
|
|
1252
|
-
'io.flow.stripe.v0.enums.requested_capabilities': function () { return faker.
|
|
1253
|
-
'io.flow.stripe.v0.enums.setup_future_usage': function () { return faker.
|
|
1254
|
-
'io.flow.stripe.v0.enums.source_flow': function () { return faker.
|
|
1255
|
-
'io.flow.stripe.v0.enums.source_status': function () { return faker.
|
|
1256
|
-
'io.flow.stripe.v0.enums.source_type': function () { return faker.
|
|
1245
|
+
'io.flow.stripe.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'card_present']); },
|
|
1246
|
+
'io.flow.stripe.v0.enums.payment_outcome_type': function () { return faker.helpers.arrayElement(['authorized', 'manual_review', 'issuer_declined', 'blocked', 'invalid']); },
|
|
1247
|
+
'io.flow.stripe.v0.enums.payment_status': function () { return faker.helpers.arrayElement(['succeeded', 'pending', 'failed']); },
|
|
1248
|
+
'io.flow.stripe.v0.enums.refund_failure_reason': function () { return faker.helpers.arrayElement(['lost_or_stolen_card', 'expired_or_canceled_card', 'unknown']); },
|
|
1249
|
+
'io.flow.stripe.v0.enums.refund_reason': function () { return faker.helpers.arrayElement(['duplicate', 'fraudulent', 'requested_by_customer']); },
|
|
1250
|
+
'io.flow.stripe.v0.enums.refund_status': function () { return faker.helpers.arrayElement(['succeeded', 'failed', 'pending', 'canceled']); },
|
|
1251
|
+
'io.flow.stripe.v0.enums.request_three_d_secure_type': function () { return faker.helpers.arrayElement(['automatic', 'any']); },
|
|
1252
|
+
'io.flow.stripe.v0.enums.requested_capabilities': function () { return faker.helpers.arrayElement(['card_payments', 'legacy_payments', 'transfers']); },
|
|
1253
|
+
'io.flow.stripe.v0.enums.setup_future_usage': function () { return faker.helpers.arrayElement(['on_session', 'off_session']); },
|
|
1254
|
+
'io.flow.stripe.v0.enums.source_flow': function () { return faker.helpers.arrayElement(['redirect', 'receiver', 'code_verification', 'none']); },
|
|
1255
|
+
'io.flow.stripe.v0.enums.source_status': function () { return faker.helpers.arrayElement(['canceled', 'chargeable', 'consumed', 'failed', 'pending']); },
|
|
1256
|
+
'io.flow.stripe.v0.enums.source_type': function () { return faker.helpers.arrayElement([
|
|
1257
1257
|
'ach_credit_transfer',
|
|
1258
1258
|
'ach_debit',
|
|
1259
1259
|
'alipay',
|
|
@@ -1270,10 +1270,10 @@ var factories = {
|
|
|
1270
1270
|
'sofort',
|
|
1271
1271
|
'three_d_secure',
|
|
1272
1272
|
]); },
|
|
1273
|
-
'io.flow.stripe.v0.enums.source_usage_type': function () { return faker.
|
|
1274
|
-
'io.flow.stripe.v0.enums.three_d_secure_support': function () { return faker.
|
|
1275
|
-
'io.flow.stripe.v0.enums.token_type': function () { return faker.
|
|
1276
|
-
'io.flow.stripe.v0.enums.use_stripe_sdk_type': function () { return faker.
|
|
1273
|
+
'io.flow.stripe.v0.enums.source_usage_type': function () { return faker.helpers.arrayElement(['reusable', 'single_use']); },
|
|
1274
|
+
'io.flow.stripe.v0.enums.three_d_secure_support': function () { return faker.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']); },
|
|
1275
|
+
'io.flow.stripe.v0.enums.token_type': function () { return faker.helpers.arrayElement(['account', 'bank_account', 'card', 'pii']); },
|
|
1276
|
+
'io.flow.stripe.v0.enums.use_stripe_sdk_type': function () { return faker.helpers.arrayElement(['three_d_secure_redirect', 'stripe_3ds2_fingerprint']); },
|
|
1277
1277
|
'io.flow.stripe.v0.models.account': function () { return ({
|
|
1278
1278
|
id: factories.string(),
|
|
1279
1279
|
object: factories.string(),
|
|
@@ -1885,9 +1885,9 @@ var factories = {
|
|
|
1885
1885
|
amount: factories.integer(),
|
|
1886
1886
|
destination: factories.string(),
|
|
1887
1887
|
}); },
|
|
1888
|
-
'io.flow.v0.enums.abandoned_order_promotion_status': function () { return faker.
|
|
1889
|
-
'io.flow.v0.enums.abandoned_order_setting_status': function () { return faker.
|
|
1890
|
-
'io.flow.v0.enums.address_field_name': function () { return faker.
|
|
1888
|
+
'io.flow.v0.enums.abandoned_order_promotion_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
1889
|
+
'io.flow.v0.enums.abandoned_order_setting_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
1890
|
+
'io.flow.v0.enums.address_field_name': function () { return faker.helpers.arrayElement([
|
|
1891
1891
|
'first_name',
|
|
1892
1892
|
'last_name',
|
|
1893
1893
|
'street_1',
|
|
@@ -1900,11 +1900,11 @@ var factories = {
|
|
|
1900
1900
|
'company',
|
|
1901
1901
|
'vat_registration_number',
|
|
1902
1902
|
]); },
|
|
1903
|
-
'io.flow.v0.enums.adjustment_reason_key': function () { return faker.
|
|
1904
|
-
'io.flow.v0.enums.aggregate': function () { return faker.
|
|
1905
|
-
'io.flow.v0.enums.attachment_type': function () { return faker.
|
|
1906
|
-
'io.flow.v0.enums.attribute_data_type': function () { return faker.
|
|
1907
|
-
'io.flow.v0.enums.attribute_intent': function () { return faker.
|
|
1903
|
+
'io.flow.v0.enums.adjustment_reason_key': function () { return faker.helpers.arrayElement(['duty_deminimis', 'vat_deminimis']); },
|
|
1904
|
+
'io.flow.v0.enums.aggregate': function () { return faker.helpers.arrayElement(['maximum', 'minimum']); },
|
|
1905
|
+
'io.flow.v0.enums.attachment_type': function () { return faker.helpers.arrayElement(['csv']); },
|
|
1906
|
+
'io.flow.v0.enums.attribute_data_type': function () { return faker.helpers.arrayElement(['boolean', 'integer', 'decimal', 'string', 'json_array']); },
|
|
1907
|
+
'io.flow.v0.enums.attribute_intent': function () { return faker.helpers.arrayElement([
|
|
1908
1908
|
'brand',
|
|
1909
1909
|
'color',
|
|
1910
1910
|
'countries_of_origin',
|
|
@@ -1928,8 +1928,8 @@ var factories = {
|
|
|
1928
1928
|
'commercial_invoice_item_number',
|
|
1929
1929
|
'include_in_product_feeds',
|
|
1930
1930
|
]); },
|
|
1931
|
-
'io.flow.v0.enums.authentication_technique': function () { return faker.
|
|
1932
|
-
'io.flow.v0.enums.authorization_decline_code': function () { return faker.
|
|
1931
|
+
'io.flow.v0.enums.authentication_technique': function () { return faker.helpers.arrayElement(['anonymous', 'session', 'token', 'partner_token', 'user']); },
|
|
1932
|
+
'io.flow.v0.enums.authorization_decline_code': function () { return faker.helpers.arrayElement([
|
|
1933
1933
|
'expired',
|
|
1934
1934
|
'invalid_name',
|
|
1935
1935
|
'invalid_number',
|
|
@@ -1946,9 +1946,9 @@ var factories = {
|
|
|
1946
1946
|
'unknown',
|
|
1947
1947
|
'online_payment_error',
|
|
1948
1948
|
]); },
|
|
1949
|
-
'io.flow.v0.enums.authorization_option': function () { return faker.
|
|
1950
|
-
'io.flow.v0.enums.authorization_result_action_type': function () { return faker.
|
|
1951
|
-
'io.flow.v0.enums.authorization_status': function () { return faker.
|
|
1949
|
+
'io.flow.v0.enums.authorization_option': function () { return faker.helpers.arrayElement(['store_card']); },
|
|
1950
|
+
'io.flow.v0.enums.authorization_result_action_type': function () { return faker.helpers.arrayElement(['native', 'redirect', 'wait']); },
|
|
1951
|
+
'io.flow.v0.enums.authorization_status': function () { return faker.helpers.arrayElement([
|
|
1952
1952
|
'initiated',
|
|
1953
1953
|
'pending',
|
|
1954
1954
|
'expired',
|
|
@@ -1957,8 +1957,8 @@ var factories = {
|
|
|
1957
1957
|
'declined',
|
|
1958
1958
|
'reversed',
|
|
1959
1959
|
]); },
|
|
1960
|
-
'io.flow.v0.enums.availability_status': function () { return faker.
|
|
1961
|
-
'io.flow.v0.enums.available_filter_format': function () { return faker.
|
|
1960
|
+
'io.flow.v0.enums.availability_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled']); },
|
|
1961
|
+
'io.flow.v0.enums.available_filter_format': function () { return faker.helpers.arrayElement([
|
|
1962
1962
|
'boolean',
|
|
1963
1963
|
'date',
|
|
1964
1964
|
'money',
|
|
@@ -1967,14 +1967,14 @@ var factories = {
|
|
|
1967
1967
|
'unit_of_length',
|
|
1968
1968
|
'unit_of_mass',
|
|
1969
1969
|
]); },
|
|
1970
|
-
'io.flow.v0.enums.avs_code': function () { return faker.
|
|
1971
|
-
'io.flow.v0.enums.b2b_invoice_type': function () { return faker.
|
|
1972
|
-
'io.flow.v0.enums.calendar': function () { return faker.
|
|
1973
|
-
'io.flow.v0.enums.cancel_reason': function () { return faker.
|
|
1974
|
-
'io.flow.v0.enums.capability': function () { return faker.
|
|
1975
|
-
'io.flow.v0.enums.capture_decline_code': function () { return faker.
|
|
1976
|
-
'io.flow.v0.enums.capture_status': function () { return faker.
|
|
1977
|
-
'io.flow.v0.enums.card_error_code': function () { return faker.
|
|
1970
|
+
'io.flow.v0.enums.avs_code': function () { return faker.helpers.arrayElement(['match', 'partial', 'unsupported', 'no_match']); },
|
|
1971
|
+
'io.flow.v0.enums.b2b_invoice_type': function () { return faker.helpers.arrayElement(['self_bill_invoice', 'invoice']); },
|
|
1972
|
+
'io.flow.v0.enums.calendar': function () { return faker.helpers.arrayElement(['weekdays', 'everyday']); },
|
|
1973
|
+
'io.flow.v0.enums.cancel_reason': function () { return faker.helpers.arrayElement(['out_of_stock', 'consumer_requested', 'flow_cancel']); },
|
|
1974
|
+
'io.flow.v0.enums.capability': function () { return faker.helpers.arrayElement(['crossdock']); },
|
|
1975
|
+
'io.flow.v0.enums.capture_decline_code': function () { return faker.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
1976
|
+
'io.flow.v0.enums.capture_status': function () { return faker.helpers.arrayElement(['initiated', 'pending', 'succeeded', 'failed', 'canceled']); },
|
|
1977
|
+
'io.flow.v0.enums.card_error_code': function () { return faker.helpers.arrayElement([
|
|
1978
1978
|
'invalid_address',
|
|
1979
1979
|
'invalid_currency',
|
|
1980
1980
|
'invalid_name',
|
|
@@ -1986,7 +1986,7 @@ var factories = {
|
|
|
1986
1986
|
'fraud',
|
|
1987
1987
|
'unknown',
|
|
1988
1988
|
]); },
|
|
1989
|
-
'io.flow.v0.enums.card_type': function () { return faker.
|
|
1989
|
+
'io.flow.v0.enums.card_type': function () { return faker.helpers.arrayElement([
|
|
1990
1990
|
'american_express',
|
|
1991
1991
|
'cartes_bancaires',
|
|
1992
1992
|
'china_union_pay',
|
|
@@ -1998,15 +1998,15 @@ var factories = {
|
|
|
1998
1998
|
'mastercard',
|
|
1999
1999
|
'visa',
|
|
2000
2000
|
]); },
|
|
2001
|
-
'io.flow.v0.enums.center_capability': function () { return faker.
|
|
2002
|
-
'io.flow.v0.enums.change_type': function () { return faker.
|
|
2003
|
-
'io.flow.v0.enums.channel_currency_capability': function () { return faker.
|
|
2004
|
-
'io.flow.v0.enums.consumer_invoice_customer_type': function () { return faker.
|
|
2005
|
-
'io.flow.v0.enums.consumer_invoice_document_type': function () { return faker.
|
|
2006
|
-
'io.flow.v0.enums.consumer_invoice_status': function () { return faker.
|
|
2007
|
-
'io.flow.v0.enums.cost_estimate_source': function () { return faker.
|
|
2008
|
-
'io.flow.v0.enums.country_picker_source': function () { return faker.
|
|
2009
|
-
'io.flow.v0.enums.credit_payment_error_code': function () { return faker.
|
|
2001
|
+
'io.flow.v0.enums.center_capability': function () { return faker.helpers.arrayElement(['international', 'domestic', 'crossdock', 'commercial_invoice']); },
|
|
2002
|
+
'io.flow.v0.enums.change_type': function () { return faker.helpers.arrayElement(['insert', 'update', 'delete']); },
|
|
2003
|
+
'io.flow.v0.enums.channel_currency_capability': function () { return faker.helpers.arrayElement(['payment_authorizations', 'settlement_currency']); },
|
|
2004
|
+
'io.flow.v0.enums.consumer_invoice_customer_type': function () { return faker.helpers.arrayElement(['business_eu_verified', 'business_non_verified', 'individual']); },
|
|
2005
|
+
'io.flow.v0.enums.consumer_invoice_document_type': function () { return faker.helpers.arrayElement(['pdf']); },
|
|
2006
|
+
'io.flow.v0.enums.consumer_invoice_status': function () { return faker.helpers.arrayElement(['pending', 'available', 'invalid']); },
|
|
2007
|
+
'io.flow.v0.enums.cost_estimate_source': function () { return faker.helpers.arrayElement(['flow', 'channel']); },
|
|
2008
|
+
'io.flow.v0.enums.country_picker_source': function () { return faker.helpers.arrayElement(['experience', 'destination']); },
|
|
2009
|
+
'io.flow.v0.enums.credit_payment_error_code': function () { return faker.helpers.arrayElement([
|
|
2010
2010
|
'generic_error',
|
|
2011
2011
|
'invalid_order_number',
|
|
2012
2012
|
'invalid_currency',
|
|
@@ -2016,11 +2016,11 @@ var factories = {
|
|
|
2016
2016
|
'amount_exceeds_balance',
|
|
2017
2017
|
'insufficient_amount',
|
|
2018
2018
|
]); },
|
|
2019
|
-
'io.flow.v0.enums.currency_label_formatter': function () { return faker.
|
|
2020
|
-
'io.flow.v0.enums.currency_symbol_format': function () { return faker.
|
|
2021
|
-
'io.flow.v0.enums.customer_address_type': function () { return faker.
|
|
2022
|
-
'io.flow.v0.enums.cvv_code': function () { return faker.
|
|
2023
|
-
'io.flow.v0.enums.day_of_week': function () { return faker.
|
|
2019
|
+
'io.flow.v0.enums.currency_label_formatter': function () { return faker.helpers.arrayElement(['strip_trailing_zeros', 'symbol_prefix', 'symbol_suffix']); },
|
|
2020
|
+
'io.flow.v0.enums.currency_symbol_format': function () { return faker.helpers.arrayElement(['narrow', 'primary']); },
|
|
2021
|
+
'io.flow.v0.enums.customer_address_type': function () { return faker.helpers.arrayElement(['billing', 'invoice', 'shipping']); },
|
|
2022
|
+
'io.flow.v0.enums.cvv_code': function () { return faker.helpers.arrayElement(['match', 'suspicious', 'unsupported', 'no_match']); },
|
|
2023
|
+
'io.flow.v0.enums.day_of_week': function () { return faker.helpers.arrayElement([
|
|
2024
2024
|
'sunday',
|
|
2025
2025
|
'monday',
|
|
2026
2026
|
'tuesday',
|
|
@@ -2029,9 +2029,9 @@ var factories = {
|
|
|
2029
2029
|
'friday',
|
|
2030
2030
|
'saturday',
|
|
2031
2031
|
]); },
|
|
2032
|
-
'io.flow.v0.enums.delivered_duty': function () { return faker.
|
|
2033
|
-
'io.flow.v0.enums.delivered_duty_display_type': function () { return faker.
|
|
2034
|
-
'io.flow.v0.enums.delivery_option_cost_detail_component_key': function () { return faker.
|
|
2032
|
+
'io.flow.v0.enums.delivered_duty': function () { return faker.helpers.arrayElement(['paid', 'unpaid']); },
|
|
2033
|
+
'io.flow.v0.enums.delivered_duty_display_type': function () { return faker.helpers.arrayElement(['all', 'single']); },
|
|
2034
|
+
'io.flow.v0.enums.delivery_option_cost_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
2035
2035
|
'ratecard_base_cost',
|
|
2036
2036
|
'ratecard_ddp_fee',
|
|
2037
2037
|
'ratecard_fuel_surcharge',
|
|
@@ -2044,15 +2044,15 @@ var factories = {
|
|
|
2044
2044
|
'center_inbound_carton_fee',
|
|
2045
2045
|
'center_outbound_carton_fee',
|
|
2046
2046
|
]); },
|
|
2047
|
-
'io.flow.v0.enums.delivery_option_cost_detail_source': function () { return faker.
|
|
2048
|
-
'io.flow.v0.enums.delivery_window_component_source': function () { return faker.
|
|
2049
|
-
'io.flow.v0.enums.delivery_window_location': function () { return faker.
|
|
2050
|
-
'io.flow.v0.enums.direction': function () { return faker.
|
|
2051
|
-
'io.flow.v0.enums.discount_rule_status': function () { return faker.
|
|
2052
|
-
'io.flow.v0.enums.discount_rule_subsidy_target': function () { return faker.
|
|
2053
|
-
'io.flow.v0.enums.discount_target': function () { return faker.
|
|
2054
|
-
'io.flow.v0.enums.duty_item_approval_status': function () { return faker.
|
|
2055
|
-
'io.flow.v0.enums.ecommerce_platform_type': function () { return faker.
|
|
2047
|
+
'io.flow.v0.enums.delivery_option_cost_detail_source': function () { return faker.helpers.arrayElement(['center', 'ratecard']); },
|
|
2048
|
+
'io.flow.v0.enums.delivery_window_component_source': function () { return faker.helpers.arrayElement(['flow', 'organization', 'carrier', 'center', 'mixed']); },
|
|
2049
|
+
'io.flow.v0.enums.delivery_window_location': function () { return faker.helpers.arrayElement(['center', 'crossdock', 'customer']); },
|
|
2050
|
+
'io.flow.v0.enums.direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
|
|
2051
|
+
'io.flow.v0.enums.discount_rule_status': function () { return faker.helpers.arrayElement(['active', 'scheduled', 'expired']); },
|
|
2052
|
+
'io.flow.v0.enums.discount_rule_subsidy_target': function () { return faker.helpers.arrayElement(['vat', 'duty']); },
|
|
2053
|
+
'io.flow.v0.enums.discount_target': function () { return faker.helpers.arrayElement(['item', 'shipping']); },
|
|
2054
|
+
'io.flow.v0.enums.duty_item_approval_status': function () { return faker.helpers.arrayElement(['pending', 'certified', 'decertified']); },
|
|
2055
|
+
'io.flow.v0.enums.ecommerce_platform_type': function () { return faker.helpers.arrayElement([
|
|
2056
2056
|
'commercetools',
|
|
2057
2057
|
'custom',
|
|
2058
2058
|
'hybris',
|
|
@@ -2063,10 +2063,10 @@ var factories = {
|
|
|
2063
2063
|
'solidus',
|
|
2064
2064
|
'workarea',
|
|
2065
2065
|
]); },
|
|
2066
|
-
'io.flow.v0.enums.economic_title_location': function () { return faker.
|
|
2067
|
-
'io.flow.v0.enums.entity_identifier_type': function () { return faker.
|
|
2068
|
-
'io.flow.v0.enums.environment': function () { return faker.
|
|
2069
|
-
'io.flow.v0.enums.event_type': function () { return faker.
|
|
2066
|
+
'io.flow.v0.enums.economic_title_location': function () { return faker.helpers.arrayElement(['high_seas', 'origination', 'destination']); },
|
|
2067
|
+
'io.flow.v0.enums.entity_identifier_type': function () { return faker.helpers.arrayElement(['ioss', 'voec']); },
|
|
2068
|
+
'io.flow.v0.enums.environment': function () { return faker.helpers.arrayElement(['sandbox', 'production']); },
|
|
2069
|
+
'io.flow.v0.enums.event_type': function () { return faker.helpers.arrayElement([
|
|
2070
2070
|
'transaction_upserted',
|
|
2071
2071
|
'organization_transaction_upserted',
|
|
2072
2072
|
'organization_transaction_deleted',
|
|
@@ -2255,15 +2255,15 @@ var factories = {
|
|
|
2255
2255
|
'shopify_localization_setting_deleted',
|
|
2256
2256
|
'tracking_label_event_upserted',
|
|
2257
2257
|
]); },
|
|
2258
|
-
'io.flow.v0.enums.exception_type': function () { return faker.
|
|
2259
|
-
'io.flow.v0.enums.exclusion_rule_state': function () { return faker.
|
|
2260
|
-
'io.flow.v0.enums.experience_clone_status': function () { return faker.
|
|
2261
|
-
'io.flow.v0.enums.experience_country_status': function () { return faker.
|
|
2262
|
-
'io.flow.v0.enums.experience_payment_method_tag': function () { return faker.
|
|
2263
|
-
'io.flow.v0.enums.experience_status': function () { return faker.
|
|
2264
|
-
'io.flow.v0.enums.export_status': function () { return faker.
|
|
2265
|
-
'io.flow.v0.enums.exporter_of_record': function () { return faker.
|
|
2266
|
-
'io.flow.v0.enums.fee_deduction_type': function () { return faker.
|
|
2258
|
+
'io.flow.v0.enums.exception_type': function () { return faker.helpers.arrayElement(['open', 'closed']); },
|
|
2259
|
+
'io.flow.v0.enums.exclusion_rule_state': function () { return faker.helpers.arrayElement(['current', 'deleting', 'updating']); },
|
|
2260
|
+
'io.flow.v0.enums.experience_clone_status': function () { return faker.helpers.arrayElement(['pending', 'updating', 'completed', 'failed']); },
|
|
2261
|
+
'io.flow.v0.enums.experience_country_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled']); },
|
|
2262
|
+
'io.flow.v0.enums.experience_payment_method_tag': function () { return faker.helpers.arrayElement(['display']); },
|
|
2263
|
+
'io.flow.v0.enums.experience_status': function () { return faker.helpers.arrayElement(['draft', 'active', 'archiving', 'archived']); },
|
|
2264
|
+
'io.flow.v0.enums.export_status': function () { return faker.helpers.arrayElement(['created', 'processing', 'completed', 'failed']); },
|
|
2265
|
+
'io.flow.v0.enums.exporter_of_record': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
2266
|
+
'io.flow.v0.enums.fee_deduction_type': function () { return faker.helpers.arrayElement([
|
|
2267
2267
|
'duty_guarantee',
|
|
2268
2268
|
'mor',
|
|
2269
2269
|
'fraud',
|
|
@@ -2272,9 +2272,9 @@ var factories = {
|
|
|
2272
2272
|
'rate_lock',
|
|
2273
2273
|
'transfer',
|
|
2274
2274
|
]); },
|
|
2275
|
-
'io.flow.v0.enums.flow_behavior': function () { return faker.
|
|
2276
|
-
'io.flow.v0.enums.flow_entity': function () { return faker.
|
|
2277
|
-
'io.flow.v0.enums.flow_role': function () { return faker.
|
|
2275
|
+
'io.flow.v0.enums.flow_behavior': function () { return faker.helpers.arrayElement(['view_consumer_data']); },
|
|
2276
|
+
'io.flow.v0.enums.flow_entity': function () { return faker.helpers.arrayElement(['flow-usa', 'flow-irl', 'flow-can']); },
|
|
2277
|
+
'io.flow.v0.enums.flow_role': function () { return faker.helpers.arrayElement([
|
|
2278
2278
|
'organization_admin',
|
|
2279
2279
|
'organization_merchant',
|
|
2280
2280
|
'organization_customer_service',
|
|
@@ -2285,18 +2285,18 @@ var factories = {
|
|
|
2285
2285
|
'channel_admin',
|
|
2286
2286
|
'channel_organization_admin',
|
|
2287
2287
|
]); },
|
|
2288
|
-
'io.flow.v0.enums.fraud_email_rule_decision': function () { return faker.
|
|
2289
|
-
'io.flow.v0.enums.fraud_liability': function () { return faker.
|
|
2290
|
-
'io.flow.v0.enums.fraud_status': function () { return faker.
|
|
2291
|
-
'io.flow.v0.enums.ftp_file_source': function () { return faker.
|
|
2292
|
-
'io.flow.v0.enums.fulfillment_item_quantity_status': function () { return faker.
|
|
2293
|
-
'io.flow.v0.enums.fulfillment_method_type': function () { return faker.
|
|
2294
|
-
'io.flow.v0.enums.fulfillment_method_value': function () { return faker.
|
|
2295
|
-
'io.flow.v0.enums.generic_error_code': function () { return faker.
|
|
2296
|
-
'io.flow.v0.enums.goods_supply': function () { return faker.
|
|
2297
|
-
'io.flow.v0.enums.holiday_calendar': function () { return faker.
|
|
2298
|
-
'io.flow.v0.enums.image_tag': function () { return faker.
|
|
2299
|
-
'io.flow.v0.enums.import_type': function () { return faker.
|
|
2288
|
+
'io.flow.v0.enums.fraud_email_rule_decision': function () { return faker.helpers.arrayElement(['approved', 'declined']); },
|
|
2289
|
+
'io.flow.v0.enums.fraud_liability': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
2290
|
+
'io.flow.v0.enums.fraud_status': function () { return faker.helpers.arrayElement(['pending', 'approved', 'declined', 'review']); },
|
|
2291
|
+
'io.flow.v0.enums.ftp_file_source': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
2292
|
+
'io.flow.v0.enums.fulfillment_item_quantity_status': function () { return faker.helpers.arrayElement(['new', 'shipped', 'cancelled']); },
|
|
2293
|
+
'io.flow.v0.enums.fulfillment_method_type': function () { return faker.helpers.arrayElement(['fulfillment_method']); },
|
|
2294
|
+
'io.flow.v0.enums.fulfillment_method_value': function () { return faker.helpers.arrayElement(['digital', 'physical']); },
|
|
2295
|
+
'io.flow.v0.enums.generic_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']); },
|
|
2296
|
+
'io.flow.v0.enums.goods_supply': function () { return faker.helpers.arrayElement(['export', 'intra_community', 'local']); },
|
|
2297
|
+
'io.flow.v0.enums.holiday_calendar': function () { return faker.helpers.arrayElement(['us_bank_holidays', 'jewish_holidays']); },
|
|
2298
|
+
'io.flow.v0.enums.image_tag': function () { return faker.helpers.arrayElement(['thumbnail', 'checkout']); },
|
|
2299
|
+
'io.flow.v0.enums.import_type': function () { return faker.helpers.arrayElement([
|
|
2300
2300
|
'catalog_items',
|
|
2301
2301
|
'catalog_items_external',
|
|
2302
2302
|
'customs_descriptions',
|
|
@@ -2310,8 +2310,8 @@ var factories = {
|
|
|
2310
2310
|
'ratecard_lanes',
|
|
2311
2311
|
'order_service_changes',
|
|
2312
2312
|
]); },
|
|
2313
|
-
'io.flow.v0.enums.included_levy_key': function () { return faker.
|
|
2314
|
-
'io.flow.v0.enums.incoterm': function () { return faker.
|
|
2313
|
+
'io.flow.v0.enums.included_levy_key': function () { return faker.helpers.arrayElement(['duty', 'vat', 'vat_and_duty', 'none']); },
|
|
2314
|
+
'io.flow.v0.enums.incoterm': function () { return faker.helpers.arrayElement([
|
|
2315
2315
|
'EXW',
|
|
2316
2316
|
'FCA',
|
|
2317
2317
|
'CPT',
|
|
@@ -2328,44 +2328,44 @@ var factories = {
|
|
|
2328
2328
|
'DEQ',
|
|
2329
2329
|
'DDU',
|
|
2330
2330
|
]); },
|
|
2331
|
-
'io.flow.v0.enums.inline_window_viewport_size': function () { return faker.
|
|
2332
|
-
'io.flow.v0.enums.input_specification_type': function () { return faker.
|
|
2333
|
-
'io.flow.v0.enums.inventory_status': function () { return faker.
|
|
2334
|
-
'io.flow.v0.enums.invitation_error_code': function () { return faker.
|
|
2335
|
-
'io.flow.v0.enums.item_availability_status': function () { return faker.
|
|
2336
|
-
'io.flow.v0.enums.item_identifier': function () { return faker.
|
|
2337
|
-
'io.flow.v0.enums.lane_direction': function () { return faker.
|
|
2338
|
-
'io.flow.v0.enums.lane_preselect_preference': function () { return faker.
|
|
2339
|
-
'io.flow.v0.enums.lane_strategy': function () { return faker.
|
|
2340
|
-
'io.flow.v0.enums.levy_component': function () { return faker.
|
|
2341
|
-
'io.flow.v0.enums.levy_inclusion': function () { return faker.
|
|
2342
|
-
'io.flow.v0.enums.levy_strategy': function () { return faker.
|
|
2343
|
-
'io.flow.v0.enums.location_error_code': function () { return faker.
|
|
2344
|
-
'io.flow.v0.enums.logistics_format_preference': function () { return faker.
|
|
2345
|
-
'io.flow.v0.enums.margin_type': function () { return faker.
|
|
2346
|
-
'io.flow.v0.enums.measurement_system': function () { return faker.
|
|
2347
|
-
'io.flow.v0.enums.merchant_gift_card_error_code': function () { return faker.
|
|
2331
|
+
'io.flow.v0.enums.inline_window_viewport_size': function () { return faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen', 'responsive']); },
|
|
2332
|
+
'io.flow.v0.enums.input_specification_type': function () { return faker.helpers.arrayElement(['text', 'number']); },
|
|
2333
|
+
'io.flow.v0.enums.inventory_status': function () { return faker.helpers.arrayElement(['has_inventory', 'no_inventory']); },
|
|
2334
|
+
'io.flow.v0.enums.invitation_error_code': function () { return faker.helpers.arrayElement(['expired', 'invalid_email']); },
|
|
2335
|
+
'io.flow.v0.enums.item_availability_status': function () { return faker.helpers.arrayElement(['available', 'low', 'out_of_stock']); },
|
|
2336
|
+
'io.flow.v0.enums.item_identifier': function () { return faker.helpers.arrayElement(['item_number', 'sku']); },
|
|
2337
|
+
'io.flow.v0.enums.lane_direction': function () { return faker.helpers.arrayElement(['outbound', 'return']); },
|
|
2338
|
+
'io.flow.v0.enums.lane_preselect_preference': function () { return faker.helpers.arrayElement(['lowest_cost', 'default_tier']); },
|
|
2339
|
+
'io.flow.v0.enums.lane_strategy': function () { return faker.helpers.arrayElement(['oldest', 'fastest', 'lowest_cost', 'highest_priority']); },
|
|
2340
|
+
'io.flow.v0.enums.levy_component': function () { return faker.helpers.arrayElement(['goods', 'duty', 'insurance', 'freight', 'vat']); },
|
|
2341
|
+
'io.flow.v0.enums.levy_inclusion': function () { return faker.helpers.arrayElement(['tax', 'duty']); },
|
|
2342
|
+
'io.flow.v0.enums.levy_strategy': function () { return faker.helpers.arrayElement(['minimum', 'average', 'maximum']); },
|
|
2343
|
+
'io.flow.v0.enums.location_error_code': function () { return faker.helpers.arrayElement(['address_required', 'ip_invalid', 'ip_required', 'timezone_unavailable']); },
|
|
2344
|
+
'io.flow.v0.enums.logistics_format_preference': function () { return faker.helpers.arrayElement(['shopify_console', 'existing_3pl_integration', 'byo_integration']); },
|
|
2345
|
+
'io.flow.v0.enums.margin_type': function () { return faker.helpers.arrayElement(['fixed', 'percent']); },
|
|
2346
|
+
'io.flow.v0.enums.measurement_system': function () { return faker.helpers.arrayElement(['imperial', 'metric']); },
|
|
2347
|
+
'io.flow.v0.enums.merchant_gift_card_error_code': function () { return faker.helpers.arrayElement([
|
|
2348
2348
|
'invalid',
|
|
2349
2349
|
'expired',
|
|
2350
2350
|
'empty',
|
|
2351
2351
|
'insufficient_funds',
|
|
2352
2352
|
'unsupported_currency',
|
|
2353
2353
|
]); },
|
|
2354
|
-
'io.flow.v0.enums.merchant_of_record': function () { return faker.
|
|
2355
|
-
'io.flow.v0.enums.merchant_rejected_reason': function () { return faker.
|
|
2354
|
+
'io.flow.v0.enums.merchant_of_record': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
2355
|
+
'io.flow.v0.enums.merchant_rejected_reason': function () { return faker.helpers.arrayElement([
|
|
2356
2356
|
'merchant_ubo_is_pep',
|
|
2357
2357
|
'merchant_catalog_is_unsupportable',
|
|
2358
2358
|
'merchant_failed_kyb_review',
|
|
2359
2359
|
]); },
|
|
2360
|
-
'io.flow.v0.enums.method': function () { return faker.
|
|
2361
|
-
'io.flow.v0.enums.onboarding_application_status': function () { return faker.
|
|
2362
|
-
'io.flow.v0.enums.onboarding_blocked_reason': function () { return faker.
|
|
2360
|
+
'io.flow.v0.enums.method': function () { return faker.helpers.arrayElement(['post']); },
|
|
2361
|
+
'io.flow.v0.enums.onboarding_application_status': function () { return faker.helpers.arrayElement(['to_do', 'in_progress', 'on_hold', 'rejected', 'accepted']); },
|
|
2362
|
+
'io.flow.v0.enums.onboarding_blocked_reason': function () { return faker.helpers.arrayElement([
|
|
2363
2363
|
'street_address_is_blank_3pl',
|
|
2364
2364
|
'street_address_is_po_box_3pl',
|
|
2365
2365
|
'business_street_address_is_blank',
|
|
2366
2366
|
'business_street_address_is_po_box',
|
|
2367
2367
|
]); },
|
|
2368
|
-
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.
|
|
2368
|
+
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.helpers.arrayElement([
|
|
2369
2369
|
'accessories',
|
|
2370
2370
|
'animals_and_pet_supplies',
|
|
2371
2371
|
'apparel',
|
|
@@ -2396,9 +2396,9 @@ var factories = {
|
|
|
2396
2396
|
'vehicles_and_parts',
|
|
2397
2397
|
'other',
|
|
2398
2398
|
]); },
|
|
2399
|
-
'io.flow.v0.enums.optin_response_type': function () { return faker.
|
|
2400
|
-
'io.flow.v0.enums.order_change_source': function () { return faker.
|
|
2401
|
-
'io.flow.v0.enums.order_error_code': function () { return faker.
|
|
2399
|
+
'io.flow.v0.enums.optin_response_type': function () { return faker.helpers.arrayElement(['not_shown', 'opted_in', 'opted_out']); },
|
|
2400
|
+
'io.flow.v0.enums.order_change_source': function () { return faker.helpers.arrayElement(['consumer', 'retailer', 'fulfillment', 'flow', 'carrier']); },
|
|
2401
|
+
'io.flow.v0.enums.order_error_code': function () { return faker.helpers.arrayElement([
|
|
2402
2402
|
'generic_error',
|
|
2403
2403
|
'order_item_not_available',
|
|
2404
2404
|
'order_identifier_error',
|
|
@@ -2414,8 +2414,8 @@ var factories = {
|
|
|
2414
2414
|
'gift_card_not_accepted',
|
|
2415
2415
|
'total_changed',
|
|
2416
2416
|
]); },
|
|
2417
|
-
'io.flow.v0.enums.order_merchant_of_record': function () { return faker.
|
|
2418
|
-
'io.flow.v0.enums.order_payment_type': function () { return faker.
|
|
2417
|
+
'io.flow.v0.enums.order_merchant_of_record': function () { return faker.helpers.arrayElement(['flow', 'organization', 'mixed']); },
|
|
2418
|
+
'io.flow.v0.enums.order_payment_type': function () { return faker.helpers.arrayElement([
|
|
2419
2419
|
'card',
|
|
2420
2420
|
'online',
|
|
2421
2421
|
'credit',
|
|
@@ -2423,7 +2423,7 @@ var factories = {
|
|
|
2423
2423
|
'installment_plan',
|
|
2424
2424
|
'cash_on_delivery',
|
|
2425
2425
|
]); },
|
|
2426
|
-
'io.flow.v0.enums.order_price_detail_component_key': function () { return faker.
|
|
2426
|
+
'io.flow.v0.enums.order_price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
2427
2427
|
'adjustment',
|
|
2428
2428
|
'vat_deminimis',
|
|
2429
2429
|
'duty_deminimis',
|
|
@@ -2454,7 +2454,7 @@ var factories = {
|
|
|
2454
2454
|
'peak_surcharge',
|
|
2455
2455
|
'duties_taxes_paid_surcharge',
|
|
2456
2456
|
]); },
|
|
2457
|
-
'io.flow.v0.enums.order_price_detail_key': function () { return faker.
|
|
2457
|
+
'io.flow.v0.enums.order_price_detail_key': function () { return faker.helpers.arrayElement([
|
|
2458
2458
|
'adjustment',
|
|
2459
2459
|
'subtotal',
|
|
2460
2460
|
'vat',
|
|
@@ -2464,8 +2464,8 @@ var factories = {
|
|
|
2464
2464
|
'discount',
|
|
2465
2465
|
'surcharges',
|
|
2466
2466
|
]); },
|
|
2467
|
-
'io.flow.v0.enums.order_quote_address_type': function () { return faker.
|
|
2468
|
-
'io.flow.v0.enums.order_quote_error_code': function () { return faker.
|
|
2467
|
+
'io.flow.v0.enums.order_quote_address_type': function () { return faker.helpers.arrayElement(['shipping']); },
|
|
2468
|
+
'io.flow.v0.enums.order_quote_error_code': function () { return faker.helpers.arrayElement([
|
|
2469
2469
|
'contact_email_invalid',
|
|
2470
2470
|
'contact_email_required',
|
|
2471
2471
|
'contact_phone_invalid',
|
|
@@ -2489,21 +2489,21 @@ var factories = {
|
|
|
2489
2489
|
'session_not_found',
|
|
2490
2490
|
'session_organization_mismatch',
|
|
2491
2491
|
]); },
|
|
2492
|
-
'io.flow.v0.enums.order_quote_line_error_code': function () { return faker.
|
|
2492
|
+
'io.flow.v0.enums.order_quote_line_error_code': function () { return faker.helpers.arrayElement([
|
|
2493
2493
|
'line_item_number_invalid',
|
|
2494
2494
|
'line_item_number_not_available',
|
|
2495
2495
|
'line_quantity_invalid',
|
|
2496
2496
|
'line_value_threshold_exceeded',
|
|
2497
2497
|
]); },
|
|
2498
|
-
'io.flow.v0.enums.order_refund_summary_includes': function () { return faker.
|
|
2499
|
-
'io.flow.v0.enums.order_refund_summary_partial_charged': function () { return faker.
|
|
2500
|
-
'io.flow.v0.enums.order_status': function () { return faker.
|
|
2501
|
-
'io.flow.v0.enums.order_storage': function () { return faker.
|
|
2502
|
-
'io.flow.v0.enums.order_type': function () { return faker.
|
|
2503
|
-
'io.flow.v0.enums.organization_payment_method_tag': function () { return faker.
|
|
2504
|
-
'io.flow.v0.enums.organization_status': function () { return faker.
|
|
2505
|
-
'io.flow.v0.enums.organization_type': function () { return faker.
|
|
2506
|
-
'io.flow.v0.enums.payment_action_type': function () { return faker.
|
|
2498
|
+
'io.flow.v0.enums.order_refund_summary_includes': function () { return faker.helpers.arrayElement(['duties', 'vat', 'shipping']); },
|
|
2499
|
+
'io.flow.v0.enums.order_refund_summary_partial_charged': function () { return faker.helpers.arrayElement(['per_item', 'for_order', 'by_value_percentage', 'by_quantity_percentage']); },
|
|
2500
|
+
'io.flow.v0.enums.order_status': function () { return faker.helpers.arrayElement(['open', 'submitted']); },
|
|
2501
|
+
'io.flow.v0.enums.order_storage': function () { return faker.helpers.arrayElement(['do_not_persist', 'persist']); },
|
|
2502
|
+
'io.flow.v0.enums.order_type': function () { return faker.helpers.arrayElement(['standard', 'replacement']); },
|
|
2503
|
+
'io.flow.v0.enums.organization_payment_method_tag': function () { return faker.helpers.arrayElement(['deny']); },
|
|
2504
|
+
'io.flow.v0.enums.organization_status': function () { return faker.helpers.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']); },
|
|
2505
|
+
'io.flow.v0.enums.organization_type': function () { return faker.helpers.arrayElement(['standalone', 'channel']); },
|
|
2506
|
+
'io.flow.v0.enums.payment_action_type': function () { return faker.helpers.arrayElement([
|
|
2507
2507
|
'redirect',
|
|
2508
2508
|
'redirect_get',
|
|
2509
2509
|
'redirect_post',
|
|
@@ -2518,7 +2518,7 @@ var factories = {
|
|
|
2518
2518
|
'execute_script',
|
|
2519
2519
|
'display_inline_window',
|
|
2520
2520
|
]); },
|
|
2521
|
-
'io.flow.v0.enums.payment_error_code': function () { return faker.
|
|
2521
|
+
'io.flow.v0.enums.payment_error_code': function () { return faker.helpers.arrayElement([
|
|
2522
2522
|
'duplicate',
|
|
2523
2523
|
'invalid_amount',
|
|
2524
2524
|
'invalid_currency',
|
|
@@ -2528,7 +2528,7 @@ var factories = {
|
|
|
2528
2528
|
'invalid_destination',
|
|
2529
2529
|
'unknown',
|
|
2530
2530
|
]); },
|
|
2531
|
-
'io.flow.v0.enums.payment_failure_code': function () { return faker.
|
|
2531
|
+
'io.flow.v0.enums.payment_failure_code': function () { return faker.helpers.arrayElement([
|
|
2532
2532
|
'action_expired',
|
|
2533
2533
|
'action_cancelled',
|
|
2534
2534
|
'action_failed',
|
|
@@ -2538,12 +2538,12 @@ var factories = {
|
|
|
2538
2538
|
'error',
|
|
2539
2539
|
'payment_checks_declined',
|
|
2540
2540
|
]); },
|
|
2541
|
-
'io.flow.v0.enums.payment_method_capability': function () { return faker.
|
|
2542
|
-
'io.flow.v0.enums.payment_method_data_option_type': function () { return faker.
|
|
2543
|
-
'io.flow.v0.enums.payment_method_rule_content_key': function () { return faker.
|
|
2544
|
-
'io.flow.v0.enums.payment_method_type': function () { return faker.
|
|
2545
|
-
'io.flow.v0.enums.payment_source_confirmation_action_type': function () { return faker.
|
|
2546
|
-
'io.flow.v0.enums.payment_status': function () { return faker.
|
|
2541
|
+
'io.flow.v0.enums.payment_method_capability': function () { return faker.helpers.arrayElement(['credit', 'debit']); },
|
|
2542
|
+
'io.flow.v0.enums.payment_method_data_option_type': function () { return faker.helpers.arrayElement(['ideal_issuer_option']); },
|
|
2543
|
+
'io.flow.v0.enums.payment_method_rule_content_key': function () { return faker.helpers.arrayElement(['description']); },
|
|
2544
|
+
'io.flow.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'online', 'offline']); },
|
|
2545
|
+
'io.flow.v0.enums.payment_source_confirmation_action_type': function () { return faker.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
2546
|
+
'io.flow.v0.enums.payment_status': function () { return faker.helpers.arrayElement([
|
|
2547
2547
|
'requires_payment_method',
|
|
2548
2548
|
'requires_action',
|
|
2549
2549
|
'processing',
|
|
@@ -2556,7 +2556,7 @@ var factories = {
|
|
|
2556
2556
|
'in_dispute',
|
|
2557
2557
|
'charged_back',
|
|
2558
2558
|
]); },
|
|
2559
|
-
'io.flow.v0.enums.payment_type': function () { return faker.
|
|
2559
|
+
'io.flow.v0.enums.payment_type': function () { return faker.helpers.arrayElement([
|
|
2560
2560
|
'card',
|
|
2561
2561
|
'klarna',
|
|
2562
2562
|
'googlepay',
|
|
@@ -2567,13 +2567,13 @@ var factories = {
|
|
|
2567
2567
|
'afterpay',
|
|
2568
2568
|
'bancontact',
|
|
2569
2569
|
]); },
|
|
2570
|
-
'io.flow.v0.enums.payout_status_code': function () { return faker.
|
|
2571
|
-
'io.flow.v0.enums.permitted_http_method': function () { return faker.
|
|
2572
|
-
'io.flow.v0.enums.physical_delivery_special_serivce': function () { return faker.
|
|
2573
|
-
'io.flow.v0.enums.postal_type': function () { return faker.
|
|
2574
|
-
'io.flow.v0.enums.price_accuracy': function () { return faker.
|
|
2575
|
-
'io.flow.v0.enums.price_book_status': function () { return faker.
|
|
2576
|
-
'io.flow.v0.enums.price_detail_component_key': function () { return faker.
|
|
2570
|
+
'io.flow.v0.enums.payout_status_code': function () { return faker.helpers.arrayElement(['scheduled', 'sent', 'cancelled', 'failed', 'succeeded']); },
|
|
2571
|
+
'io.flow.v0.enums.permitted_http_method': function () { return faker.helpers.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']); },
|
|
2572
|
+
'io.flow.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
2573
|
+
'io.flow.v0.enums.postal_type': function () { return faker.helpers.arrayElement(['eircode', 'pin', 'postal', 'zip']); },
|
|
2574
|
+
'io.flow.v0.enums.price_accuracy': function () { return faker.helpers.arrayElement(['calculated', 'estimated_from_partial_destination']); },
|
|
2575
|
+
'io.flow.v0.enums.price_book_status': function () { return faker.helpers.arrayElement(['draft', 'published', 'archived']); },
|
|
2576
|
+
'io.flow.v0.enums.price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
2577
2577
|
'base_price',
|
|
2578
2578
|
'discount',
|
|
2579
2579
|
'currency_margin',
|
|
@@ -2597,11 +2597,11 @@ var factories = {
|
|
|
2597
2597
|
'vat_duty_percent_sales_margin',
|
|
2598
2598
|
'duty_percent_sales_margin',
|
|
2599
2599
|
]); },
|
|
2600
|
-
'io.flow.v0.enums.price_detail_key': function () { return faker.
|
|
2601
|
-
'io.flow.v0.enums.price_facet_boundary': function () { return faker.
|
|
2602
|
-
'io.flow.v0.enums.pricing_levy_setting': function () { return faker.
|
|
2603
|
-
'io.flow.v0.enums.promotion_trigger_type': function () { return faker.
|
|
2604
|
-
'io.flow.v0.enums.province_type': function () { return faker.
|
|
2600
|
+
'io.flow.v0.enums.price_detail_key': function () { return faker.helpers.arrayElement(['item_price', 'margins', 'vat', 'duty', 'rounding', 'adjustment']); },
|
|
2601
|
+
'io.flow.v0.enums.price_facet_boundary': function () { return faker.helpers.arrayElement(['min', 'max']); },
|
|
2602
|
+
'io.flow.v0.enums.pricing_levy_setting': function () { return faker.helpers.arrayElement(['included', 'displayed', 'ignored']); },
|
|
2603
|
+
'io.flow.v0.enums.promotion_trigger_type': function () { return faker.helpers.arrayElement(['automatic', 'order_subtotal']); },
|
|
2604
|
+
'io.flow.v0.enums.province_type': function () { return faker.helpers.arrayElement([
|
|
2605
2605
|
'area',
|
|
2606
2606
|
'city',
|
|
2607
2607
|
'county',
|
|
@@ -2622,15 +2622,15 @@ var factories = {
|
|
|
2622
2622
|
'territory',
|
|
2623
2623
|
'other',
|
|
2624
2624
|
]); },
|
|
2625
|
-
'io.flow.v0.enums.quote_error_code': function () { return faker.
|
|
2626
|
-
'io.flow.v0.enums.ratecard_owner': function () { return faker.
|
|
2627
|
-
'io.flow.v0.enums.refund_decline_code': function () { return faker.
|
|
2628
|
-
'io.flow.v0.enums.refund_status': function () { return faker.
|
|
2629
|
-
'io.flow.v0.enums.region_type': function () { return faker.
|
|
2630
|
-
'io.flow.v0.enums.return_item_status': function () { return faker.
|
|
2631
|
-
'io.flow.v0.enums.return_policy_state': function () { return faker.
|
|
2632
|
-
'io.flow.v0.enums.return_status': function () { return faker.
|
|
2633
|
-
'io.flow.v0.enums.return_tracking_status': function () { return faker.
|
|
2625
|
+
'io.flow.v0.enums.quote_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'items_not_available', 'shipping_unavailable']); },
|
|
2626
|
+
'io.flow.v0.enums.ratecard_owner': function () { return faker.helpers.arrayElement(['flow', 'organization']); },
|
|
2627
|
+
'io.flow.v0.enums.refund_decline_code': function () { return faker.helpers.arrayElement(['expired', 'insufficient_funds', 'unknown']); },
|
|
2628
|
+
'io.flow.v0.enums.refund_status': function () { return faker.helpers.arrayElement(['pending', 'succeeded', 'failed', 'canceled']); },
|
|
2629
|
+
'io.flow.v0.enums.region_type': function () { return faker.helpers.arrayElement(['state', 'province', 'jurisdiction']); },
|
|
2630
|
+
'io.flow.v0.enums.return_item_status': function () { return faker.helpers.arrayElement(['returnable', 'non-returnable']); },
|
|
2631
|
+
'io.flow.v0.enums.return_policy_state': function () { return faker.helpers.arrayElement(['current', 'deleting', 'updating']); },
|
|
2632
|
+
'io.flow.v0.enums.return_status': function () { return faker.helpers.arrayElement(['open', 'refunded']); },
|
|
2633
|
+
'io.flow.v0.enums.return_tracking_status': function () { return faker.helpers.arrayElement([
|
|
2634
2634
|
'awaiting_customs_clearance',
|
|
2635
2635
|
'cancel_requested',
|
|
2636
2636
|
'canceled',
|
|
@@ -2650,7 +2650,7 @@ var factories = {
|
|
|
2650
2650
|
'received_by_the_carrier',
|
|
2651
2651
|
'return_registered_online',
|
|
2652
2652
|
]); },
|
|
2653
|
-
'io.flow.v0.enums.reversal_error_code': function () { return faker.
|
|
2653
|
+
'io.flow.v0.enums.reversal_error_code': function () { return faker.helpers.arrayElement([
|
|
2654
2654
|
'amount_exceeds_balance',
|
|
2655
2655
|
'authorization_declined',
|
|
2656
2656
|
'authorization_expired',
|
|
@@ -2662,26 +2662,26 @@ var factories = {
|
|
|
2662
2662
|
'partial_reversal_not_supported',
|
|
2663
2663
|
'unknown',
|
|
2664
2664
|
]); },
|
|
2665
|
-
'io.flow.v0.enums.reversal_status': function () { return faker.
|
|
2666
|
-
'io.flow.v0.enums.role': function () { return faker.
|
|
2667
|
-
'io.flow.v0.enums.rounding_method': function () { return faker.
|
|
2668
|
-
'io.flow.v0.enums.rounding_type': function () { return faker.
|
|
2669
|
-
'io.flow.v0.enums.schedule_exception_status': function () { return faker.
|
|
2670
|
-
'io.flow.v0.enums.shipment_integration_type': function () { return faker.
|
|
2671
|
-
'io.flow.v0.enums.shipment_recipient': function () { return faker.
|
|
2672
|
-
'io.flow.v0.enums.shipping_configuration_type': function () { return faker.
|
|
2673
|
-
'io.flow.v0.enums.shopify_grant': function () { return faker.
|
|
2674
|
-
'io.flow.v0.enums.shopify_localization_method': function () { return faker.
|
|
2675
|
-
'io.flow.v0.enums.shopify_sync_check': function () { return faker.
|
|
2676
|
-
'io.flow.v0.enums.sort_direction': function () { return faker.
|
|
2677
|
-
'io.flow.v0.enums.strategy': function () { return faker.
|
|
2678
|
-
'io.flow.v0.enums.subcatalog_item_status': function () { return faker.
|
|
2679
|
-
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.
|
|
2680
|
-
'io.flow.v0.enums.sync_record_failure_reason': function () { return faker.
|
|
2681
|
-
'io.flow.v0.enums.sync_stream_type': function () { return faker.
|
|
2682
|
-
'io.flow.v0.enums.sync_unit_of_time': function () { return faker.
|
|
2683
|
-
'io.flow.v0.enums.tax_applicability': function () { return faker.
|
|
2684
|
-
'io.flow.v0.enums.tax_duty_calculator_validation_error_code': function () { return faker.
|
|
2665
|
+
'io.flow.v0.enums.reversal_status': function () { return faker.helpers.arrayElement(['pending', 'processed', 'failed']); },
|
|
2666
|
+
'io.flow.v0.enums.role': function () { return faker.helpers.arrayElement(['admin', 'member']); },
|
|
2667
|
+
'io.flow.v0.enums.rounding_method': function () { return faker.helpers.arrayElement(['up', 'down', 'nearest']); },
|
|
2668
|
+
'io.flow.v0.enums.rounding_type': function () { return faker.helpers.arrayElement(['pattern', 'multiple']); },
|
|
2669
|
+
'io.flow.v0.enums.schedule_exception_status': function () { return faker.helpers.arrayElement(['Open', 'Closed']); },
|
|
2670
|
+
'io.flow.v0.enums.shipment_integration_type': function () { return faker.helpers.arrayElement(['direct', 'information', 'preadvice']); },
|
|
2671
|
+
'io.flow.v0.enums.shipment_recipient': function () { return faker.helpers.arrayElement(['customer', 'return', 'crossdock']); },
|
|
2672
|
+
'io.flow.v0.enums.shipping_configuration_type': function () { return faker.helpers.arrayElement(['default', 'variant']); },
|
|
2673
|
+
'io.flow.v0.enums.shopify_grant': function () { return faker.helpers.arrayElement(['customer', 'discount', 'gift_card', 'metafield', 'order']); },
|
|
2674
|
+
'io.flow.v0.enums.shopify_localization_method': function () { return faker.helpers.arrayElement(['api', 'ssr']); },
|
|
2675
|
+
'io.flow.v0.enums.shopify_sync_check': function () { return faker.helpers.arrayElement(['localized_variants', 'flow_variant_metafields']); },
|
|
2676
|
+
'io.flow.v0.enums.sort_direction': function () { return faker.helpers.arrayElement(['ascending', 'descending']); },
|
|
2677
|
+
'io.flow.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
2678
|
+
'io.flow.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
2679
|
+
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
2680
|
+
'io.flow.v0.enums.sync_record_failure_reason': function () { return faker.helpers.arrayElement(['inventory', 'address', 'promotion', 'other']); },
|
|
2681
|
+
'io.flow.v0.enums.sync_stream_type': function () { return faker.helpers.arrayElement(['submitted_order', 'placed_order']); },
|
|
2682
|
+
'io.flow.v0.enums.sync_unit_of_time': function () { return faker.helpers.arrayElement(['day', 'hour', 'minute', 'second']); },
|
|
2683
|
+
'io.flow.v0.enums.tax_applicability': function () { return faker.helpers.arrayElement(['none', 'all']); },
|
|
2684
|
+
'io.flow.v0.enums.tax_duty_calculator_validation_error_code': function () { return faker.helpers.arrayElement([
|
|
2685
2685
|
'generic_error',
|
|
2686
2686
|
'destination_country_not_defined',
|
|
2687
2687
|
'destination_address_iso3166_unrecognized',
|
|
@@ -2704,18 +2704,18 @@ var factories = {
|
|
|
2704
2704
|
'merchant_of_record_invalid',
|
|
2705
2705
|
'wrong_unit_specified',
|
|
2706
2706
|
]); },
|
|
2707
|
-
'io.flow.v0.enums.tax_report_type': function () { return faker.
|
|
2708
|
-
'io.flow.v0.enums.tax_verification_result': function () { return faker.
|
|
2709
|
-
'io.flow.v0.enums.taxability_type': function () { return faker.
|
|
2710
|
-
'io.flow.v0.enums.taxability_value': function () { return faker.
|
|
2711
|
-
'io.flow.v0.enums.three_d_secure_code': function () { return faker.
|
|
2712
|
-
'io.flow.v0.enums.threeds_two_challenge_viewport': function () { return faker.
|
|
2713
|
-
'io.flow.v0.enums.tier_availability': function () { return faker.
|
|
2714
|
-
'io.flow.v0.enums.tier_estimate_type': function () { return faker.
|
|
2715
|
-
'io.flow.v0.enums.tier_strategy': function () { return faker.
|
|
2716
|
-
'io.flow.v0.enums.token_type': function () { return faker.
|
|
2717
|
-
'io.flow.v0.enums.tracking_number_type': function () { return faker.
|
|
2718
|
-
'io.flow.v0.enums.tracking_status': function () { return faker.
|
|
2707
|
+
'io.flow.v0.enums.tax_report_type': function () { return faker.helpers.arrayElement(['consumer', 'b2b']); },
|
|
2708
|
+
'io.flow.v0.enums.tax_verification_result': function () { return faker.helpers.arrayElement(['valid', 'invalid', 'unable_to_validate']); },
|
|
2709
|
+
'io.flow.v0.enums.taxability_type': function () { return faker.helpers.arrayElement(['tax_rule']); },
|
|
2710
|
+
'io.flow.v0.enums.taxability_value': function () { return faker.helpers.arrayElement(['exempt']); },
|
|
2711
|
+
'io.flow.v0.enums.three_d_secure_code': function () { return faker.helpers.arrayElement(['verified', 'not_verified', 'failed']); },
|
|
2712
|
+
'io.flow.v0.enums.threeds_two_challenge_viewport': function () { return faker.helpers.arrayElement(['xxx_small', 'xx_small', 'x_small', 'small', 'fullscreen']); },
|
|
2713
|
+
'io.flow.v0.enums.tier_availability': function () { return faker.helpers.arrayElement(['always', 'backup']); },
|
|
2714
|
+
'io.flow.v0.enums.tier_estimate_type': function () { return faker.helpers.arrayElement(['calculated', 'custom']); },
|
|
2715
|
+
'io.flow.v0.enums.tier_strategy': function () { return faker.helpers.arrayElement(['fastest', 'lowest_cost']); },
|
|
2716
|
+
'io.flow.v0.enums.token_type': function () { return faker.helpers.arrayElement(['permanent', 'one_time']); },
|
|
2717
|
+
'io.flow.v0.enums.tracking_number_type': function () { return faker.helpers.arrayElement(['flow', 'carrier']); },
|
|
2718
|
+
'io.flow.v0.enums.tracking_status': function () { return faker.helpers.arrayElement([
|
|
2719
2719
|
'label_created',
|
|
2720
2720
|
'pending',
|
|
2721
2721
|
'info_received',
|
|
@@ -2728,9 +2728,9 @@ var factories = {
|
|
|
2728
2728
|
'returned',
|
|
2729
2729
|
'expired',
|
|
2730
2730
|
]); },
|
|
2731
|
-
'io.flow.v0.enums.trade_agreement_name': function () { return faker.
|
|
2732
|
-
'io.flow.v0.enums.trade_agreement_status': function () { return faker.
|
|
2733
|
-
'io.flow.v0.enums.transaction_source': function () { return faker.
|
|
2731
|
+
'io.flow.v0.enums.trade_agreement_name': function () { return faker.helpers.arrayElement(['USMCA', 'T-MEC', 'CUSMA', 'TCA']); },
|
|
2732
|
+
'io.flow.v0.enums.trade_agreement_status': function () { return faker.helpers.arrayElement(['supported', 'not_supported']); },
|
|
2733
|
+
'io.flow.v0.enums.transaction_source': function () { return faker.helpers.arrayElement([
|
|
2734
2734
|
'capture',
|
|
2735
2735
|
'refund',
|
|
2736
2736
|
'dispute',
|
|
@@ -2739,6 +2739,8 @@ var factories = {
|
|
|
2739
2739
|
'shipping_label_service',
|
|
2740
2740
|
'shipping_label_revenue_share',
|
|
2741
2741
|
'platform_fee',
|
|
2742
|
+
'tax',
|
|
2743
|
+
'duties',
|
|
2742
2744
|
'other_adjustment',
|
|
2743
2745
|
'tax_adjustment',
|
|
2744
2746
|
'channel',
|
|
@@ -2747,7 +2749,7 @@ var factories = {
|
|
|
2747
2749
|
'virtual_card_capture',
|
|
2748
2750
|
'virtual_card_refund',
|
|
2749
2751
|
]); },
|
|
2750
|
-
'io.flow.v0.enums.unit_of_measurement': function () { return faker.
|
|
2752
|
+
'io.flow.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
2751
2753
|
'millimeter',
|
|
2752
2754
|
'centimeter',
|
|
2753
2755
|
'inch',
|
|
@@ -2760,16 +2762,16 @@ var factories = {
|
|
|
2760
2762
|
'ounce',
|
|
2761
2763
|
'pound',
|
|
2762
2764
|
]); },
|
|
2763
|
-
'io.flow.v0.enums.unit_of_time': function () { return faker.
|
|
2764
|
-
'io.flow.v0.enums.update_policy': function () { return faker.
|
|
2765
|
-
'io.flow.v0.enums.update_type': function () { return faker.
|
|
2766
|
-
'io.flow.v0.enums.user_status': function () { return faker.
|
|
2767
|
-
'io.flow.v0.enums.value_added_service': function () { return faker.
|
|
2768
|
-
'io.flow.v0.enums.visibility': function () { return faker.
|
|
2769
|
-
'io.flow.v0.enums.webhook_status': function () { return faker.
|
|
2770
|
-
'io.flow.v0.enums.withholding_deduction_type': function () { return faker.
|
|
2771
|
-
'io.flow.v0.enums.zero_amount_indicator': function () { return faker.
|
|
2772
|
-
'io.flow.v0.enums.zero_levy_reason_code': function () { return faker.
|
|
2765
|
+
'io.flow.v0.enums.unit_of_time': function () { return faker.helpers.arrayElement(['year', 'month', 'week', 'day', 'hour', 'minute']); },
|
|
2766
|
+
'io.flow.v0.enums.update_policy': function () { return faker.helpers.arrayElement(['auto', 'queue', 'discard']); },
|
|
2767
|
+
'io.flow.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
2768
|
+
'io.flow.v0.enums.user_status': function () { return faker.helpers.arrayElement(['pending', 'active', 'inactive']); },
|
|
2769
|
+
'io.flow.v0.enums.value_added_service': function () { return faker.helpers.arrayElement(['Hazardous Material']); },
|
|
2770
|
+
'io.flow.v0.enums.visibility': function () { return faker.helpers.arrayElement(['public', 'private']); },
|
|
2771
|
+
'io.flow.v0.enums.webhook_status': function () { return faker.helpers.arrayElement(['pending', 'success', 'failure']); },
|
|
2772
|
+
'io.flow.v0.enums.withholding_deduction_type': function () { return faker.helpers.arrayElement(['tax', 'duty', 'freight', 'insurance']); },
|
|
2773
|
+
'io.flow.v0.enums.zero_amount_indicator': function () { return faker.helpers.arrayElement(['zero', 'free']); },
|
|
2774
|
+
'io.flow.v0.enums.zero_levy_reason_code': function () { return faker.helpers.arrayElement([
|
|
2773
2775
|
'zero_basis',
|
|
2774
2776
|
'zero_rate_on_goods',
|
|
2775
2777
|
'value_rounds_to_zero',
|
|
@@ -2935,6 +2937,9 @@ var factories = {
|
|
|
2935
2937
|
type: 'wait',
|
|
2936
2938
|
expires_at: factories.date_time_iso_8601(),
|
|
2937
2939
|
}); },
|
|
2940
|
+
'io.flow.v0.models.activation_put_form': function () { return ({
|
|
2941
|
+
placeholder: factories.boolean(),
|
|
2942
|
+
}); },
|
|
2938
2943
|
'io.flow.v0.models.address': function () { return ({
|
|
2939
2944
|
text: factories.string(),
|
|
2940
2945
|
streets: arrayOf(function () { return factories.string(); }),
|
|
@@ -9697,6 +9702,7 @@ var factories = {
|
|
|
9697
9702
|
'io.flow.v0.models.shipping_label_document': function () { return ({
|
|
9698
9703
|
zpl: factories.string(),
|
|
9699
9704
|
pdf: factories.string(),
|
|
9705
|
+
pdf_data: factories.string(),
|
|
9700
9706
|
png: factories.string(),
|
|
9701
9707
|
html: factories.string(),
|
|
9702
9708
|
required: factories.boolean(),
|
|
@@ -10967,13 +10973,13 @@ var factories = {
|
|
|
10967
10973
|
country: factories.string(),
|
|
10968
10974
|
}); },
|
|
10969
10975
|
'io.flow.v0.unions.abandoned_order_promotion_details': function () {
|
|
10970
|
-
var f = faker.
|
|
10976
|
+
var f = faker.helpers.arrayElement([
|
|
10971
10977
|
function () { return factories['io.flow.v0.models.abandoned_order_promotion_discount_details'](); },
|
|
10972
10978
|
]);
|
|
10973
10979
|
return f();
|
|
10974
10980
|
},
|
|
10975
10981
|
'io.flow.v0.unions.action': function () {
|
|
10976
|
-
var f = faker.
|
|
10982
|
+
var f = faker.helpers.arrayElement([
|
|
10977
10983
|
function () { return factories['io.flow.v0.models.action_redirect'](); },
|
|
10978
10984
|
function () { return factories['io.flow.v0.models.action_use_sdk_klarna_v1'](); },
|
|
10979
10985
|
function () { return factories['io.flow.v0.models.action_use_sdk_applepay_js_create_session'](); },
|
|
@@ -10991,35 +10997,35 @@ var factories = {
|
|
|
10991
10997
|
return f();
|
|
10992
10998
|
},
|
|
10993
10999
|
'io.flow.v0.unions.adyen_native_data': function () {
|
|
10994
|
-
var f = faker.
|
|
11000
|
+
var f = faker.helpers.arrayElement([
|
|
10995
11001
|
function () { return factories['io.flow.v0.models.adyen_identify_shopper_data'](); },
|
|
10996
11002
|
function () { return factories['io.flow.v0.models.adyen_challenge_shopper_data'](); },
|
|
10997
11003
|
]);
|
|
10998
11004
|
return f();
|
|
10999
11005
|
},
|
|
11000
11006
|
'io.flow.v0.unions.allocation_component': function () {
|
|
11001
|
-
var f = faker.
|
|
11007
|
+
var f = faker.helpers.arrayElement([
|
|
11002
11008
|
function () { return factories['io.flow.v0.models.allocation_detail_component'](); },
|
|
11003
11009
|
function () { return factories['io.flow.v0.models.allocation_levy_component'](); },
|
|
11004
11010
|
]);
|
|
11005
11011
|
return f();
|
|
11006
11012
|
},
|
|
11007
11013
|
'io.flow.v0.unions.allocation_detail': function () {
|
|
11008
|
-
var f = faker.
|
|
11014
|
+
var f = faker.helpers.arrayElement([
|
|
11009
11015
|
function () { return factories['io.flow.v0.models.allocation_line_detail'](); },
|
|
11010
11016
|
function () { return factories['io.flow.v0.models.allocation_order_detail'](); },
|
|
11011
11017
|
]);
|
|
11012
11018
|
return f();
|
|
11013
11019
|
},
|
|
11014
11020
|
'io.flow.v0.unions.authorization': function () {
|
|
11015
|
-
var f = faker.
|
|
11021
|
+
var f = faker.helpers.arrayElement([
|
|
11016
11022
|
function () { return factories['io.flow.v0.models.card_authorization'](); },
|
|
11017
11023
|
function () { return factories['io.flow.v0.models.online_authorization'](); },
|
|
11018
11024
|
]);
|
|
11019
11025
|
return f();
|
|
11020
11026
|
},
|
|
11021
11027
|
'io.flow.v0.unions.authorization_form': function () {
|
|
11022
|
-
var f = faker.
|
|
11028
|
+
var f = faker.helpers.arrayElement([
|
|
11023
11029
|
function () { return factories['io.flow.v0.models.authorization_copy_form'](); },
|
|
11024
11030
|
function () { return factories['io.flow.v0.models.direct_authorization_form'](); },
|
|
11025
11031
|
function () { return factories['io.flow.v0.models.merchant_of_record_authorization_form'](); },
|
|
@@ -11033,14 +11039,14 @@ var factories = {
|
|
|
11033
11039
|
return f();
|
|
11034
11040
|
},
|
|
11035
11041
|
'io.flow.v0.unions.authorization_payload_parameters': function () {
|
|
11036
|
-
var f = faker.
|
|
11042
|
+
var f = faker.helpers.arrayElement([
|
|
11037
11043
|
function () { return factories['io.flow.v0.models.google_pay_authorization_payload'](); },
|
|
11038
11044
|
function () { return factories['io.flow.v0.models.apple_pay_merchant_validation_payload'](); },
|
|
11039
11045
|
]);
|
|
11040
11046
|
return f();
|
|
11041
11047
|
},
|
|
11042
11048
|
'io.flow.v0.unions.authorization_result_action': function () {
|
|
11043
|
-
var f = faker.
|
|
11049
|
+
var f = faker.helpers.arrayElement([
|
|
11044
11050
|
function () { return factories['io.flow.v0.models.authorization_result_action_get'](); },
|
|
11045
11051
|
function () { return factories['io.flow.v0.models.authorization_result_action_post'](); },
|
|
11046
11052
|
function () { return factories['io.flow.v0.models.authorization_result_action_wait'](); },
|
|
@@ -11049,7 +11055,7 @@ var factories = {
|
|
|
11049
11055
|
return f();
|
|
11050
11056
|
},
|
|
11051
11057
|
'io.flow.v0.unions.authorization_result_action_details': function () {
|
|
11052
|
-
var f = faker.
|
|
11058
|
+
var f = faker.helpers.arrayElement([
|
|
11053
11059
|
function () { return factories['io.flow.v0.models.adyen_native_action_details'](); },
|
|
11054
11060
|
function () { return factories['io.flow.v0.models.stripe_authorization_result_action_details'](); },
|
|
11055
11061
|
function () { return factories['io.flow.v0.models.threeds_identify_action_details'](); },
|
|
@@ -11060,47 +11066,47 @@ var factories = {
|
|
|
11060
11066
|
return f();
|
|
11061
11067
|
},
|
|
11062
11068
|
'io.flow.v0.unions.available_filter': function () {
|
|
11063
|
-
var f = faker.
|
|
11069
|
+
var f = faker.helpers.arrayElement([
|
|
11064
11070
|
function () { return factories['io.flow.v0.models.available_filter_structured'](); },
|
|
11065
11071
|
function () { return factories['io.flow.v0.models.available_filter_unstructured'](); },
|
|
11066
11072
|
]);
|
|
11067
11073
|
return f();
|
|
11068
11074
|
},
|
|
11069
11075
|
'io.flow.v0.unions.bank_account_info': function () {
|
|
11070
|
-
var f = faker.
|
|
11076
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.bank_account_info_usa'](); }]);
|
|
11071
11077
|
return f();
|
|
11072
11078
|
},
|
|
11073
11079
|
'io.flow.v0.unions.browser_action_configuration': function () {
|
|
11074
|
-
var f = faker.
|
|
11080
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.card_browser_action_configuration'](); }]);
|
|
11075
11081
|
return f();
|
|
11076
11082
|
},
|
|
11077
11083
|
'io.flow.v0.unions.card_authorization_action_result': function () {
|
|
11078
|
-
var f = faker.
|
|
11084
|
+
var f = faker.helpers.arrayElement([
|
|
11079
11085
|
function () { return factories['io.flow.v0.models.authorization_action_result_adyen_v3'](); },
|
|
11080
11086
|
function () { return factories['io.flow.v0.models.authorization_action_result_adyen_v4'](); },
|
|
11081
11087
|
]);
|
|
11082
11088
|
return f();
|
|
11083
11089
|
},
|
|
11084
11090
|
'io.flow.v0.unions.card_number': function () {
|
|
11085
|
-
var f = faker.
|
|
11091
|
+
var f = faker.helpers.arrayElement([
|
|
11086
11092
|
function () { return factories['io.flow.v0.models.payment_method_card_number_cleartext'](); },
|
|
11087
11093
|
function () { return factories['io.flow.v0.models.payment_method_card_number_cipher'](); },
|
|
11088
11094
|
]);
|
|
11089
11095
|
return f();
|
|
11090
11096
|
},
|
|
11091
11097
|
'io.flow.v0.unions.checkout_token_form': function () {
|
|
11092
|
-
var f = faker.
|
|
11098
|
+
var f = faker.helpers.arrayElement([
|
|
11093
11099
|
function () { return factories['io.flow.v0.models.checkout_token_order_form'](); },
|
|
11094
11100
|
function () { return factories['io.flow.v0.models.checkout_token_reference_form'](); },
|
|
11095
11101
|
]);
|
|
11096
11102
|
return f();
|
|
11097
11103
|
},
|
|
11098
11104
|
'io.flow.v0.unions.confirmation_details': function () {
|
|
11099
|
-
var f = faker.
|
|
11105
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.direct_debit'](); }]);
|
|
11100
11106
|
return f();
|
|
11101
11107
|
},
|
|
11102
11108
|
'io.flow.v0.unions.consumer_invoice_line': function () {
|
|
11103
|
-
var f = faker.
|
|
11109
|
+
var f = faker.helpers.arrayElement([
|
|
11104
11110
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_item'](); },
|
|
11105
11111
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_discount'](); },
|
|
11106
11112
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_shipping'](); },
|
|
@@ -11108,7 +11114,7 @@ var factories = {
|
|
|
11108
11114
|
return f();
|
|
11109
11115
|
},
|
|
11110
11116
|
'io.flow.v0.unions.consumer_invoice_line_form': function () {
|
|
11111
|
-
var f = faker.
|
|
11117
|
+
var f = faker.helpers.arrayElement([
|
|
11112
11118
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_item_form'](); },
|
|
11113
11119
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_discount_form'](); },
|
|
11114
11120
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_shipping_form'](); },
|
|
@@ -11116,54 +11122,54 @@ var factories = {
|
|
|
11116
11122
|
return f();
|
|
11117
11123
|
},
|
|
11118
11124
|
'io.flow.v0.unions.delivery': function () {
|
|
11119
|
-
var f = faker.
|
|
11125
|
+
var f = faker.helpers.arrayElement([
|
|
11120
11126
|
function () { return factories['io.flow.v0.models.digital_delivery'](); },
|
|
11121
11127
|
function () { return factories['io.flow.v0.models.physical_delivery'](); },
|
|
11122
11128
|
]);
|
|
11123
11129
|
return f();
|
|
11124
11130
|
},
|
|
11125
11131
|
'io.flow.v0.unions.deminimis': function () {
|
|
11126
|
-
var f = faker.
|
|
11132
|
+
var f = faker.helpers.arrayElement([
|
|
11127
11133
|
function () { return factories['io.flow.v0.models.deminimis_simple'](); },
|
|
11128
11134
|
function () { return factories['io.flow.v0.models.deminimis_per_item'](); },
|
|
11129
11135
|
]);
|
|
11130
11136
|
return f();
|
|
11131
11137
|
},
|
|
11132
11138
|
'io.flow.v0.unions.device_details': function () {
|
|
11133
|
-
var f = faker.
|
|
11139
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.device_details_browser'](); }]);
|
|
11134
11140
|
return f();
|
|
11135
11141
|
},
|
|
11136
11142
|
'io.flow.v0.unions.device_fingerprint_details': function () {
|
|
11137
|
-
var f = faker.
|
|
11143
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.device_fingerprint_details_browser'](); }]);
|
|
11138
11144
|
return f();
|
|
11139
11145
|
},
|
|
11140
11146
|
'io.flow.v0.unions.discount_offer': function () {
|
|
11141
|
-
var f = faker.
|
|
11147
|
+
var f = faker.helpers.arrayElement([
|
|
11142
11148
|
function () { return factories['io.flow.v0.models.discount_offer_fixed'](); },
|
|
11143
11149
|
function () { return factories['io.flow.v0.models.discount_offer_percent'](); },
|
|
11144
11150
|
]);
|
|
11145
11151
|
return f();
|
|
11146
11152
|
},
|
|
11147
11153
|
'io.flow.v0.unions.discount_rule_entitlement': function () {
|
|
11148
|
-
var f = faker.
|
|
11154
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.discount_rule_subsidy_entitlement'](); }]);
|
|
11149
11155
|
return f();
|
|
11150
11156
|
},
|
|
11151
11157
|
'io.flow.v0.unions.document': function () {
|
|
11152
|
-
var f = faker.
|
|
11158
|
+
var f = faker.helpers.arrayElement([
|
|
11153
11159
|
function () { return factories['io.flow.v0.models.catalog_item_document'](); },
|
|
11154
11160
|
function () { return factories['io.flow.v0.models.harmonization_document'](); },
|
|
11155
11161
|
]);
|
|
11156
11162
|
return f();
|
|
11157
11163
|
},
|
|
11158
11164
|
'io.flow.v0.unions.email_notification_data': function () {
|
|
11159
|
-
var f = faker.
|
|
11165
|
+
var f = faker.helpers.arrayElement([
|
|
11160
11166
|
function () { return factories['io.flow.v0.models.email_notification_data_refund'](); },
|
|
11161
11167
|
function () { return factories['io.flow.v0.models.email_notification_abandoned_order'](); },
|
|
11162
11168
|
]);
|
|
11163
11169
|
return f();
|
|
11164
11170
|
},
|
|
11165
11171
|
'io.flow.v0.unions.event': function () {
|
|
11166
|
-
var f = faker.
|
|
11172
|
+
var f = faker.helpers.arrayElement([
|
|
11167
11173
|
function () { return factories['io.flow.v0.models.transaction_upserted'](); },
|
|
11168
11174
|
function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
|
|
11169
11175
|
function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
|
|
@@ -11355,7 +11361,7 @@ var factories = {
|
|
|
11355
11361
|
return f();
|
|
11356
11362
|
},
|
|
11357
11363
|
'io.flow.v0.unions.expandable_card': function () {
|
|
11358
|
-
var f = faker.
|
|
11364
|
+
var f = faker.helpers.arrayElement([
|
|
11359
11365
|
function () { return factories['io.flow.v0.models.card'](); },
|
|
11360
11366
|
function () { return factories['io.flow.v0.models.card_reference'](); },
|
|
11361
11367
|
function () { return factories['io.flow.v0.models.card_summary'](); },
|
|
@@ -11363,60 +11369,60 @@ var factories = {
|
|
|
11363
11369
|
return f();
|
|
11364
11370
|
},
|
|
11365
11371
|
'io.flow.v0.unions.expandable_center': function () {
|
|
11366
|
-
var f = faker.
|
|
11372
|
+
var f = faker.helpers.arrayElement([
|
|
11367
11373
|
function () { return factories['io.flow.v0.models.center'](); },
|
|
11368
11374
|
function () { return factories['io.flow.v0.models.center_reference'](); },
|
|
11369
11375
|
]);
|
|
11370
11376
|
return f();
|
|
11371
11377
|
},
|
|
11372
11378
|
'io.flow.v0.unions.expandable_experience': function () {
|
|
11373
|
-
var f = faker.
|
|
11379
|
+
var f = faker.helpers.arrayElement([
|
|
11374
11380
|
function () { return factories['io.flow.v0.models.experience'](); },
|
|
11375
11381
|
function () { return factories['io.flow.v0.models.experience_reference'](); },
|
|
11376
11382
|
]);
|
|
11377
11383
|
return f();
|
|
11378
11384
|
},
|
|
11379
11385
|
'io.flow.v0.unions.expandable_order': function () {
|
|
11380
|
-
var f = faker.
|
|
11386
|
+
var f = faker.helpers.arrayElement([
|
|
11381
11387
|
function () { return factories['io.flow.v0.models.order'](); },
|
|
11382
11388
|
function () { return factories['io.flow.v0.models.order_reference'](); },
|
|
11383
11389
|
]);
|
|
11384
11390
|
return f();
|
|
11385
11391
|
},
|
|
11386
11392
|
'io.flow.v0.unions.expandable_organization': function () {
|
|
11387
|
-
var f = faker.
|
|
11393
|
+
var f = faker.helpers.arrayElement([
|
|
11388
11394
|
function () { return factories['io.flow.v0.models.organization'](); },
|
|
11389
11395
|
function () { return factories['io.flow.v0.models.organization_reference'](); },
|
|
11390
11396
|
]);
|
|
11391
11397
|
return f();
|
|
11392
11398
|
},
|
|
11393
11399
|
'io.flow.v0.unions.expandable_payment_processor': function () {
|
|
11394
|
-
var f = faker.
|
|
11400
|
+
var f = faker.helpers.arrayElement([
|
|
11395
11401
|
function () { return factories['io.flow.v0.models.payment_processor'](); },
|
|
11396
11402
|
function () { return factories['io.flow.v0.models.payment_processor_reference'](); },
|
|
11397
11403
|
]);
|
|
11398
11404
|
return f();
|
|
11399
11405
|
},
|
|
11400
11406
|
'io.flow.v0.unions.expandable_subcatalog': function () {
|
|
11401
|
-
var f = faker.
|
|
11407
|
+
var f = faker.helpers.arrayElement([
|
|
11402
11408
|
function () { return factories['io.flow.v0.models.subcatalog'](); },
|
|
11403
11409
|
function () { return factories['io.flow.v0.models.subcatalog_reference'](); },
|
|
11404
11410
|
]);
|
|
11405
11411
|
return f();
|
|
11406
11412
|
},
|
|
11407
11413
|
'io.flow.v0.unions.expandable_user': function () {
|
|
11408
|
-
var f = faker.
|
|
11414
|
+
var f = faker.helpers.arrayElement([
|
|
11409
11415
|
function () { return factories['io.flow.v0.models.user'](); },
|
|
11410
11416
|
function () { return factories['io.flow.v0.models.user_reference'](); },
|
|
11411
11417
|
]);
|
|
11412
11418
|
return f();
|
|
11413
11419
|
},
|
|
11414
11420
|
'io.flow.v0.unions.export_delivery': function () {
|
|
11415
|
-
var f = faker.
|
|
11421
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.export_delivery_email'](); }]);
|
|
11416
11422
|
return f();
|
|
11417
11423
|
},
|
|
11418
11424
|
'io.flow.v0.unions.export_type': function () {
|
|
11419
|
-
var f = faker.
|
|
11425
|
+
var f = faker.helpers.arrayElement([
|
|
11420
11426
|
function () { return factories['io.flow.v0.models.account_transactions_export_type'](); },
|
|
11421
11427
|
function () { return factories['io.flow.v0.models.account_orders_export_type'](); },
|
|
11422
11428
|
function () { return factories['io.flow.v0.models.analytics_export_type'](); },
|
|
@@ -11438,7 +11444,7 @@ var factories = {
|
|
|
11438
11444
|
return f();
|
|
11439
11445
|
},
|
|
11440
11446
|
'io.flow.v0.unions.field_validation_rule': function () {
|
|
11441
|
-
var f = faker.
|
|
11447
|
+
var f = faker.helpers.arrayElement([
|
|
11442
11448
|
function () { return factories['io.flow.v0.models.field_validation_required'](); },
|
|
11443
11449
|
function () { return factories['io.flow.v0.models.field_validation_required_if_present'](); },
|
|
11444
11450
|
function () { return factories['io.flow.v0.models.field_validation_min'](); },
|
|
@@ -11448,30 +11454,30 @@ var factories = {
|
|
|
11448
11454
|
return f();
|
|
11449
11455
|
},
|
|
11450
11456
|
'io.flow.v0.unions.fraud_order_reference': function () {
|
|
11451
|
-
var f = faker.
|
|
11457
|
+
var f = faker.helpers.arrayElement([
|
|
11452
11458
|
function () { return factories['io.flow.v0.models.fraud_flow_order_reference'](); },
|
|
11453
11459
|
function () { return factories['io.flow.v0.models.fraud_payment_request_reference'](); },
|
|
11454
11460
|
]);
|
|
11455
11461
|
return f();
|
|
11456
11462
|
},
|
|
11457
11463
|
'io.flow.v0.unions.gateway_authentication_data': function () {
|
|
11458
|
-
var f = faker.
|
|
11464
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.stripe_authentication_data'](); }]);
|
|
11459
11465
|
return f();
|
|
11460
11466
|
},
|
|
11461
11467
|
'io.flow.v0.unions.gateway_authentication_data_form': function () {
|
|
11462
|
-
var f = faker.
|
|
11468
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.stripe_authentication_data_form'](); }]);
|
|
11463
11469
|
return f();
|
|
11464
11470
|
},
|
|
11465
11471
|
'io.flow.v0.unions.inline_action_configuration': function () {
|
|
11466
|
-
var f = faker.
|
|
11472
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.browser_inline_action_configuration'](); }]);
|
|
11467
11473
|
return f();
|
|
11468
11474
|
},
|
|
11469
11475
|
'io.flow.v0.unions.input_specification_limitation': function () {
|
|
11470
|
-
var f = faker.
|
|
11476
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.input_specification_limitation_max'](); }]);
|
|
11471
11477
|
return f();
|
|
11472
11478
|
},
|
|
11473
11479
|
'io.flow.v0.unions.inventory_strategy': function () {
|
|
11474
|
-
var f = faker.
|
|
11480
|
+
var f = faker.helpers.arrayElement([
|
|
11475
11481
|
function () { return factories['io.flow.v0.models.inventory_backorder'](); },
|
|
11476
11482
|
function () { return factories['io.flow.v0.models.inventory_stock'](); },
|
|
11477
11483
|
function () { return factories['io.flow.v0.models.inventory_unlimited'](); },
|
|
@@ -11480,7 +11486,7 @@ var factories = {
|
|
|
11480
11486
|
return f();
|
|
11481
11487
|
},
|
|
11482
11488
|
'io.flow.v0.unions.localized_price': function () {
|
|
11483
|
-
var f = faker.
|
|
11489
|
+
var f = faker.helpers.arrayElement([
|
|
11484
11490
|
function () { return factories['io.flow.v0.models.localized_item_price'](); },
|
|
11485
11491
|
function () { return factories['io.flow.v0.models.localized_item_vat'](); },
|
|
11486
11492
|
function () { return factories['io.flow.v0.models.localized_item_duty'](); },
|
|
@@ -11489,34 +11495,34 @@ var factories = {
|
|
|
11489
11495
|
return f();
|
|
11490
11496
|
},
|
|
11491
11497
|
'io.flow.v0.unions.logo_image': function () {
|
|
11492
|
-
var f = faker.
|
|
11498
|
+
var f = faker.helpers.arrayElement([
|
|
11493
11499
|
function () { return factories['io.flow.v0.models.logo_image_svg'](); },
|
|
11494
11500
|
function () { return factories['io.flow.v0.models.logo_image_set_static'](); },
|
|
11495
11501
|
]);
|
|
11496
11502
|
return f();
|
|
11497
11503
|
},
|
|
11498
11504
|
'io.flow.v0.unions.merchant_application': function () {
|
|
11499
|
-
var f = faker.
|
|
11505
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.shopify_merchant_application'](); }]);
|
|
11500
11506
|
return f();
|
|
11501
11507
|
},
|
|
11502
11508
|
'io.flow.v0.unions.merchant_application_form': function () {
|
|
11503
|
-
var f = faker.
|
|
11509
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.shopify_merchant_application_form'](); }]);
|
|
11504
11510
|
return f();
|
|
11505
11511
|
},
|
|
11506
11512
|
'io.flow.v0.unions.merchant_application_put_form': function () {
|
|
11507
|
-
var f = faker.
|
|
11513
|
+
var f = faker.helpers.arrayElement([
|
|
11508
11514
|
function () { return factories['io.flow.v0.models.shopify_merchant_application_put_form'](); },
|
|
11509
11515
|
]);
|
|
11510
11516
|
return f();
|
|
11511
11517
|
},
|
|
11512
11518
|
'io.flow.v0.unions.merchant_applications_summary': function () {
|
|
11513
|
-
var f = faker.
|
|
11519
|
+
var f = faker.helpers.arrayElement([
|
|
11514
11520
|
function () { return factories['io.flow.v0.models.shopify_merchant_applications_summary'](); },
|
|
11515
11521
|
]);
|
|
11516
11522
|
return f();
|
|
11517
11523
|
},
|
|
11518
11524
|
'io.flow.v0.unions.onboarding_state': function () {
|
|
11519
|
-
var f = faker.
|
|
11525
|
+
var f = faker.helpers.arrayElement([
|
|
11520
11526
|
function () { return factories['io.flow.v0.models.application_received'](); },
|
|
11521
11527
|
function () { return factories['io.flow.v0.models.in_compliance_review'](); },
|
|
11522
11528
|
function () { return factories['io.flow.v0.models.setup_in_progress'](); },
|
|
@@ -11528,7 +11534,7 @@ var factories = {
|
|
|
11528
11534
|
return f();
|
|
11529
11535
|
},
|
|
11530
11536
|
'io.flow.v0.unions.online_authorization_details': function () {
|
|
11531
|
-
var f = faker.
|
|
11537
|
+
var f = faker.helpers.arrayElement([
|
|
11532
11538
|
function () { return factories['io.flow.v0.models.cryptopay_authorization_details'](); },
|
|
11533
11539
|
function () { return factories['io.flow.v0.models.paypal_authorization_details'](); },
|
|
11534
11540
|
function () { return factories['io.flow.v0.models.redirect_authorization_details'](); },
|
|
@@ -11537,14 +11543,14 @@ var factories = {
|
|
|
11537
11543
|
return f();
|
|
11538
11544
|
},
|
|
11539
11545
|
'io.flow.v0.unions.order_information': function () {
|
|
11540
|
-
var f = faker.
|
|
11546
|
+
var f = faker.helpers.arrayElement([
|
|
11541
11547
|
function () { return factories['io.flow.v0.models.order_information_flow'](); },
|
|
11542
11548
|
function () { return factories['io.flow.v0.models.order_information_details'](); },
|
|
11543
11549
|
]);
|
|
11544
11550
|
return f();
|
|
11545
11551
|
},
|
|
11546
11552
|
'io.flow.v0.unions.order_number_generator': function () {
|
|
11547
|
-
var f = faker.
|
|
11553
|
+
var f = faker.helpers.arrayElement([
|
|
11548
11554
|
function () { return factories['io.flow.v0.models.order_number_generator_uuid'](); },
|
|
11549
11555
|
function () { return factories['io.flow.v0.models.order_number_generator_hexadecimal'](); },
|
|
11550
11556
|
function () { return factories['io.flow.v0.models.order_number_generator_prefix_suffix'](); },
|
|
@@ -11552,15 +11558,15 @@ var factories = {
|
|
|
11552
11558
|
return f();
|
|
11553
11559
|
},
|
|
11554
11560
|
'io.flow.v0.unions.order_promotion': function () {
|
|
11555
|
-
var f = faker.
|
|
11561
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.free_shipping_order_promotion'](); }]);
|
|
11556
11562
|
return f();
|
|
11557
11563
|
},
|
|
11558
11564
|
'io.flow.v0.unions.order_promotion_form': function () {
|
|
11559
|
-
var f = faker.
|
|
11565
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.free_shipping_order_promotion_form'](); }]);
|
|
11560
11566
|
return f();
|
|
11561
11567
|
},
|
|
11562
11568
|
'io.flow.v0.unions.order_quote_price': function () {
|
|
11563
|
-
var f = faker.
|
|
11569
|
+
var f = faker.helpers.arrayElement([
|
|
11564
11570
|
function () { return factories['io.flow.v0.models.order_quote_price_free'](); },
|
|
11565
11571
|
function () { return factories['io.flow.v0.models.order_quote_price_not_yet_known'](); },
|
|
11566
11572
|
function () { return factories['io.flow.v0.models.order_quote_price_included'](); },
|
|
@@ -11570,14 +11576,14 @@ var factories = {
|
|
|
11570
11576
|
return f();
|
|
11571
11577
|
},
|
|
11572
11578
|
'io.flow.v0.unions.order_refund_summary_form': function () {
|
|
11573
|
-
var f = faker.
|
|
11579
|
+
var f = faker.helpers.arrayElement([
|
|
11574
11580
|
function () { return factories['io.flow.v0.models.order_refund_summary_full_form'](); },
|
|
11575
11581
|
function () { return factories['io.flow.v0.models.order_refund_summary_partial_form'](); },
|
|
11576
11582
|
]);
|
|
11577
11583
|
return f();
|
|
11578
11584
|
},
|
|
11579
11585
|
'io.flow.v0.unions.partner_center_fee': function () {
|
|
11580
|
-
var f = faker.
|
|
11586
|
+
var f = faker.helpers.arrayElement([
|
|
11581
11587
|
function () { return factories['io.flow.v0.models.commercial_invoice_fee'](); },
|
|
11582
11588
|
function () { return factories['io.flow.v0.models.inbound_carton_fee'](); },
|
|
11583
11589
|
function () { return factories['io.flow.v0.models.outbound_carton_fee'](); },
|
|
@@ -11585,32 +11591,32 @@ var factories = {
|
|
|
11585
11591
|
return f();
|
|
11586
11592
|
},
|
|
11587
11593
|
'io.flow.v0.unions.payment': function () {
|
|
11588
|
-
var f = faker.
|
|
11594
|
+
var f = faker.helpers.arrayElement([
|
|
11589
11595
|
function () { return factories['io.flow.v0.models.payment_paypal'](); },
|
|
11590
11596
|
function () { return factories['io.flow.v0.models.payment_cryptopay'](); },
|
|
11591
11597
|
]);
|
|
11592
11598
|
return f();
|
|
11593
11599
|
},
|
|
11594
11600
|
'io.flow.v0.unions.payment_capture_option': function () {
|
|
11595
|
-
var f = faker.
|
|
11601
|
+
var f = faker.helpers.arrayElement([
|
|
11596
11602
|
function () { return factories['io.flow.v0.models.payment_capture_option_automatic_immediate'](); },
|
|
11597
11603
|
function () { return factories['io.flow.v0.models.payment_capture_option_manual'](); },
|
|
11598
11604
|
]);
|
|
11599
11605
|
return f();
|
|
11600
11606
|
},
|
|
11601
11607
|
'io.flow.v0.unions.payment_form': function () {
|
|
11602
|
-
var f = faker.
|
|
11608
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.merchant_of_record_payment_form'](); }]);
|
|
11603
11609
|
return f();
|
|
11604
11610
|
},
|
|
11605
11611
|
'io.flow.v0.unions.payment_method_card': function () {
|
|
11606
|
-
var f = faker.
|
|
11612
|
+
var f = faker.helpers.arrayElement([
|
|
11607
11613
|
function () { return factories['io.flow.v0.models.payment_method_card_pci_details'](); },
|
|
11608
11614
|
function () { return factories['io.flow.v0.models.payment_method_card_token'](); },
|
|
11609
11615
|
]);
|
|
11610
11616
|
return f();
|
|
11611
11617
|
},
|
|
11612
11618
|
'io.flow.v0.unions.payment_method_data': function () {
|
|
11613
|
-
var f = faker.
|
|
11619
|
+
var f = faker.helpers.arrayElement([
|
|
11614
11620
|
function () { return factories['io.flow.v0.models.payment_method_data_init_klarna'](); },
|
|
11615
11621
|
function () { return factories['io.flow.v0.models.payment_method_data_init_afterpay'](); },
|
|
11616
11622
|
function () { return factories['io.flow.v0.models.payment_method_data_init_applepay'](); },
|
|
@@ -11631,18 +11637,18 @@ var factories = {
|
|
|
11631
11637
|
return f();
|
|
11632
11638
|
},
|
|
11633
11639
|
'io.flow.v0.unions.payment_method_data_authorize_klarna_result': function () {
|
|
11634
|
-
var f = faker.
|
|
11640
|
+
var f = faker.helpers.arrayElement([
|
|
11635
11641
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_klarna_result_success'](); },
|
|
11636
11642
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_klarna_result_failure'](); },
|
|
11637
11643
|
]);
|
|
11638
11644
|
return f();
|
|
11639
11645
|
},
|
|
11640
11646
|
'io.flow.v0.unions.payment_method_data_option_logo': function () {
|
|
11641
|
-
var f = faker.
|
|
11647
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.payment_method_data_option_logo_svg'](); }]);
|
|
11642
11648
|
return f();
|
|
11643
11649
|
},
|
|
11644
11650
|
'io.flow.v0.unions.payment_method_summary': function () {
|
|
11645
|
-
var f = faker.
|
|
11651
|
+
var f = faker.helpers.arrayElement([
|
|
11646
11652
|
function () { return factories['io.flow.v0.models.payment_method_summary_card'](); },
|
|
11647
11653
|
function () { return factories['io.flow.v0.models.payment_method_summary_klarna'](); },
|
|
11648
11654
|
function () { return factories['io.flow.v0.models.payment_method_summary_afterpay'](); },
|
|
@@ -11656,7 +11662,7 @@ var factories = {
|
|
|
11656
11662
|
return f();
|
|
11657
11663
|
},
|
|
11658
11664
|
'io.flow.v0.unions.payment_method_tag': function () {
|
|
11659
|
-
var f = faker.
|
|
11665
|
+
var f = faker.helpers.arrayElement([function () { return ({
|
|
11660
11666
|
discriminator: 'organization_payment_method_tag',
|
|
11661
11667
|
value: factories['io.flow.v0.enums.organization_payment_method_tag'](),
|
|
11662
11668
|
}); }, function () { return ({
|
|
@@ -11666,22 +11672,22 @@ var factories = {
|
|
|
11666
11672
|
return f();
|
|
11667
11673
|
},
|
|
11668
11674
|
'io.flow.v0.unions.payment_order_reference': function () {
|
|
11669
|
-
var f = faker.
|
|
11675
|
+
var f = faker.helpers.arrayElement([
|
|
11670
11676
|
function () { return factories['io.flow.v0.models.authorization_order_reference'](); },
|
|
11671
11677
|
function () { return factories['io.flow.v0.models.payment_payment_request_reference'](); },
|
|
11672
11678
|
]);
|
|
11673
11679
|
return f();
|
|
11674
11680
|
},
|
|
11675
11681
|
'io.flow.v0.unions.payment_source': function () {
|
|
11676
|
-
var f = faker.
|
|
11682
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.card_payment_source'](); }]);
|
|
11677
11683
|
return f();
|
|
11678
11684
|
},
|
|
11679
11685
|
'io.flow.v0.unions.payment_source_form': function () {
|
|
11680
|
-
var f = faker.
|
|
11686
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.card_payment_source_form'](); }]);
|
|
11681
11687
|
return f();
|
|
11682
11688
|
},
|
|
11683
11689
|
'io.flow.v0.unions.price_source': function () {
|
|
11684
|
-
var f = faker.
|
|
11690
|
+
var f = faker.helpers.arrayElement([
|
|
11685
11691
|
function () { return factories['io.flow.v0.models.price_source_price_book'](); },
|
|
11686
11692
|
function () { return factories['io.flow.v0.models.price_source_catalog'](); },
|
|
11687
11693
|
function () { return factories['io.flow.v0.models.price_source_provided'](); },
|
|
@@ -11689,35 +11695,35 @@ var factories = {
|
|
|
11689
11695
|
return f();
|
|
11690
11696
|
},
|
|
11691
11697
|
'io.flow.v0.unions.promotion': function () {
|
|
11692
|
-
var f = faker.
|
|
11698
|
+
var f = faker.helpers.arrayElement([
|
|
11693
11699
|
function () { return factories['io.flow.v0.models.free_shipping'](); },
|
|
11694
11700
|
function () { return factories['io.flow.v0.models.discount'](); },
|
|
11695
11701
|
]);
|
|
11696
11702
|
return f();
|
|
11697
11703
|
},
|
|
11698
11704
|
'io.flow.v0.unions.query_builder_form': function () {
|
|
11699
|
-
var f = faker.
|
|
11705
|
+
var f = faker.helpers.arrayElement([
|
|
11700
11706
|
function () { return factories['io.flow.v0.models.query_builder_filter_form'](); },
|
|
11701
11707
|
function () { return factories['io.flow.v0.models.query_builder_query_form'](); },
|
|
11702
11708
|
]);
|
|
11703
11709
|
return f();
|
|
11704
11710
|
},
|
|
11705
11711
|
'io.flow.v0.unions.query_filter': function () {
|
|
11706
|
-
var f = faker.
|
|
11712
|
+
var f = faker.helpers.arrayElement([
|
|
11707
11713
|
function () { return factories['io.flow.v0.models.query_filter_structured'](); },
|
|
11708
11714
|
function () { return factories['io.flow.v0.models.query_filter_unstructured'](); },
|
|
11709
11715
|
]);
|
|
11710
11716
|
return f();
|
|
11711
11717
|
},
|
|
11712
11718
|
'io.flow.v0.unions.query_filter_form': function () {
|
|
11713
|
-
var f = faker.
|
|
11719
|
+
var f = faker.helpers.arrayElement([
|
|
11714
11720
|
function () { return factories['io.flow.v0.models.query_filter_structured_form'](); },
|
|
11715
11721
|
function () { return factories['io.flow.v0.models.query_filter_unstructured_form'](); },
|
|
11716
11722
|
]);
|
|
11717
11723
|
return f();
|
|
11718
11724
|
},
|
|
11719
11725
|
'io.flow.v0.unions.ratecard_estimate': function () {
|
|
11720
|
-
var f = faker.
|
|
11726
|
+
var f = faker.helpers.arrayElement([
|
|
11721
11727
|
function () { return factories['io.flow.v0.models.ratecard_estimate_v1'](); },
|
|
11722
11728
|
function () { return factories['io.flow.v0.models.ratecard_estimate_v2'](); },
|
|
11723
11729
|
function () { return factories['io.flow.v0.models.ratecard_estimate_v3'](); },
|
|
@@ -11726,7 +11732,7 @@ var factories = {
|
|
|
11726
11732
|
return f();
|
|
11727
11733
|
},
|
|
11728
11734
|
'io.flow.v0.unions.ratecard_fee': function () {
|
|
11729
|
-
var f = faker.
|
|
11735
|
+
var f = faker.helpers.arrayElement([
|
|
11730
11736
|
function () { return factories['io.flow.v0.models.ddp_ratecard_fee'](); },
|
|
11731
11737
|
function () { return factories['io.flow.v0.models.fuel_surcharge_ratecard_fee'](); },
|
|
11732
11738
|
function () { return factories['io.flow.v0.models.oversized_shipment_ratecard_fee'](); },
|
|
@@ -11740,7 +11746,7 @@ var factories = {
|
|
|
11740
11746
|
return f();
|
|
11741
11747
|
},
|
|
11742
11748
|
'io.flow.v0.unions.repeat_schedule': function () {
|
|
11743
|
-
var f = faker.
|
|
11749
|
+
var f = faker.helpers.arrayElement([
|
|
11744
11750
|
function () { return factories['io.flow.v0.models.repeat_hourly'](); },
|
|
11745
11751
|
function () { return factories['io.flow.v0.models.repeat_daily'](); },
|
|
11746
11752
|
function () { return factories['io.flow.v0.models.repeat_weekly'](); },
|
|
@@ -11749,7 +11755,7 @@ var factories = {
|
|
|
11749
11755
|
return f();
|
|
11750
11756
|
},
|
|
11751
11757
|
'io.flow.v0.unions.reservation_error': function () {
|
|
11752
|
-
var f = faker.
|
|
11758
|
+
var f = faker.helpers.arrayElement([
|
|
11753
11759
|
function () { return factories['io.flow.v0.models.no_inventory_reservation_error'](); },
|
|
11754
11760
|
function () { return factories['io.flow.v0.models.external_api_timeout_reservation_error'](); },
|
|
11755
11761
|
function () { return factories['io.flow.v0.models.generic_reservation_error'](); },
|
|
@@ -11757,21 +11763,21 @@ var factories = {
|
|
|
11757
11763
|
return f();
|
|
11758
11764
|
},
|
|
11759
11765
|
'io.flow.v0.unions.return_source': function () {
|
|
11760
|
-
var f = faker.
|
|
11766
|
+
var f = faker.helpers.arrayElement([
|
|
11761
11767
|
function () { return factories['io.flow.v0.models.return_source_flow'](); },
|
|
11762
11768
|
function () { return factories['io.flow.v0.models.return_source_external_vendor'](); },
|
|
11763
11769
|
]);
|
|
11764
11770
|
return f();
|
|
11765
11771
|
},
|
|
11766
11772
|
'io.flow.v0.unions.sdk_adyen_v3_authentication_token': function () {
|
|
11767
|
-
var f = faker.
|
|
11773
|
+
var f = faker.helpers.arrayElement([
|
|
11768
11774
|
function () { return factories['io.flow.v0.models.adyen_v3_fingerprint_token'](); },
|
|
11769
11775
|
function () { return factories['io.flow.v0.models.adyen_v3_challenge_token'](); },
|
|
11770
11776
|
]);
|
|
11771
11777
|
return f();
|
|
11772
11778
|
},
|
|
11773
11779
|
'io.flow.v0.unions.service_fee': function () {
|
|
11774
|
-
var f = faker.
|
|
11780
|
+
var f = faker.helpers.arrayElement([
|
|
11775
11781
|
function () { return factories['io.flow.v0.models.fuel_surcharge_service_fee'](); },
|
|
11776
11782
|
function () { return factories['io.flow.v0.models.fuel_surcharge_amount_by_weight_service_fee'](); },
|
|
11777
11783
|
function () { return factories['io.flow.v0.models.remote_area_service_fee'](); },
|
|
@@ -11783,29 +11789,29 @@ var factories = {
|
|
|
11783
11789
|
return f();
|
|
11784
11790
|
},
|
|
11785
11791
|
'io.flow.v0.unions.session': function () {
|
|
11786
|
-
var f = faker.
|
|
11792
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.organization_session'](); }]);
|
|
11787
11793
|
return f();
|
|
11788
11794
|
},
|
|
11789
11795
|
'io.flow.v0.unions.session_authorization': function () {
|
|
11790
|
-
var f = faker.
|
|
11796
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.organization_session_authorization'](); }]);
|
|
11791
11797
|
return f();
|
|
11792
11798
|
},
|
|
11793
11799
|
'io.flow.v0.unions.settlement': function () {
|
|
11794
|
-
var f = faker.
|
|
11800
|
+
var f = faker.helpers.arrayElement([
|
|
11795
11801
|
function () { return factories['io.flow.v0.models.no_payout'](); },
|
|
11796
11802
|
function () { return factories['io.flow.v0.models.payout'](); },
|
|
11797
11803
|
]);
|
|
11798
11804
|
return f();
|
|
11799
11805
|
},
|
|
11800
11806
|
'io.flow.v0.unions.shipping_label_form': function () {
|
|
11801
|
-
var f = faker.
|
|
11807
|
+
var f = faker.helpers.arrayElement([
|
|
11802
11808
|
function () { return factories['io.flow.v0.models.detailed_shipping_label_form'](); },
|
|
11803
11809
|
function () { return factories['io.flow.v0.models.summary_shipping_label_form'](); },
|
|
11804
11810
|
]);
|
|
11805
11811
|
return f();
|
|
11806
11812
|
},
|
|
11807
11813
|
'io.flow.v0.unions.shipping_notification_form': function () {
|
|
11808
|
-
var f = faker.
|
|
11814
|
+
var f = faker.helpers.arrayElement([
|
|
11809
11815
|
function () { return factories['io.flow.v0.models.detailed_shipping_notification_form'](); },
|
|
11810
11816
|
function () { return factories['io.flow.v0.models.single_package_shipping_notification_form'](); },
|
|
11811
11817
|
function () { return factories['io.flow.v0.models.summary_shipping_notification_form'](); },
|
|
@@ -11813,37 +11819,37 @@ var factories = {
|
|
|
11813
11819
|
return f();
|
|
11814
11820
|
},
|
|
11815
11821
|
'io.flow.v0.unions.shopify_cart_add_form': function () {
|
|
11816
|
-
var f = faker.
|
|
11822
|
+
var f = faker.helpers.arrayElement([
|
|
11817
11823
|
function () { return factories['io.flow.v0.models.shopify_cart_add_single_form'](); },
|
|
11818
11824
|
function () { return factories['io.flow.v0.models.shopify_cart_add_multiple_form'](); },
|
|
11819
11825
|
]);
|
|
11820
11826
|
return f();
|
|
11821
11827
|
},
|
|
11822
11828
|
'io.flow.v0.unions.shopify_event_bucket': function () {
|
|
11823
|
-
var f = faker.
|
|
11829
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.shopify_item_event_bucket'](); }]);
|
|
11824
11830
|
return f();
|
|
11825
11831
|
},
|
|
11826
11832
|
'io.flow.v0.unions.tax_duty_quote_levy_value': function () {
|
|
11827
|
-
var f = faker.
|
|
11833
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.tax_duty_quote_simple_levy_value'](); }]);
|
|
11828
11834
|
return f();
|
|
11829
11835
|
},
|
|
11830
11836
|
'io.flow.v0.unions.tax_setting': function () {
|
|
11831
|
-
var f = faker.
|
|
11837
|
+
var f = faker.helpers.arrayElement([
|
|
11832
11838
|
function () { return factories['io.flow.v0.models.avalara_tax_setting'](); },
|
|
11833
11839
|
function () { return factories['io.flow.v0.models.avalara_tax_csv_setting'](); },
|
|
11834
11840
|
]);
|
|
11835
11841
|
return f();
|
|
11836
11842
|
},
|
|
11837
11843
|
'io.flow.v0.unions.threeds_challenge_action': function () {
|
|
11838
|
-
var f = faker.
|
|
11844
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.threeds_two_challenge_request'](); }]);
|
|
11839
11845
|
return f();
|
|
11840
11846
|
},
|
|
11841
11847
|
'io.flow.v0.unions.threeds_identify_action': function () {
|
|
11842
|
-
var f = faker.
|
|
11848
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.threeds_two_method'](); }]);
|
|
11843
11849
|
return f();
|
|
11844
11850
|
},
|
|
11845
11851
|
'io.flow.v0.unions.tier_rule_outcome': function () {
|
|
11846
|
-
var f = faker.
|
|
11852
|
+
var f = faker.helpers.arrayElement([
|
|
11847
11853
|
function () { return factories['io.flow.v0.models.amount_margin'](); },
|
|
11848
11854
|
function () { return factories['io.flow.v0.models.at_cost'](); },
|
|
11849
11855
|
function () { return factories['io.flow.v0.models.flat_rate'](); },
|
|
@@ -11852,7 +11858,7 @@ var factories = {
|
|
|
11852
11858
|
return f();
|
|
11853
11859
|
},
|
|
11854
11860
|
'io.flow.v0.unions.tier_rule_outcome_form': function () {
|
|
11855
|
-
var f = faker.
|
|
11861
|
+
var f = faker.helpers.arrayElement([
|
|
11856
11862
|
function () { return factories['io.flow.v0.models.amount_margin_form'](); },
|
|
11857
11863
|
function () { return factories['io.flow.v0.models.flat_rate_form'](); },
|
|
11858
11864
|
function () { return factories['io.flow.v0.models.at_cost'](); },
|
|
@@ -11861,7 +11867,7 @@ var factories = {
|
|
|
11861
11867
|
return f();
|
|
11862
11868
|
},
|
|
11863
11869
|
'io.flow.v0.unions.token': function () {
|
|
11864
|
-
var f = faker.
|
|
11870
|
+
var f = faker.helpers.arrayElement([
|
|
11865
11871
|
function () { return factories['io.flow.v0.models.channel_token'](); },
|
|
11866
11872
|
function () { return factories['io.flow.v0.models.organization_token'](); },
|
|
11867
11873
|
function () { return factories['io.flow.v0.models.organization_token_v2'](); },
|
|
@@ -11870,7 +11876,7 @@ var factories = {
|
|
|
11870
11876
|
return f();
|
|
11871
11877
|
},
|
|
11872
11878
|
'io.flow.v0.unions.token_reference': function () {
|
|
11873
|
-
var f = faker.
|
|
11879
|
+
var f = faker.helpers.arrayElement([
|
|
11874
11880
|
function () { return factories['io.flow.v0.models.channel_token_reference'](); },
|
|
11875
11881
|
function () { return factories['io.flow.v0.models.organization_token_reference'](); },
|
|
11876
11882
|
function () { return factories['io.flow.v0.models.organization_token_v2_reference'](); },
|
|
@@ -11905,6 +11911,7 @@ export var makeActionUseSdkKlarnaV1 = function () { return factories['io.flow.v0
|
|
|
11905
11911
|
export var makeActionUseSdkPaypal = function () { return factories['io.flow.v0.models.action_use_sdk_paypal'](); };
|
|
11906
11912
|
export var makeActionUseSdkStripeV3 = function () { return factories['io.flow.v0.models.action_use_sdk_stripe_v3'](); };
|
|
11907
11913
|
export var makeActionWait = function () { return factories['io.flow.v0.models.action_wait'](); };
|
|
11914
|
+
export var makeActivationPutForm = function () { return factories['io.flow.v0.models.activation_put_form'](); };
|
|
11908
11915
|
export var makeAddress = function () { return factories['io.flow.v0.models.address'](); };
|
|
11909
11916
|
export var makeAddressConfiguration = function () { return factories['io.flow.v0.models.address_configuration'](); };
|
|
11910
11917
|
export var makeAddressConfigurationFieldPlacement = function () { return factories['io.flow.v0.models.address_configuration_field_placement'](); };
|