@flowio/api-factories 0.0.64 → 0.0.66
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 +217 -25
- package/dist/esm/api.js +194 -13
- package/dist/types/api.d.ts +12 -1
- package/package.json +2 -2
- package/src/api.ts +221 -15
package/dist/esm/api.js
CHANGED
|
@@ -25,10 +25,10 @@ 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.helpers.arrayElement(['email', 'name', 'phone', '
|
|
28
|
+
'io.flow.apple.pay.v0.enums.apple_pay_contact_field': function () { return faker.helpers.arrayElement(['email', 'name', 'phone', 'postal_address', 'phonetic_name']); },
|
|
29
29
|
'io.flow.apple.pay.v0.enums.apple_pay_line_item_type': function () { return faker.helpers.arrayElement(['final', 'pending']); },
|
|
30
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', '
|
|
31
|
+
'io.flow.apple.pay.v0.enums.apple_pay_shipping_type': function () { return faker.helpers.arrayElement(['shipping', 'delivery', 'store_pickup', 'service_pickup']); },
|
|
32
32
|
'io.flow.apple.pay.v0.enums.apple_pay_supported_networks': function () { return faker.helpers.arrayElement([
|
|
33
33
|
'amex',
|
|
34
34
|
'chinaUnionPay',
|
|
@@ -41,7 +41,7 @@ var factories = {
|
|
|
41
41
|
'io.flow.apple.pay.v0.models.apple_pay_line_item': function () { return ({
|
|
42
42
|
label: factories.string(),
|
|
43
43
|
type: factories['io.flow.apple.pay.v0.enums.apple_pay_line_item_type'](),
|
|
44
|
-
amount: factories.
|
|
44
|
+
amount: factories.decimal(),
|
|
45
45
|
}); },
|
|
46
46
|
'io.flow.apple.pay.v0.models.apple_pay_payment_contact': function () { return ({
|
|
47
47
|
email_address: factories.string(),
|
|
@@ -88,7 +88,7 @@ var factories = {
|
|
|
88
88
|
'io.flow.apple.pay.v0.models.apple_pay_shipping_method': function () { return ({
|
|
89
89
|
label: factories.string(),
|
|
90
90
|
detail: factories.string(),
|
|
91
|
-
amount: factories.
|
|
91
|
+
amount: factories.decimal(),
|
|
92
92
|
identifier: factories.string(),
|
|
93
93
|
}); },
|
|
94
94
|
'io.flow.ben.test.internal.v0.models.generate_load_multiple_orgs': function () { return ({
|
|
@@ -115,8 +115,15 @@ var factories = {
|
|
|
115
115
|
]);
|
|
116
116
|
return f();
|
|
117
117
|
},
|
|
118
|
-
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
119
|
-
|
|
118
|
+
'io.flow.billing.true.up.v0.enums.true_up_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
119
|
+
'fuel',
|
|
120
|
+
'remote_area',
|
|
121
|
+
'oversize',
|
|
122
|
+
'duties_paid',
|
|
123
|
+
'emergency',
|
|
124
|
+
'peak',
|
|
125
|
+
'address_correction',
|
|
126
|
+
]); },
|
|
120
127
|
'io.flow.billing.true.up.v0.models.label_base': function () { return ({
|
|
121
128
|
amount: factories.decimal(),
|
|
122
129
|
weight: factories.decimal(),
|
|
@@ -134,10 +141,38 @@ var factories = {
|
|
|
134
141
|
destination: factories['io.flow.billing.true.up.v0.models.label_destination'](),
|
|
135
142
|
metadata: factories['io.flow.billing.true.up.v0.models.label_metadata'](),
|
|
136
143
|
}); },
|
|
144
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file': function () { return ({
|
|
145
|
+
id: factories.string(),
|
|
146
|
+
url: factories.string(),
|
|
147
|
+
created_at: factories.date_time_iso_8601(),
|
|
148
|
+
result: factories['io.flow.billing.true.up.v0.models.label_invoice_response_file_result'](),
|
|
149
|
+
}); },
|
|
150
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_form': function () { return ({
|
|
151
|
+
url: factories.string(),
|
|
152
|
+
}); },
|
|
153
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_file_result': function () { return ({
|
|
154
|
+
processed_at: factories.date_time_iso_8601(),
|
|
155
|
+
number_lines_successful: factories.long(),
|
|
156
|
+
number_lines_with_errors: factories.long(),
|
|
157
|
+
errors_url: factories.string(),
|
|
158
|
+
}); },
|
|
159
|
+
'io.flow.billing.true.up.v0.models.label_invoice_response_form': function () { return ({
|
|
160
|
+
id: factories.string(),
|
|
161
|
+
label_invoice_request_id: factories.string(),
|
|
162
|
+
units: factories['io.flow.billing.true.up.v0.models.label_response_units'](),
|
|
163
|
+
base: factories['io.flow.billing.true.up.v0.models.label_base'](),
|
|
164
|
+
surcharges: factories['io.flow.billing.true.up.v0.models.label_surcharge_form'](),
|
|
165
|
+
total: factories.decimal(),
|
|
166
|
+
}); },
|
|
137
167
|
'io.flow.billing.true.up.v0.models.label_metadata': function () { return ({
|
|
138
168
|
ratecard: factories['io.flow.billing.true.up.v0.models.metadata_ratecard'](),
|
|
139
169
|
weights: factories['io.flow.billing.true.up.v0.models.metadata_weights'](),
|
|
140
170
|
}); },
|
|
171
|
+
'io.flow.billing.true.up.v0.models.label_response_units': function () { return ({
|
|
172
|
+
currency: factories.string(),
|
|
173
|
+
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
174
|
+
length: factories['io.flow.units.v0.enums.unit_of_length'](),
|
|
175
|
+
}); },
|
|
141
176
|
'io.flow.billing.true.up.v0.models.label_surcharge': function () { return ({
|
|
142
177
|
amount: factories.decimal(),
|
|
143
178
|
type: factories['io.flow.billing.true.up.v0.enums.true_up_surcharge_type'](),
|
|
@@ -155,6 +190,20 @@ var factories = {
|
|
|
155
190
|
discriminator: 'percentage',
|
|
156
191
|
percentage: factories.decimal(),
|
|
157
192
|
}); },
|
|
193
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_form': function () { return ({
|
|
194
|
+
fuel: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
195
|
+
remote_area: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
196
|
+
oversize: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
197
|
+
duties_paid: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
198
|
+
emergency: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
199
|
+
peak: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
200
|
+
address_correction: factories['io.flow.billing.true.up.v0.models.label_surcharge_single_form'](),
|
|
201
|
+
}); },
|
|
202
|
+
'io.flow.billing.true.up.v0.models.label_surcharge_single_form': function () { return ({
|
|
203
|
+
amount: factories.decimal(),
|
|
204
|
+
percentage: factories.decimal(),
|
|
205
|
+
fee_per_weight_unit: factories.decimal(),
|
|
206
|
+
}); },
|
|
158
207
|
'io.flow.billing.true.up.v0.models.label_units': function () { return ({
|
|
159
208
|
currency: factories.string(),
|
|
160
209
|
weight: factories['io.flow.units.v0.enums.unit_of_weight'](),
|
|
@@ -169,7 +218,6 @@ var factories = {
|
|
|
169
218
|
proposition: factories['io.flow.billing.true.up.v0.models.metadata_proposition'](),
|
|
170
219
|
}); },
|
|
171
220
|
'io.flow.billing.true.up.v0.models.metadata_weights': function () { return ({
|
|
172
|
-
selected: factories['io.flow.billing.true.up.v0.enums.weight_selection'](),
|
|
173
221
|
dead: factories['io.flow.billing.true.up.v0.models.weights_dead'](),
|
|
174
222
|
dimensional: factories['io.flow.billing.true.up.v0.models.weights_dimensional'](),
|
|
175
223
|
}); },
|
|
@@ -1332,12 +1380,17 @@ var factories = {
|
|
|
1332
1380
|
'charge.failed',
|
|
1333
1381
|
'charge.pending',
|
|
1334
1382
|
'charge.refunded',
|
|
1335
|
-
'charge.
|
|
1383
|
+
'charge.expired',
|
|
1336
1384
|
'charge.succeeded',
|
|
1337
1385
|
'charge.updated',
|
|
1386
|
+
'charge.refund.updated',
|
|
1387
|
+
'payment_intent.created',
|
|
1338
1388
|
'payment_intent.amount_capturable_updated',
|
|
1339
1389
|
'payment_intent.payment_failed',
|
|
1340
1390
|
'payment_intent.succeeded',
|
|
1391
|
+
'payment_intent.requires_action',
|
|
1392
|
+
'payment_intent.canceled',
|
|
1393
|
+
'payment_intent.processing',
|
|
1341
1394
|
'source.canceled',
|
|
1342
1395
|
'source.chargeable',
|
|
1343
1396
|
'source.failed',
|
|
@@ -1443,6 +1496,14 @@ var factories = {
|
|
|
1443
1496
|
'three_d_secure',
|
|
1444
1497
|
]); },
|
|
1445
1498
|
'io.flow.stripe.v0.enums.source_usage_type': function () { return faker.helpers.arrayElement(['reusable', 'single_use']); },
|
|
1499
|
+
'io.flow.stripe.v0.enums.stored_credential_transaction_type': function () { return faker.helpers.arrayElement([
|
|
1500
|
+
'setup_on_session',
|
|
1501
|
+
'setup_off_session_recurring',
|
|
1502
|
+
'setup_off_session_unscheduled',
|
|
1503
|
+
'stored_on_session',
|
|
1504
|
+
'stored_on_session_recurring',
|
|
1505
|
+
'stored_on_session_unscheduled',
|
|
1506
|
+
]); },
|
|
1446
1507
|
'io.flow.stripe.v0.enums.three_d_secure_support': function () { return faker.helpers.arrayElement(['required', 'recommended', 'optional', 'not_supported']); },
|
|
1447
1508
|
'io.flow.stripe.v0.enums.three_ds_authentication_flow': function () { return faker.helpers.arrayElement(['challenge', 'frictionless']); },
|
|
1448
1509
|
'io.flow.stripe.v0.enums.three_ds_result': function () { return faker.helpers.arrayElement([
|
|
@@ -1542,6 +1603,10 @@ var factories = {
|
|
|
1542
1603
|
address_postal_code_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1543
1604
|
cvc_check: factories['io.flow.stripe.v0.enums.check_outcome'](),
|
|
1544
1605
|
}); },
|
|
1606
|
+
'io.flow.stripe.v0.models.card_networks': function () { return ({
|
|
1607
|
+
available: arrayOf(function () { return factories.string(); }),
|
|
1608
|
+
preferred: factories.string(),
|
|
1609
|
+
}); },
|
|
1545
1610
|
'io.flow.stripe.v0.models.card_request': function () { return ({
|
|
1546
1611
|
object: factories.string(),
|
|
1547
1612
|
exp_month: factories.string(),
|
|
@@ -1561,6 +1626,7 @@ var factories = {
|
|
|
1561
1626
|
id: factories.string(),
|
|
1562
1627
|
amount: factories.long(),
|
|
1563
1628
|
amount_refunded: factories.long(),
|
|
1629
|
+
authorization_code: factories.string(),
|
|
1564
1630
|
captured: factories.boolean(),
|
|
1565
1631
|
created: factories.long(),
|
|
1566
1632
|
currency: factories.string(),
|
|
@@ -1608,6 +1674,7 @@ var factories = {
|
|
|
1608
1674
|
id: factories.string(),
|
|
1609
1675
|
amount: factories.long(),
|
|
1610
1676
|
amount_refunded: factories.long(),
|
|
1677
|
+
authorization_code: factories.string(),
|
|
1611
1678
|
captured: factories.boolean(),
|
|
1612
1679
|
created: factories.long(),
|
|
1613
1680
|
currency: factories.string(),
|
|
@@ -1693,6 +1760,8 @@ var factories = {
|
|
|
1693
1760
|
order_number: factories.string(),
|
|
1694
1761
|
authorization_id: factories.string(),
|
|
1695
1762
|
organization_id: factories.string(),
|
|
1763
|
+
payment_request_id: factories.string(),
|
|
1764
|
+
payment_request_order_reference: factories.string(),
|
|
1696
1765
|
}); },
|
|
1697
1766
|
'io.flow.stripe.v0.models.network_token_used': function () { return ({
|
|
1698
1767
|
used: factories.boolean(),
|
|
@@ -1801,6 +1870,7 @@ var factories = {
|
|
|
1801
1870
|
'io.flow.stripe.v0.models.payment_intent_confirmation_form': function () { return ({
|
|
1802
1871
|
off_session: factories.boolean(),
|
|
1803
1872
|
payment_method: factories.string(),
|
|
1873
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1804
1874
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1805
1875
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1806
1876
|
receipt_email: factories.string(),
|
|
@@ -1820,6 +1890,7 @@ var factories = {
|
|
|
1820
1890
|
metadata: factories['io.flow.stripe.v0.models.metadata'](),
|
|
1821
1891
|
on_behalf_of: factories.string(),
|
|
1822
1892
|
payment_method: factories.string(),
|
|
1893
|
+
payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
|
|
1823
1894
|
payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
|
|
1824
1895
|
payment_method_types: arrayOf(function () { return factories.string(); }),
|
|
1825
1896
|
receipt_email: factories.string(),
|
|
@@ -1850,7 +1921,7 @@ var factories = {
|
|
|
1850
1921
|
id: factories.string(),
|
|
1851
1922
|
object: factories.string(),
|
|
1852
1923
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1853
|
-
card: factories['io.flow.stripe.v0.models.
|
|
1924
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
1854
1925
|
card_present: factories.object(),
|
|
1855
1926
|
created: factories.long(),
|
|
1856
1927
|
customer: factories.string(),
|
|
@@ -1863,6 +1934,30 @@ var factories = {
|
|
|
1863
1934
|
name: factories.string(),
|
|
1864
1935
|
phone: factories.string(),
|
|
1865
1936
|
}); },
|
|
1937
|
+
'io.flow.stripe.v0.models.payment_method_card_details': function () { return ({
|
|
1938
|
+
brand: factories['io.flow.stripe.v0.enums.card_brand'](),
|
|
1939
|
+
checks: factories['io.flow.stripe.v0.models.card_checks'](),
|
|
1940
|
+
country: factories.string(),
|
|
1941
|
+
exp_month: factories.long(),
|
|
1942
|
+
exp_year: factories.long(),
|
|
1943
|
+
fingerprint: factories.string(),
|
|
1944
|
+
funding: factories['io.flow.stripe.v0.enums.card_funding_type'](),
|
|
1945
|
+
last4: factories.string(),
|
|
1946
|
+
networks: factories['io.flow.stripe.v0.models.card_networks'](),
|
|
1947
|
+
three_d_secure_usage: factories['io.flow.stripe.v0.models.three_d_secure_usage'](),
|
|
1948
|
+
}); },
|
|
1949
|
+
'io.flow.stripe.v0.models.payment_method_card_form': function () { return ({
|
|
1950
|
+
exp_month: factories.string(),
|
|
1951
|
+
exp_year: factories.string(),
|
|
1952
|
+
number: factories.string(),
|
|
1953
|
+
cvc: factories.string(),
|
|
1954
|
+
}); },
|
|
1955
|
+
'io.flow.stripe.v0.models.payment_method_data_card': function () { return ({
|
|
1956
|
+
type: 'card',
|
|
1957
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1958
|
+
metadata: factories.object(),
|
|
1959
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1960
|
+
}); },
|
|
1866
1961
|
'io.flow.stripe.v0.models.payment_method_details_card': function () { return ({
|
|
1867
1962
|
type: 'card',
|
|
1868
1963
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -1896,16 +1991,19 @@ var factories = {
|
|
|
1896
1991
|
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
1897
1992
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
1898
1993
|
}); },
|
|
1899
|
-
'io.flow.stripe.v0.models.
|
|
1900
|
-
type:
|
|
1994
|
+
'io.flow.stripe.v0.models.payment_method_form_card': function () { return ({
|
|
1995
|
+
type: 'card',
|
|
1901
1996
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1902
|
-
|
|
1997
|
+
metadata: factories.object(),
|
|
1998
|
+
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1903
1999
|
}); },
|
|
1904
2000
|
'io.flow.stripe.v0.models.payment_method_options': function () { return ({
|
|
1905
2001
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
1906
2002
|
}); },
|
|
1907
2003
|
'io.flow.stripe.v0.models.payment_method_options_card': function () { return ({
|
|
2004
|
+
network: factories.string(),
|
|
1908
2005
|
request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
|
|
2006
|
+
stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
|
|
1909
2007
|
}); },
|
|
1910
2008
|
'io.flow.stripe.v0.models.payment_outcome': function () { return ({
|
|
1911
2009
|
network_status: factories['io.flow.stripe.v0.enums.network_status'](),
|
|
@@ -2131,6 +2229,9 @@ var factories = {
|
|
|
2131
2229
|
type: factories['io.flow.stripe.v0.enums.use_stripe_sdk_type'](),
|
|
2132
2230
|
stripe_js: factories.string(),
|
|
2133
2231
|
}); },
|
|
2232
|
+
'io.flow.stripe.v0.models.three_d_secure_usage': function () { return ({
|
|
2233
|
+
supported: factories.boolean(),
|
|
2234
|
+
}); },
|
|
2134
2235
|
'io.flow.stripe.v0.models.token': function () { return ({
|
|
2135
2236
|
id: factories.string(),
|
|
2136
2237
|
object: factories.string(),
|
|
@@ -2169,6 +2270,10 @@ var factories = {
|
|
|
2169
2270
|
]);
|
|
2170
2271
|
return f();
|
|
2171
2272
|
},
|
|
2273
|
+
'io.flow.stripe.v0.unions.payment_method_data': function () {
|
|
2274
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.stripe.v0.models.payment_method_data_card'](); }]);
|
|
2275
|
+
return f();
|
|
2276
|
+
},
|
|
2172
2277
|
'io.flow.stripe.v0.unions.payment_method_details': function () {
|
|
2173
2278
|
var f = faker.helpers.arrayElement([
|
|
2174
2279
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_card'](); },
|
|
@@ -2176,6 +2281,10 @@ var factories = {
|
|
|
2176
2281
|
]);
|
|
2177
2282
|
return f();
|
|
2178
2283
|
},
|
|
2284
|
+
'io.flow.stripe.v0.unions.payment_method_form': function () {
|
|
2285
|
+
var f = faker.helpers.arrayElement([function () { return factories['io.flow.stripe.v0.models.payment_method_form_card'](); }]);
|
|
2286
|
+
return f();
|
|
2287
|
+
},
|
|
2179
2288
|
'io.flow.units.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
2180
2289
|
'io.flow.units.v0.enums.unit_of_volume': function () { return faker.helpers.arrayElement(['cubic_inch', 'cubic_meter']); },
|
|
2181
2290
|
'io.flow.units.v0.enums.unit_of_weight': function () { return faker.helpers.arrayElement(['gram', 'kilogram', 'ounce', 'pound']); },
|
|
@@ -2737,6 +2846,7 @@ var factories = {
|
|
|
2737
2846
|
'card',
|
|
2738
2847
|
'online',
|
|
2739
2848
|
'credit',
|
|
2849
|
+
'external',
|
|
2740
2850
|
'subsidized',
|
|
2741
2851
|
'installment_plan',
|
|
2742
2852
|
'cash_on_delivery',
|
|
@@ -3083,6 +3193,7 @@ var factories = {
|
|
|
3083
3193
|
'reversal',
|
|
3084
3194
|
'shipping_label',
|
|
3085
3195
|
'shipping_label_service',
|
|
3196
|
+
'trueup',
|
|
3086
3197
|
'shipping_label_revenue_share',
|
|
3087
3198
|
'platform_fee',
|
|
3088
3199
|
'tax',
|
|
@@ -3096,6 +3207,16 @@ var factories = {
|
|
|
3096
3207
|
'virtual_card_capture',
|
|
3097
3208
|
'virtual_card_refund',
|
|
3098
3209
|
]); },
|
|
3210
|
+
'io.flow.v0.enums.trueup_source': function () { return faker.helpers.arrayElement(['flow', 'channel', 'dhl-parcel', 'dhl']); },
|
|
3211
|
+
'io.flow.v0.enums.trueup_surcharge_type': function () { return faker.helpers.arrayElement([
|
|
3212
|
+
'fuel',
|
|
3213
|
+
'remote_area',
|
|
3214
|
+
'oversize',
|
|
3215
|
+
'duties_paid',
|
|
3216
|
+
'emergency',
|
|
3217
|
+
'peak',
|
|
3218
|
+
'address_correction',
|
|
3219
|
+
]); },
|
|
3099
3220
|
'io.flow.v0.enums.unit_of_length': function () { return faker.helpers.arrayElement(['millimeter', 'centimeter', 'inch', 'foot', 'meter']); },
|
|
3100
3221
|
'io.flow.v0.enums.unit_of_measurement': function () { return faker.helpers.arrayElement([
|
|
3101
3222
|
'millimeter',
|
|
@@ -8214,6 +8335,7 @@ var factories = {
|
|
|
8214
8335
|
current_state: factories['io.flow.v0.unions.onboarding_state'](),
|
|
8215
8336
|
started_at: factories.date_time_iso_8601(),
|
|
8216
8337
|
time_blocked: factories.long(),
|
|
8338
|
+
time_in_setup: factories.long(),
|
|
8217
8339
|
blocked_since: factories.date_time_iso_8601(),
|
|
8218
8340
|
completed_at: factories.date_time_iso_8601(),
|
|
8219
8341
|
onboarding_started_at: factories.date_time_iso_8601(),
|
|
@@ -9059,6 +9181,11 @@ var factories = {
|
|
|
9059
9181
|
starts_at: factories.date_time_iso_8601(),
|
|
9060
9182
|
ends_at: factories.date_time_iso_8601(),
|
|
9061
9183
|
}); },
|
|
9184
|
+
'io.flow.v0.models.pending_transaction': function () { return ({
|
|
9185
|
+
id: factories.string(),
|
|
9186
|
+
reason: factories['io.flow.v0.enums.transaction_payout_pending_reason'](),
|
|
9187
|
+
reason_set_at: factories.date_time_iso_8601(),
|
|
9188
|
+
}); },
|
|
9062
9189
|
'io.flow.v0.models.percent_margin': function () { return ({
|
|
9063
9190
|
discriminator: 'percent_margin',
|
|
9064
9191
|
percentage: factories.double(),
|
|
@@ -11503,10 +11630,35 @@ var factories = {
|
|
|
11503
11630
|
cvv_result: factories['io.flow.v0.models.cvv_result'](),
|
|
11504
11631
|
network_details: factories['io.flow.v0.models.transaction_network_details_card'](),
|
|
11505
11632
|
}); },
|
|
11633
|
+
'io.flow.v0.models.transaction_metadata_channel': function () { return ({
|
|
11634
|
+
discriminator: 'channel',
|
|
11635
|
+
method: factories.string(),
|
|
11636
|
+
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
11637
|
+
}); },
|
|
11638
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata': function () { return ({
|
|
11639
|
+
type: factories['io.flow.v0.enums.card_type'](),
|
|
11640
|
+
issuer: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](),
|
|
11641
|
+
}); },
|
|
11642
|
+
'io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary': function () { return ({
|
|
11643
|
+
iin: factories.string(),
|
|
11644
|
+
country: factories.string(),
|
|
11645
|
+
}); },
|
|
11506
11646
|
'io.flow.v0.models.transaction_metadata_shipping_label': function () { return ({
|
|
11507
11647
|
discriminator: 'shipping_label',
|
|
11508
11648
|
request_method: factories['io.flow.v0.enums.label_request_method'](),
|
|
11509
11649
|
}); },
|
|
11650
|
+
'io.flow.v0.models.transaction_metadata_trueup': function () { return ({
|
|
11651
|
+
discriminator: 'trueup',
|
|
11652
|
+
estimate: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11653
|
+
actual: factories['io.flow.v0.models.transaction_metadata_trueup_data'](),
|
|
11654
|
+
}); },
|
|
11655
|
+
'io.flow.v0.models.transaction_metadata_trueup_data': function () { return ({
|
|
11656
|
+
source: factories['io.flow.v0.enums.trueup_source'](),
|
|
11657
|
+
units: factories['io.flow.v0.models.trueup_label_units'](),
|
|
11658
|
+
base: factories['io.flow.v0.models.trueup_label_base'](),
|
|
11659
|
+
surcharges: arrayOf(function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); }),
|
|
11660
|
+
total: factories.decimal(),
|
|
11661
|
+
}); },
|
|
11510
11662
|
'io.flow.v0.models.transaction_network_details_card': function () { return ({
|
|
11511
11663
|
network_transaction_id: factories.string(),
|
|
11512
11664
|
network: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11534,6 +11686,20 @@ var factories = {
|
|
|
11534
11686
|
from: factories.long(),
|
|
11535
11687
|
to: factories.long(),
|
|
11536
11688
|
}); },
|
|
11689
|
+
'io.flow.v0.models.trueup_label_base': function () { return ({
|
|
11690
|
+
amount: factories.decimal(),
|
|
11691
|
+
weight: factories.decimal(),
|
|
11692
|
+
}); },
|
|
11693
|
+
'io.flow.v0.models.trueup_label_surcharge': function () { return ({
|
|
11694
|
+
amount: factories.decimal(),
|
|
11695
|
+
type: factories['io.flow.v0.enums.trueup_surcharge_type'](),
|
|
11696
|
+
percentage: factories.decimal(),
|
|
11697
|
+
per_weight_unit: factories.decimal(),
|
|
11698
|
+
}); },
|
|
11699
|
+
'io.flow.v0.models.trueup_label_units': function () { return ({
|
|
11700
|
+
weight: factories['io.flow.v0.enums.unit_of_weight'](),
|
|
11701
|
+
length: factories['io.flow.v0.enums.unit_of_length'](),
|
|
11702
|
+
}); },
|
|
11537
11703
|
'io.flow.v0.models.ultimate_beneficiary_owner': function () { return ({
|
|
11538
11704
|
name: factories.string(),
|
|
11539
11705
|
dob: factories.date_time_iso_8601(),
|
|
@@ -12715,7 +12881,11 @@ var factories = {
|
|
|
12715
12881
|
return f();
|
|
12716
12882
|
},
|
|
12717
12883
|
'io.flow.v0.unions.transaction_metadata': function () {
|
|
12718
|
-
var f = faker.helpers.arrayElement([
|
|
12884
|
+
var f = faker.helpers.arrayElement([
|
|
12885
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); },
|
|
12886
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); },
|
|
12887
|
+
function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); },
|
|
12888
|
+
]);
|
|
12719
12889
|
return f();
|
|
12720
12890
|
},
|
|
12721
12891
|
};
|
|
@@ -13913,6 +14083,7 @@ export var makePaypalAuthorizationForm = function () { return factories['io.flow
|
|
|
13913
14083
|
export var makePeakSurchargeByWeightServiceFee = function () { return factories['io.flow.v0.models.peak_surcharge_by_weight_service_fee'](); };
|
|
13914
14084
|
export var makePeakSurchargeRatecardFee = function () { return factories['io.flow.v0.models.peak_surcharge_ratecard_fee'](); };
|
|
13915
14085
|
export var makePeakSurchargeServiceFee = function () { return factories['io.flow.v0.models.peak_surcharge_service_fee'](); };
|
|
14086
|
+
export var makePendingTransaction = function () { return factories['io.flow.v0.models.pending_transaction'](); };
|
|
13916
14087
|
export var makePercentMargin = function () { return factories['io.flow.v0.models.percent_margin'](); };
|
|
13917
14088
|
export var makePermissionAudit = function () { return factories['io.flow.v0.models.permission_audit'](); };
|
|
13918
14089
|
export var makePermissionCheck = function () { return factories['io.flow.v0.models.permission_check'](); };
|
|
@@ -14376,7 +14547,12 @@ export var makeTransaction = function () { return factories['io.flow.v0.models.t
|
|
|
14376
14547
|
export var makeTransactionDetails = function () { return factories['io.flow.v0.unions.transaction_details'](); };
|
|
14377
14548
|
export var makeTransactionDetailsCard = function () { return factories['io.flow.v0.models.transaction_details_card'](); };
|
|
14378
14549
|
export var makeTransactionMetadata = function () { return factories['io.flow.v0.unions.transaction_metadata'](); };
|
|
14550
|
+
export var makeTransactionMetadataChannel = function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); };
|
|
14551
|
+
export var makeTransactionMetadataChannelCardMetadata = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](); };
|
|
14552
|
+
export var makeTransactionMetadataChannelCardMetadataIssuerSummary = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](); };
|
|
14379
14553
|
export var makeTransactionMetadataShippingLabel = function () { return factories['io.flow.v0.models.transaction_metadata_shipping_label'](); };
|
|
14554
|
+
export var makeTransactionMetadataTrueup = function () { return factories['io.flow.v0.models.transaction_metadata_trueup'](); };
|
|
14555
|
+
export var makeTransactionMetadataTrueupData = function () { return factories['io.flow.v0.models.transaction_metadata_trueup_data'](); };
|
|
14380
14556
|
export var makeTransactionNetworkDetailsCard = function () { return factories['io.flow.v0.models.transaction_network_details_card'](); };
|
|
14381
14557
|
export var makeTransactionPayoutPendingReason = function () { return factories['io.flow.v0.enums.transaction_payout_pending_reason'](); };
|
|
14382
14558
|
export var makeTransactionReference = function () { return factories['io.flow.v0.models.transaction_reference'](); };
|
|
@@ -14384,6 +14560,11 @@ export var makeTransactionSource = function () { return factories['io.flow.v0.en
|
|
|
14384
14560
|
export var makeTransactionUpserted = function () { return factories['io.flow.v0.models.transaction_upserted'](); };
|
|
14385
14561
|
export var makeTransitEstimate = function () { return factories['io.flow.v0.models.transit_estimate'](); };
|
|
14386
14562
|
export var makeTransitWindow = function () { return factories['io.flow.v0.models.transit_window'](); };
|
|
14563
|
+
export var makeTrueupLabelBase = function () { return factories['io.flow.v0.models.trueup_label_base'](); };
|
|
14564
|
+
export var makeTrueupLabelSurcharge = function () { return factories['io.flow.v0.models.trueup_label_surcharge'](); };
|
|
14565
|
+
export var makeTrueupLabelUnits = function () { return factories['io.flow.v0.models.trueup_label_units'](); };
|
|
14566
|
+
export var makeTrueupSource = function () { return factories['io.flow.v0.enums.trueup_source'](); };
|
|
14567
|
+
export var makeTrueupSurchargeType = function () { return factories['io.flow.v0.enums.trueup_surcharge_type'](); };
|
|
14387
14568
|
export var makeUltimateBeneficiaryOwner = function () { return factories['io.flow.v0.models.ultimate_beneficiary_owner'](); };
|
|
14388
14569
|
export var makeUnharmonizedItemExportType = function () { return factories['io.flow.v0.models.unharmonized_item_export_type'](); };
|
|
14389
14570
|
export var makeUnitOfLength = function () { return factories['io.flow.v0.enums.unit_of_length'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1193,6 +1193,7 @@ export declare const makePaypalAuthorizationForm: () => io.flow.v0.models.Paypal
|
|
|
1193
1193
|
export declare const makePeakSurchargeByWeightServiceFee: () => io.flow.v0.models.PeakSurchargeByWeightServiceFee;
|
|
1194
1194
|
export declare const makePeakSurchargeRatecardFee: () => io.flow.v0.models.PeakSurchargeRatecardFee;
|
|
1195
1195
|
export declare const makePeakSurchargeServiceFee: () => io.flow.v0.models.PeakSurchargeServiceFee;
|
|
1196
|
+
export declare const makePendingTransaction: () => io.flow.v0.models.PendingTransaction;
|
|
1196
1197
|
export declare const makePercentMargin: () => io.flow.v0.models.PercentMargin;
|
|
1197
1198
|
export declare const makePermissionAudit: () => io.flow.v0.models.PermissionAudit;
|
|
1198
1199
|
export declare const makePermissionCheck: () => io.flow.v0.models.PermissionCheck;
|
|
@@ -1655,8 +1656,13 @@ export declare const makeTradeAgreementStatus: () => io.flow.v0.enums.TradeAgree
|
|
|
1655
1656
|
export declare const makeTransaction: () => io.flow.v0.models.Transaction;
|
|
1656
1657
|
export declare const makeTransactionDetails: () => io.flow.v0.models.TransactionDetailsCard;
|
|
1657
1658
|
export declare const makeTransactionDetailsCard: () => io.flow.v0.models.TransactionDetailsCard;
|
|
1658
|
-
export declare const makeTransactionMetadata: () => io.flow.v0.
|
|
1659
|
+
export declare const makeTransactionMetadata: () => io.flow.v0.unions.TransactionMetadata;
|
|
1660
|
+
export declare const makeTransactionMetadataChannel: () => io.flow.v0.models.TransactionMetadataChannel;
|
|
1661
|
+
export declare const makeTransactionMetadataChannelCardMetadata: () => io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
1662
|
+
export declare const makeTransactionMetadataChannelCardMetadataIssuerSummary: () => io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
|
|
1659
1663
|
export declare const makeTransactionMetadataShippingLabel: () => io.flow.v0.models.TransactionMetadataShippingLabel;
|
|
1664
|
+
export declare const makeTransactionMetadataTrueup: () => io.flow.v0.models.TransactionMetadataTrueup;
|
|
1665
|
+
export declare const makeTransactionMetadataTrueupData: () => io.flow.v0.models.TransactionMetadataTrueupData;
|
|
1660
1666
|
export declare const makeTransactionNetworkDetailsCard: () => io.flow.v0.models.TransactionNetworkDetailsCard;
|
|
1661
1667
|
export declare const makeTransactionPayoutPendingReason: () => io.flow.v0.enums.TransactionPayoutPendingReason;
|
|
1662
1668
|
export declare const makeTransactionReference: () => io.flow.v0.models.TransactionReference;
|
|
@@ -1664,6 +1670,11 @@ export declare const makeTransactionSource: () => io.flow.v0.enums.TransactionSo
|
|
|
1664
1670
|
export declare const makeTransactionUpserted: () => io.flow.v0.models.TransactionUpserted;
|
|
1665
1671
|
export declare const makeTransitEstimate: () => io.flow.v0.models.TransitEstimate;
|
|
1666
1672
|
export declare const makeTransitWindow: () => io.flow.v0.models.TransitWindow;
|
|
1673
|
+
export declare const makeTrueupLabelBase: () => io.flow.v0.models.TrueupLabelBase;
|
|
1674
|
+
export declare const makeTrueupLabelSurcharge: () => io.flow.v0.models.TrueupLabelSurcharge;
|
|
1675
|
+
export declare const makeTrueupLabelUnits: () => io.flow.v0.models.TrueupLabelUnits;
|
|
1676
|
+
export declare const makeTrueupSource: () => io.flow.v0.enums.TrueupSource;
|
|
1677
|
+
export declare const makeTrueupSurchargeType: () => io.flow.v0.enums.TrueupSurchargeType;
|
|
1667
1678
|
export declare const makeUltimateBeneficiaryOwner: () => io.flow.v0.models.UltimateBeneficiaryOwner;
|
|
1668
1679
|
export declare const makeUnharmonizedItemExportType: () => io.flow.v0.models.UnharmonizedItemExportType;
|
|
1669
1680
|
export declare const makeUnitOfLength: () => io.flow.v0.enums.UnitOfLength;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.66",
|
|
4
4
|
"description": "Flow API mock data factories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"flow",
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"@faker-js/faker": "^6.2.0",
|
|
37
37
|
"@flowio/api-types": "*"
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "cc45ff4a674f1a129166e04d6910cb7a1a2f0da1"
|
|
40
40
|
}
|