@flowio/api-factories 0.0.62 → 0.0.64
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 +513 -57
- package/dist/esm/api.js +459 -26
- package/dist/types/api.d.ts +24 -2
- package/package.json +2 -2
- package/src/api.ts +532 -27
package/dist/esm/api.js
CHANGED
|
@@ -91,6 +91,120 @@ var factories = {
|
|
|
91
91
|
amount: factories.string(),
|
|
92
92
|
identifier: factories.string(),
|
|
93
93
|
}); },
|
|
94
|
+
'io.flow.ben.test.internal.v0.models.generate_load_multiple_orgs': function () { return ({
|
|
95
|
+
discriminator: 'generate_load_multiple_orgs',
|
|
96
|
+
organization_ids: arrayOf(function () { return factories.string(); }),
|
|
97
|
+
num_events: factories.long(),
|
|
98
|
+
}); },
|
|
99
|
+
'io.flow.ben.test.internal.v0.models.generate_load_single_org': function () { return ({
|
|
100
|
+
discriminator: 'generate_load_single_org',
|
|
101
|
+
organization_id: factories.string(),
|
|
102
|
+
num_events: factories.long(),
|
|
103
|
+
}); },
|
|
104
|
+
'io.flow.ben.test.internal.v0.models.test': function () { return ({
|
|
105
|
+
id: factories.string(),
|
|
106
|
+
name: factories.string(),
|
|
107
|
+
}); },
|
|
108
|
+
'io.flow.ben.test.internal.v0.models.test_form': function () { return ({
|
|
109
|
+
name: factories.string(),
|
|
110
|
+
}); },
|
|
111
|
+
'io.flow.ben.test.internal.v0.unions.generate_load': function () {
|
|
112
|
+
var f = faker.helpers.arrayElement([
|
|
113
|
+
function () { return factories['io.flow.ben.test.internal.v0.models.generate_load_single_org'](); },
|
|
114
|
+
function () { return factories['io.flow.ben.test.internal.v0.models.generate_load_multiple_orgs'](); },
|
|
115
|
+
]);
|
|
116
|
+
return f();
|
|
117
|
+
},
|
|
118
|
+
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': function () { return faker.helpers.arrayElement(['fuel', 'remote_area', 'oversize', 'duties_paid', 'emergency', 'peak']); },
|
|
119
|
+
'io.flow.billing.true.up.v0.enums.weight_selection': function () { return faker.helpers.arrayElement(['dead', 'dimensional']); },
|
|
120
|
+
'io.flow.billing.true.up.v0.models.label_base': function () { return ({
|
|
121
|
+
amount: factories.decimal(),
|
|
122
|
+
weight: factories.decimal(),
|
|
123
|
+
}); },
|
|
124
|
+
'io.flow.billing.true.up.v0.models.label_destination': function () { return ({
|
|
125
|
+
country: factories.string(),
|
|
126
|
+
}); },
|
|
127
|
+
'io.flow.billing.true.up.v0.models.label_invoice_request': function () { return ({
|
|
128
|
+
id: factories.string(),
|
|
129
|
+
label: factories['io.flow.billing.true.up.v0.models.true_up_label_summary'](),
|
|
130
|
+
units: factories['io.flow.billing.true.up.v0.models.label_units'](),
|
|
131
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
132
|
+
surcharges: arrayOf(function () { return factories['io.flow.billing.true.up.v0.models.label_surcharge'](); }),
|
|
133
|
+
total: factories.decimal(),
|
|
134
|
+
destination: factories['io.flow.billing.true.up.v0.models.label_destination'](),
|
|
135
|
+
metadata: factories['io.flow.billing.true.up.v0.models.label_metadata'](),
|
|
136
|
+
}); },
|
|
137
|
+
'io.flow.billing.true.up.v0.models.label_metadata': function () { return ({
|
|
138
|
+
ratecard: factories['io.flow.billing.true.up.v0.models.metadata_ratecard'](),
|
|
139
|
+
weights: factories['io.flow.billing.true.up.v0.models.metadata_weights'](),
|
|
140
|
+
}); },
|
|
141
|
+
'io.flow.billing.true.up.v0.models.label_surcharge': function () { return ({
|
|
142
|
+
amount: factories.decimal(),
|
|
143
|
+
type: factories['io.flow.billing.true.up.v0.enums.true_up_surcharge_type'](),
|
|
144
|
+
detail: factories['io.flow.billing.true.up.v0.unions.label_surcharge_detail'](),
|
|
145
|
+
}); },
|
|
146
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_detail_flat': function () { return ({
|
|
147
|
+
discriminator: 'flat',
|
|
148
|
+
placeholder: factories.string(),
|
|
149
|
+
}); },
|
|
150
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_detail_per_weight_unit': function () { return ({
|
|
151
|
+
discriminator: 'per_weight_unit',
|
|
152
|
+
fee: factories.decimal(),
|
|
153
|
+
}); },
|
|
154
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_detail_percentage': function () { return ({
|
|
155
|
+
discriminator: 'percentage',
|
|
156
|
+
percentage: factories.decimal(),
|
|
157
|
+
}); },
|
|
158
|
+
'io.flow.billing.true.up.v0.models.label_units': function () { return ({
|
|
159
|
+
currency: factories.string(),
|
|
160
|
+
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
161
|
+
length: factories['io.flow.units.v0.enums.unit_of_length'](),
|
|
162
|
+
}); },
|
|
163
|
+
'io.flow.billing.true.up.v0.models.metadata_proposition': function () { return ({
|
|
164
|
+
shipping_method: factories['io.flow.billing.true.up.v0.models.shipping_method_reference'](),
|
|
165
|
+
name: factories.string(),
|
|
166
|
+
}); },
|
|
167
|
+
'io.flow.billing.true.up.v0.models.metadata_ratecard': function () { return ({
|
|
168
|
+
id: factories.string(),
|
|
169
|
+
proposition: factories['io.flow.billing.true.up.v0.models.metadata_proposition'](),
|
|
170
|
+
}); },
|
|
171
|
+
'io.flow.billing.true.up.v0.models.metadata_weights': function () { return ({
|
|
172
|
+
selected: factories['io.flow.billing.true.up.v0.enums.weight_selection'](),
|
|
173
|
+
dead: factories['io.flow.billing.true.up.v0.models.weights_dead'](),
|
|
174
|
+
dimensional: factories['io.flow.billing.true.up.v0.models.weights_dimensional'](),
|
|
175
|
+
}); },
|
|
176
|
+
'io.flow.billing.true.up.v0.models.shipping_method_reference': function () { return ({
|
|
177
|
+
id: factories.string(),
|
|
178
|
+
}); },
|
|
179
|
+
'io.flow.billing.true.up.v0.models.true_up_label_summary': function () { return ({
|
|
180
|
+
id: factories.string(),
|
|
181
|
+
carrier_service_id: factories.string(),
|
|
182
|
+
carrier_tracking_number: factories.string(),
|
|
183
|
+
flow_tracking_number: factories.string(),
|
|
184
|
+
created_at: factories.date_time_iso_8601(),
|
|
185
|
+
}); },
|
|
186
|
+
'io.flow.billing.true.up.v0.models.weights_dead': function () { return ({
|
|
187
|
+
weight: factories.decimal(),
|
|
188
|
+
}); },
|
|
189
|
+
'io.flow.billing.true.up.v0.models.weights_dimensional': function () { return ({
|
|
190
|
+
weight: factories.decimal(),
|
|
191
|
+
length: factories.decimal(),
|
|
192
|
+
width: factories.decimal(),
|
|
193
|
+
height: factories.decimal(),
|
|
194
|
+
}); },
|
|
195
|
+
'io.flow.billing.true.up.v0.unions.label_surcharge_detail': function () {
|
|
196
|
+
var f = faker.helpers.arrayElement([
|
|
197
|
+
function () { return factories['io.flow.billing.true.up.v0.models.label_surcharge_detail_flat'](); },
|
|
198
|
+
function () { return factories['io.flow.billing.true.up.v0.models.label_surcharge_detail_percentage'](); },
|
|
199
|
+
function () { return factories['io.flow.billing.true.up.v0.models.label_surcharge_detail_per_weight_unit'](); },
|
|
200
|
+
]);
|
|
201
|
+
return f();
|
|
202
|
+
},
|
|
203
|
+
'io.flow.error.v0.enums.generic_error_code': function () { return faker.helpers.arrayElement(['generic_error', 'client_error', 'server_error']); },
|
|
204
|
+
'io.flow.error.v0.models.generic_error': function () { return ({
|
|
205
|
+
code: factories['io.flow.error.v0.enums.generic_error_code'](),
|
|
206
|
+
messages: arrayOf(function () { return factories.string(); }),
|
|
207
|
+
}); },
|
|
94
208
|
'io.flow.google.pay.v0.enums.auth_method': function () { return faker.helpers.arrayElement(['PAN_ONLY', 'CRYPTOGRAM_3DS']); },
|
|
95
209
|
'io.flow.google.pay.v0.enums.billing_address_format': function () { return faker.helpers.arrayElement(['MIN', 'FULL']); },
|
|
96
210
|
'io.flow.google.pay.v0.enums.card_gateway': function () { return faker.helpers.arrayElement(['adyen', 'stripe']); },
|
|
@@ -390,7 +504,7 @@ var factories = {
|
|
|
390
504
|
starts_at: factories.date_time_iso_8601(),
|
|
391
505
|
ends_at: factories.date_time_iso_8601(),
|
|
392
506
|
prerequisite_subtotal_range: factories['io.flow.shopify.external.v0.models.price_rule_greater_than_range'](),
|
|
393
|
-
|
|
507
|
+
prerequisite_shipping_price_range: factories['io.flow.shopify.external.v0.models.price_rule_less_than_range'](),
|
|
394
508
|
usage_limit: factories.long(),
|
|
395
509
|
entitled_product_ids: arrayOf(function () { return factories.long(); }),
|
|
396
510
|
entitled_variant_ids: arrayOf(function () { return factories.long(); }),
|
|
@@ -400,7 +514,7 @@ var factories = {
|
|
|
400
514
|
once_per_customer: factories.boolean(),
|
|
401
515
|
target_selection: factories['io.flow.shopify.external.v0.enums.price_rule_target_selection'](),
|
|
402
516
|
customer_selection: factories['io.flow.shopify.external.v0.enums.price_rule_customer_selection'](),
|
|
403
|
-
|
|
517
|
+
customer_segment_prerequisite_ids: arrayOf(function () { return factories.long(); }),
|
|
404
518
|
prerequisite_customer_ids: arrayOf(function () { return factories.long(); }),
|
|
405
519
|
prerequisite_quantity_range: factories['io.flow.shopify.external.v0.models.price_rule_greater_than_range'](),
|
|
406
520
|
prerequisite_product_ids: arrayOf(function () { return factories.long(); }),
|
|
@@ -1109,6 +1223,7 @@ var factories = {
|
|
|
1109
1223
|
webhook: factories['io.flow.shopify.external.v0.models.webhook'](),
|
|
1110
1224
|
}); },
|
|
1111
1225
|
'io.flow.stripe.v0.enums.account_type': function () { return faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']); },
|
|
1226
|
+
'io.flow.stripe.v0.enums.apple_pay_type': function () { return faker.helpers.arrayElement(['apple_pay', 'apple_pay_later']); },
|
|
1112
1227
|
'io.flow.stripe.v0.enums.cancellation_reason': function () { return faker.helpers.arrayElement([
|
|
1113
1228
|
'abandoned',
|
|
1114
1229
|
'automatic',
|
|
@@ -1142,6 +1257,19 @@ var factories = {
|
|
|
1142
1257
|
'processing_error',
|
|
1143
1258
|
]); },
|
|
1144
1259
|
'io.flow.stripe.v0.enums.card_funding_type': function () { return faker.helpers.arrayElement(['credit', 'debit', 'prepaid', 'unknown']); },
|
|
1260
|
+
'io.flow.stripe.v0.enums.card_network': function () { return faker.helpers.arrayElement([
|
|
1261
|
+
'amex',
|
|
1262
|
+
'cartes_bancaires',
|
|
1263
|
+
'diners',
|
|
1264
|
+
'discover',
|
|
1265
|
+
'eftpos_au',
|
|
1266
|
+
'interac',
|
|
1267
|
+
'jcb',
|
|
1268
|
+
'mastercard',
|
|
1269
|
+
'unionpay',
|
|
1270
|
+
'visa',
|
|
1271
|
+
'unknown',
|
|
1272
|
+
]); },
|
|
1145
1273
|
'io.flow.stripe.v0.enums.check_outcome': function () { return faker.helpers.arrayElement(['pass', 'fail', 'unavailable', 'unchecked']); },
|
|
1146
1274
|
'io.flow.stripe.v0.enums.code_verification_status': function () { return faker.helpers.arrayElement(['pending', 'succeeded', 'failed']); },
|
|
1147
1275
|
'io.flow.stripe.v0.enums.confirmation_method': function () { return faker.helpers.arrayElement(['automatic', 'manual']); },
|
|
@@ -1239,9 +1367,56 @@ var factories = {
|
|
|
1239
1367
|
'requires_payment_method',
|
|
1240
1368
|
'succeeded',
|
|
1241
1369
|
]); },
|
|
1370
|
+
'io.flow.stripe.v0.enums.payment_method_category_klarna': function () { return faker.helpers.arrayElement(['pay_later', 'pay_now', 'pay_with_financing', 'pay_in_installments']); },
|
|
1242
1371
|
'io.flow.stripe.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'card_present']); },
|
|
1243
1372
|
'io.flow.stripe.v0.enums.payment_outcome_type': function () { return faker.helpers.arrayElement(['authorized', 'manual_review', 'issuer_declined', 'blocked', 'invalid']); },
|
|
1244
1373
|
'io.flow.stripe.v0.enums.payment_status': function () { return faker.helpers.arrayElement(['succeeded', 'pending', 'failed']); },
|
|
1374
|
+
'io.flow.stripe.v0.enums.preferred_locale_klarna': function () { return faker.helpers.arrayElement([
|
|
1375
|
+
'de-AT',
|
|
1376
|
+
'en-AT',
|
|
1377
|
+
'nl-BE',
|
|
1378
|
+
'fr-BE',
|
|
1379
|
+
'en-BE',
|
|
1380
|
+
'de-DE',
|
|
1381
|
+
'en-DE',
|
|
1382
|
+
'da-DK',
|
|
1383
|
+
'en-DK',
|
|
1384
|
+
'es-ES',
|
|
1385
|
+
'en-ES',
|
|
1386
|
+
'fi-FI',
|
|
1387
|
+
'sv-FI',
|
|
1388
|
+
'en-FI',
|
|
1389
|
+
'en-GB',
|
|
1390
|
+
'en-IE',
|
|
1391
|
+
'it-IT',
|
|
1392
|
+
'en-IT',
|
|
1393
|
+
'nl-NL',
|
|
1394
|
+
'en-NL',
|
|
1395
|
+
'nb-NO',
|
|
1396
|
+
'en-NO',
|
|
1397
|
+
'sv-SE',
|
|
1398
|
+
'en-SE',
|
|
1399
|
+
'en-US',
|
|
1400
|
+
'es-US',
|
|
1401
|
+
'fr-FR',
|
|
1402
|
+
'en-FR',
|
|
1403
|
+
'cs-CZ',
|
|
1404
|
+
'en-CZ',
|
|
1405
|
+
'el-GR',
|
|
1406
|
+
'en-GR',
|
|
1407
|
+
'en-AU',
|
|
1408
|
+
'en-NZ',
|
|
1409
|
+
'en-CA',
|
|
1410
|
+
'fr-CA',
|
|
1411
|
+
'pl-PL',
|
|
1412
|
+
'en-PL',
|
|
1413
|
+
'pt-PT',
|
|
1414
|
+
'en-PT',
|
|
1415
|
+
'de-CH',
|
|
1416
|
+
'fr-CH',
|
|
1417
|
+
'it-CH',
|
|
1418
|
+
'en-CH',
|
|
1419
|
+
]); },
|
|
1245
1420
|
'io.flow.stripe.v0.enums.refund_failure_reason': function () { return faker.helpers.arrayElement(['lost_or_stolen_card', 'expired_or_canceled_card', 'unknown']); },
|
|
1246
1421
|
'io.flow.stripe.v0.enums.refund_reason': function () { return faker.helpers.arrayElement(['duplicate', 'fraudulent', 'requested_by_customer']); },
|
|
1247
1422
|
'io.flow.stripe.v0.enums.refund_status': function () { return faker.helpers.arrayElement(['succeeded', 'failed', 'pending', 'canceled']); },
|
|
@@ -1269,6 +1444,24 @@ var factories = {
|
|
|
1269
1444
|
]); },
|
|
1270
1445
|
'io.flow.stripe.v0.enums.source_usage_type': function () { return faker.helpers.arrayElement(['reusable', 'single_use']); },
|
|
1271
1446
|
'io.flow.stripe.v0.enums.three_d_secure_support': function () { return faker.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']); },
|
|
1447
|
+
'io.flow.stripe.v0.enums.three_ds_authentication_flow': function () { return faker.helpers.arrayElement(['challenge', 'frictionless']); },
|
|
1448
|
+
'io.flow.stripe.v0.enums.three_ds_result': function () { return faker.helpers.arrayElement([
|
|
1449
|
+
'authenticated',
|
|
1450
|
+
'attempt_acknowledged',
|
|
1451
|
+
'exempted',
|
|
1452
|
+
'not_supported',
|
|
1453
|
+
'failed',
|
|
1454
|
+
'processing_error',
|
|
1455
|
+
]); },
|
|
1456
|
+
'io.flow.stripe.v0.enums.three_ds_result_reason': function () { return faker.helpers.arrayElement([
|
|
1457
|
+
'card_not_enrolled',
|
|
1458
|
+
'network_not_supported',
|
|
1459
|
+
'abandoned',
|
|
1460
|
+
'canceled',
|
|
1461
|
+
'rejected',
|
|
1462
|
+
'bypassed',
|
|
1463
|
+
'protocol_error',
|
|
1464
|
+
]); },
|
|
1272
1465
|
'io.flow.stripe.v0.enums.token_type': function () { return faker.helpers.arrayElement(['account', 'bank_account', 'card', 'pii']); },
|
|
1273
1466
|
'io.flow.stripe.v0.enums.use_stripe_sdk_type': function () { return faker.helpers.arrayElement(['three_d_secure_redirect', 'stripe_3ds2_fingerprint']); },
|
|
1274
1467
|
'io.flow.stripe.v0.models.account': function () { return ({
|
|
@@ -1312,6 +1505,14 @@ var factories = {
|
|
|
1312
1505
|
postal_code: factories.string(),
|
|
1313
1506
|
state: factories.string(),
|
|
1314
1507
|
}); },
|
|
1508
|
+
'io.flow.stripe.v0.models.apple_pay': function () { return ({
|
|
1509
|
+
type: 'apple_pay',
|
|
1510
|
+
apple_pay: factories['io.flow.stripe.v0.models.apple_pay_information'](),
|
|
1511
|
+
dynamic_last4: factories.string(),
|
|
1512
|
+
}); },
|
|
1513
|
+
'io.flow.stripe.v0.models.apple_pay_information': function () { return ({
|
|
1514
|
+
type: factories['io.flow.stripe.v0.enums.apple_pay_type'](),
|
|
1515
|
+
}); },
|
|
1315
1516
|
'io.flow.stripe.v0.models.card': function () { return ({
|
|
1316
1517
|
id: factories.string(),
|
|
1317
1518
|
object: factories.string(),
|
|
@@ -1336,6 +1537,11 @@ var factories = {
|
|
|
1336
1537
|
name: factories.string(),
|
|
1337
1538
|
tokenization_method: factories.string(),
|
|
1338
1539
|
}); },
|
|
1540
|
+
'io.flow.stripe.v0.models.card_checks': function () { return ({
|
|
1541
|
+
address_line1_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1542
|
+
address_postal_code_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1543
|
+
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1544
|
+
}); },
|
|
1339
1545
|
'io.flow.stripe.v0.models.card_request': function () { return ({
|
|
1340
1546
|
object: factories.string(),
|
|
1341
1547
|
exp_month: factories.string(),
|
|
@@ -1378,7 +1584,7 @@ var factories = {
|
|
|
1378
1584
|
payment_intent: factories.string(),
|
|
1379
1585
|
calculated_statement_descriptor: factories.string(),
|
|
1380
1586
|
statement_descriptor: factories.string(),
|
|
1381
|
-
payment_method_details: factories.
|
|
1587
|
+
payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
|
|
1382
1588
|
}); },
|
|
1383
1589
|
'io.flow.stripe.v0.models.charge_destination': function () { return ({
|
|
1384
1590
|
account: factories.string(),
|
|
@@ -1425,7 +1631,7 @@ var factories = {
|
|
|
1425
1631
|
payment_intent: factories.string(),
|
|
1426
1632
|
calculated_statement_descriptor: factories.string(),
|
|
1427
1633
|
statement_descriptor: factories.string(),
|
|
1428
|
-
payment_method_details: factories.
|
|
1634
|
+
payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
|
|
1429
1635
|
}); },
|
|
1430
1636
|
'io.flow.stripe.v0.models.code_verification': function () { return ({
|
|
1431
1637
|
attempts_remaining: factories.long(),
|
|
@@ -1472,11 +1678,25 @@ var factories = {
|
|
|
1472
1678
|
'io.flow.stripe.v0.models.legal_entity': function () { return ({
|
|
1473
1679
|
additional_owners: arrayOf(function () { return factories['io.flow.stripe.v0.models.owner'](); }),
|
|
1474
1680
|
}); },
|
|
1681
|
+
'io.flow.stripe.v0.models.masterpass': function () { return ({
|
|
1682
|
+
type: 'masterpass',
|
|
1683
|
+
masterpass: factories['io.flow.stripe.v0.models.masterpass_information'](),
|
|
1684
|
+
dynamic_last4: factories.string(),
|
|
1685
|
+
}); },
|
|
1686
|
+
'io.flow.stripe.v0.models.masterpass_information': function () { return ({
|
|
1687
|
+
billing_address: factories['io.flow.stripe.v0.models.address'](),
|
|
1688
|
+
email: factories.string(),
|
|
1689
|
+
name: factories.string(),
|
|
1690
|
+
shipping_address: factories['io.flow.stripe.v0.models.address'](),
|
|
1691
|
+
}); },
|
|
1475
1692
|
'io.flow.stripe.v0.models.metadata': function () { return ({
|
|
1476
1693
|
order_number: factories.string(),
|
|
1477
1694
|
authorization_id: factories.string(),
|
|
1478
1695
|
organization_id: factories.string(),
|
|
1479
1696
|
}); },
|
|
1697
|
+
'io.flow.stripe.v0.models.network_token_used': function () { return ({
|
|
1698
|
+
used: factories.boolean(),
|
|
1699
|
+
}); },
|
|
1480
1700
|
'io.flow.stripe.v0.models.next_action': function () { return ({
|
|
1481
1701
|
type: factories['io.flow.stripe.v0.enums.next_action_type'](),
|
|
1482
1702
|
use_stripe_sdk: factories.object(),
|
|
@@ -1643,6 +1863,39 @@ var factories = {
|
|
|
1643
1863
|
name: factories.string(),
|
|
1644
1864
|
phone: factories.string(),
|
|
1645
1865
|
}); },
|
|
1866
|
+
'io.flow.stripe.v0.models.payment_method_details_card': function () { return ({
|
|
1867
|
+
type: 'card',
|
|
1868
|
+
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
1869
|
+
}); },
|
|
1870
|
+
'io.flow.stripe.v0.models.payment_method_details_card_information': function () { return ({
|
|
1871
|
+
brand: factories.string(),
|
|
1872
|
+
checks: factories['io.flow.stripe.v0.models.card_checks'](),
|
|
1873
|
+
country: factories.string(),
|
|
1874
|
+
exp_month: factories.integer(),
|
|
1875
|
+
exp_year: factories.integer(),
|
|
1876
|
+
fingerprint: factories.string(),
|
|
1877
|
+
funding: factories['io.flow.stripe.v0.enums.card_funding_type'](),
|
|
1878
|
+
installments: factories['io.flow.stripe.v0.models.plan'](),
|
|
1879
|
+
last4: factories.string(),
|
|
1880
|
+
mandate: factories.string(),
|
|
1881
|
+
network: factories['io.flow.stripe.v0.enums.card_network'](),
|
|
1882
|
+
network_token: factories['io.flow.stripe.v0.models.network_token_used'](),
|
|
1883
|
+
three_d_secure: factories['io.flow.stripe.v0.models.three_d_secure_charge'](),
|
|
1884
|
+
capture_before: factories.long(),
|
|
1885
|
+
description: factories.string(),
|
|
1886
|
+
iin: factories.string(),
|
|
1887
|
+
issuer: factories.string(),
|
|
1888
|
+
wallet: factories['io.flow.stripe.v0.unions.card_wallet'](),
|
|
1889
|
+
network_transaction_id: factories.string(),
|
|
1890
|
+
}); },
|
|
1891
|
+
'io.flow.stripe.v0.models.payment_method_details_klarna': function () { return ({
|
|
1892
|
+
type: 'klarna',
|
|
1893
|
+
klarna: factories['io.flow.stripe.v0.models.payment_method_details_klarna_information'](),
|
|
1894
|
+
}); },
|
|
1895
|
+
'io.flow.stripe.v0.models.payment_method_details_klarna_information': function () { return ({
|
|
1896
|
+
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
1897
|
+
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
1898
|
+
}); },
|
|
1646
1899
|
'io.flow.stripe.v0.models.payment_method_form': function () { return ({
|
|
1647
1900
|
type: factories['io.flow.stripe.v0.enums.payment_method_type'](),
|
|
1648
1901
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
@@ -1661,6 +1914,11 @@ var factories = {
|
|
|
1661
1914
|
reason: factories.string(),
|
|
1662
1915
|
type: factories['io.flow.stripe.v0.enums.payment_outcome_type'](),
|
|
1663
1916
|
}); },
|
|
1917
|
+
'io.flow.stripe.v0.models.plan': function () { return ({
|
|
1918
|
+
count: factories.integer(),
|
|
1919
|
+
interval: factories.string(),
|
|
1920
|
+
type: factories.string(),
|
|
1921
|
+
}); },
|
|
1664
1922
|
'io.flow.stripe.v0.models.receiver': function () { return ({
|
|
1665
1923
|
address: factories.string(),
|
|
1666
1924
|
amount_charged: factories.integer(),
|
|
@@ -1861,6 +2119,14 @@ var factories = {
|
|
|
1861
2119
|
card: factories.string(),
|
|
1862
2120
|
customer: factories.string(),
|
|
1863
2121
|
}); },
|
|
2122
|
+
'io.flow.stripe.v0.models.three_d_secure_charge': function () { return ({
|
|
2123
|
+
authenticated: factories.boolean(),
|
|
2124
|
+
authentication_flow: factories['io.flow.stripe.v0.enums.three_ds_authentication_flow'](),
|
|
2125
|
+
result: factories['io.flow.stripe.v0.enums.three_ds_result'](),
|
|
2126
|
+
result_reason: factories['io.flow.stripe.v0.enums.three_ds_result_reason'](),
|
|
2127
|
+
succeeded: factories.boolean(),
|
|
2128
|
+
version: factories.string(),
|
|
2129
|
+
}); },
|
|
1864
2130
|
'io.flow.stripe.v0.models.three_d_secure_redirect': function () { return ({
|
|
1865
2131
|
type: factories['io.flow.stripe.v0.enums.use_stripe_sdk_type'](),
|
|
1866
2132
|
stripe_js: factories.string(),
|
|
@@ -1884,6 +2150,35 @@ var factories = {
|
|
|
1884
2150
|
amount: factories.integer(),
|
|
1885
2151
|
destination: factories.string(),
|
|
1886
2152
|
}); },
|
|
2153
|
+
'io.flow.stripe.v0.models.visa_checkout': function () { return ({
|
|
2154
|
+
type: 'visa_checkout',
|
|
2155
|
+
visa_checkout: factories['io.flow.stripe.v0.models.visa_checkout_information'](),
|
|
2156
|
+
dynamic_last4: factories.string(),
|
|
2157
|
+
}); },
|
|
2158
|
+
'io.flow.stripe.v0.models.visa_checkout_information': function () { return ({
|
|
2159
|
+
billing_address: factories['io.flow.stripe.v0.models.address'](),
|
|
2160
|
+
email: factories.string(),
|
|
2161
|
+
name: factories.string(),
|
|
2162
|
+
shipping_address: factories['io.flow.stripe.v0.models.address'](),
|
|
2163
|
+
}); },
|
|
2164
|
+
'io.flow.stripe.v0.unions.card_wallet': function () {
|
|
2165
|
+
var f = faker.helpers.arrayElement([
|
|
2166
|
+
function () { return factories['io.flow.stripe.v0.models.masterpass'](); },
|
|
2167
|
+
function () { return factories['io.flow.stripe.v0.models.apple_pay'](); },
|
|
2168
|
+
function () { return factories['io.flow.stripe.v0.models.visa_checkout'](); },
|
|
2169
|
+
]);
|
|
2170
|
+
return f();
|
|
2171
|
+
},
|
|
2172
|
+
'io.flow.stripe.v0.unions.payment_method_details': function () {
|
|
2173
|
+
var f = faker.helpers.arrayElement([
|
|
2174
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_details_card'](); },
|
|
2175
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_details_klarna'](); },
|
|
2176
|
+
]);
|
|
2177
|
+
return f();
|
|
2178
|
+
},
|
|
2179
|
+
'io.flow.units.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
2180
|
+
'io.flow.units.v0.enums.unit_of_volume': function () { return faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']); },
|
|
2181
|
+
'io.flow.units.v0.enums.unit_of_weight': function () { return faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']); },
|
|
1887
2182
|
'io.flow.v0.enums.abandoned_order_promotion_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
1888
2183
|
'io.flow.v0.enums.abandoned_order_setting_status': function () { return faker.helpers.arrayElement(['active', 'inactive']); },
|
|
1889
2184
|
'io.flow.v0.enums.address_field_name': function () { return faker.helpers.arrayElement([
|
|
@@ -2068,6 +2363,7 @@ var factories = {
|
|
|
2068
2363
|
'io.flow.v0.enums.environment': function () { return faker.helpers.arrayElement(['sandbox', 'production']); },
|
|
2069
2364
|
'io.flow.v0.enums.event_type': function () { return faker.helpers.arrayElement([
|
|
2070
2365
|
'test_upserted',
|
|
2366
|
+
'generate_load',
|
|
2071
2367
|
'transaction_upserted',
|
|
2072
2368
|
'organization_transaction_upserted',
|
|
2073
2369
|
'organization_transaction_deleted',
|
|
@@ -2525,6 +2821,7 @@ var factories = {
|
|
|
2525
2821
|
'io.flow.v0.enums.organization_payment_method_tag': function () { return faker.helpers.arrayElement(['deny']); },
|
|
2526
2822
|
'io.flow.v0.enums.organization_status': function () { return faker.helpers.arrayElement(['active', 'inactive', 'deactivated', 'provisioned']); },
|
|
2527
2823
|
'io.flow.v0.enums.organization_type': function () { return faker.helpers.arrayElement(['standalone', 'channel']); },
|
|
2824
|
+
'io.flow.v0.enums.package_dimensions_source': function () { return faker.helpers.arrayElement(['provided', 'dimensions_estimated']); },
|
|
2528
2825
|
'io.flow.v0.enums.payment_action_type': function () { return faker.helpers.arrayElement([
|
|
2529
2826
|
'redirect',
|
|
2530
2827
|
'redirect_get',
|
|
@@ -2575,6 +2872,7 @@ var factories = {
|
|
|
2575
2872
|
'order_unsupported_destination',
|
|
2576
2873
|
'order_missing_information',
|
|
2577
2874
|
'order_domestic',
|
|
2875
|
+
'order_mismatched_currencies',
|
|
2578
2876
|
]); },
|
|
2579
2877
|
'io.flow.v0.enums.payment_request_review_status': function () { return faker.helpers.arrayElement(['pending', 'approved', 'rejected']); },
|
|
2580
2878
|
'io.flow.v0.enums.payment_source_confirmation_action_type': function () { return faker.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
@@ -2607,6 +2905,7 @@ var factories = {
|
|
|
2607
2905
|
'io.flow.v0.enums.permitted_http_method': function () { return faker.helpers.arrayElement(['GET', 'POST', 'PUT', 'DELETE', 'PATCH']); },
|
|
2608
2906
|
'io.flow.v0.enums.physical_delivery_special_serivce': function () { return faker.helpers.arrayElement(['cold_storage', 'hazardous', 'perishable']); },
|
|
2609
2907
|
'io.flow.v0.enums.postal_type': function () { return faker.helpers.arrayElement(['eircode', 'pin', 'postal', 'zip']); },
|
|
2908
|
+
'io.flow.v0.enums.preferred_service_selection_strategy': function () { return faker.helpers.arrayElement(['calculated_rate', 'flat_rate', 'custom_rate']); },
|
|
2610
2909
|
'io.flow.v0.enums.price_accuracy': function () { return faker.helpers.arrayElement(['calculated', 'estimated_from_partial_destination']); },
|
|
2611
2910
|
'io.flow.v0.enums.price_book_status': function () { return faker.helpers.arrayElement(['draft', 'published', 'archived']); },
|
|
2612
2911
|
'io.flow.v0.enums.price_detail_component_key': function () { return faker.helpers.arrayElement([
|
|
@@ -2711,6 +3010,7 @@ var factories = {
|
|
|
2711
3010
|
'io.flow.v0.enums.shopify_sync_check': function () { return faker.helpers.arrayElement(['localized_variants', 'flow_variant_metafields']); },
|
|
2712
3011
|
'io.flow.v0.enums.sort_direction': function () { return faker.helpers.arrayElement(['ascending', 'descending']); },
|
|
2713
3012
|
'io.flow.v0.enums.statement_attachment_type': function () { return faker.helpers.arrayElement(['csv']); },
|
|
3013
|
+
'io.flow.v0.enums.stored_method_usage_step': function () { return faker.helpers.arrayElement(['initial', 'subsequent']); },
|
|
2714
3014
|
'io.flow.v0.enums.strategy': function () { return faker.helpers.arrayElement(['range', 'from', 'to']); },
|
|
2715
3015
|
'io.flow.v0.enums.subcatalog_item_status': function () { return faker.helpers.arrayElement(['excluded', 'included', 'restricted']); },
|
|
2716
3016
|
'io.flow.v0.enums.surcharge_responsible_party': function () { return faker.helpers.arrayElement(['organization', 'customer']); },
|
|
@@ -2767,6 +3067,14 @@ var factories = {
|
|
|
2767
3067
|
]); },
|
|
2768
3068
|
'io.flow.v0.enums.trade_agreement_name': function () { return faker.helpers.arrayElement(['USMCA', 'T-MEC', 'CUSMA', 'TCA']); },
|
|
2769
3069
|
'io.flow.v0.enums.trade_agreement_status': function () { return faker.helpers.arrayElement(['supported', 'not_supported']); },
|
|
3070
|
+
'io.flow.v0.enums.transaction_payout_pending_reason': function () { return faker.helpers.arrayElement([
|
|
3071
|
+
'waiting_for_full_refund',
|
|
3072
|
+
'waiting_for_fulfillment',
|
|
3073
|
+
'waiting_for_in_transit',
|
|
3074
|
+
'waiting_for_next_payout_date',
|
|
3075
|
+
'external_fulfillment_missing_tracking_info',
|
|
3076
|
+
'waiting_for_positive_account_balance',
|
|
3077
|
+
]); },
|
|
2770
3078
|
'io.flow.v0.enums.transaction_source': function () { return faker.helpers.arrayElement([
|
|
2771
3079
|
'capture',
|
|
2772
3080
|
'refund',
|
|
@@ -2788,6 +3096,7 @@ var factories = {
|
|
|
2788
3096
|
'virtual_card_capture',
|
|
2789
3097
|
'virtual_card_refund',
|
|
2790
3098
|
]); },
|
|
3099
|
+
'io.flow.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
2791
3100
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
2792
3101
|
'millimeter',
|
|
2793
3102
|
'centimeter',
|
|
@@ -2802,12 +3111,14 @@ var factories = {
|
|
|
2802
3111
|
'pound',
|
|
2803
3112
|
]); },
|
|
2804
3113
|
'io.flow.v0.enums.unit_of_time': function () { return faker.helpers.arrayElement(['year', 'month', 'week', 'day', 'hour', 'minute']); },
|
|
3114
|
+
'io.flow.v0.enums.unit_of_volume': function () { return faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']); },
|
|
3115
|
+
'io.flow.v0.enums.unit_of_weight': function () { return faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']); },
|
|
2805
3116
|
'io.flow.v0.enums.update_policy': function () { return faker.helpers.arrayElement(['auto', 'queue', 'discard']); },
|
|
2806
3117
|
'io.flow.v0.enums.update_type': function () { return faker.helpers.arrayElement(['change', 'set']); },
|
|
2807
3118
|
'io.flow.v0.enums.user_status': function () { return faker.helpers.arrayElement(['pending', 'active', 'inactive']); },
|
|
2808
3119
|
'io.flow.v0.enums.value_added_service': function () { return faker.helpers.arrayElement(['Hazardous Material']); },
|
|
2809
3120
|
'io.flow.v0.enums.visibility': function () { return faker.helpers.arrayElement(['public', 'private']); },
|
|
2810
|
-
'io.flow.v0.enums.webhook_status': function () { return faker.helpers.arrayElement(['pending', 'success', 'failure']); },
|
|
3121
|
+
'io.flow.v0.enums.webhook_status': function () { return faker.helpers.arrayElement(['pending', 'success', 'failure', 'ignored']); },
|
|
2811
3122
|
'io.flow.v0.enums.withholding_deduction_type': function () { return faker.helpers.arrayElement(['tax', 'duty', 'freight', 'insurance']); },
|
|
2812
3123
|
'io.flow.v0.enums.zero_amount_indicator': function () { return faker.helpers.arrayElement(['zero', 'free']); },
|
|
2813
3124
|
'io.flow.v0.enums.zero_levy_reason_code': function () { return faker.helpers.arrayElement([
|
|
@@ -3718,6 +4029,8 @@ var factories = {
|
|
|
3718
4029
|
expires_at: factories.date_time_iso_8601(),
|
|
3719
4030
|
base: factories['io.flow.v0.models.money'](),
|
|
3720
4031
|
processor: factories['io.flow.v0.unions.expandable_payment_processor'](),
|
|
4032
|
+
stored_method_usage_step: factories['io.flow.v0.enums.stored_method_usage_step'](),
|
|
4033
|
+
authorized_at: factories.date_time_iso_8601(),
|
|
3721
4034
|
}); },
|
|
3722
4035
|
'io.flow.v0.models.card_authorization_deleted_v2': function () { return ({
|
|
3723
4036
|
discriminator: 'card_authorization_deleted_v2',
|
|
@@ -4200,6 +4513,7 @@ var factories = {
|
|
|
4200
4513
|
'io.flow.v0.models.channel_transaction': function () { return ({
|
|
4201
4514
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
4202
4515
|
id: factories.string(),
|
|
4516
|
+
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
4203
4517
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
4204
4518
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
4205
4519
|
currency: factories.string(),
|
|
@@ -4228,6 +4542,11 @@ var factories = {
|
|
|
4228
4542
|
channel_id: factories.string(),
|
|
4229
4543
|
id: factories.string(),
|
|
4230
4544
|
}); },
|
|
4545
|
+
'io.flow.v0.models.channel_transaction_payout': function () { return ({
|
|
4546
|
+
transaction: factories['io.flow.v0.models.transaction_reference'](),
|
|
4547
|
+
waiting_for: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
4548
|
+
payout: factories['io.flow.v0.models.payout_reference'](),
|
|
4549
|
+
}); },
|
|
4231
4550
|
'io.flow.v0.models.channel_transaction_upserted': function () { return ({
|
|
4232
4551
|
discriminator: 'channel_transaction_upserted',
|
|
4233
4552
|
event_id: factories.string(),
|
|
@@ -4508,6 +4827,12 @@ var factories = {
|
|
|
4508
4827
|
currency: factories.string(),
|
|
4509
4828
|
language: factories.string(),
|
|
4510
4829
|
}); },
|
|
4830
|
+
'io.flow.v0.models.country_of_origin': function () { return ({
|
|
4831
|
+
country: factories['io.flow.v0.models.country'](),
|
|
4832
|
+
}); },
|
|
4833
|
+
'io.flow.v0.models.country_of_origin_form': function () { return ({
|
|
4834
|
+
country: factories.string(),
|
|
4835
|
+
}); },
|
|
4511
4836
|
'io.flow.v0.models.country_picker': function () { return ({
|
|
4512
4837
|
id: factories.string(),
|
|
4513
4838
|
source: factories['io.flow.v0.enums.country_picker_source'](),
|
|
@@ -4802,6 +5127,9 @@ var factories = {
|
|
|
4802
5127
|
discriminator: 'ddp_ratecard_fee',
|
|
4803
5128
|
amount: factories.decimal(),
|
|
4804
5129
|
}); },
|
|
5130
|
+
'io.flow.v0.models.deactivation_put_form': function () { return ({
|
|
5131
|
+
reason: factories.string(),
|
|
5132
|
+
}); },
|
|
4805
5133
|
'io.flow.v0.models.default_bank_account_form': function () { return ({
|
|
4806
5134
|
bank_account_id: factories.string(),
|
|
4807
5135
|
}); },
|
|
@@ -4932,6 +5260,7 @@ var factories = {
|
|
|
4932
5260
|
order_number: factories.string(),
|
|
4933
5261
|
service: factories.string(),
|
|
4934
5262
|
shipment_recipient: factories['io.flow.v0.enums.shipment_recipient'](),
|
|
5263
|
+
package_dimensions_source: factories['io.flow.v0.enums.package_dimensions_source'](),
|
|
4935
5264
|
}); },
|
|
4936
5265
|
'io.flow.v0.models.detailed_shipping_notification_form': function () { return ({
|
|
4937
5266
|
discriminator: 'detailed_shipping_notification_form',
|
|
@@ -5792,6 +6121,14 @@ var factories = {
|
|
|
5792
6121
|
hs6_code: factories.string(),
|
|
5793
6122
|
landed_costs: arrayOf(function () { return factories['io.flow.v0.models.lane_landed_cost'](); }),
|
|
5794
6123
|
}); },
|
|
6124
|
+
'io.flow.v0.models.generate_load': function () { return ({
|
|
6125
|
+
discriminator: 'generate_load',
|
|
6126
|
+
event_id: factories.string(),
|
|
6127
|
+
timestamp: factories.date_time_iso_8601(),
|
|
6128
|
+
organization: factories.string(),
|
|
6129
|
+
test_name: factories.string(),
|
|
6130
|
+
num_tests: factories.integer(),
|
|
6131
|
+
}); },
|
|
5795
6132
|
'io.flow.v0.models.generic_error': function () { return ({
|
|
5796
6133
|
code: factories['io.flow.v0.enums.generic_error_code'](),
|
|
5797
6134
|
messages: arrayOf(function () { return factories.string(); }),
|
|
@@ -6485,6 +6822,8 @@ var factories = {
|
|
|
6485
6822
|
'io.flow.v0.models.know_your_business_usa': function () { return ({
|
|
6486
6823
|
discriminator: 'know_your_business_usa',
|
|
6487
6824
|
id: factories.string(),
|
|
6825
|
+
organization_id: factories.string(),
|
|
6826
|
+
shop: factories['io.flow.v0.models.shop'](),
|
|
6488
6827
|
primary_entity: factories['io.flow.v0.unions.entity'](),
|
|
6489
6828
|
parent_company: factories['io.flow.v0.models.company'](),
|
|
6490
6829
|
ultimate_parent_company: factories['io.flow.v0.models.company'](),
|
|
@@ -6545,6 +6884,7 @@ var factories = {
|
|
|
6545
6884
|
label: factories['io.flow.v0.models.label_reference'](),
|
|
6546
6885
|
in_transit: factories['io.flow.v0.models.label_tracking_summary_update'](),
|
|
6547
6886
|
delivered: factories['io.flow.v0.models.label_tracking_summary_update'](),
|
|
6887
|
+
rejected: factories['io.flow.v0.models.label_tracking_summary_update'](),
|
|
6548
6888
|
}); },
|
|
6549
6889
|
'io.flow.v0.models.label_tracking_summary_update': function () { return ({
|
|
6550
6890
|
timestamp: factories.date_time_iso_8601(),
|
|
@@ -6900,6 +7240,10 @@ var factories = {
|
|
|
6900
7240
|
timestamp: factories.date_time_iso_8601(),
|
|
6901
7241
|
merchant_application: factories['io.flow.v0.unions.merchant_application'](),
|
|
6902
7242
|
}); },
|
|
7243
|
+
'io.flow.v0.models.merchant_deactivated': function () { return ({
|
|
7244
|
+
discriminator: 'merchant_deactivated',
|
|
7245
|
+
reason: factories.string(),
|
|
7246
|
+
}); },
|
|
6903
7247
|
'io.flow.v0.models.merchant_gift_card_balance': function () { return ({
|
|
6904
7248
|
amount: factories.decimal(),
|
|
6905
7249
|
currency: factories.string(),
|
|
@@ -7091,6 +7435,7 @@ var factories = {
|
|
|
7091
7435
|
base: factories['io.flow.v0.models.money'](),
|
|
7092
7436
|
processor: factories['io.flow.v0.unions.expandable_payment_processor'](),
|
|
7093
7437
|
confirmation_details: factories['io.flow.v0.unions.confirmation_details'](),
|
|
7438
|
+
authorized_at: factories.date_time_iso_8601(),
|
|
7094
7439
|
}); },
|
|
7095
7440
|
'io.flow.v0.models.online_authorization_deleted_v2': function () { return ({
|
|
7096
7441
|
discriminator: 'online_authorization_deleted_v2',
|
|
@@ -7113,7 +7458,6 @@ var factories = {
|
|
|
7113
7458
|
key: factories.string(),
|
|
7114
7459
|
}); },
|
|
7115
7460
|
'io.flow.v0.models.operations_contact': function () { return ({
|
|
7116
|
-
full_name: factories.string(),
|
|
7117
7461
|
company: factories.string(),
|
|
7118
7462
|
email: factories.string(),
|
|
7119
7463
|
phone: factories.string(),
|
|
@@ -7872,6 +8216,7 @@ var factories = {
|
|
|
7872
8216
|
time_blocked: factories.long(),
|
|
7873
8217
|
blocked_since: factories.date_time_iso_8601(),
|
|
7874
8218
|
completed_at: factories.date_time_iso_8601(),
|
|
8219
|
+
onboarding_started_at: factories.date_time_iso_8601(),
|
|
7875
8220
|
}); },
|
|
7876
8221
|
'io.flow.v0.models.organization_onboarding_state_deleted': function () { return ({
|
|
7877
8222
|
discriminator: 'organization_onboarding_state_deleted',
|
|
@@ -8006,6 +8351,11 @@ var factories = {
|
|
|
8006
8351
|
organization: factories.string(),
|
|
8007
8352
|
id: factories.string(),
|
|
8008
8353
|
}); },
|
|
8354
|
+
'io.flow.v0.models.organization_transaction_payout': function () { return ({
|
|
8355
|
+
transaction: factories['io.flow.v0.models.transaction_reference'](),
|
|
8356
|
+
waiting_for: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
8357
|
+
payout: factories['io.flow.v0.models.payout_reference'](),
|
|
8358
|
+
}); },
|
|
8009
8359
|
'io.flow.v0.models.organization_transaction_upserted': function () { return ({
|
|
8010
8360
|
discriminator: 'organization_transaction_upserted',
|
|
8011
8361
|
event_id: factories.string(),
|
|
@@ -8048,12 +8398,27 @@ var factories = {
|
|
|
8048
8398
|
discriminator: 'outbound_carton_fee',
|
|
8049
8399
|
amount: factories['io.flow.v0.models.money'](),
|
|
8050
8400
|
}); },
|
|
8051
|
-
'io.flow.v0.models.
|
|
8052
|
-
discriminator: '
|
|
8401
|
+
'io.flow.v0.models.oversize_piece_surcharge_ratecard_fee': function () { return ({
|
|
8402
|
+
discriminator: 'oversize_piece_surcharge_ratecard_fee',
|
|
8403
|
+
dimensional_threshold: factories.decimal(),
|
|
8404
|
+
dimensional_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
8053
8405
|
weight_threshold: factories.decimal(),
|
|
8054
8406
|
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
8055
|
-
|
|
8056
|
-
|
|
8407
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
8408
|
+
}); },
|
|
8409
|
+
'io.flow.v0.models.oversize_piece_surcharge_service_fee': function () { return ({
|
|
8410
|
+
discriminator: 'oversize_piece_surcharge_service_fee',
|
|
8411
|
+
dimensional_threshold: factories.decimal(),
|
|
8412
|
+
dimensional_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
8413
|
+
weight_threshold: factories.decimal(),
|
|
8414
|
+
weight_unit: factories['io.flow.v0.enums.unit_of_measurement'](),
|
|
8415
|
+
amount: factories['io.flow.v0.models.money'](),
|
|
8416
|
+
}); },
|
|
8417
|
+
'io.flow.v0.models.package_dimensions': function () { return ({
|
|
8418
|
+
dimensions: arrayOf(function () { return factories['io.flow.v0.models.dimension'](); }),
|
|
8419
|
+
}); },
|
|
8420
|
+
'io.flow.v0.models.package_dimensions_form': function () { return ({
|
|
8421
|
+
dimensions: arrayOf(function () { return factories['io.flow.v0.models.dimension'](); }),
|
|
8057
8422
|
}); },
|
|
8058
8423
|
'io.flow.v0.models.packaging': function () { return ({
|
|
8059
8424
|
dimensions: factories['io.flow.v0.models.dimensions'](),
|
|
@@ -8623,6 +8988,9 @@ var factories = {
|
|
|
8623
8988
|
type: factories['io.flow.v0.enums.payout_attachment_type'](),
|
|
8624
8989
|
url: factories.string(),
|
|
8625
8990
|
}); },
|
|
8991
|
+
'io.flow.v0.models.payout_reference': function () { return ({
|
|
8992
|
+
id: factories.string(),
|
|
8993
|
+
}); },
|
|
8626
8994
|
'io.flow.v0.models.payout_status_failed': function () { return ({
|
|
8627
8995
|
code: 'failed',
|
|
8628
8996
|
timestamp: factories.date_time_iso_8601(),
|
|
@@ -8638,6 +9006,7 @@ var factories = {
|
|
|
8638
9006
|
}); },
|
|
8639
9007
|
'io.flow.v0.models.payout_transaction': function () { return ({
|
|
8640
9008
|
id: factories.string(),
|
|
9009
|
+
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
8641
9010
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
8642
9011
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
8643
9012
|
currency: factories.string(),
|
|
@@ -8734,6 +9103,11 @@ var factories = {
|
|
|
8734
9103
|
total: factories['io.flow.v0.models.localized_total'](),
|
|
8735
9104
|
goods_supply: factories['io.flow.v0.enums.goods_supply'](),
|
|
8736
9105
|
merchant_of_record_flow_entity: factories['io.flow.v0.enums.flow_entity'](),
|
|
9106
|
+
preferred_service: factories['io.flow.v0.models.physical_delivery_preferred_service'](),
|
|
9107
|
+
}); },
|
|
9108
|
+
'io.flow.v0.models.physical_delivery_preferred_service': function () { return ({
|
|
9109
|
+
id: factories.string(),
|
|
9110
|
+
selection_stratey: factories['io.flow.v0.enums.preferred_service_selection_strategy'](),
|
|
8737
9111
|
}); },
|
|
8738
9112
|
'io.flow.v0.models.post_payment_redirect_urls': function () { return ({
|
|
8739
9113
|
success: factories.string(),
|
|
@@ -9120,12 +9494,16 @@ var factories = {
|
|
|
9120
9494
|
'io.flow.v0.models.ratecard': function () { return ({
|
|
9121
9495
|
id: factories.string(),
|
|
9122
9496
|
number: factories.string(),
|
|
9497
|
+
rate_level_key: factories.string(),
|
|
9123
9498
|
direction: factories['io.flow.v0.enums.direction'](),
|
|
9124
9499
|
effective_at: factories.date_time_iso_8601(),
|
|
9125
9500
|
origination_zones: arrayOf(function () { return factories['io.flow.v0.models.zone'](); }),
|
|
9126
9501
|
service: factories['io.flow.v0.models.ratecard_service_summary'](),
|
|
9127
9502
|
published_at: factories.date_time_iso_8601(),
|
|
9128
9503
|
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
9504
|
+
glbe_shipping_method_id: factories.string(),
|
|
9505
|
+
glbe_proposition_name: factories.string(),
|
|
9506
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
9129
9507
|
}); },
|
|
9130
9508
|
'io.flow.v0.models.ratecard_carrier_summary': function () { return ({
|
|
9131
9509
|
id: factories.string(),
|
|
@@ -9196,6 +9574,10 @@ var factories = {
|
|
|
9196
9574
|
dimensional_weight: factories['io.flow.v0.models.measurement'](),
|
|
9197
9575
|
gravitational_weight: factories['io.flow.v0.models.measurement'](),
|
|
9198
9576
|
ratecard_id: factories.string(),
|
|
9577
|
+
glbe_shipping_method_id: factories.string(),
|
|
9578
|
+
glbe_proposition_name: factories.string(),
|
|
9579
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
9580
|
+
rate_level_key: factories.string(),
|
|
9199
9581
|
line_items: arrayOf(function () { return factories['io.flow.v0.models.line_item_form'](); }),
|
|
9200
9582
|
}); },
|
|
9201
9583
|
'io.flow.v0.models.ratecard_form': function () { return ({
|
|
@@ -9204,7 +9586,12 @@ var factories = {
|
|
|
9204
9586
|
origination_zones: arrayOf(function () { return factories['io.flow.v0.models.zone'](); }),
|
|
9205
9587
|
service: factories.string(),
|
|
9206
9588
|
number: factories.string(),
|
|
9589
|
+
rate_level_key: factories.string(),
|
|
9207
9590
|
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
9591
|
+
glbe_shipping_method_id: factories.string(),
|
|
9592
|
+
glbe_proposition_name: factories.string(),
|
|
9593
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
9594
|
+
data: objectOf(function () { return factories.string(); }),
|
|
9208
9595
|
}); },
|
|
9209
9596
|
'io.flow.v0.models.ratecard_lane': function () { return ({
|
|
9210
9597
|
id: factories.string(),
|
|
@@ -10002,6 +10389,9 @@ var factories = {
|
|
|
10002
10389
|
carrier_tracking_number_url: factories.string(),
|
|
10003
10390
|
cost_estimate_source: factories['io.flow.v0.enums.cost_estimate_source'](),
|
|
10004
10391
|
cost: factories['io.flow.v0.models.price'](),
|
|
10392
|
+
delivered_duty: factories['io.flow.v0.enums.delivered_duty'](),
|
|
10393
|
+
taxes_owed: factories['io.flow.v0.models.money'](),
|
|
10394
|
+
duties_owed: factories['io.flow.v0.models.money'](),
|
|
10005
10395
|
destination: factories['io.flow.v0.models.shipping_address'](),
|
|
10006
10396
|
flow_tracking_number: factories.string(),
|
|
10007
10397
|
flow_tracking_number_url: factories.string(),
|
|
@@ -10013,6 +10403,7 @@ var factories = {
|
|
|
10013
10403
|
'return': factories['io.flow.v0.models.shipping_label_document'](),
|
|
10014
10404
|
order: factories['io.flow.v0.models.label_order_summary'](),
|
|
10015
10405
|
'package': factories['io.flow.v0.models.shipping_label_package'](),
|
|
10406
|
+
package_dimension_source: factories['io.flow.v0.enums.package_dimensions_source'](),
|
|
10016
10407
|
order_identifier: factories.string(),
|
|
10017
10408
|
fulfillment_key: factories.string(),
|
|
10018
10409
|
shipment_recipient: factories['io.flow.v0.enums.shipment_recipient'](),
|
|
@@ -10030,9 +10421,15 @@ var factories = {
|
|
|
10030
10421
|
html: factories.string(),
|
|
10031
10422
|
required: factories.boolean(),
|
|
10032
10423
|
}); },
|
|
10424
|
+
'io.flow.v0.models.shipping_label_hop_cost_itemized_estimate': function () { return ({
|
|
10425
|
+
units: factories['io.flow.billing.true.up.v0.models.label_units'](),
|
|
10426
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
10427
|
+
surcharges: arrayOf(function () { return factories['io.flow.billing.true.up.v0.models.label_surcharge'](); }),
|
|
10428
|
+
}); },
|
|
10033
10429
|
'io.flow.v0.models.shipping_label_hop_summary': function () { return ({
|
|
10034
10430
|
lane: factories['io.flow.v0.models.shipping_label_lane_summary'](),
|
|
10035
10431
|
cost: factories['io.flow.v0.models.money'](),
|
|
10432
|
+
itemized_estimate: factories['io.flow.v0.models.shipping_label_hop_cost_itemized_estimate'](),
|
|
10036
10433
|
}); },
|
|
10037
10434
|
'io.flow.v0.models.shipping_label_lane_summary': function () { return ({
|
|
10038
10435
|
id: factories.string(),
|
|
@@ -10040,12 +10437,18 @@ var factories = {
|
|
|
10040
10437
|
}); },
|
|
10041
10438
|
'io.flow.v0.models.shipping_label_package': function () { return ({
|
|
10042
10439
|
dimensions: factories['io.flow.v0.models.dimension'](),
|
|
10440
|
+
volumetric_weight: factories.decimal(),
|
|
10043
10441
|
items: arrayOf(function () { return factories['io.flow.v0.models.line_item_form'](); }),
|
|
10044
10442
|
reference_number: factories.string(),
|
|
10045
10443
|
}); },
|
|
10046
10444
|
'io.flow.v0.models.shipping_label_ratecard_summary': function () { return ({
|
|
10047
10445
|
id: factories.string(),
|
|
10048
10446
|
ratecard_owner: factories['io.flow.v0.enums.ratecard_owner'](),
|
|
10447
|
+
rate_level_key: factories.string(),
|
|
10448
|
+
glbe_shipping_method_id: factories.string(),
|
|
10449
|
+
glbe_proposition_name: factories.string(),
|
|
10450
|
+
channel_revenue_share_percentage: factories.decimal(),
|
|
10451
|
+
shopify_grc_gid: factories.string(),
|
|
10049
10452
|
}); },
|
|
10050
10453
|
'io.flow.v0.models.shipping_label_summary': function () { return ({
|
|
10051
10454
|
id: factories.string(),
|
|
@@ -10304,7 +10707,6 @@ var factories = {
|
|
|
10304
10707
|
status: factories['io.flow.v0.enums.onboarding_application_status'](),
|
|
10305
10708
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
10306
10709
|
indirect_tax: factories['io.flow.v0.models.indirect_tax'](),
|
|
10307
|
-
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
10308
10710
|
beneficiary: factories.string(),
|
|
10309
10711
|
ultimate_beneficiary_owner: factories['io.flow.v0.models.ultimate_beneficiary_owner'](),
|
|
10310
10712
|
business_url: factories.string(),
|
|
@@ -10314,30 +10716,29 @@ var factories = {
|
|
|
10314
10716
|
chargeback_percentage: factories.decimal(),
|
|
10315
10717
|
bank_account_number: factories.string(),
|
|
10316
10718
|
aba_routing_transit_number: factories.string(),
|
|
10317
|
-
trade_sectors: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_trade_sector'](); }),
|
|
10318
10719
|
other_trade_sector: factories.string(),
|
|
10319
10720
|
third_party_logistics_partners: arrayOf(function () { return factories['io.flow.v0.models.third_party_logistics_partner'](); }),
|
|
10721
|
+
center_contact: factories['io.flow.v0.models.operations_contact'](),
|
|
10320
10722
|
average_order_weight: factories.decimal(),
|
|
10321
10723
|
package_dimensions: arrayOf(function () { return factories['io.flow.v0.models.dimension'](); }),
|
|
10322
10724
|
monthly_average: factories['io.flow.v0.models.monthly_average'](),
|
|
10323
|
-
dangerous_goods: factories.boolean(),
|
|
10324
10725
|
default_country_of_origin: factories.string(),
|
|
10325
10726
|
ratecard: factories['io.flow.v0.models.ratecard_reference'](),
|
|
10326
10727
|
rate_card: factories.string(),
|
|
10327
10728
|
created_at: factories.date_time_iso_8601(),
|
|
10328
10729
|
activated_at: factories.date_time_iso_8601(),
|
|
10329
10730
|
status_updated_at: factories.date_time_iso_8601(),
|
|
10330
|
-
logistics_format: factories['io.flow.v0.models.logistics_format'](),
|
|
10331
10731
|
shop: factories['io.flow.v0.models.shop'](),
|
|
10332
10732
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
10333
10733
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
10334
10734
|
average_order_value: factories['io.flow.v0.models.money'](),
|
|
10735
|
+
glbe_merchant_guid: factories.string(),
|
|
10736
|
+
mcc_codes: arrayOf(function () { return factories.long(); }),
|
|
10335
10737
|
}); },
|
|
10336
10738
|
'io.flow.v0.models.shopify_merchant_application_form': function () { return ({
|
|
10337
10739
|
discriminator: 'shopify_merchant_application_form',
|
|
10338
10740
|
company: factories['io.flow.v0.models.merchant_info'](),
|
|
10339
10741
|
indirect_tax: factories['io.flow.v0.models.indirect_tax'](),
|
|
10340
|
-
parent_company: factories['io.flow.v0.models.merchant_info'](),
|
|
10341
10742
|
beneficiary: factories.string(),
|
|
10342
10743
|
ultimate_beneficiary_owner: factories['io.flow.v0.models.ultimate_beneficiary_owner'](),
|
|
10343
10744
|
business_url: factories.string(),
|
|
@@ -10347,23 +10748,22 @@ var factories = {
|
|
|
10347
10748
|
chargeback_percentage: factories.decimal(),
|
|
10348
10749
|
bank_account_number: factories.string(),
|
|
10349
10750
|
aba_routing_transit_number: factories.string(),
|
|
10350
|
-
trade_sectors: arrayOf(function () { return factories['io.flow.v0.enums.onboarding_trade_sector'](); }),
|
|
10351
10751
|
other_trade_sector: factories.string(),
|
|
10352
10752
|
third_party_logistics_partners: arrayOf(function () { return factories['io.flow.v0.models.third_party_logistics_partner'](); }),
|
|
10753
|
+
center_contact: factories['io.flow.v0.models.operations_contact'](),
|
|
10353
10754
|
average_order_weight: factories.decimal(),
|
|
10354
10755
|
package_dimensions: arrayOf(function () { return factories['io.flow.v0.models.dimension'](); }),
|
|
10355
10756
|
monthly_average_volume_amount: factories.decimal(),
|
|
10356
10757
|
monthly_average_volume_currency: factories.string(),
|
|
10357
10758
|
monthly_average_number_transactions: factories.long(),
|
|
10358
|
-
dangerous_goods: factories.boolean(),
|
|
10359
10759
|
default_country_of_origin: factories.string(),
|
|
10360
10760
|
ratecard_id: factories.string(),
|
|
10361
10761
|
rate_card: factories.string(),
|
|
10362
|
-
logistics_format: factories['io.flow.v0.models.logistics_format'](),
|
|
10363
10762
|
shop: factories['io.flow.v0.models.shop'](),
|
|
10364
10763
|
last_year_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
10365
10764
|
last_month_xborder_gmv: factories['io.flow.v0.models.money'](),
|
|
10366
10765
|
average_order_value: factories['io.flow.v0.models.money'](),
|
|
10766
|
+
mcc_codes: arrayOf(function () { return factories.long(); }),
|
|
10367
10767
|
}); },
|
|
10368
10768
|
'io.flow.v0.models.shopify_merchant_application_put_form': function () { return ({
|
|
10369
10769
|
discriminator: 'shopify_merchant_application_put_form',
|
|
@@ -10793,15 +11193,11 @@ var factories = {
|
|
|
10793
11193
|
types: arrayOf(function () { return factories['io.flow.v0.enums.tax_report_type'](); }),
|
|
10794
11194
|
email_recipients: arrayOf(function () { return factories.string(); }),
|
|
10795
11195
|
}); },
|
|
10796
|
-
'io.flow.v0.models.test': function () { return ({
|
|
10797
|
-
id: factories.string(),
|
|
10798
|
-
}); },
|
|
10799
11196
|
'io.flow.v0.models.test_upserted': function () { return ({
|
|
10800
11197
|
discriminator: 'test_upserted',
|
|
10801
11198
|
event_id: factories.string(),
|
|
10802
11199
|
timestamp: factories.date_time_iso_8601(),
|
|
10803
|
-
|
|
10804
|
-
test: factories['io.flow.v0.models.test'](),
|
|
11200
|
+
test: factories['io.flow.ben.test.internal.v0.models.test'](),
|
|
10805
11201
|
}); },
|
|
10806
11202
|
'io.flow.v0.models.third_party_logistics_partner': function () { return ({
|
|
10807
11203
|
warehouse_address: factories['io.flow.v0.models.merchant_onboarding_address'](),
|
|
@@ -11086,6 +11482,7 @@ var factories = {
|
|
|
11086
11482
|
'io.flow.v0.models.transaction': function () { return ({
|
|
11087
11483
|
statement: factories['io.flow.v0.models.billing_channel_statement_reference'](),
|
|
11088
11484
|
id: factories.string(),
|
|
11485
|
+
metadata: factories['io.flow.v0.unions.transaction_metadata'](),
|
|
11089
11486
|
order: factories['io.flow.v0.models.billing_channel_order_summary'](),
|
|
11090
11487
|
payment_request: factories['io.flow.v0.models.billing_channel_payment_request_reference'](),
|
|
11091
11488
|
currency: factories.string(),
|
|
@@ -11106,10 +11503,17 @@ var factories = {
|
|
|
11106
11503
|
cvv_result: factories['io.flow.v0.models.cvv_result'](),
|
|
11107
11504
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
11108
11505
|
}); },
|
|
11506
|
+
'io.flow.v0.models.transaction_metadata_shipping_label': function () { return ({
|
|
11507
|
+
discriminator: 'shipping_label',
|
|
11508
|
+
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
11509
|
+
}); },
|
|
11109
11510
|
'io.flow.v0.models.transaction_network_details_card': function () { return ({
|
|
11110
11511
|
network_transaction_id: factories.string(),
|
|
11111
11512
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
11112
11513
|
}); },
|
|
11514
|
+
'io.flow.v0.models.transaction_reference': function () { return ({
|
|
11515
|
+
id: factories.string(),
|
|
11516
|
+
}); },
|
|
11113
11517
|
'io.flow.v0.models.transaction_upserted': function () { return ({
|
|
11114
11518
|
discriminator: 'transaction_upserted',
|
|
11115
11519
|
event_id: factories.string(),
|
|
@@ -11543,6 +11947,7 @@ var factories = {
|
|
|
11543
11947
|
'io.flow.v0.unions.event': function () {
|
|
11544
11948
|
var f = faker.helpers.arrayElement([
|
|
11545
11949
|
function () { return factories['io.flow.v0.models.test_upserted'](); },
|
|
11950
|
+
function () { return factories['io.flow.v0.models.generate_load'](); },
|
|
11546
11951
|
function () { return factories['io.flow.v0.models.transaction_upserted'](); },
|
|
11547
11952
|
function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); },
|
|
11548
11953
|
function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); },
|
|
@@ -11919,6 +12324,7 @@ var factories = {
|
|
|
11919
12324
|
function () { return factories['io.flow.v0.models.setup_blocked'](); },
|
|
11920
12325
|
function () { return factories['io.flow.v0.models.setup_completed'](); },
|
|
11921
12326
|
function () { return factories['io.flow.v0.models.merchant_activated'](); },
|
|
12327
|
+
function () { return factories['io.flow.v0.models.merchant_deactivated'](); },
|
|
11922
12328
|
]);
|
|
11923
12329
|
return f();
|
|
11924
12330
|
},
|
|
@@ -12146,7 +12552,7 @@ var factories = {
|
|
|
12146
12552
|
var f = faker.helpers.arrayElement([
|
|
12147
12553
|
function () { return factories['io.flow.v0.models.ddp_ratecard_fee'](); },
|
|
12148
12554
|
function () { return factories['io.flow.v0.models.fuel_surcharge_ratecard_fee'](); },
|
|
12149
|
-
function () { return factories['io.flow.v0.models.
|
|
12555
|
+
function () { return factories['io.flow.v0.models.oversize_piece_surcharge_ratecard_fee'](); },
|
|
12150
12556
|
function () { return factories['io.flow.v0.models.return_package_ratecard_fee'](); },
|
|
12151
12557
|
function () { return factories['io.flow.v0.models.crossdock_ratecard_fee'](); },
|
|
12152
12558
|
function () { return factories['io.flow.v0.models.remote_area_ratecard_fee'](); },
|
|
@@ -12203,6 +12609,7 @@ var factories = {
|
|
|
12203
12609
|
function () { return factories['io.flow.v0.models.peak_surcharge_service_fee'](); },
|
|
12204
12610
|
function () { return factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee'](); },
|
|
12205
12611
|
function () { return factories['io.flow.v0.models.duties_taxes_paid_surcharge_service_fee'](); },
|
|
12612
|
+
function () { return factories['io.flow.v0.models.oversize_piece_surcharge_service_fee'](); },
|
|
12206
12613
|
]);
|
|
12207
12614
|
return f();
|
|
12208
12615
|
},
|
|
@@ -12307,6 +12714,10 @@ var factories = {
|
|
|
12307
12714
|
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.transaction_details_card'](); }]);
|
|
12308
12715
|
return f();
|
|
12309
12716
|
},
|
|
12717
|
+
'io.flow.v0.unions.transaction_metadata': function () {
|
|
12718
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); }]);
|
|
12719
|
+
return f();
|
|
12720
|
+
},
|
|
12310
12721
|
};
|
|
12311
12722
|
export var makeAbandonedOrderEmailSettings = function () { return factories['io.flow.v0.models.abandoned_order_email_settings'](); };
|
|
12312
12723
|
export var makeAbandonedOrderPromotion = function () { return factories['io.flow.v0.models.abandoned_order_promotion'](); };
|
|
@@ -12570,6 +12981,7 @@ export var makeChannelTokenReference = function () { return factories['io.flow.v
|
|
|
12570
12981
|
export var makeChannelTransaction = function () { return factories['io.flow.v0.models.channel_transaction'](); };
|
|
12571
12982
|
export var makeChannelTransactionDeleted = function () { return factories['io.flow.v0.models.channel_transaction_deleted'](); };
|
|
12572
12983
|
export var makeChannelTransactionDeletedV2 = function () { return factories['io.flow.v0.models.channel_transaction_deleted_v2'](); };
|
|
12984
|
+
export var makeChannelTransactionPayout = function () { return factories['io.flow.v0.models.channel_transaction_payout'](); };
|
|
12573
12985
|
export var makeChannelTransactionUpserted = function () { return factories['io.flow.v0.models.channel_transaction_upserted'](); };
|
|
12574
12986
|
export var makeChannelUpserted = function () { return factories['io.flow.v0.models.channel_upserted'](); };
|
|
12575
12987
|
export var makeChannelViesRegistration = function () { return factories['io.flow.v0.models.channel_vies_registration'](); };
|
|
@@ -12623,6 +13035,8 @@ export var makeCostEstimateSource = function () { return factories['io.flow.v0.e
|
|
|
12623
13035
|
export var makeCountry = function () { return factories['io.flow.v0.models.country'](); };
|
|
12624
13036
|
export var makeCountryAvailability = function () { return factories['io.flow.v0.models.country_availability'](); };
|
|
12625
13037
|
export var makeCountryDefaults = function () { return factories['io.flow.v0.models.country_defaults'](); };
|
|
13038
|
+
export var makeCountryOfOrigin = function () { return factories['io.flow.v0.models.country_of_origin'](); };
|
|
13039
|
+
export var makeCountryOfOriginForm = function () { return factories['io.flow.v0.models.country_of_origin_form'](); };
|
|
12626
13040
|
export var makeCountryPicker = function () { return factories['io.flow.v0.models.country_picker'](); };
|
|
12627
13041
|
export var makeCountryPickerForm = function () { return factories['io.flow.v0.models.country_picker_form'](); };
|
|
12628
13042
|
export var makeCountryPickerSource = function () { return factories['io.flow.v0.enums.country_picker_source'](); };
|
|
@@ -12684,6 +13098,7 @@ export var makeDatetimeRange = function () { return factories['io.flow.v0.models
|
|
|
12684
13098
|
export var makeDatetimeWithTimezone = function () { return factories['io.flow.v0.models.datetime_with_timezone'](); };
|
|
12685
13099
|
export var makeDayOfWeek = function () { return factories['io.flow.v0.enums.day_of_week'](); };
|
|
12686
13100
|
export var makeDdpRatecardFee = function () { return factories['io.flow.v0.models.ddp_ratecard_fee'](); };
|
|
13101
|
+
export var makeDeactivationPutForm = function () { return factories['io.flow.v0.models.deactivation_put_form'](); };
|
|
12687
13102
|
export var makeDefaultBankAccountForm = function () { return factories['io.flow.v0.models.default_bank_account_form'](); };
|
|
12688
13103
|
export var makeDeliveredDuty = function () { return factories['io.flow.v0.enums.delivered_duty'](); };
|
|
12689
13104
|
export var makeDeliveredDutyDisplayType = function () { return factories['io.flow.v0.enums.delivered_duty_display_type'](); };
|
|
@@ -12913,6 +13328,7 @@ export var makeFulfillmentRouting = function () { return factories['io.flow.v0.e
|
|
|
12913
13328
|
export var makeFullyHarmonizedItemUpserted = function () { return factories['io.flow.v0.models.fully_harmonized_item_upserted'](); };
|
|
12914
13329
|
export var makeGatewayAuthenticationData = function () { return factories['io.flow.v0.unions.gateway_authentication_data'](); };
|
|
12915
13330
|
export var makeGatewayAuthenticationDataForm = function () { return factories['io.flow.v0.unions.gateway_authentication_data_form'](); };
|
|
13331
|
+
export var makeGenerateLoad = function () { return factories['io.flow.v0.models.generate_load'](); };
|
|
12916
13332
|
export var makeGenericError = function () { return factories['io.flow.v0.models.generic_error'](); };
|
|
12917
13333
|
export var makeGenericErrorCode = function () { return factories['io.flow.v0.enums.generic_error_code'](); };
|
|
12918
13334
|
export var makeGenericReservationError = function () { return factories['io.flow.v0.models.generic_reservation_error'](); };
|
|
@@ -13127,6 +13543,7 @@ export var makeMerchantApplicationForm = function () { return factories['io.flow
|
|
|
13127
13543
|
export var makeMerchantApplicationPutForm = function () { return factories['io.flow.v0.unions.merchant_application_put_form'](); };
|
|
13128
13544
|
export var makeMerchantApplicationUpserted = function () { return factories['io.flow.v0.models.merchant_application_upserted'](); };
|
|
13129
13545
|
export var makeMerchantApplicationsSummary = function () { return factories['io.flow.v0.unions.merchant_applications_summary'](); };
|
|
13546
|
+
export var makeMerchantDeactivated = function () { return factories['io.flow.v0.models.merchant_deactivated'](); };
|
|
13130
13547
|
export var makeMerchantGiftCardBalance = function () { return factories['io.flow.v0.models.merchant_gift_card_balance'](); };
|
|
13131
13548
|
export var makeMerchantGiftCardBalanceForm = function () { return factories['io.flow.v0.models.merchant_gift_card_balance_form'](); };
|
|
13132
13549
|
export var makeMerchantGiftCardError = function () { return factories['io.flow.v0.models.merchant_gift_card_error'](); };
|
|
@@ -13335,6 +13752,7 @@ export var makeOrganizationTokenReference = function () { return factories['io.f
|
|
|
13335
13752
|
export var makeOrganizationTokenV2 = function () { return factories['io.flow.v0.models.organization_token_v2'](); };
|
|
13336
13753
|
export var makeOrganizationTokenV2Reference = function () { return factories['io.flow.v0.models.organization_token_v2_reference'](); };
|
|
13337
13754
|
export var makeOrganizationTransactionDeleted = function () { return factories['io.flow.v0.models.organization_transaction_deleted'](); };
|
|
13755
|
+
export var makeOrganizationTransactionPayout = function () { return factories['io.flow.v0.models.organization_transaction_payout'](); };
|
|
13338
13756
|
export var makeOrganizationTransactionUpserted = function () { return factories['io.flow.v0.models.organization_transaction_upserted'](); };
|
|
13339
13757
|
export var makeOrganizationType = function () { return factories['io.flow.v0.enums.organization_type'](); };
|
|
13340
13758
|
export var makeOrganizationUpserted = function () { return factories['io.flow.v0.models.organization_upserted'](); };
|
|
@@ -13342,7 +13760,11 @@ export var makeOrganizationUpsertedV2 = function () { return factories['io.flow.
|
|
|
13342
13760
|
export var makeOrganizationVersion = function () { return factories['io.flow.v0.models.organization_version'](); };
|
|
13343
13761
|
export var makeOriginalPrices = function () { return factories['io.flow.v0.models.original_prices'](); };
|
|
13344
13762
|
export var makeOutboundCartonFee = function () { return factories['io.flow.v0.models.outbound_carton_fee'](); };
|
|
13345
|
-
export var
|
|
13763
|
+
export var makeOversizePieceSurchargeRatecardFee = function () { return factories['io.flow.v0.models.oversize_piece_surcharge_ratecard_fee'](); };
|
|
13764
|
+
export var makeOversizePieceSurchargeServiceFee = function () { return factories['io.flow.v0.models.oversize_piece_surcharge_service_fee'](); };
|
|
13765
|
+
export var makePackageDimensions = function () { return factories['io.flow.v0.models.package_dimensions'](); };
|
|
13766
|
+
export var makePackageDimensionsForm = function () { return factories['io.flow.v0.models.package_dimensions_form'](); };
|
|
13767
|
+
export var makePackageDimensionsSource = function () { return factories['io.flow.v0.enums.package_dimensions_source'](); };
|
|
13346
13768
|
export var makePackaging = function () { return factories['io.flow.v0.models.packaging'](); };
|
|
13347
13769
|
export var makeParentTransactionSummary = function () { return factories['io.flow.v0.models.parent_transaction_summary'](); };
|
|
13348
13770
|
export var makePartnerCenter = function () { return factories['io.flow.v0.models.partner_center'](); };
|
|
@@ -13479,6 +13901,7 @@ export var makePaymentUpserted = function () { return factories['io.flow.v0.mode
|
|
|
13479
13901
|
export var makePaymentVersion = function () { return factories['io.flow.v0.models.payment_version'](); };
|
|
13480
13902
|
export var makePayoutAttachment = function () { return factories['io.flow.v0.models.payout_attachment'](); };
|
|
13481
13903
|
export var makePayoutAttachmentType = function () { return factories['io.flow.v0.enums.payout_attachment_type'](); };
|
|
13904
|
+
export var makePayoutReference = function () { return factories['io.flow.v0.models.payout_reference'](); };
|
|
13482
13905
|
export var makePayoutStatus = function () { return factories['io.flow.v0.unions.payout_status'](); };
|
|
13483
13906
|
export var makePayoutStatusFailed = function () { return factories['io.flow.v0.models.payout_status_failed'](); };
|
|
13484
13907
|
export var makePayoutStatusFailureCode = function () { return factories['io.flow.v0.enums.payout_status_failure_code'](); };
|
|
@@ -13499,9 +13922,11 @@ export var makePfsInventoryCheckResponse = function () { return factories['io.fl
|
|
|
13499
13922
|
export var makePfsInventoryCheckResponseItem = function () { return factories['io.flow.v0.models.pfs_inventory_check_response_item'](); };
|
|
13500
13923
|
export var makePfsInventoryStatus = function () { return factories['io.flow.v0.models.pfs_inventory_status'](); };
|
|
13501
13924
|
export var makePhysicalDelivery = function () { return factories['io.flow.v0.models.physical_delivery'](); };
|
|
13925
|
+
export var makePhysicalDeliveryPreferredService = function () { return factories['io.flow.v0.models.physical_delivery_preferred_service'](); };
|
|
13502
13926
|
export var makePhysicalDeliverySpecialSerivce = function () { return factories['io.flow.v0.enums.physical_delivery_special_serivce'](); };
|
|
13503
13927
|
export var makePostPaymentRedirectUrls = function () { return factories['io.flow.v0.models.post_payment_redirect_urls'](); };
|
|
13504
13928
|
export var makePostalType = function () { return factories['io.flow.v0.enums.postal_type'](); };
|
|
13929
|
+
export var makePreferredServiceSelectionStrategy = function () { return factories['io.flow.v0.enums.preferred_service_selection_strategy'](); };
|
|
13505
13930
|
export var makePrice = function () { return factories['io.flow.v0.models.price'](); };
|
|
13506
13931
|
export var makePriceAccuracy = function () { return factories['io.flow.v0.enums.price_accuracy'](); };
|
|
13507
13932
|
export var makePriceBook = function () { return factories['io.flow.v0.models.price_book'](); };
|
|
@@ -13750,6 +14175,7 @@ export var makeShippingConfigurationVersion = function () { return factories['io
|
|
|
13750
14175
|
export var makeShippingLabel = function () { return factories['io.flow.v0.models.shipping_label'](); };
|
|
13751
14176
|
export var makeShippingLabelDocument = function () { return factories['io.flow.v0.models.shipping_label_document'](); };
|
|
13752
14177
|
export var makeShippingLabelForm = function () { return factories['io.flow.v0.unions.shipping_label_form'](); };
|
|
14178
|
+
export var makeShippingLabelHopCostItemizedEstimate = function () { return factories['io.flow.v0.models.shipping_label_hop_cost_itemized_estimate'](); };
|
|
13753
14179
|
export var makeShippingLabelHopSummary = function () { return factories['io.flow.v0.models.shipping_label_hop_summary'](); };
|
|
13754
14180
|
export var makeShippingLabelLaneSummary = function () { return factories['io.flow.v0.models.shipping_label_lane_summary'](); };
|
|
13755
14181
|
export var makeShippingLabelPackage = function () { return factories['io.flow.v0.models.shipping_label_package'](); };
|
|
@@ -13824,6 +14250,7 @@ export var makeStatement = function () { return factories['io.flow.v0.models.sta
|
|
|
13824
14250
|
export var makeStatementAttachmentType = function () { return factories['io.flow.v0.enums.statement_attachment_type'](); };
|
|
13825
14251
|
export var makeStatementDeleted = function () { return factories['io.flow.v0.models.statement_deleted'](); };
|
|
13826
14252
|
export var makeStatementUpserted = function () { return factories['io.flow.v0.models.statement_upserted'](); };
|
|
14253
|
+
export var makeStoredMethodUsageStep = function () { return factories['io.flow.v0.enums.stored_method_usage_step'](); };
|
|
13827
14254
|
export var makeStrategy = function () { return factories['io.flow.v0.enums.strategy'](); };
|
|
13828
14255
|
export var makeStreetAddress = function () { return factories['io.flow.v0.models.street_address'](); };
|
|
13829
14256
|
export var makeStripeAuthenticationData = function () { return factories['io.flow.v0.models.stripe_authentication_data'](); };
|
|
@@ -13886,7 +14313,6 @@ export var makeTaxSetting = function () { return factories['io.flow.v0.unions.ta
|
|
|
13886
14313
|
export var makeTaxVerificationResult = function () { return factories['io.flow.v0.enums.tax_verification_result'](); };
|
|
13887
14314
|
export var makeTaxabilityType = function () { return factories['io.flow.v0.enums.taxability_type'](); };
|
|
13888
14315
|
export var makeTaxabilityValue = function () { return factories['io.flow.v0.enums.taxability_value'](); };
|
|
13889
|
-
export var makeTest = function () { return factories['io.flow.v0.models.test'](); };
|
|
13890
14316
|
export var makeTestUpserted = function () { return factories['io.flow.v0.models.test_upserted'](); };
|
|
13891
14317
|
export var makeThirdPartyLogisticsPartner = function () { return factories['io.flow.v0.models.third_party_logistics_partner'](); };
|
|
13892
14318
|
export var makeThreeDSecure = function () { return factories['io.flow.v0.models.three_d_secure'](); };
|
|
@@ -13949,15 +14375,22 @@ export var makeTradeAgreementStatus = function () { return factories['io.flow.v0
|
|
|
13949
14375
|
export var makeTransaction = function () { return factories['io.flow.v0.models.transaction'](); };
|
|
13950
14376
|
export var makeTransactionDetails = function () { return factories['io.flow.v0.unions.transaction_details'](); };
|
|
13951
14377
|
export var makeTransactionDetailsCard = function () { return factories['io.flow.v0.models.transaction_details_card'](); };
|
|
14378
|
+
export var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.transaction_metadata'](); };
|
|
14379
|
+
export var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
13952
14380
|
export var makeTransactionNetworkDetailsCard = function () { return factories['io.flow.v0.models.transaction_network_details_card'](); };
|
|
14381
|
+
export var makeTransactionPayoutPendingReason = function () { return factories['io.flow.v0.enums.transaction_payout_pending_reason'](); };
|
|
14382
|
+
export var makeTransactionReference = function () { return factories['io.flow.v0.models.transaction_reference'](); };
|
|
13953
14383
|
export var makeTransactionSource = function () { return factories['io.flow.v0.enums.transaction_source'](); };
|
|
13954
14384
|
export var makeTransactionUpserted = function () { return factories['io.flow.v0.models.transaction_upserted'](); };
|
|
13955
14385
|
export var makeTransitEstimate = function () { return factories['io.flow.v0.models.transit_estimate'](); };
|
|
13956
14386
|
export var makeTransitWindow = function () { return factories['io.flow.v0.models.transit_window'](); };
|
|
13957
14387
|
export var makeUltimateBeneficiaryOwner = function () { return factories['io.flow.v0.models.ultimate_beneficiary_owner'](); };
|
|
13958
14388
|
export var makeUnharmonizedItemExportType = function () { return factories['io.flow.v0.models.unharmonized_item_export_type'](); };
|
|
14389
|
+
export var makeUnitOfLength = function () { return factories['io.flow.v0.enums.unit_of_length'](); };
|
|
13959
14390
|
export var makeUnitOfMeasurement = function () { return factories['io.flow.v0.enums.unit_of_measurement'](); };
|
|
13960
14391
|
export var makeUnitOfTime = function () { return factories['io.flow.v0.enums.unit_of_time'](); };
|
|
14392
|
+
export var makeUnitOfVolume = function () { return factories['io.flow.v0.enums.unit_of_volume'](); };
|
|
14393
|
+
export var makeUnitOfWeight = function () { return factories['io.flow.v0.enums.unit_of_weight'](); };
|
|
13961
14394
|
export var makeUpdatePolicy = function () { return factories['io.flow.v0.enums.update_policy'](); };
|
|
13962
14395
|
export var makeUpdateType = function () { return factories['io.flow.v0.enums.update_type'](); };
|
|
13963
14396
|
export var makeUpload = function () { return factories['io.flow.v0.models.upload'](); };
|