@flowio/api-factories 0.0.38 → 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 +533 -417
- package/dist/esm/api.js +484 -383
- package/dist/types/api.d.ts +16 -1
- package/package.json +2 -2
- package/src/api.ts +509 -391
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,16 +2063,18 @@ 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
|
+
'organization_transaction_deleted',
|
|
2072
2073
|
'statement_upserted',
|
|
2073
2074
|
'statement_deleted',
|
|
2074
2075
|
'channel_transaction_upserted',
|
|
2075
2076
|
'channel_transaction_deleted',
|
|
2077
|
+
'channel_transaction_deleted_v2',
|
|
2076
2078
|
'channel_statement_upserted',
|
|
2077
2079
|
'channel_statement_deleted',
|
|
2078
2080
|
'attribute_upserted',
|
|
@@ -2253,15 +2255,15 @@ var factories = {
|
|
|
2253
2255
|
'shopify_localization_setting_deleted',
|
|
2254
2256
|
'tracking_label_event_upserted',
|
|
2255
2257
|
]); },
|
|
2256
|
-
'io.flow.v0.enums.exception_type': function () { return faker.
|
|
2257
|
-
'io.flow.v0.enums.exclusion_rule_state': function () { return faker.
|
|
2258
|
-
'io.flow.v0.enums.experience_clone_status': function () { return faker.
|
|
2259
|
-
'io.flow.v0.enums.experience_country_status': function () { return faker.
|
|
2260
|
-
'io.flow.v0.enums.experience_payment_method_tag': function () { return faker.
|
|
2261
|
-
'io.flow.v0.enums.experience_status': function () { return faker.
|
|
2262
|
-
'io.flow.v0.enums.export_status': function () { return faker.
|
|
2263
|
-
'io.flow.v0.enums.exporter_of_record': function () { return faker.
|
|
2264
|
-
'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([
|
|
2265
2267
|
'duty_guarantee',
|
|
2266
2268
|
'mor',
|
|
2267
2269
|
'fraud',
|
|
@@ -2270,9 +2272,9 @@ var factories = {
|
|
|
2270
2272
|
'rate_lock',
|
|
2271
2273
|
'transfer',
|
|
2272
2274
|
]); },
|
|
2273
|
-
'io.flow.v0.enums.flow_behavior': function () { return faker.
|
|
2274
|
-
'io.flow.v0.enums.flow_entity': function () { return faker.
|
|
2275
|
-
'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([
|
|
2276
2278
|
'organization_admin',
|
|
2277
2279
|
'organization_merchant',
|
|
2278
2280
|
'organization_customer_service',
|
|
@@ -2283,18 +2285,18 @@ var factories = {
|
|
|
2283
2285
|
'channel_admin',
|
|
2284
2286
|
'channel_organization_admin',
|
|
2285
2287
|
]); },
|
|
2286
|
-
'io.flow.v0.enums.fraud_email_rule_decision': function () { return faker.
|
|
2287
|
-
'io.flow.v0.enums.fraud_liability': function () { return faker.
|
|
2288
|
-
'io.flow.v0.enums.fraud_status': function () { return faker.
|
|
2289
|
-
'io.flow.v0.enums.ftp_file_source': function () { return faker.
|
|
2290
|
-
'io.flow.v0.enums.fulfillment_item_quantity_status': function () { return faker.
|
|
2291
|
-
'io.flow.v0.enums.fulfillment_method_type': function () { return faker.
|
|
2292
|
-
'io.flow.v0.enums.fulfillment_method_value': function () { return faker.
|
|
2293
|
-
'io.flow.v0.enums.generic_error_code': function () { return faker.
|
|
2294
|
-
'io.flow.v0.enums.goods_supply': function () { return faker.
|
|
2295
|
-
'io.flow.v0.enums.holiday_calendar': function () { return faker.
|
|
2296
|
-
'io.flow.v0.enums.image_tag': function () { return faker.
|
|
2297
|
-
'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([
|
|
2298
2300
|
'catalog_items',
|
|
2299
2301
|
'catalog_items_external',
|
|
2300
2302
|
'customs_descriptions',
|
|
@@ -2308,8 +2310,8 @@ var factories = {
|
|
|
2308
2310
|
'ratecard_lanes',
|
|
2309
2311
|
'order_service_changes',
|
|
2310
2312
|
]); },
|
|
2311
|
-
'io.flow.v0.enums.included_levy_key': function () { return faker.
|
|
2312
|
-
'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([
|
|
2313
2315
|
'EXW',
|
|
2314
2316
|
'FCA',
|
|
2315
2317
|
'CPT',
|
|
@@ -2326,33 +2328,44 @@ var factories = {
|
|
|
2326
2328
|
'DEQ',
|
|
2327
2329
|
'DDU',
|
|
2328
2330
|
]); },
|
|
2329
|
-
'io.flow.v0.enums.inline_window_viewport_size': function () { return faker.
|
|
2330
|
-
'io.flow.v0.enums.input_specification_type': function () { return faker.
|
|
2331
|
-
'io.flow.v0.enums.inventory_status': function () { return faker.
|
|
2332
|
-
'io.flow.v0.enums.invitation_error_code': function () { return faker.
|
|
2333
|
-
'io.flow.v0.enums.item_availability_status': function () { return faker.
|
|
2334
|
-
'io.flow.v0.enums.item_identifier': function () { return faker.
|
|
2335
|
-
'io.flow.v0.enums.lane_direction': function () { return faker.
|
|
2336
|
-
'io.flow.v0.enums.lane_preselect_preference': function () { return faker.
|
|
2337
|
-
'io.flow.v0.enums.lane_strategy': function () { return faker.
|
|
2338
|
-
'io.flow.v0.enums.levy_component': function () { return faker.
|
|
2339
|
-
'io.flow.v0.enums.levy_inclusion': function () { return faker.
|
|
2340
|
-
'io.flow.v0.enums.levy_strategy': function () { return faker.
|
|
2341
|
-
'io.flow.v0.enums.location_error_code': function () { return faker.
|
|
2342
|
-
'io.flow.v0.enums.logistics_format_preference': function () { return faker.
|
|
2343
|
-
'io.flow.v0.enums.margin_type': function () { return faker.
|
|
2344
|
-
'io.flow.v0.enums.measurement_system': function () { return faker.
|
|
2345
|
-
'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([
|
|
2346
2348
|
'invalid',
|
|
2347
2349
|
'expired',
|
|
2348
2350
|
'empty',
|
|
2349
2351
|
'insufficient_funds',
|
|
2350
2352
|
'unsupported_currency',
|
|
2351
2353
|
]); },
|
|
2352
|
-
'io.flow.v0.enums.merchant_of_record': function () { return faker.
|
|
2353
|
-
'io.flow.v0.enums.
|
|
2354
|
-
|
|
2355
|
-
|
|
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
|
+
'merchant_ubo_is_pep',
|
|
2357
|
+
'merchant_catalog_is_unsupportable',
|
|
2358
|
+
'merchant_failed_kyb_review',
|
|
2359
|
+
]); },
|
|
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
|
+
'street_address_is_blank_3pl',
|
|
2364
|
+
'street_address_is_po_box_3pl',
|
|
2365
|
+
'business_street_address_is_blank',
|
|
2366
|
+
'business_street_address_is_po_box',
|
|
2367
|
+
]); },
|
|
2368
|
+
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.helpers.arrayElement([
|
|
2356
2369
|
'accessories',
|
|
2357
2370
|
'animals_and_pet_supplies',
|
|
2358
2371
|
'apparel',
|
|
@@ -2383,9 +2396,9 @@ var factories = {
|
|
|
2383
2396
|
'vehicles_and_parts',
|
|
2384
2397
|
'other',
|
|
2385
2398
|
]); },
|
|
2386
|
-
'io.flow.v0.enums.optin_response_type': function () { return faker.
|
|
2387
|
-
'io.flow.v0.enums.order_change_source': function () { return faker.
|
|
2388
|
-
'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([
|
|
2389
2402
|
'generic_error',
|
|
2390
2403
|
'order_item_not_available',
|
|
2391
2404
|
'order_identifier_error',
|
|
@@ -2401,8 +2414,8 @@ var factories = {
|
|
|
2401
2414
|
'gift_card_not_accepted',
|
|
2402
2415
|
'total_changed',
|
|
2403
2416
|
]); },
|
|
2404
|
-
'io.flow.v0.enums.order_merchant_of_record': function () { return faker.
|
|
2405
|
-
'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([
|
|
2406
2419
|
'card',
|
|
2407
2420
|
'online',
|
|
2408
2421
|
'credit',
|
|
@@ -2410,7 +2423,7 @@ var factories = {
|
|
|
2410
2423
|
'installment_plan',
|
|
2411
2424
|
'cash_on_delivery',
|
|
2412
2425
|
]); },
|
|
2413
|
-
'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([
|
|
2414
2427
|
'adjustment',
|
|
2415
2428
|
'vat_deminimis',
|
|
2416
2429
|
'duty_deminimis',
|
|
@@ -2441,7 +2454,7 @@ var factories = {
|
|
|
2441
2454
|
'peak_surcharge',
|
|
2442
2455
|
'duties_taxes_paid_surcharge',
|
|
2443
2456
|
]); },
|
|
2444
|
-
'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([
|
|
2445
2458
|
'adjustment',
|
|
2446
2459
|
'subtotal',
|
|
2447
2460
|
'vat',
|
|
@@ -2451,8 +2464,8 @@ var factories = {
|
|
|
2451
2464
|
'discount',
|
|
2452
2465
|
'surcharges',
|
|
2453
2466
|
]); },
|
|
2454
|
-
'io.flow.v0.enums.order_quote_address_type': function () { return faker.
|
|
2455
|
-
'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([
|
|
2456
2469
|
'contact_email_invalid',
|
|
2457
2470
|
'contact_email_required',
|
|
2458
2471
|
'contact_phone_invalid',
|
|
@@ -2476,21 +2489,21 @@ var factories = {
|
|
|
2476
2489
|
'session_not_found',
|
|
2477
2490
|
'session_organization_mismatch',
|
|
2478
2491
|
]); },
|
|
2479
|
-
'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([
|
|
2480
2493
|
'line_item_number_invalid',
|
|
2481
2494
|
'line_item_number_not_available',
|
|
2482
2495
|
'line_quantity_invalid',
|
|
2483
2496
|
'line_value_threshold_exceeded',
|
|
2484
2497
|
]); },
|
|
2485
|
-
'io.flow.v0.enums.order_refund_summary_includes': function () { return faker.
|
|
2486
|
-
'io.flow.v0.enums.order_refund_summary_partial_charged': function () { return faker.
|
|
2487
|
-
'io.flow.v0.enums.order_status': function () { return faker.
|
|
2488
|
-
'io.flow.v0.enums.order_storage': function () { return faker.
|
|
2489
|
-
'io.flow.v0.enums.order_type': function () { return faker.
|
|
2490
|
-
'io.flow.v0.enums.organization_payment_method_tag': function () { return faker.
|
|
2491
|
-
'io.flow.v0.enums.organization_status': function () { return faker.
|
|
2492
|
-
'io.flow.v0.enums.organization_type': function () { return faker.
|
|
2493
|
-
'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([
|
|
2494
2507
|
'redirect',
|
|
2495
2508
|
'redirect_get',
|
|
2496
2509
|
'redirect_post',
|
|
@@ -2505,7 +2518,7 @@ var factories = {
|
|
|
2505
2518
|
'execute_script',
|
|
2506
2519
|
'display_inline_window',
|
|
2507
2520
|
]); },
|
|
2508
|
-
'io.flow.v0.enums.payment_error_code': function () { return faker.
|
|
2521
|
+
'io.flow.v0.enums.payment_error_code': function () { return faker.helpers.arrayElement([
|
|
2509
2522
|
'duplicate',
|
|
2510
2523
|
'invalid_amount',
|
|
2511
2524
|
'invalid_currency',
|
|
@@ -2515,7 +2528,7 @@ var factories = {
|
|
|
2515
2528
|
'invalid_destination',
|
|
2516
2529
|
'unknown',
|
|
2517
2530
|
]); },
|
|
2518
|
-
'io.flow.v0.enums.payment_failure_code': function () { return faker.
|
|
2531
|
+
'io.flow.v0.enums.payment_failure_code': function () { return faker.helpers.arrayElement([
|
|
2519
2532
|
'action_expired',
|
|
2520
2533
|
'action_cancelled',
|
|
2521
2534
|
'action_failed',
|
|
@@ -2525,12 +2538,12 @@ var factories = {
|
|
|
2525
2538
|
'error',
|
|
2526
2539
|
'payment_checks_declined',
|
|
2527
2540
|
]); },
|
|
2528
|
-
'io.flow.v0.enums.payment_method_capability': function () { return faker.
|
|
2529
|
-
'io.flow.v0.enums.payment_method_data_option_type': function () { return faker.
|
|
2530
|
-
'io.flow.v0.enums.payment_method_rule_content_key': function () { return faker.
|
|
2531
|
-
'io.flow.v0.enums.payment_method_type': function () { return faker.
|
|
2532
|
-
'io.flow.v0.enums.payment_source_confirmation_action_type': function () { return faker.
|
|
2533
|
-
'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([
|
|
2534
2547
|
'requires_payment_method',
|
|
2535
2548
|
'requires_action',
|
|
2536
2549
|
'processing',
|
|
@@ -2543,7 +2556,7 @@ var factories = {
|
|
|
2543
2556
|
'in_dispute',
|
|
2544
2557
|
'charged_back',
|
|
2545
2558
|
]); },
|
|
2546
|
-
'io.flow.v0.enums.payment_type': function () { return faker.
|
|
2559
|
+
'io.flow.v0.enums.payment_type': function () { return faker.helpers.arrayElement([
|
|
2547
2560
|
'card',
|
|
2548
2561
|
'klarna',
|
|
2549
2562
|
'googlepay',
|
|
@@ -2554,13 +2567,13 @@ var factories = {
|
|
|
2554
2567
|
'afterpay',
|
|
2555
2568
|
'bancontact',
|
|
2556
2569
|
]); },
|
|
2557
|
-
'io.flow.v0.enums.payout_status_code': function () { return faker.
|
|
2558
|
-
'io.flow.v0.enums.permitted_http_method': function () { return faker.
|
|
2559
|
-
'io.flow.v0.enums.physical_delivery_special_serivce': function () { return faker.
|
|
2560
|
-
'io.flow.v0.enums.postal_type': function () { return faker.
|
|
2561
|
-
'io.flow.v0.enums.price_accuracy': function () { return faker.
|
|
2562
|
-
'io.flow.v0.enums.price_book_status': function () { return faker.
|
|
2563
|
-
'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([
|
|
2564
2577
|
'base_price',
|
|
2565
2578
|
'discount',
|
|
2566
2579
|
'currency_margin',
|
|
@@ -2584,11 +2597,11 @@ var factories = {
|
|
|
2584
2597
|
'vat_duty_percent_sales_margin',
|
|
2585
2598
|
'duty_percent_sales_margin',
|
|
2586
2599
|
]); },
|
|
2587
|
-
'io.flow.v0.enums.price_detail_key': function () { return faker.
|
|
2588
|
-
'io.flow.v0.enums.price_facet_boundary': function () { return faker.
|
|
2589
|
-
'io.flow.v0.enums.pricing_levy_setting': function () { return faker.
|
|
2590
|
-
'io.flow.v0.enums.promotion_trigger_type': function () { return faker.
|
|
2591
|
-
'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([
|
|
2592
2605
|
'area',
|
|
2593
2606
|
'city',
|
|
2594
2607
|
'county',
|
|
@@ -2609,15 +2622,15 @@ var factories = {
|
|
|
2609
2622
|
'territory',
|
|
2610
2623
|
'other',
|
|
2611
2624
|
]); },
|
|
2612
|
-
'io.flow.v0.enums.quote_error_code': function () { return faker.
|
|
2613
|
-
'io.flow.v0.enums.ratecard_owner': function () { return faker.
|
|
2614
|
-
'io.flow.v0.enums.refund_decline_code': function () { return faker.
|
|
2615
|
-
'io.flow.v0.enums.refund_status': function () { return faker.
|
|
2616
|
-
'io.flow.v0.enums.region_type': function () { return faker.
|
|
2617
|
-
'io.flow.v0.enums.return_item_status': function () { return faker.
|
|
2618
|
-
'io.flow.v0.enums.return_policy_state': function () { return faker.
|
|
2619
|
-
'io.flow.v0.enums.return_status': function () { return faker.
|
|
2620
|
-
'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([
|
|
2621
2634
|
'awaiting_customs_clearance',
|
|
2622
2635
|
'cancel_requested',
|
|
2623
2636
|
'canceled',
|
|
@@ -2637,7 +2650,7 @@ var factories = {
|
|
|
2637
2650
|
'received_by_the_carrier',
|
|
2638
2651
|
'return_registered_online',
|
|
2639
2652
|
]); },
|
|
2640
|
-
'io.flow.v0.enums.reversal_error_code': function () { return faker.
|
|
2653
|
+
'io.flow.v0.enums.reversal_error_code': function () { return faker.helpers.arrayElement([
|
|
2641
2654
|
'amount_exceeds_balance',
|
|
2642
2655
|
'authorization_declined',
|
|
2643
2656
|
'authorization_expired',
|
|
@@ -2649,26 +2662,26 @@ var factories = {
|
|
|
2649
2662
|
'partial_reversal_not_supported',
|
|
2650
2663
|
'unknown',
|
|
2651
2664
|
]); },
|
|
2652
|
-
'io.flow.v0.enums.reversal_status': function () { return faker.
|
|
2653
|
-
'io.flow.v0.enums.role': function () { return faker.
|
|
2654
|
-
'io.flow.v0.enums.rounding_method': function () { return faker.
|
|
2655
|
-
'io.flow.v0.enums.rounding_type': function () { return faker.
|
|
2656
|
-
'io.flow.v0.enums.schedule_exception_status': function () { return faker.
|
|
2657
|
-
'io.flow.v0.enums.shipment_integration_type': function () { return faker.
|
|
2658
|
-
'io.flow.v0.enums.shipment_recipient': function () { return faker.
|
|
2659
|
-
'io.flow.v0.enums.shipping_configuration_type': function () { return faker.
|
|
2660
|
-
'io.flow.v0.enums.shopify_grant': function () { return faker.
|
|
2661
|
-
'io.flow.v0.enums.shopify_localization_method': function () { return faker.
|
|
2662
|
-
'io.flow.v0.enums.shopify_sync_check': function () { return faker.
|
|
2663
|
-
'io.flow.v0.enums.sort_direction': function () { return faker.
|
|
2664
|
-
'io.flow.v0.enums.strategy': function () { return faker.
|
|
2665
|
-
'io.flow.v0.enums.subcatalog_item_status': function () { return faker.
|
|
2666
|
-
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.
|
|
2667
|
-
'io.flow.v0.enums.sync_record_failure_reason': function () { return faker.
|
|
2668
|
-
'io.flow.v0.enums.sync_stream_type': function () { return faker.
|
|
2669
|
-
'io.flow.v0.enums.sync_unit_of_time': function () { return faker.
|
|
2670
|
-
'io.flow.v0.enums.tax_applicability': function () { return faker.
|
|
2671
|
-
'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([
|
|
2672
2685
|
'generic_error',
|
|
2673
2686
|
'destination_country_not_defined',
|
|
2674
2687
|
'destination_address_iso3166_unrecognized',
|
|
@@ -2691,18 +2704,18 @@ var factories = {
|
|
|
2691
2704
|
'merchant_of_record_invalid',
|
|
2692
2705
|
'wrong_unit_specified',
|
|
2693
2706
|
]); },
|
|
2694
|
-
'io.flow.v0.enums.tax_report_type': function () { return faker.
|
|
2695
|
-
'io.flow.v0.enums.tax_verification_result': function () { return faker.
|
|
2696
|
-
'io.flow.v0.enums.taxability_type': function () { return faker.
|
|
2697
|
-
'io.flow.v0.enums.taxability_value': function () { return faker.
|
|
2698
|
-
'io.flow.v0.enums.three_d_secure_code': function () { return faker.
|
|
2699
|
-
'io.flow.v0.enums.threeds_two_challenge_viewport': function () { return faker.
|
|
2700
|
-
'io.flow.v0.enums.tier_availability': function () { return faker.
|
|
2701
|
-
'io.flow.v0.enums.tier_estimate_type': function () { return faker.
|
|
2702
|
-
'io.flow.v0.enums.tier_strategy': function () { return faker.
|
|
2703
|
-
'io.flow.v0.enums.token_type': function () { return faker.
|
|
2704
|
-
'io.flow.v0.enums.tracking_number_type': function () { return faker.
|
|
2705
|
-
'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([
|
|
2706
2719
|
'label_created',
|
|
2707
2720
|
'pending',
|
|
2708
2721
|
'info_received',
|
|
@@ -2715,9 +2728,9 @@ var factories = {
|
|
|
2715
2728
|
'returned',
|
|
2716
2729
|
'expired',
|
|
2717
2730
|
]); },
|
|
2718
|
-
'io.flow.v0.enums.trade_agreement_name': function () { return faker.
|
|
2719
|
-
'io.flow.v0.enums.trade_agreement_status': function () { return faker.
|
|
2720
|
-
'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([
|
|
2721
2734
|
'capture',
|
|
2722
2735
|
'refund',
|
|
2723
2736
|
'dispute',
|
|
@@ -2726,14 +2739,17 @@ var factories = {
|
|
|
2726
2739
|
'shipping_label_service',
|
|
2727
2740
|
'shipping_label_revenue_share',
|
|
2728
2741
|
'platform_fee',
|
|
2742
|
+
'tax',
|
|
2743
|
+
'duties',
|
|
2729
2744
|
'other_adjustment',
|
|
2730
2745
|
'tax_adjustment',
|
|
2731
2746
|
'channel',
|
|
2747
|
+
'channel_billed',
|
|
2732
2748
|
'order_service',
|
|
2733
2749
|
'virtual_card_capture',
|
|
2734
2750
|
'virtual_card_refund',
|
|
2735
2751
|
]); },
|
|
2736
|
-
'io.flow.v0.enums.unit_of_measurement': function () { return faker.
|
|
2752
|
+
'io.flow.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
2737
2753
|
'millimeter',
|
|
2738
2754
|
'centimeter',
|
|
2739
2755
|
'inch',
|
|
@@ -2746,16 +2762,16 @@ var factories = {
|
|
|
2746
2762
|
'ounce',
|
|
2747
2763
|
'pound',
|
|
2748
2764
|
]); },
|
|
2749
|
-
'io.flow.v0.enums.unit_of_time': function () { return faker.
|
|
2750
|
-
'io.flow.v0.enums.update_policy': function () { return faker.
|
|
2751
|
-
'io.flow.v0.enums.update_type': function () { return faker.
|
|
2752
|
-
'io.flow.v0.enums.user_status': function () { return faker.
|
|
2753
|
-
'io.flow.v0.enums.value_added_service': function () { return faker.
|
|
2754
|
-
'io.flow.v0.enums.visibility': function () { return faker.
|
|
2755
|
-
'io.flow.v0.enums.webhook_status': function () { return faker.
|
|
2756
|
-
'io.flow.v0.enums.withholding_deduction_type': function () { return faker.
|
|
2757
|
-
'io.flow.v0.enums.zero_amount_indicator': function () { return faker.
|
|
2758
|
-
'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([
|
|
2759
2775
|
'zero_basis',
|
|
2760
2776
|
'zero_rate_on_goods',
|
|
2761
2777
|
'value_rounds_to_zero',
|
|
@@ -2921,6 +2937,9 @@ var factories = {
|
|
|
2921
2937
|
type: 'wait',
|
|
2922
2938
|
expires_at: factories.date_time_iso_8601(),
|
|
2923
2939
|
}); },
|
|
2940
|
+
'io.flow.v0.models.activation_put_form': function () { return ({
|
|
2941
|
+
placeholder: factories.boolean(),
|
|
2942
|
+
}); },
|
|
2924
2943
|
'io.flow.v0.models.address': function () { return ({
|
|
2925
2944
|
text: factories.string(),
|
|
2926
2945
|
streets: arrayOf(function () { return factories.string(); }),
|
|
@@ -3123,6 +3142,10 @@ var factories = {
|
|
|
3123
3142
|
validation_url: factories.string(),
|
|
3124
3143
|
display_name: factories.string(),
|
|
3125
3144
|
}); },
|
|
3145
|
+
'io.flow.v0.models.application_received': function () { return ({
|
|
3146
|
+
discriminator: 'application_received',
|
|
3147
|
+
placeholder: factories.boolean(),
|
|
3148
|
+
}); },
|
|
3126
3149
|
'io.flow.v0.models.at_cost': function () { return ({
|
|
3127
3150
|
discriminator: 'at_cost',
|
|
3128
3151
|
ignore: factories.string(),
|
|
@@ -4054,6 +4077,13 @@ var factories = {
|
|
|
4054
4077
|
channel_id: factories.string(),
|
|
4055
4078
|
channel_transaction: factories['io.flow.v0.models.channel_transaction'](),
|
|
4056
4079
|
}); },
|
|
4080
|
+
'io.flow.v0.models.channel_transaction_deleted_v2': function () { return ({
|
|
4081
|
+
discriminator: 'channel_transaction_deleted_v2',
|
|
4082
|
+
event_id: factories.string(),
|
|
4083
|
+
timestamp: factories.date_time_iso_8601(),
|
|
4084
|
+
channel_id: factories.string(),
|
|
4085
|
+
id: factories.string(),
|
|
4086
|
+
}); },
|
|
4057
4087
|
'io.flow.v0.models.channel_transaction_upserted': function () { return ({
|
|
4058
4088
|
discriminator: 'channel_transaction_upserted',
|
|
4059
4089
|
event_id: factories.string(),
|
|
@@ -5878,6 +5908,10 @@ var factories = {
|
|
|
5878
5908
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
5879
5909
|
'import': factories['io.flow.v0.models.import'](),
|
|
5880
5910
|
}); },
|
|
5911
|
+
'io.flow.v0.models.in_compliance_review': function () { return ({
|
|
5912
|
+
discriminator: 'in_compliance_review',
|
|
5913
|
+
placeholder: factories.boolean(),
|
|
5914
|
+
}); },
|
|
5881
5915
|
'io.flow.v0.models.inbound_carton_fee': function () { return ({
|
|
5882
5916
|
discriminator: 'inbound_carton_fee',
|
|
5883
5917
|
amount: factories['io.flow.v0.models.money'](),
|
|
@@ -6660,6 +6694,10 @@ var factories = {
|
|
|
6660
6694
|
type: factories['io.flow.v0.enums.change_type'](),
|
|
6661
6695
|
membership: factories['io.flow.v0.models.membership'](),
|
|
6662
6696
|
}); },
|
|
6697
|
+
'io.flow.v0.models.merchant_activated': function () { return ({
|
|
6698
|
+
discriminator: 'merchant_activated',
|
|
6699
|
+
placeholder: factories.boolean(),
|
|
6700
|
+
}); },
|
|
6663
6701
|
'io.flow.v0.models.merchant_application_deleted': function () { return ({
|
|
6664
6702
|
discriminator: 'merchant_application_deleted',
|
|
6665
6703
|
event_id: factories.string(),
|
|
@@ -6753,6 +6791,11 @@ var factories = {
|
|
|
6753
6791
|
postal: factories.string(),
|
|
6754
6792
|
country: factories.string(),
|
|
6755
6793
|
}); },
|
|
6794
|
+
'io.flow.v0.models.merchant_rejected': function () { return ({
|
|
6795
|
+
discriminator: 'merchant_rejected',
|
|
6796
|
+
reason: factories['io.flow.v0.enums.merchant_rejected_reason'](),
|
|
6797
|
+
description: factories.string(),
|
|
6798
|
+
}); },
|
|
6756
6799
|
'io.flow.v0.models.money': function () { return ({
|
|
6757
6800
|
amount: factories.double(),
|
|
6758
6801
|
currency: factories.string(),
|
|
@@ -6833,6 +6876,10 @@ var factories = {
|
|
|
6833
6876
|
id: factories.string(),
|
|
6834
6877
|
status: factories['io.flow.v0.enums.organization_status'](),
|
|
6835
6878
|
}); },
|
|
6879
|
+
'io.flow.v0.models.onboarding_state_transition': function () { return ({
|
|
6880
|
+
state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
6881
|
+
started_at: factories.date_time_iso_8601(),
|
|
6882
|
+
}); },
|
|
6836
6883
|
'io.flow.v0.models.online_authorization': function () { return ({
|
|
6837
6884
|
discriminator: 'online_authorization',
|
|
6838
6885
|
id: factories.string(),
|
|
@@ -7625,6 +7672,11 @@ var factories = {
|
|
|
7625
7672
|
status: factories['io.flow.v0.enums.organization_status'](),
|
|
7626
7673
|
type: factories['io.flow.v0.enums.organization_type'](),
|
|
7627
7674
|
}); },
|
|
7675
|
+
'io.flow.v0.models.organization_onboarding_state': function () { return ({
|
|
7676
|
+
organization: factories['io.flow.v0.models.organization_reference'](),
|
|
7677
|
+
transitions: arrayOf(function () { return factories['io.flow.v0.models.onboarding_state_transition'](); }),
|
|
7678
|
+
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
7679
|
+
}); },
|
|
7628
7680
|
'io.flow.v0.models.organization_put_form': function () { return ({
|
|
7629
7681
|
name: factories.string(),
|
|
7630
7682
|
environment: factories['io.flow.v0.enums.environment'](),
|
|
@@ -7712,6 +7764,20 @@ var factories = {
|
|
|
7712
7764
|
id: factories.string(),
|
|
7713
7765
|
organization: factories['io.flow.v0.models.organization_reference'](),
|
|
7714
7766
|
}); },
|
|
7767
|
+
'io.flow.v0.models.organization_transaction_deleted': function () { return ({
|
|
7768
|
+
discriminator: 'organization_transaction_deleted',
|
|
7769
|
+
event_id: factories.string(),
|
|
7770
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7771
|
+
organization: factories.string(),
|
|
7772
|
+
id: factories.string(),
|
|
7773
|
+
}); },
|
|
7774
|
+
'io.flow.v0.models.organization_transaction_upserted': function () { return ({
|
|
7775
|
+
discriminator: 'organization_transaction_upserted',
|
|
7776
|
+
event_id: factories.string(),
|
|
7777
|
+
timestamp: factories.date_time_iso_8601(),
|
|
7778
|
+
organization: factories.string(),
|
|
7779
|
+
transaction: factories['io.flow.v0.models.transaction'](),
|
|
7780
|
+
}); },
|
|
7715
7781
|
'io.flow.v0.models.organization_upserted': function () { return ({
|
|
7716
7782
|
discriminator: 'organization_upserted',
|
|
7717
7783
|
event_id: factories.string(),
|
|
@@ -9491,6 +9557,18 @@ var factories = {
|
|
|
9491
9557
|
'io.flow.v0.models.session_visitor': function () { return ({
|
|
9492
9558
|
id: factories.string(),
|
|
9493
9559
|
}); },
|
|
9560
|
+
'io.flow.v0.models.setup_blocked': function () { return ({
|
|
9561
|
+
discriminator: 'setup_blocked',
|
|
9562
|
+
reasons: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_blocked_reason'](); }),
|
|
9563
|
+
}); },
|
|
9564
|
+
'io.flow.v0.models.setup_completed': function () { return ({
|
|
9565
|
+
discriminator: 'setup_completed',
|
|
9566
|
+
placeholder: factories.boolean(),
|
|
9567
|
+
}); },
|
|
9568
|
+
'io.flow.v0.models.setup_in_progress': function () { return ({
|
|
9569
|
+
discriminator: 'setup_in_progress',
|
|
9570
|
+
placeholder: factories.boolean(),
|
|
9571
|
+
}); },
|
|
9494
9572
|
'io.flow.v0.models.shipment_window': function () { return ({
|
|
9495
9573
|
from: factories.long(),
|
|
9496
9574
|
to: factories.long(),
|
|
@@ -9624,6 +9702,7 @@ var factories = {
|
|
|
9624
9702
|
'io.flow.v0.models.shipping_label_document': function () { return ({
|
|
9625
9703
|
zpl: factories.string(),
|
|
9626
9704
|
pdf: factories.string(),
|
|
9705
|
+
pdf_data: factories.string(),
|
|
9627
9706
|
png: factories.string(),
|
|
9628
9707
|
html: factories.string(),
|
|
9629
9708
|
required: factories.boolean(),
|
|
@@ -10684,13 +10763,6 @@ var factories = {
|
|
|
10684
10763
|
identifiers: objectOf(function () { return factories.string(); }),
|
|
10685
10764
|
created_at: factories.date_time_iso_8601(),
|
|
10686
10765
|
}); },
|
|
10687
|
-
'io.flow.v0.models.transaction_deleted': function () { return ({
|
|
10688
|
-
discriminator: 'transaction_deleted',
|
|
10689
|
-
event_id: factories.string(),
|
|
10690
|
-
timestamp: factories.date_time_iso_8601(),
|
|
10691
|
-
organization: factories.string(),
|
|
10692
|
-
transaction: factories['io.flow.v0.models.transaction'](),
|
|
10693
|
-
}); },
|
|
10694
10766
|
'io.flow.v0.models.transaction_upserted': function () { return ({
|
|
10695
10767
|
discriminator: 'transaction_upserted',
|
|
10696
10768
|
event_id: factories.string(),
|
|
@@ -10901,13 +10973,13 @@ var factories = {
|
|
|
10901
10973
|
country: factories.string(),
|
|
10902
10974
|
}); },
|
|
10903
10975
|
'io.flow.v0.unions.abandoned_order_promotion_details': function () {
|
|
10904
|
-
var f = faker.
|
|
10976
|
+
var f = faker.helpers.arrayElement([
|
|
10905
10977
|
function () { return factories['io.flow.v0.models.abandoned_order_promotion_discount_details'](); },
|
|
10906
10978
|
]);
|
|
10907
10979
|
return f();
|
|
10908
10980
|
},
|
|
10909
10981
|
'io.flow.v0.unions.action': function () {
|
|
10910
|
-
var f = faker.
|
|
10982
|
+
var f = faker.helpers.arrayElement([
|
|
10911
10983
|
function () { return factories['io.flow.v0.models.action_redirect'](); },
|
|
10912
10984
|
function () { return factories['io.flow.v0.models.action_use_sdk_klarna_v1'](); },
|
|
10913
10985
|
function () { return factories['io.flow.v0.models.action_use_sdk_applepay_js_create_session'](); },
|
|
@@ -10925,35 +10997,35 @@ var factories = {
|
|
|
10925
10997
|
return f();
|
|
10926
10998
|
},
|
|
10927
10999
|
'io.flow.v0.unions.adyen_native_data': function () {
|
|
10928
|
-
var f = faker.
|
|
11000
|
+
var f = faker.helpers.arrayElement([
|
|
10929
11001
|
function () { return factories['io.flow.v0.models.adyen_identify_shopper_data'](); },
|
|
10930
11002
|
function () { return factories['io.flow.v0.models.adyen_challenge_shopper_data'](); },
|
|
10931
11003
|
]);
|
|
10932
11004
|
return f();
|
|
10933
11005
|
},
|
|
10934
11006
|
'io.flow.v0.unions.allocation_component': function () {
|
|
10935
|
-
var f = faker.
|
|
11007
|
+
var f = faker.helpers.arrayElement([
|
|
10936
11008
|
function () { return factories['io.flow.v0.models.allocation_detail_component'](); },
|
|
10937
11009
|
function () { return factories['io.flow.v0.models.allocation_levy_component'](); },
|
|
10938
11010
|
]);
|
|
10939
11011
|
return f();
|
|
10940
11012
|
},
|
|
10941
11013
|
'io.flow.v0.unions.allocation_detail': function () {
|
|
10942
|
-
var f = faker.
|
|
11014
|
+
var f = faker.helpers.arrayElement([
|
|
10943
11015
|
function () { return factories['io.flow.v0.models.allocation_line_detail'](); },
|
|
10944
11016
|
function () { return factories['io.flow.v0.models.allocation_order_detail'](); },
|
|
10945
11017
|
]);
|
|
10946
11018
|
return f();
|
|
10947
11019
|
},
|
|
10948
11020
|
'io.flow.v0.unions.authorization': function () {
|
|
10949
|
-
var f = faker.
|
|
11021
|
+
var f = faker.helpers.arrayElement([
|
|
10950
11022
|
function () { return factories['io.flow.v0.models.card_authorization'](); },
|
|
10951
11023
|
function () { return factories['io.flow.v0.models.online_authorization'](); },
|
|
10952
11024
|
]);
|
|
10953
11025
|
return f();
|
|
10954
11026
|
},
|
|
10955
11027
|
'io.flow.v0.unions.authorization_form': function () {
|
|
10956
|
-
var f = faker.
|
|
11028
|
+
var f = faker.helpers.arrayElement([
|
|
10957
11029
|
function () { return factories['io.flow.v0.models.authorization_copy_form'](); },
|
|
10958
11030
|
function () { return factories['io.flow.v0.models.direct_authorization_form'](); },
|
|
10959
11031
|
function () { return factories['io.flow.v0.models.merchant_of_record_authorization_form'](); },
|
|
@@ -10967,14 +11039,14 @@ var factories = {
|
|
|
10967
11039
|
return f();
|
|
10968
11040
|
},
|
|
10969
11041
|
'io.flow.v0.unions.authorization_payload_parameters': function () {
|
|
10970
|
-
var f = faker.
|
|
11042
|
+
var f = faker.helpers.arrayElement([
|
|
10971
11043
|
function () { return factories['io.flow.v0.models.google_pay_authorization_payload'](); },
|
|
10972
11044
|
function () { return factories['io.flow.v0.models.apple_pay_merchant_validation_payload'](); },
|
|
10973
11045
|
]);
|
|
10974
11046
|
return f();
|
|
10975
11047
|
},
|
|
10976
11048
|
'io.flow.v0.unions.authorization_result_action': function () {
|
|
10977
|
-
var f = faker.
|
|
11049
|
+
var f = faker.helpers.arrayElement([
|
|
10978
11050
|
function () { return factories['io.flow.v0.models.authorization_result_action_get'](); },
|
|
10979
11051
|
function () { return factories['io.flow.v0.models.authorization_result_action_post'](); },
|
|
10980
11052
|
function () { return factories['io.flow.v0.models.authorization_result_action_wait'](); },
|
|
@@ -10983,7 +11055,7 @@ var factories = {
|
|
|
10983
11055
|
return f();
|
|
10984
11056
|
},
|
|
10985
11057
|
'io.flow.v0.unions.authorization_result_action_details': function () {
|
|
10986
|
-
var f = faker.
|
|
11058
|
+
var f = faker.helpers.arrayElement([
|
|
10987
11059
|
function () { return factories['io.flow.v0.models.adyen_native_action_details'](); },
|
|
10988
11060
|
function () { return factories['io.flow.v0.models.stripe_authorization_result_action_details'](); },
|
|
10989
11061
|
function () { return factories['io.flow.v0.models.threeds_identify_action_details'](); },
|
|
@@ -10994,47 +11066,47 @@ var factories = {
|
|
|
10994
11066
|
return f();
|
|
10995
11067
|
},
|
|
10996
11068
|
'io.flow.v0.unions.available_filter': function () {
|
|
10997
|
-
var f = faker.
|
|
11069
|
+
var f = faker.helpers.arrayElement([
|
|
10998
11070
|
function () { return factories['io.flow.v0.models.available_filter_structured'](); },
|
|
10999
11071
|
function () { return factories['io.flow.v0.models.available_filter_unstructured'](); },
|
|
11000
11072
|
]);
|
|
11001
11073
|
return f();
|
|
11002
11074
|
},
|
|
11003
11075
|
'io.flow.v0.unions.bank_account_info': function () {
|
|
11004
|
-
var f = faker.
|
|
11076
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.bank_account_info_usa'](); }]);
|
|
11005
11077
|
return f();
|
|
11006
11078
|
},
|
|
11007
11079
|
'io.flow.v0.unions.browser_action_configuration': function () {
|
|
11008
|
-
var f = faker.
|
|
11080
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.card_browser_action_configuration'](); }]);
|
|
11009
11081
|
return f();
|
|
11010
11082
|
},
|
|
11011
11083
|
'io.flow.v0.unions.card_authorization_action_result': function () {
|
|
11012
|
-
var f = faker.
|
|
11084
|
+
var f = faker.helpers.arrayElement([
|
|
11013
11085
|
function () { return factories['io.flow.v0.models.authorization_action_result_adyen_v3'](); },
|
|
11014
11086
|
function () { return factories['io.flow.v0.models.authorization_action_result_adyen_v4'](); },
|
|
11015
11087
|
]);
|
|
11016
11088
|
return f();
|
|
11017
11089
|
},
|
|
11018
11090
|
'io.flow.v0.unions.card_number': function () {
|
|
11019
|
-
var f = faker.
|
|
11091
|
+
var f = faker.helpers.arrayElement([
|
|
11020
11092
|
function () { return factories['io.flow.v0.models.payment_method_card_number_cleartext'](); },
|
|
11021
11093
|
function () { return factories['io.flow.v0.models.payment_method_card_number_cipher'](); },
|
|
11022
11094
|
]);
|
|
11023
11095
|
return f();
|
|
11024
11096
|
},
|
|
11025
11097
|
'io.flow.v0.unions.checkout_token_form': function () {
|
|
11026
|
-
var f = faker.
|
|
11098
|
+
var f = faker.helpers.arrayElement([
|
|
11027
11099
|
function () { return factories['io.flow.v0.models.checkout_token_order_form'](); },
|
|
11028
11100
|
function () { return factories['io.flow.v0.models.checkout_token_reference_form'](); },
|
|
11029
11101
|
]);
|
|
11030
11102
|
return f();
|
|
11031
11103
|
},
|
|
11032
11104
|
'io.flow.v0.unions.confirmation_details': function () {
|
|
11033
|
-
var f = faker.
|
|
11105
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.direct_debit'](); }]);
|
|
11034
11106
|
return f();
|
|
11035
11107
|
},
|
|
11036
11108
|
'io.flow.v0.unions.consumer_invoice_line': function () {
|
|
11037
|
-
var f = faker.
|
|
11109
|
+
var f = faker.helpers.arrayElement([
|
|
11038
11110
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_item'](); },
|
|
11039
11111
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_discount'](); },
|
|
11040
11112
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_shipping'](); },
|
|
@@ -11042,7 +11114,7 @@ var factories = {
|
|
|
11042
11114
|
return f();
|
|
11043
11115
|
},
|
|
11044
11116
|
'io.flow.v0.unions.consumer_invoice_line_form': function () {
|
|
11045
|
-
var f = faker.
|
|
11117
|
+
var f = faker.helpers.arrayElement([
|
|
11046
11118
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_item_form'](); },
|
|
11047
11119
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_discount_form'](); },
|
|
11048
11120
|
function () { return factories['io.flow.v0.models.consumer_invoice_line_shipping_form'](); },
|
|
@@ -11050,60 +11122,62 @@ var factories = {
|
|
|
11050
11122
|
return f();
|
|
11051
11123
|
},
|
|
11052
11124
|
'io.flow.v0.unions.delivery': function () {
|
|
11053
|
-
var f = faker.
|
|
11125
|
+
var f = faker.helpers.arrayElement([
|
|
11054
11126
|
function () { return factories['io.flow.v0.models.digital_delivery'](); },
|
|
11055
11127
|
function () { return factories['io.flow.v0.models.physical_delivery'](); },
|
|
11056
11128
|
]);
|
|
11057
11129
|
return f();
|
|
11058
11130
|
},
|
|
11059
11131
|
'io.flow.v0.unions.deminimis': function () {
|
|
11060
|
-
var f = faker.
|
|
11132
|
+
var f = faker.helpers.arrayElement([
|
|
11061
11133
|
function () { return factories['io.flow.v0.models.deminimis_simple'](); },
|
|
11062
11134
|
function () { return factories['io.flow.v0.models.deminimis_per_item'](); },
|
|
11063
11135
|
]);
|
|
11064
11136
|
return f();
|
|
11065
11137
|
},
|
|
11066
11138
|
'io.flow.v0.unions.device_details': function () {
|
|
11067
|
-
var f = faker.
|
|
11139
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.device_details_browser'](); }]);
|
|
11068
11140
|
return f();
|
|
11069
11141
|
},
|
|
11070
11142
|
'io.flow.v0.unions.device_fingerprint_details': function () {
|
|
11071
|
-
var f = faker.
|
|
11143
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.device_fingerprint_details_browser'](); }]);
|
|
11072
11144
|
return f();
|
|
11073
11145
|
},
|
|
11074
11146
|
'io.flow.v0.unions.discount_offer': function () {
|
|
11075
|
-
var f = faker.
|
|
11147
|
+
var f = faker.helpers.arrayElement([
|
|
11076
11148
|
function () { return factories['io.flow.v0.models.discount_offer_fixed'](); },
|
|
11077
11149
|
function () { return factories['io.flow.v0.models.discount_offer_percent'](); },
|
|
11078
11150
|
]);
|
|
11079
11151
|
return f();
|
|
11080
11152
|
},
|
|
11081
11153
|
'io.flow.v0.unions.discount_rule_entitlement': function () {
|
|
11082
|
-
var f = faker.
|
|
11154
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.discount_rule_subsidy_entitlement'](); }]);
|
|
11083
11155
|
return f();
|
|
11084
11156
|
},
|
|
11085
11157
|
'io.flow.v0.unions.document': function () {
|
|
11086
|
-
var f = faker.
|
|
11158
|
+
var f = faker.helpers.arrayElement([
|
|
11087
11159
|
function () { return factories['io.flow.v0.models.catalog_item_document'](); },
|
|
11088
11160
|
function () { return factories['io.flow.v0.models.harmonization_document'](); },
|
|
11089
11161
|
]);
|
|
11090
11162
|
return f();
|
|
11091
11163
|
},
|
|
11092
11164
|
'io.flow.v0.unions.email_notification_data': function () {
|
|
11093
|
-
var f = faker.
|
|
11165
|
+
var f = faker.helpers.arrayElement([
|
|
11094
11166
|
function () { return factories['io.flow.v0.models.email_notification_data_refund'](); },
|
|
11095
11167
|
function () { return factories['io.flow.v0.models.email_notification_abandoned_order'](); },
|
|
11096
11168
|
]);
|
|
11097
11169
|
return f();
|
|
11098
11170
|
},
|
|
11099
11171
|
'io.flow.v0.unions.event': function () {
|
|
11100
|
-
var f = faker.
|
|
11172
|
+
var f = faker.helpers.arrayElement([
|
|
11101
11173
|
function () { return factories['io.flow.v0.models.transaction_upserted'](); },
|
|
11102
|
-
function () { return factories['io.flow.v0.models.
|
|
11174
|
+
function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
|
|
11175
|
+
function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
|
|
11103
11176
|
function () { return factories['io.flow.v0.models.statement_upserted'](); },
|
|
11104
11177
|
function () { return factories['io.flow.v0.models.statement_deleted'](); },
|
|
11105
11178
|
function () { return factories['io.flow.v0.models.channel_transaction_upserted'](); },
|
|
11106
11179
|
function () { return factories['io.flow.v0.models.channel_transaction_deleted'](); },
|
|
11180
|
+
function () { return factories['io.flow.v0.models.channel_transaction_deleted_v2'](); },
|
|
11107
11181
|
function () { return factories['io.flow.v0.models.channel_statement_upserted'](); },
|
|
11108
11182
|
function () { return factories['io.flow.v0.models.channel_statement_deleted'](); },
|
|
11109
11183
|
function () { return factories['io.flow.v0.models.attribute_upserted'](); },
|
|
@@ -11287,7 +11361,7 @@ var factories = {
|
|
|
11287
11361
|
return f();
|
|
11288
11362
|
},
|
|
11289
11363
|
'io.flow.v0.unions.expandable_card': function () {
|
|
11290
|
-
var f = faker.
|
|
11364
|
+
var f = faker.helpers.arrayElement([
|
|
11291
11365
|
function () { return factories['io.flow.v0.models.card'](); },
|
|
11292
11366
|
function () { return factories['io.flow.v0.models.card_reference'](); },
|
|
11293
11367
|
function () { return factories['io.flow.v0.models.card_summary'](); },
|
|
@@ -11295,60 +11369,60 @@ var factories = {
|
|
|
11295
11369
|
return f();
|
|
11296
11370
|
},
|
|
11297
11371
|
'io.flow.v0.unions.expandable_center': function () {
|
|
11298
|
-
var f = faker.
|
|
11372
|
+
var f = faker.helpers.arrayElement([
|
|
11299
11373
|
function () { return factories['io.flow.v0.models.center'](); },
|
|
11300
11374
|
function () { return factories['io.flow.v0.models.center_reference'](); },
|
|
11301
11375
|
]);
|
|
11302
11376
|
return f();
|
|
11303
11377
|
},
|
|
11304
11378
|
'io.flow.v0.unions.expandable_experience': function () {
|
|
11305
|
-
var f = faker.
|
|
11379
|
+
var f = faker.helpers.arrayElement([
|
|
11306
11380
|
function () { return factories['io.flow.v0.models.experience'](); },
|
|
11307
11381
|
function () { return factories['io.flow.v0.models.experience_reference'](); },
|
|
11308
11382
|
]);
|
|
11309
11383
|
return f();
|
|
11310
11384
|
},
|
|
11311
11385
|
'io.flow.v0.unions.expandable_order': function () {
|
|
11312
|
-
var f = faker.
|
|
11386
|
+
var f = faker.helpers.arrayElement([
|
|
11313
11387
|
function () { return factories['io.flow.v0.models.order'](); },
|
|
11314
11388
|
function () { return factories['io.flow.v0.models.order_reference'](); },
|
|
11315
11389
|
]);
|
|
11316
11390
|
return f();
|
|
11317
11391
|
},
|
|
11318
11392
|
'io.flow.v0.unions.expandable_organization': function () {
|
|
11319
|
-
var f = faker.
|
|
11393
|
+
var f = faker.helpers.arrayElement([
|
|
11320
11394
|
function () { return factories['io.flow.v0.models.organization'](); },
|
|
11321
11395
|
function () { return factories['io.flow.v0.models.organization_reference'](); },
|
|
11322
11396
|
]);
|
|
11323
11397
|
return f();
|
|
11324
11398
|
},
|
|
11325
11399
|
'io.flow.v0.unions.expandable_payment_processor': function () {
|
|
11326
|
-
var f = faker.
|
|
11400
|
+
var f = faker.helpers.arrayElement([
|
|
11327
11401
|
function () { return factories['io.flow.v0.models.payment_processor'](); },
|
|
11328
11402
|
function () { return factories['io.flow.v0.models.payment_processor_reference'](); },
|
|
11329
11403
|
]);
|
|
11330
11404
|
return f();
|
|
11331
11405
|
},
|
|
11332
11406
|
'io.flow.v0.unions.expandable_subcatalog': function () {
|
|
11333
|
-
var f = faker.
|
|
11407
|
+
var f = faker.helpers.arrayElement([
|
|
11334
11408
|
function () { return factories['io.flow.v0.models.subcatalog'](); },
|
|
11335
11409
|
function () { return factories['io.flow.v0.models.subcatalog_reference'](); },
|
|
11336
11410
|
]);
|
|
11337
11411
|
return f();
|
|
11338
11412
|
},
|
|
11339
11413
|
'io.flow.v0.unions.expandable_user': function () {
|
|
11340
|
-
var f = faker.
|
|
11414
|
+
var f = faker.helpers.arrayElement([
|
|
11341
11415
|
function () { return factories['io.flow.v0.models.user'](); },
|
|
11342
11416
|
function () { return factories['io.flow.v0.models.user_reference'](); },
|
|
11343
11417
|
]);
|
|
11344
11418
|
return f();
|
|
11345
11419
|
},
|
|
11346
11420
|
'io.flow.v0.unions.export_delivery': function () {
|
|
11347
|
-
var f = faker.
|
|
11421
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.export_delivery_email'](); }]);
|
|
11348
11422
|
return f();
|
|
11349
11423
|
},
|
|
11350
11424
|
'io.flow.v0.unions.export_type': function () {
|
|
11351
|
-
var f = faker.
|
|
11425
|
+
var f = faker.helpers.arrayElement([
|
|
11352
11426
|
function () { return factories['io.flow.v0.models.account_transactions_export_type'](); },
|
|
11353
11427
|
function () { return factories['io.flow.v0.models.account_orders_export_type'](); },
|
|
11354
11428
|
function () { return factories['io.flow.v0.models.analytics_export_type'](); },
|
|
@@ -11370,7 +11444,7 @@ var factories = {
|
|
|
11370
11444
|
return f();
|
|
11371
11445
|
},
|
|
11372
11446
|
'io.flow.v0.unions.field_validation_rule': function () {
|
|
11373
|
-
var f = faker.
|
|
11447
|
+
var f = faker.helpers.arrayElement([
|
|
11374
11448
|
function () { return factories['io.flow.v0.models.field_validation_required'](); },
|
|
11375
11449
|
function () { return factories['io.flow.v0.models.field_validation_required_if_present'](); },
|
|
11376
11450
|
function () { return factories['io.flow.v0.models.field_validation_min'](); },
|
|
@@ -11380,30 +11454,30 @@ var factories = {
|
|
|
11380
11454
|
return f();
|
|
11381
11455
|
},
|
|
11382
11456
|
'io.flow.v0.unions.fraud_order_reference': function () {
|
|
11383
|
-
var f = faker.
|
|
11457
|
+
var f = faker.helpers.arrayElement([
|
|
11384
11458
|
function () { return factories['io.flow.v0.models.fraud_flow_order_reference'](); },
|
|
11385
11459
|
function () { return factories['io.flow.v0.models.fraud_payment_request_reference'](); },
|
|
11386
11460
|
]);
|
|
11387
11461
|
return f();
|
|
11388
11462
|
},
|
|
11389
11463
|
'io.flow.v0.unions.gateway_authentication_data': function () {
|
|
11390
|
-
var f = faker.
|
|
11464
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.stripe_authentication_data'](); }]);
|
|
11391
11465
|
return f();
|
|
11392
11466
|
},
|
|
11393
11467
|
'io.flow.v0.unions.gateway_authentication_data_form': function () {
|
|
11394
|
-
var f = faker.
|
|
11468
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.stripe_authentication_data_form'](); }]);
|
|
11395
11469
|
return f();
|
|
11396
11470
|
},
|
|
11397
11471
|
'io.flow.v0.unions.inline_action_configuration': function () {
|
|
11398
|
-
var f = faker.
|
|
11472
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.browser_inline_action_configuration'](); }]);
|
|
11399
11473
|
return f();
|
|
11400
11474
|
},
|
|
11401
11475
|
'io.flow.v0.unions.input_specification_limitation': function () {
|
|
11402
|
-
var f = faker.
|
|
11476
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.input_specification_limitation_max'](); }]);
|
|
11403
11477
|
return f();
|
|
11404
11478
|
},
|
|
11405
11479
|
'io.flow.v0.unions.inventory_strategy': function () {
|
|
11406
|
-
var f = faker.
|
|
11480
|
+
var f = faker.helpers.arrayElement([
|
|
11407
11481
|
function () { return factories['io.flow.v0.models.inventory_backorder'](); },
|
|
11408
11482
|
function () { return factories['io.flow.v0.models.inventory_stock'](); },
|
|
11409
11483
|
function () { return factories['io.flow.v0.models.inventory_unlimited'](); },
|
|
@@ -11412,7 +11486,7 @@ var factories = {
|
|
|
11412
11486
|
return f();
|
|
11413
11487
|
},
|
|
11414
11488
|
'io.flow.v0.unions.localized_price': function () {
|
|
11415
|
-
var f = faker.
|
|
11489
|
+
var f = faker.helpers.arrayElement([
|
|
11416
11490
|
function () { return factories['io.flow.v0.models.localized_item_price'](); },
|
|
11417
11491
|
function () { return factories['io.flow.v0.models.localized_item_vat'](); },
|
|
11418
11492
|
function () { return factories['io.flow.v0.models.localized_item_duty'](); },
|
|
@@ -11421,34 +11495,46 @@ var factories = {
|
|
|
11421
11495
|
return f();
|
|
11422
11496
|
},
|
|
11423
11497
|
'io.flow.v0.unions.logo_image': function () {
|
|
11424
|
-
var f = faker.
|
|
11498
|
+
var f = faker.helpers.arrayElement([
|
|
11425
11499
|
function () { return factories['io.flow.v0.models.logo_image_svg'](); },
|
|
11426
11500
|
function () { return factories['io.flow.v0.models.logo_image_set_static'](); },
|
|
11427
11501
|
]);
|
|
11428
11502
|
return f();
|
|
11429
11503
|
},
|
|
11430
11504
|
'io.flow.v0.unions.merchant_application': function () {
|
|
11431
|
-
var f = faker.
|
|
11505
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.shopify_merchant_application'](); }]);
|
|
11432
11506
|
return f();
|
|
11433
11507
|
},
|
|
11434
11508
|
'io.flow.v0.unions.merchant_application_form': function () {
|
|
11435
|
-
var f = faker.
|
|
11509
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.shopify_merchant_application_form'](); }]);
|
|
11436
11510
|
return f();
|
|
11437
11511
|
},
|
|
11438
11512
|
'io.flow.v0.unions.merchant_application_put_form': function () {
|
|
11439
|
-
var f = faker.
|
|
11513
|
+
var f = faker.helpers.arrayElement([
|
|
11440
11514
|
function () { return factories['io.flow.v0.models.shopify_merchant_application_put_form'](); },
|
|
11441
11515
|
]);
|
|
11442
11516
|
return f();
|
|
11443
11517
|
},
|
|
11444
11518
|
'io.flow.v0.unions.merchant_applications_summary': function () {
|
|
11445
|
-
var f = faker.
|
|
11519
|
+
var f = faker.helpers.arrayElement([
|
|
11446
11520
|
function () { return factories['io.flow.v0.models.shopify_merchant_applications_summary'](); },
|
|
11447
11521
|
]);
|
|
11448
11522
|
return f();
|
|
11449
11523
|
},
|
|
11524
|
+
'io.flow.v0.unions.onboarding_state': function () {
|
|
11525
|
+
var f = faker.helpers.arrayElement([
|
|
11526
|
+
function () { return factories['io.flow.v0.models.application_received'](); },
|
|
11527
|
+
function () { return factories['io.flow.v0.models.in_compliance_review'](); },
|
|
11528
|
+
function () { return factories['io.flow.v0.models.setup_in_progress'](); },
|
|
11529
|
+
function () { return factories['io.flow.v0.models.merchant_rejected'](); },
|
|
11530
|
+
function () { return factories['io.flow.v0.models.setup_blocked'](); },
|
|
11531
|
+
function () { return factories['io.flow.v0.models.setup_completed'](); },
|
|
11532
|
+
function () { return factories['io.flow.v0.models.merchant_activated'](); },
|
|
11533
|
+
]);
|
|
11534
|
+
return f();
|
|
11535
|
+
},
|
|
11450
11536
|
'io.flow.v0.unions.online_authorization_details': function () {
|
|
11451
|
-
var f = faker.
|
|
11537
|
+
var f = faker.helpers.arrayElement([
|
|
11452
11538
|
function () { return factories['io.flow.v0.models.cryptopay_authorization_details'](); },
|
|
11453
11539
|
function () { return factories['io.flow.v0.models.paypal_authorization_details'](); },
|
|
11454
11540
|
function () { return factories['io.flow.v0.models.redirect_authorization_details'](); },
|
|
@@ -11457,14 +11543,14 @@ var factories = {
|
|
|
11457
11543
|
return f();
|
|
11458
11544
|
},
|
|
11459
11545
|
'io.flow.v0.unions.order_information': function () {
|
|
11460
|
-
var f = faker.
|
|
11546
|
+
var f = faker.helpers.arrayElement([
|
|
11461
11547
|
function () { return factories['io.flow.v0.models.order_information_flow'](); },
|
|
11462
11548
|
function () { return factories['io.flow.v0.models.order_information_details'](); },
|
|
11463
11549
|
]);
|
|
11464
11550
|
return f();
|
|
11465
11551
|
},
|
|
11466
11552
|
'io.flow.v0.unions.order_number_generator': function () {
|
|
11467
|
-
var f = faker.
|
|
11553
|
+
var f = faker.helpers.arrayElement([
|
|
11468
11554
|
function () { return factories['io.flow.v0.models.order_number_generator_uuid'](); },
|
|
11469
11555
|
function () { return factories['io.flow.v0.models.order_number_generator_hexadecimal'](); },
|
|
11470
11556
|
function () { return factories['io.flow.v0.models.order_number_generator_prefix_suffix'](); },
|
|
@@ -11472,15 +11558,15 @@ var factories = {
|
|
|
11472
11558
|
return f();
|
|
11473
11559
|
},
|
|
11474
11560
|
'io.flow.v0.unions.order_promotion': function () {
|
|
11475
|
-
var f = faker.
|
|
11561
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.free_shipping_order_promotion'](); }]);
|
|
11476
11562
|
return f();
|
|
11477
11563
|
},
|
|
11478
11564
|
'io.flow.v0.unions.order_promotion_form': function () {
|
|
11479
|
-
var f = faker.
|
|
11565
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.free_shipping_order_promotion_form'](); }]);
|
|
11480
11566
|
return f();
|
|
11481
11567
|
},
|
|
11482
11568
|
'io.flow.v0.unions.order_quote_price': function () {
|
|
11483
|
-
var f = faker.
|
|
11569
|
+
var f = faker.helpers.arrayElement([
|
|
11484
11570
|
function () { return factories['io.flow.v0.models.order_quote_price_free'](); },
|
|
11485
11571
|
function () { return factories['io.flow.v0.models.order_quote_price_not_yet_known'](); },
|
|
11486
11572
|
function () { return factories['io.flow.v0.models.order_quote_price_included'](); },
|
|
@@ -11490,14 +11576,14 @@ var factories = {
|
|
|
11490
11576
|
return f();
|
|
11491
11577
|
},
|
|
11492
11578
|
'io.flow.v0.unions.order_refund_summary_form': function () {
|
|
11493
|
-
var f = faker.
|
|
11579
|
+
var f = faker.helpers.arrayElement([
|
|
11494
11580
|
function () { return factories['io.flow.v0.models.order_refund_summary_full_form'](); },
|
|
11495
11581
|
function () { return factories['io.flow.v0.models.order_refund_summary_partial_form'](); },
|
|
11496
11582
|
]);
|
|
11497
11583
|
return f();
|
|
11498
11584
|
},
|
|
11499
11585
|
'io.flow.v0.unions.partner_center_fee': function () {
|
|
11500
|
-
var f = faker.
|
|
11586
|
+
var f = faker.helpers.arrayElement([
|
|
11501
11587
|
function () { return factories['io.flow.v0.models.commercial_invoice_fee'](); },
|
|
11502
11588
|
function () { return factories['io.flow.v0.models.inbound_carton_fee'](); },
|
|
11503
11589
|
function () { return factories['io.flow.v0.models.outbound_carton_fee'](); },
|
|
@@ -11505,32 +11591,32 @@ var factories = {
|
|
|
11505
11591
|
return f();
|
|
11506
11592
|
},
|
|
11507
11593
|
'io.flow.v0.unions.payment': function () {
|
|
11508
|
-
var f = faker.
|
|
11594
|
+
var f = faker.helpers.arrayElement([
|
|
11509
11595
|
function () { return factories['io.flow.v0.models.payment_paypal'](); },
|
|
11510
11596
|
function () { return factories['io.flow.v0.models.payment_cryptopay'](); },
|
|
11511
11597
|
]);
|
|
11512
11598
|
return f();
|
|
11513
11599
|
},
|
|
11514
11600
|
'io.flow.v0.unions.payment_capture_option': function () {
|
|
11515
|
-
var f = faker.
|
|
11601
|
+
var f = faker.helpers.arrayElement([
|
|
11516
11602
|
function () { return factories['io.flow.v0.models.payment_capture_option_automatic_immediate'](); },
|
|
11517
11603
|
function () { return factories['io.flow.v0.models.payment_capture_option_manual'](); },
|
|
11518
11604
|
]);
|
|
11519
11605
|
return f();
|
|
11520
11606
|
},
|
|
11521
11607
|
'io.flow.v0.unions.payment_form': function () {
|
|
11522
|
-
var f = faker.
|
|
11608
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.merchant_of_record_payment_form'](); }]);
|
|
11523
11609
|
return f();
|
|
11524
11610
|
},
|
|
11525
11611
|
'io.flow.v0.unions.payment_method_card': function () {
|
|
11526
|
-
var f = faker.
|
|
11612
|
+
var f = faker.helpers.arrayElement([
|
|
11527
11613
|
function () { return factories['io.flow.v0.models.payment_method_card_pci_details'](); },
|
|
11528
11614
|
function () { return factories['io.flow.v0.models.payment_method_card_token'](); },
|
|
11529
11615
|
]);
|
|
11530
11616
|
return f();
|
|
11531
11617
|
},
|
|
11532
11618
|
'io.flow.v0.unions.payment_method_data': function () {
|
|
11533
|
-
var f = faker.
|
|
11619
|
+
var f = faker.helpers.arrayElement([
|
|
11534
11620
|
function () { return factories['io.flow.v0.models.payment_method_data_init_klarna'](); },
|
|
11535
11621
|
function () { return factories['io.flow.v0.models.payment_method_data_init_afterpay'](); },
|
|
11536
11622
|
function () { return factories['io.flow.v0.models.payment_method_data_init_applepay'](); },
|
|
@@ -11551,18 +11637,18 @@ var factories = {
|
|
|
11551
11637
|
return f();
|
|
11552
11638
|
},
|
|
11553
11639
|
'io.flow.v0.unions.payment_method_data_authorize_klarna_result': function () {
|
|
11554
|
-
var f = faker.
|
|
11640
|
+
var f = faker.helpers.arrayElement([
|
|
11555
11641
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_klarna_result_success'](); },
|
|
11556
11642
|
function () { return factories['io.flow.v0.models.payment_method_data_authorize_klarna_result_failure'](); },
|
|
11557
11643
|
]);
|
|
11558
11644
|
return f();
|
|
11559
11645
|
},
|
|
11560
11646
|
'io.flow.v0.unions.payment_method_data_option_logo': function () {
|
|
11561
|
-
var f = faker.
|
|
11647
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.payment_method_data_option_logo_svg'](); }]);
|
|
11562
11648
|
return f();
|
|
11563
11649
|
},
|
|
11564
11650
|
'io.flow.v0.unions.payment_method_summary': function () {
|
|
11565
|
-
var f = faker.
|
|
11651
|
+
var f = faker.helpers.arrayElement([
|
|
11566
11652
|
function () { return factories['io.flow.v0.models.payment_method_summary_card'](); },
|
|
11567
11653
|
function () { return factories['io.flow.v0.models.payment_method_summary_klarna'](); },
|
|
11568
11654
|
function () { return factories['io.flow.v0.models.payment_method_summary_afterpay'](); },
|
|
@@ -11576,7 +11662,7 @@ var factories = {
|
|
|
11576
11662
|
return f();
|
|
11577
11663
|
},
|
|
11578
11664
|
'io.flow.v0.unions.payment_method_tag': function () {
|
|
11579
|
-
var f = faker.
|
|
11665
|
+
var f = faker.helpers.arrayElement([function () { return ({
|
|
11580
11666
|
discriminator: 'organization_payment_method_tag',
|
|
11581
11667
|
value: factories['io.flow.v0.enums.organization_payment_method_tag'](),
|
|
11582
11668
|
}); }, function () { return ({
|
|
@@ -11586,22 +11672,22 @@ var factories = {
|
|
|
11586
11672
|
return f();
|
|
11587
11673
|
},
|
|
11588
11674
|
'io.flow.v0.unions.payment_order_reference': function () {
|
|
11589
|
-
var f = faker.
|
|
11675
|
+
var f = faker.helpers.arrayElement([
|
|
11590
11676
|
function () { return factories['io.flow.v0.models.authorization_order_reference'](); },
|
|
11591
11677
|
function () { return factories['io.flow.v0.models.payment_payment_request_reference'](); },
|
|
11592
11678
|
]);
|
|
11593
11679
|
return f();
|
|
11594
11680
|
},
|
|
11595
11681
|
'io.flow.v0.unions.payment_source': function () {
|
|
11596
|
-
var f = faker.
|
|
11682
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.card_payment_source'](); }]);
|
|
11597
11683
|
return f();
|
|
11598
11684
|
},
|
|
11599
11685
|
'io.flow.v0.unions.payment_source_form': function () {
|
|
11600
|
-
var f = faker.
|
|
11686
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.card_payment_source_form'](); }]);
|
|
11601
11687
|
return f();
|
|
11602
11688
|
},
|
|
11603
11689
|
'io.flow.v0.unions.price_source': function () {
|
|
11604
|
-
var f = faker.
|
|
11690
|
+
var f = faker.helpers.arrayElement([
|
|
11605
11691
|
function () { return factories['io.flow.v0.models.price_source_price_book'](); },
|
|
11606
11692
|
function () { return factories['io.flow.v0.models.price_source_catalog'](); },
|
|
11607
11693
|
function () { return factories['io.flow.v0.models.price_source_provided'](); },
|
|
@@ -11609,35 +11695,35 @@ var factories = {
|
|
|
11609
11695
|
return f();
|
|
11610
11696
|
},
|
|
11611
11697
|
'io.flow.v0.unions.promotion': function () {
|
|
11612
|
-
var f = faker.
|
|
11698
|
+
var f = faker.helpers.arrayElement([
|
|
11613
11699
|
function () { return factories['io.flow.v0.models.free_shipping'](); },
|
|
11614
11700
|
function () { return factories['io.flow.v0.models.discount'](); },
|
|
11615
11701
|
]);
|
|
11616
11702
|
return f();
|
|
11617
11703
|
},
|
|
11618
11704
|
'io.flow.v0.unions.query_builder_form': function () {
|
|
11619
|
-
var f = faker.
|
|
11705
|
+
var f = faker.helpers.arrayElement([
|
|
11620
11706
|
function () { return factories['io.flow.v0.models.query_builder_filter_form'](); },
|
|
11621
11707
|
function () { return factories['io.flow.v0.models.query_builder_query_form'](); },
|
|
11622
11708
|
]);
|
|
11623
11709
|
return f();
|
|
11624
11710
|
},
|
|
11625
11711
|
'io.flow.v0.unions.query_filter': function () {
|
|
11626
|
-
var f = faker.
|
|
11712
|
+
var f = faker.helpers.arrayElement([
|
|
11627
11713
|
function () { return factories['io.flow.v0.models.query_filter_structured'](); },
|
|
11628
11714
|
function () { return factories['io.flow.v0.models.query_filter_unstructured'](); },
|
|
11629
11715
|
]);
|
|
11630
11716
|
return f();
|
|
11631
11717
|
},
|
|
11632
11718
|
'io.flow.v0.unions.query_filter_form': function () {
|
|
11633
|
-
var f = faker.
|
|
11719
|
+
var f = faker.helpers.arrayElement([
|
|
11634
11720
|
function () { return factories['io.flow.v0.models.query_filter_structured_form'](); },
|
|
11635
11721
|
function () { return factories['io.flow.v0.models.query_filter_unstructured_form'](); },
|
|
11636
11722
|
]);
|
|
11637
11723
|
return f();
|
|
11638
11724
|
},
|
|
11639
11725
|
'io.flow.v0.unions.ratecard_estimate': function () {
|
|
11640
|
-
var f = faker.
|
|
11726
|
+
var f = faker.helpers.arrayElement([
|
|
11641
11727
|
function () { return factories['io.flow.v0.models.ratecard_estimate_v1'](); },
|
|
11642
11728
|
function () { return factories['io.flow.v0.models.ratecard_estimate_v2'](); },
|
|
11643
11729
|
function () { return factories['io.flow.v0.models.ratecard_estimate_v3'](); },
|
|
@@ -11646,7 +11732,7 @@ var factories = {
|
|
|
11646
11732
|
return f();
|
|
11647
11733
|
},
|
|
11648
11734
|
'io.flow.v0.unions.ratecard_fee': function () {
|
|
11649
|
-
var f = faker.
|
|
11735
|
+
var f = faker.helpers.arrayElement([
|
|
11650
11736
|
function () { return factories['io.flow.v0.models.ddp_ratecard_fee'](); },
|
|
11651
11737
|
function () { return factories['io.flow.v0.models.fuel_surcharge_ratecard_fee'](); },
|
|
11652
11738
|
function () { return factories['io.flow.v0.models.oversized_shipment_ratecard_fee'](); },
|
|
@@ -11660,7 +11746,7 @@ var factories = {
|
|
|
11660
11746
|
return f();
|
|
11661
11747
|
},
|
|
11662
11748
|
'io.flow.v0.unions.repeat_schedule': function () {
|
|
11663
|
-
var f = faker.
|
|
11749
|
+
var f = faker.helpers.arrayElement([
|
|
11664
11750
|
function () { return factories['io.flow.v0.models.repeat_hourly'](); },
|
|
11665
11751
|
function () { return factories['io.flow.v0.models.repeat_daily'](); },
|
|
11666
11752
|
function () { return factories['io.flow.v0.models.repeat_weekly'](); },
|
|
@@ -11669,7 +11755,7 @@ var factories = {
|
|
|
11669
11755
|
return f();
|
|
11670
11756
|
},
|
|
11671
11757
|
'io.flow.v0.unions.reservation_error': function () {
|
|
11672
|
-
var f = faker.
|
|
11758
|
+
var f = faker.helpers.arrayElement([
|
|
11673
11759
|
function () { return factories['io.flow.v0.models.no_inventory_reservation_error'](); },
|
|
11674
11760
|
function () { return factories['io.flow.v0.models.external_api_timeout_reservation_error'](); },
|
|
11675
11761
|
function () { return factories['io.flow.v0.models.generic_reservation_error'](); },
|
|
@@ -11677,21 +11763,21 @@ var factories = {
|
|
|
11677
11763
|
return f();
|
|
11678
11764
|
},
|
|
11679
11765
|
'io.flow.v0.unions.return_source': function () {
|
|
11680
|
-
var f = faker.
|
|
11766
|
+
var f = faker.helpers.arrayElement([
|
|
11681
11767
|
function () { return factories['io.flow.v0.models.return_source_flow'](); },
|
|
11682
11768
|
function () { return factories['io.flow.v0.models.return_source_external_vendor'](); },
|
|
11683
11769
|
]);
|
|
11684
11770
|
return f();
|
|
11685
11771
|
},
|
|
11686
11772
|
'io.flow.v0.unions.sdk_adyen_v3_authentication_token': function () {
|
|
11687
|
-
var f = faker.
|
|
11773
|
+
var f = faker.helpers.arrayElement([
|
|
11688
11774
|
function () { return factories['io.flow.v0.models.adyen_v3_fingerprint_token'](); },
|
|
11689
11775
|
function () { return factories['io.flow.v0.models.adyen_v3_challenge_token'](); },
|
|
11690
11776
|
]);
|
|
11691
11777
|
return f();
|
|
11692
11778
|
},
|
|
11693
11779
|
'io.flow.v0.unions.service_fee': function () {
|
|
11694
|
-
var f = faker.
|
|
11780
|
+
var f = faker.helpers.arrayElement([
|
|
11695
11781
|
function () { return factories['io.flow.v0.models.fuel_surcharge_service_fee'](); },
|
|
11696
11782
|
function () { return factories['io.flow.v0.models.fuel_surcharge_amount_by_weight_service_fee'](); },
|
|
11697
11783
|
function () { return factories['io.flow.v0.models.remote_area_service_fee'](); },
|
|
@@ -11703,29 +11789,29 @@ var factories = {
|
|
|
11703
11789
|
return f();
|
|
11704
11790
|
},
|
|
11705
11791
|
'io.flow.v0.unions.session': function () {
|
|
11706
|
-
var f = faker.
|
|
11792
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.organization_session'](); }]);
|
|
11707
11793
|
return f();
|
|
11708
11794
|
},
|
|
11709
11795
|
'io.flow.v0.unions.session_authorization': function () {
|
|
11710
|
-
var f = faker.
|
|
11796
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.organization_session_authorization'](); }]);
|
|
11711
11797
|
return f();
|
|
11712
11798
|
},
|
|
11713
11799
|
'io.flow.v0.unions.settlement': function () {
|
|
11714
|
-
var f = faker.
|
|
11800
|
+
var f = faker.helpers.arrayElement([
|
|
11715
11801
|
function () { return factories['io.flow.v0.models.no_payout'](); },
|
|
11716
11802
|
function () { return factories['io.flow.v0.models.payout'](); },
|
|
11717
11803
|
]);
|
|
11718
11804
|
return f();
|
|
11719
11805
|
},
|
|
11720
11806
|
'io.flow.v0.unions.shipping_label_form': function () {
|
|
11721
|
-
var f = faker.
|
|
11807
|
+
var f = faker.helpers.arrayElement([
|
|
11722
11808
|
function () { return factories['io.flow.v0.models.detailed_shipping_label_form'](); },
|
|
11723
11809
|
function () { return factories['io.flow.v0.models.summary_shipping_label_form'](); },
|
|
11724
11810
|
]);
|
|
11725
11811
|
return f();
|
|
11726
11812
|
},
|
|
11727
11813
|
'io.flow.v0.unions.shipping_notification_form': function () {
|
|
11728
|
-
var f = faker.
|
|
11814
|
+
var f = faker.helpers.arrayElement([
|
|
11729
11815
|
function () { return factories['io.flow.v0.models.detailed_shipping_notification_form'](); },
|
|
11730
11816
|
function () { return factories['io.flow.v0.models.single_package_shipping_notification_form'](); },
|
|
11731
11817
|
function () { return factories['io.flow.v0.models.summary_shipping_notification_form'](); },
|
|
@@ -11733,37 +11819,37 @@ var factories = {
|
|
|
11733
11819
|
return f();
|
|
11734
11820
|
},
|
|
11735
11821
|
'io.flow.v0.unions.shopify_cart_add_form': function () {
|
|
11736
|
-
var f = faker.
|
|
11822
|
+
var f = faker.helpers.arrayElement([
|
|
11737
11823
|
function () { return factories['io.flow.v0.models.shopify_cart_add_single_form'](); },
|
|
11738
11824
|
function () { return factories['io.flow.v0.models.shopify_cart_add_multiple_form'](); },
|
|
11739
11825
|
]);
|
|
11740
11826
|
return f();
|
|
11741
11827
|
},
|
|
11742
11828
|
'io.flow.v0.unions.shopify_event_bucket': function () {
|
|
11743
|
-
var f = faker.
|
|
11829
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.shopify_item_event_bucket'](); }]);
|
|
11744
11830
|
return f();
|
|
11745
11831
|
},
|
|
11746
11832
|
'io.flow.v0.unions.tax_duty_quote_levy_value': function () {
|
|
11747
|
-
var f = faker.
|
|
11833
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.tax_duty_quote_simple_levy_value'](); }]);
|
|
11748
11834
|
return f();
|
|
11749
11835
|
},
|
|
11750
11836
|
'io.flow.v0.unions.tax_setting': function () {
|
|
11751
|
-
var f = faker.
|
|
11837
|
+
var f = faker.helpers.arrayElement([
|
|
11752
11838
|
function () { return factories['io.flow.v0.models.avalara_tax_setting'](); },
|
|
11753
11839
|
function () { return factories['io.flow.v0.models.avalara_tax_csv_setting'](); },
|
|
11754
11840
|
]);
|
|
11755
11841
|
return f();
|
|
11756
11842
|
},
|
|
11757
11843
|
'io.flow.v0.unions.threeds_challenge_action': function () {
|
|
11758
|
-
var f = faker.
|
|
11844
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.threeds_two_challenge_request'](); }]);
|
|
11759
11845
|
return f();
|
|
11760
11846
|
},
|
|
11761
11847
|
'io.flow.v0.unions.threeds_identify_action': function () {
|
|
11762
|
-
var f = faker.
|
|
11848
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.threeds_two_method'](); }]);
|
|
11763
11849
|
return f();
|
|
11764
11850
|
},
|
|
11765
11851
|
'io.flow.v0.unions.tier_rule_outcome': function () {
|
|
11766
|
-
var f = faker.
|
|
11852
|
+
var f = faker.helpers.arrayElement([
|
|
11767
11853
|
function () { return factories['io.flow.v0.models.amount_margin'](); },
|
|
11768
11854
|
function () { return factories['io.flow.v0.models.at_cost'](); },
|
|
11769
11855
|
function () { return factories['io.flow.v0.models.flat_rate'](); },
|
|
@@ -11772,7 +11858,7 @@ var factories = {
|
|
|
11772
11858
|
return f();
|
|
11773
11859
|
},
|
|
11774
11860
|
'io.flow.v0.unions.tier_rule_outcome_form': function () {
|
|
11775
|
-
var f = faker.
|
|
11861
|
+
var f = faker.helpers.arrayElement([
|
|
11776
11862
|
function () { return factories['io.flow.v0.models.amount_margin_form'](); },
|
|
11777
11863
|
function () { return factories['io.flow.v0.models.flat_rate_form'](); },
|
|
11778
11864
|
function () { return factories['io.flow.v0.models.at_cost'](); },
|
|
@@ -11781,7 +11867,7 @@ var factories = {
|
|
|
11781
11867
|
return f();
|
|
11782
11868
|
},
|
|
11783
11869
|
'io.flow.v0.unions.token': function () {
|
|
11784
|
-
var f = faker.
|
|
11870
|
+
var f = faker.helpers.arrayElement([
|
|
11785
11871
|
function () { return factories['io.flow.v0.models.channel_token'](); },
|
|
11786
11872
|
function () { return factories['io.flow.v0.models.organization_token'](); },
|
|
11787
11873
|
function () { return factories['io.flow.v0.models.organization_token_v2'](); },
|
|
@@ -11790,7 +11876,7 @@ var factories = {
|
|
|
11790
11876
|
return f();
|
|
11791
11877
|
},
|
|
11792
11878
|
'io.flow.v0.unions.token_reference': function () {
|
|
11793
|
-
var f = faker.
|
|
11879
|
+
var f = faker.helpers.arrayElement([
|
|
11794
11880
|
function () { return factories['io.flow.v0.models.channel_token_reference'](); },
|
|
11795
11881
|
function () { return factories['io.flow.v0.models.organization_token_reference'](); },
|
|
11796
11882
|
function () { return factories['io.flow.v0.models.organization_token_v2_reference'](); },
|
|
@@ -11825,6 +11911,7 @@ export var makeActionUseSdkKlarnaV1 = function () { return factories['io.flow.v0
|
|
|
11825
11911
|
export var makeActionUseSdkPaypal = function () { return factories['io.flow.v0.models.action_use_sdk_paypal'](); };
|
|
11826
11912
|
export var makeActionUseSdkStripeV3 = function () { return factories['io.flow.v0.models.action_use_sdk_stripe_v3'](); };
|
|
11827
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'](); };
|
|
11828
11915
|
export var makeAddress = function () { return factories['io.flow.v0.models.address'](); };
|
|
11829
11916
|
export var makeAddressConfiguration = function () { return factories['io.flow.v0.models.address_configuration'](); };
|
|
11830
11917
|
export var makeAddressConfigurationFieldPlacement = function () { return factories['io.flow.v0.models.address_configuration_field_placement'](); };
|
|
@@ -11863,6 +11950,7 @@ export var makeAmountMargin = function () { return factories['io.flow.v0.models.
|
|
|
11863
11950
|
export var makeAmountMarginForm = function () { return factories['io.flow.v0.models.amount_margin_form'](); };
|
|
11864
11951
|
export var makeAnalyticsExportType = function () { return factories['io.flow.v0.models.analytics_export_type'](); };
|
|
11865
11952
|
export var makeApplePayMerchantValidationPayload = function () { return factories['io.flow.v0.models.apple_pay_merchant_validation_payload'](); };
|
|
11953
|
+
export var makeApplicationReceived = function () { return factories['io.flow.v0.models.application_received'](); };
|
|
11866
11954
|
export var makeAtCost = function () { return factories['io.flow.v0.models.at_cost'](); };
|
|
11867
11955
|
export var makeAttachment = function () { return factories['io.flow.v0.models.attachment'](); };
|
|
11868
11956
|
export var makeAttachmentType = function () { return factories['io.flow.v0.enums.attachment_type'](); };
|
|
@@ -12040,6 +12128,7 @@ export var makeChannelTokenForm = function () { return factories['io.flow.v0.mod
|
|
|
12040
12128
|
export var makeChannelTokenReference = function () { return factories['io.flow.v0.models.channel_token_reference'](); };
|
|
12041
12129
|
export var makeChannelTransaction = function () { return factories['io.flow.v0.models.channel_transaction'](); };
|
|
12042
12130
|
export var makeChannelTransactionDeleted = function () { return factories['io.flow.v0.models.channel_transaction_deleted'](); };
|
|
12131
|
+
export var makeChannelTransactionDeletedV2 = function () { return factories['io.flow.v0.models.channel_transaction_deleted_v2'](); };
|
|
12043
12132
|
export var makeChannelTransactionUpserted = function () { return factories['io.flow.v0.models.channel_transaction_upserted'](); };
|
|
12044
12133
|
export var makeChannelUpserted = function () { return factories['io.flow.v0.models.channel_upserted'](); };
|
|
12045
12134
|
export var makeChannelViesRegistration = function () { return factories['io.flow.v0.models.channel_vies_registration'](); };
|
|
@@ -12428,6 +12517,7 @@ export var makeImportTemplateExample = function () { return factories['io.flow.v
|
|
|
12428
12517
|
export var makeImportTemplateForm = function () { return factories['io.flow.v0.models.import_template_form'](); };
|
|
12429
12518
|
export var makeImportType = function () { return factories['io.flow.v0.enums.import_type'](); };
|
|
12430
12519
|
export var makeImportVersion = function () { return factories['io.flow.v0.models.import_version'](); };
|
|
12520
|
+
export var makeInComplianceReview = function () { return factories['io.flow.v0.models.in_compliance_review'](); };
|
|
12431
12521
|
export var makeInboundCartonFee = function () { return factories['io.flow.v0.models.inbound_carton_fee'](); };
|
|
12432
12522
|
export var makeIncludedLevies = function () { return factories['io.flow.v0.models.included_levies'](); };
|
|
12433
12523
|
export var makeIncludedLevyKey = function () { return factories['io.flow.v0.enums.included_levy_key'](); };
|
|
@@ -12577,6 +12667,7 @@ export var makeMembershipForm = function () { return factories['io.flow.v0.model
|
|
|
12577
12667
|
export var makeMembershipPutForm = function () { return factories['io.flow.v0.models.membership_put_form'](); };
|
|
12578
12668
|
export var makeMembershipUpsertedV2 = function () { return factories['io.flow.v0.models.membership_upserted_v2'](); };
|
|
12579
12669
|
export var makeMembershipVersion = function () { return factories['io.flow.v0.models.membership_version'](); };
|
|
12670
|
+
export var makeMerchantActivated = function () { return factories['io.flow.v0.models.merchant_activated'](); };
|
|
12580
12671
|
export var makeMerchantApplication = function () { return factories['io.flow.v0.unions.merchant_application'](); };
|
|
12581
12672
|
export var makeMerchantApplicationDeleted = function () { return factories['io.flow.v0.models.merchant_application_deleted'](); };
|
|
12582
12673
|
export var makeMerchantApplicationForm = function () { return factories['io.flow.v0.unions.merchant_application_form'](); };
|
|
@@ -12598,6 +12689,8 @@ export var makeMerchantOfRecordEntity = function () { return factories['io.flow.
|
|
|
12598
12689
|
export var makeMerchantOfRecordEntityRegistration = function () { return factories['io.flow.v0.models.merchant_of_record_entity_registration'](); };
|
|
12599
12690
|
export var makeMerchantOfRecordPaymentForm = function () { return factories['io.flow.v0.models.merchant_of_record_payment_form'](); };
|
|
12600
12691
|
export var makeMerchantOnboardingAddress = function () { return factories['io.flow.v0.models.merchant_onboarding_address'](); };
|
|
12692
|
+
export var makeMerchantRejected = function () { return factories['io.flow.v0.models.merchant_rejected'](); };
|
|
12693
|
+
export var makeMerchantRejectedReason = function () { return factories['io.flow.v0.enums.merchant_rejected_reason'](); };
|
|
12601
12694
|
export var makeMethod = function () { return factories['io.flow.v0.enums.method'](); };
|
|
12602
12695
|
export var makeMoney = function () { return factories['io.flow.v0.models.money'](); };
|
|
12603
12696
|
export var makeMoneyWithBase = function () { return factories['io.flow.v0.models.money_with_base'](); };
|
|
@@ -12613,10 +12706,13 @@ export var makeNotificationDeletedV2 = function () { return factories['io.flow.v
|
|
|
12613
12706
|
export var makeNotificationUpsertedV2 = function () { return factories['io.flow.v0.models.notification_upserted_v2'](); };
|
|
12614
12707
|
export var makeNumberRange = function () { return factories['io.flow.v0.models.number_range'](); };
|
|
12615
12708
|
export var makeOnboardingApplicationStatus = function () { return factories['io.flow.v0.enums.onboarding_application_status'](); };
|
|
12709
|
+
export var makeOnboardingBlockedReason = function () { return factories['io.flow.v0.enums.onboarding_blocked_reason'](); };
|
|
12616
12710
|
export var makeOnboardingMerchantPickupWindow = function () { return factories['io.flow.v0.models.onboarding_merchant_pickup_window'](); };
|
|
12617
12711
|
export var makeOnboardingMerchantScheduledPickup = function () { return factories['io.flow.v0.models.onboarding_merchant_scheduled_pickup'](); };
|
|
12618
12712
|
export var makeOnboardingMerchantTime = function () { return factories['io.flow.v0.models.onboarding_merchant_time'](); };
|
|
12619
12713
|
export var makeOnboardingOrganizationReference = function () { return factories['io.flow.v0.models.onboarding_organization_reference'](); };
|
|
12714
|
+
export var makeOnboardingState = function () { return factories['io.flow.v0.unions.onboarding_state'](); };
|
|
12715
|
+
export var makeOnboardingStateTransition = function () { return factories['io.flow.v0.models.onboarding_state_transition'](); };
|
|
12620
12716
|
export var makeOnboardingTradeSector = function () { return factories['io.flow.v0.enums.onboarding_trade_sector'](); };
|
|
12621
12717
|
export var makeOnlineAuthorization = function () { return factories['io.flow.v0.models.online_authorization'](); };
|
|
12622
12718
|
export var makeOnlineAuthorizationDeletedV2 = function () { return factories['io.flow.v0.models.online_authorization_deleted_v2'](); };
|
|
@@ -12765,6 +12861,7 @@ export var makeOrganizationDefaults = function () { return factories['io.flow.v0
|
|
|
12765
12861
|
export var makeOrganizationDeleted = function () { return factories['io.flow.v0.models.organization_deleted'](); };
|
|
12766
12862
|
export var makeOrganizationDeletedV2 = function () { return factories['io.flow.v0.models.organization_deleted_v2'](); };
|
|
12767
12863
|
export var makeOrganizationForm = function () { return factories['io.flow.v0.models.organization_form'](); };
|
|
12864
|
+
export var makeOrganizationOnboardingState = function () { return factories['io.flow.v0.models.organization_onboarding_state'](); };
|
|
12768
12865
|
export var makeOrganizationPaymentMethodTag = function () { return factories['io.flow.v0.enums.organization_payment_method_tag'](); };
|
|
12769
12866
|
export var makeOrganizationPutForm = function () { return factories['io.flow.v0.models.organization_put_form'](); };
|
|
12770
12867
|
export var makeOrganizationRatesData = function () { return factories['io.flow.v0.models.organization_rates_data'](); };
|
|
@@ -12780,6 +12877,8 @@ export var makeOrganizationTokenFormV2 = function () { return factories['io.flow
|
|
|
12780
12877
|
export var makeOrganizationTokenReference = function () { return factories['io.flow.v0.models.organization_token_reference'](); };
|
|
12781
12878
|
export var makeOrganizationTokenV2 = function () { return factories['io.flow.v0.models.organization_token_v2'](); };
|
|
12782
12879
|
export var makeOrganizationTokenV2Reference = function () { return factories['io.flow.v0.models.organization_token_v2_reference'](); };
|
|
12880
|
+
export var makeOrganizationTransactionDeleted = function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); };
|
|
12881
|
+
export var makeOrganizationTransactionUpserted = function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); };
|
|
12783
12882
|
export var makeOrganizationType = function () { return factories['io.flow.v0.enums.organization_type'](); };
|
|
12784
12883
|
export var makeOrganizationUpserted = function () { return factories['io.flow.v0.models.organization_upserted'](); };
|
|
12785
12884
|
export var makeOrganizationUpsertedV2 = function () { return factories['io.flow.v0.models.organization_upserted_v2'](); };
|
|
@@ -13144,6 +13243,9 @@ export var makeSessionReference = function () { return factories['io.flow.v0.mod
|
|
|
13144
13243
|
export var makeSessionVisit = function () { return factories['io.flow.v0.models.session_visit'](); };
|
|
13145
13244
|
export var makeSessionVisitor = function () { return factories['io.flow.v0.models.session_visitor'](); };
|
|
13146
13245
|
export var makeSettlement = function () { return factories['io.flow.v0.unions.settlement'](); };
|
|
13246
|
+
export var makeSetupBlocked = function () { return factories['io.flow.v0.models.setup_blocked'](); };
|
|
13247
|
+
export var makeSetupCompleted = function () { return factories['io.flow.v0.models.setup_completed'](); };
|
|
13248
|
+
export var makeSetupInProgress = function () { return factories['io.flow.v0.models.setup_in_progress'](); };
|
|
13147
13249
|
export var makeShipmentIntegrationType = function () { return factories['io.flow.v0.enums.shipment_integration_type'](); };
|
|
13148
13250
|
export var makeShipmentRecipient = function () { return factories['io.flow.v0.enums.shipment_recipient'](); };
|
|
13149
13251
|
export var makeShipmentWindow = function () { return factories['io.flow.v0.models.shipment_window'](); };
|
|
@@ -13362,7 +13464,6 @@ export var makeTradeAgreementDuty = function () { return factories['io.flow.v0.m
|
|
|
13362
13464
|
export var makeTradeAgreementName = function () { return factories['io.flow.v0.enums.trade_agreement_name'](); };
|
|
13363
13465
|
export var makeTradeAgreementStatus = function () { return factories['io.flow.v0.enums.trade_agreement_status'](); };
|
|
13364
13466
|
export var makeTransaction = function () { return factories['io.flow.v0.models.transaction'](); };
|
|
13365
|
-
export var makeTransactionDeleted = function () { return factories['io.flow.v0.models.transaction_deleted'](); };
|
|
13366
13467
|
export var makeTransactionSource = function () { return factories['io.flow.v0.enums.transaction_source'](); };
|
|
13367
13468
|
export var makeTransactionUpserted = function () { return factories['io.flow.v0.models.transaction_upserted'](); };
|
|
13368
13469
|
export var makeTransitEstimate = function () { return factories['io.flow.v0.models.transit_estimate'](); };
|