@flowio/api-factories 0.0.86 → 0.0.88
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 +267 -15
- package/dist/esm/api.js +249 -2
- package/dist/types/api.d.ts +6 -1
- package/package.json +2 -2
- package/src/api.ts +282 -2
package/dist/esm/api.js
CHANGED
|
@@ -511,6 +511,7 @@ var factories = {
|
|
|
511
511
|
published_at: factories.date_time_iso_8601(),
|
|
512
512
|
created_at: factories.date_time_iso_8601(),
|
|
513
513
|
updated_at: factories.date_time_iso_8601(),
|
|
514
|
+
has_variants_that_requires_components: factories.boolean(),
|
|
514
515
|
}); },
|
|
515
516
|
'io.flow.shopify.external.v0.models.product_delete': function () { return ({
|
|
516
517
|
id: factories.long(),
|
|
@@ -1170,6 +1171,43 @@ var factories = {
|
|
|
1170
1171
|
}); },
|
|
1171
1172
|
'io.flow.stripe.v0.enums.account_type': function () { return faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']); },
|
|
1172
1173
|
'io.flow.stripe.v0.enums.apple_pay_type': function () { return faker.helpers.arrayElement(['apple_pay', 'apple_pay_later']); },
|
|
1174
|
+
'io.flow.stripe.v0.enums.bank_ideal': function () { return faker.helpers.arrayElement([
|
|
1175
|
+
'abn_amro',
|
|
1176
|
+
'asn_bank',
|
|
1177
|
+
'bunq',
|
|
1178
|
+
'handelsbanken',
|
|
1179
|
+
'ing',
|
|
1180
|
+
'knab',
|
|
1181
|
+
'moneyou',
|
|
1182
|
+
'n26',
|
|
1183
|
+
'nn',
|
|
1184
|
+
'rabobank',
|
|
1185
|
+
'regiobank',
|
|
1186
|
+
'revolut',
|
|
1187
|
+
'sns_bank',
|
|
1188
|
+
'triodos_bank',
|
|
1189
|
+
'van_lanschot',
|
|
1190
|
+
'yoursafe',
|
|
1191
|
+
]); },
|
|
1192
|
+
'io.flow.stripe.v0.enums.bic_ideal': function () { return faker.helpers.arrayElement([
|
|
1193
|
+
'ABNANL2A',
|
|
1194
|
+
'ASNBNL21',
|
|
1195
|
+
'BITSNL2A',
|
|
1196
|
+
'BUNQNL2A',
|
|
1197
|
+
'FVLBNL22',
|
|
1198
|
+
'HANDNL2A',
|
|
1199
|
+
'INGBNL2A',
|
|
1200
|
+
'KNABNL2H',
|
|
1201
|
+
'MOYONL21',
|
|
1202
|
+
'NNBANL2G',
|
|
1203
|
+
'NTSBDEB1',
|
|
1204
|
+
'RABONL2U',
|
|
1205
|
+
'RBRBNL21',
|
|
1206
|
+
'REVOIE23',
|
|
1207
|
+
'REVOLT21',
|
|
1208
|
+
'SNSBNL2A',
|
|
1209
|
+
'TRIONL2U',
|
|
1210
|
+
]); },
|
|
1173
1211
|
'io.flow.stripe.v0.enums.cancellation_reason': function () { return faker.helpers.arrayElement([
|
|
1174
1212
|
'abandoned',
|
|
1175
1213
|
'automatic',
|
|
@@ -1253,6 +1291,40 @@ var factories = {
|
|
|
1253
1291
|
'highest_risk_level',
|
|
1254
1292
|
'requested_block_on_incorrect_cvc',
|
|
1255
1293
|
]); },
|
|
1294
|
+
'io.flow.stripe.v0.enums.dispute_event_type': function () { return faker.helpers.arrayElement([
|
|
1295
|
+
'charge.dispute.closed',
|
|
1296
|
+
'charge.dispute.created',
|
|
1297
|
+
'charge.dispute.funds_reinstated',
|
|
1298
|
+
'charge.dispute.funds_withdrawn',
|
|
1299
|
+
'charge.dispute.updated',
|
|
1300
|
+
]); },
|
|
1301
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type': function () { return faker.helpers.arrayElement(['chargeback', 'inquiry']); },
|
|
1302
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_type': function () { return faker.helpers.arrayElement(['card', 'klarna', 'paypal']); },
|
|
1303
|
+
'io.flow.stripe.v0.enums.dispute_reason': function () { return faker.helpers.arrayElement([
|
|
1304
|
+
'bank_cannot_process',
|
|
1305
|
+
'check_returned',
|
|
1306
|
+
'credit_not_processed',
|
|
1307
|
+
'customer_initiated',
|
|
1308
|
+
'debit_not_authorized',
|
|
1309
|
+
'duplicate',
|
|
1310
|
+
'fraudulent',
|
|
1311
|
+
'general',
|
|
1312
|
+
'incorrect_account_details',
|
|
1313
|
+
'insufficient_funds',
|
|
1314
|
+
'product_not_received',
|
|
1315
|
+
'product_unacceptable',
|
|
1316
|
+
'subscription_canceled',
|
|
1317
|
+
'unrecognized',
|
|
1318
|
+
]); },
|
|
1319
|
+
'io.flow.stripe.v0.enums.dispute_status': function () { return faker.helpers.arrayElement([
|
|
1320
|
+
'warning_needs_response',
|
|
1321
|
+
'warning_under_review',
|
|
1322
|
+
'warning_closed',
|
|
1323
|
+
'needs_response',
|
|
1324
|
+
'under_review',
|
|
1325
|
+
'won',
|
|
1326
|
+
'lost',
|
|
1327
|
+
]); },
|
|
1256
1328
|
'io.flow.stripe.v0.enums.error_code': function () { return faker.helpers.arrayElement([
|
|
1257
1329
|
'invalid_number',
|
|
1258
1330
|
'invalid_expiry_month',
|
|
@@ -1345,6 +1417,11 @@ var factories = {
|
|
|
1345
1417
|
'charge.succeeded',
|
|
1346
1418
|
'charge.updated',
|
|
1347
1419
|
'charge.refund.updated',
|
|
1420
|
+
'charge.dispute.closed',
|
|
1421
|
+
'charge.dispute.created',
|
|
1422
|
+
'charge.dispute.funds_reinstated',
|
|
1423
|
+
'charge.dispute.funds_withdrawn',
|
|
1424
|
+
'charge.dispute.updated',
|
|
1348
1425
|
'payment_intent.created',
|
|
1349
1426
|
'payment_intent.amount_capturable_updated',
|
|
1350
1427
|
'payment_intent.payment_failed',
|
|
@@ -1384,9 +1461,10 @@ var factories = {
|
|
|
1384
1461
|
'succeeded',
|
|
1385
1462
|
]); },
|
|
1386
1463
|
'io.flow.stripe.v0.enums.payment_method_category_klarna': function () { return faker.helpers.arrayElement(['pay_later', 'pay_now', 'pay_with_financing', 'pay_in_installments']); },
|
|
1387
|
-
'io.flow.stripe.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'card_present', 'klarna']); },
|
|
1464
|
+
'io.flow.stripe.v0.enums.payment_method_type': function () { return faker.helpers.arrayElement(['card', 'card_present', 'ideal', 'klarna', 'bancontact']); },
|
|
1388
1465
|
'io.flow.stripe.v0.enums.payment_outcome_type': function () { return faker.helpers.arrayElement(['authorized', 'manual_review', 'issuer_declined', 'blocked', 'invalid']); },
|
|
1389
1466
|
'io.flow.stripe.v0.enums.payment_status': function () { return faker.helpers.arrayElement(['succeeded', 'pending', 'failed']); },
|
|
1467
|
+
'io.flow.stripe.v0.enums.preferred_language_bancontact': function () { return faker.helpers.arrayElement(['de', 'en', 'fr', 'nl']); },
|
|
1390
1468
|
'io.flow.stripe.v0.enums.preferred_locale_klarna': function () { return faker.helpers.arrayElement([
|
|
1391
1469
|
'de-AT',
|
|
1392
1470
|
'en-AT',
|
|
@@ -1685,6 +1763,48 @@ var factories = {
|
|
|
1685
1763
|
source: factories.string(),
|
|
1686
1764
|
description: factories.string(),
|
|
1687
1765
|
}); },
|
|
1766
|
+
'io.flow.stripe.v0.models.dispute': function () { return ({
|
|
1767
|
+
id: factories.string(),
|
|
1768
|
+
amount: factories.integer(),
|
|
1769
|
+
charge: factories.string(),
|
|
1770
|
+
currency: factories.string(),
|
|
1771
|
+
evidence: factories.object(),
|
|
1772
|
+
metadata: objectOf(function () { return factories.string(); }),
|
|
1773
|
+
payment_intent: factories.string(),
|
|
1774
|
+
reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
1775
|
+
status: factories['io.flow.stripe.v0.enums.dispute_status'](),
|
|
1776
|
+
object: factories.string(),
|
|
1777
|
+
balance_transactions: arrayOf(function () { return factories.object(); }),
|
|
1778
|
+
created: factories.long(),
|
|
1779
|
+
evidence_details: factories['io.flow.stripe.v0.models.dispute_evidence_details'](),
|
|
1780
|
+
is_charge_refundable: factories.boolean(),
|
|
1781
|
+
livemode: factories.boolean(),
|
|
1782
|
+
payment_method_details: factories['io.flow.stripe.v0.models.dispute_payment_method_details'](),
|
|
1783
|
+
}); },
|
|
1784
|
+
'io.flow.stripe.v0.models.dispute_evidence_details': function () { return ({
|
|
1785
|
+
due_by: factories.long(),
|
|
1786
|
+
has_evidence: factories.boolean(),
|
|
1787
|
+
past_due: factories.boolean(),
|
|
1788
|
+
submission_count: factories.integer(),
|
|
1789
|
+
}); },
|
|
1790
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details': function () { return ({
|
|
1791
|
+
card: factories['io.flow.stripe.v0.models.dispute_payment_method_details_card'](),
|
|
1792
|
+
klarna: factories['io.flow.stripe.v0.models.dispute_payment_method_details_klarna'](),
|
|
1793
|
+
paypal: factories['io.flow.stripe.v0.models.dispute_payment_method_details_paypal'](),
|
|
1794
|
+
type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_type'](),
|
|
1795
|
+
}); },
|
|
1796
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_card': function () { return ({
|
|
1797
|
+
brand: factories.string(),
|
|
1798
|
+
case_type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type'](),
|
|
1799
|
+
network_reason_code: factories.string(),
|
|
1800
|
+
}); },
|
|
1801
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_klarna': function () { return ({
|
|
1802
|
+
reason_code: factories.string(),
|
|
1803
|
+
}); },
|
|
1804
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_paypal': function () { return ({
|
|
1805
|
+
case_id: factories.string(),
|
|
1806
|
+
reason_code: factories.string(),
|
|
1807
|
+
}); },
|
|
1688
1808
|
'io.flow.stripe.v0.models.error': function () { return ({
|
|
1689
1809
|
error: factories['io.flow.stripe.v0.models.stripe_error'](),
|
|
1690
1810
|
}); },
|
|
@@ -1911,8 +2031,10 @@ var factories = {
|
|
|
1911
2031
|
id: factories.string(),
|
|
1912
2032
|
object: factories.string(),
|
|
1913
2033
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2034
|
+
bancontact: factories.object(),
|
|
1914
2035
|
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
1915
2036
|
card_present: factories.object(),
|
|
2037
|
+
ideal: factories.object(),
|
|
1916
2038
|
klarna: factories.object(),
|
|
1917
2039
|
created: factories.long(),
|
|
1918
2040
|
customer: factories.string(),
|
|
@@ -1943,18 +2065,43 @@ var factories = {
|
|
|
1943
2065
|
number: factories.string(),
|
|
1944
2066
|
cvc: factories.string(),
|
|
1945
2067
|
}); },
|
|
2068
|
+
'io.flow.stripe.v0.models.payment_method_data_bancontact': function () { return ({
|
|
2069
|
+
type: 'bancontact',
|
|
2070
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2071
|
+
metadata: factories.object(),
|
|
2072
|
+
}); },
|
|
1946
2073
|
'io.flow.stripe.v0.models.payment_method_data_card': function () { return ({
|
|
1947
2074
|
type: 'card',
|
|
1948
2075
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1949
2076
|
metadata: factories.object(),
|
|
1950
2077
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
1951
2078
|
}); },
|
|
2079
|
+
'io.flow.stripe.v0.models.payment_method_data_ideal': function () { return ({
|
|
2080
|
+
type: 'ideal',
|
|
2081
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2082
|
+
metadata: factories.object(),
|
|
2083
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_ideal_form'](),
|
|
2084
|
+
}); },
|
|
1952
2085
|
'io.flow.stripe.v0.models.payment_method_data_klarna': function () { return ({
|
|
1953
2086
|
type: 'klarna',
|
|
1954
2087
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1955
2088
|
metadata: factories.object(),
|
|
1956
2089
|
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
1957
2090
|
}); },
|
|
2091
|
+
'io.flow.stripe.v0.models.payment_method_details_bancontact': function () { return ({
|
|
2092
|
+
type: 'bancontact',
|
|
2093
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_details_bancontact_information'](),
|
|
2094
|
+
}); },
|
|
2095
|
+
'io.flow.stripe.v0.models.payment_method_details_bancontact_information': function () { return ({
|
|
2096
|
+
bank_code: factories.string(),
|
|
2097
|
+
bank_name: factories.string(),
|
|
2098
|
+
bic: factories.string(),
|
|
2099
|
+
generated_sepa_debit: factories.string(),
|
|
2100
|
+
generated_sepa_debit_mandate: factories.string(),
|
|
2101
|
+
iban_last4: factories.string(),
|
|
2102
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2103
|
+
verified_name: factories.string(),
|
|
2104
|
+
}); },
|
|
1958
2105
|
'io.flow.stripe.v0.models.payment_method_details_card': function () { return ({
|
|
1959
2106
|
type: 'card',
|
|
1960
2107
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -1984,6 +2131,18 @@ var factories = {
|
|
|
1984
2131
|
multicapture: factories['io.flow.stripe.v0.models.multicapture'](),
|
|
1985
2132
|
overcapture: factories['io.flow.stripe.v0.models.overcapture'](),
|
|
1986
2133
|
}); },
|
|
2134
|
+
'io.flow.stripe.v0.models.payment_method_details_ideal': function () { return ({
|
|
2135
|
+
type: 'ideal',
|
|
2136
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_details_ideal_information'](),
|
|
2137
|
+
}); },
|
|
2138
|
+
'io.flow.stripe.v0.models.payment_method_details_ideal_information': function () { return ({
|
|
2139
|
+
bank: factories['io.flow.stripe.v0.enums.bank_ideal'](),
|
|
2140
|
+
bic: factories['io.flow.stripe.v0.enums.bic_ideal'](),
|
|
2141
|
+
generated_sepa_debit: factories.string(),
|
|
2142
|
+
generated_sepa_debit_mandate: factories.string(),
|
|
2143
|
+
iban_last4: factories.string(),
|
|
2144
|
+
verified_name: factories.string(),
|
|
2145
|
+
}); },
|
|
1987
2146
|
'io.flow.stripe.v0.models.payment_method_details_klarna': function () { return ({
|
|
1988
2147
|
type: 'klarna',
|
|
1989
2148
|
klarna: factories['io.flow.stripe.v0.models.payment_method_details_klarna_information'](),
|
|
@@ -1992,24 +2151,47 @@ var factories = {
|
|
|
1992
2151
|
payment_method_category: factories['io.flow.stripe.v0.enums.payment_method_category_klarna'](),
|
|
1993
2152
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
1994
2153
|
}); },
|
|
2154
|
+
'io.flow.stripe.v0.models.payment_method_form_bancontact': function () { return ({
|
|
2155
|
+
type: 'bancontact',
|
|
2156
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2157
|
+
metadata: factories.object(),
|
|
2158
|
+
bancontact: factories.object(),
|
|
2159
|
+
}); },
|
|
1995
2160
|
'io.flow.stripe.v0.models.payment_method_form_card': function () { return ({
|
|
1996
2161
|
type: 'card',
|
|
1997
2162
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
1998
2163
|
metadata: factories.object(),
|
|
1999
2164
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2000
2165
|
}); },
|
|
2166
|
+
'io.flow.stripe.v0.models.payment_method_form_ideal': function () { return ({
|
|
2167
|
+
type: 'ideal',
|
|
2168
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2169
|
+
metadata: factories.object(),
|
|
2170
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_ideal_form'](),
|
|
2171
|
+
}); },
|
|
2001
2172
|
'io.flow.stripe.v0.models.payment_method_form_klarna': function () { return ({
|
|
2002
2173
|
type: 'klarna',
|
|
2003
2174
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2004
2175
|
metadata: factories.object(),
|
|
2005
2176
|
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
2006
2177
|
}); },
|
|
2178
|
+
'io.flow.stripe.v0.models.payment_method_ideal_form': function () { return ({
|
|
2179
|
+
bank: factories.string(),
|
|
2180
|
+
}); },
|
|
2007
2181
|
'io.flow.stripe.v0.models.payment_method_klarna_form': function () { return ({
|
|
2008
2182
|
dob: factories['io.flow.stripe.v0.models.klarna_dob_form'](),
|
|
2009
2183
|
}); },
|
|
2010
2184
|
'io.flow.stripe.v0.models.payment_method_options': function () { return ({
|
|
2011
2185
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
2186
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_options_ideal'](),
|
|
2012
2187
|
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna'](),
|
|
2188
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_options_bancontact'](),
|
|
2189
|
+
}); },
|
|
2190
|
+
'io.flow.stripe.v0.models.payment_method_options_bancontact': function () { return ({
|
|
2191
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2192
|
+
}); },
|
|
2193
|
+
'io.flow.stripe.v0.models.payment_method_options_bancontact_form': function () { return ({
|
|
2194
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2013
2195
|
}); },
|
|
2014
2196
|
'io.flow.stripe.v0.models.payment_method_options_card': function () { return ({
|
|
2015
2197
|
network: factories.string(),
|
|
@@ -2026,7 +2208,15 @@ var factories = {
|
|
|
2026
2208
|
}); },
|
|
2027
2209
|
'io.flow.stripe.v0.models.payment_method_options_form': function () { return ({
|
|
2028
2210
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card_form'](),
|
|
2211
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_options_ideal_form'](),
|
|
2029
2212
|
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna_form'](),
|
|
2213
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_options_bancontact_form'](),
|
|
2214
|
+
}); },
|
|
2215
|
+
'io.flow.stripe.v0.models.payment_method_options_ideal': function () { return ({
|
|
2216
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2217
|
+
}); },
|
|
2218
|
+
'io.flow.stripe.v0.models.payment_method_options_ideal_form': function () { return ({
|
|
2219
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2030
2220
|
}); },
|
|
2031
2221
|
'io.flow.stripe.v0.models.payment_method_options_klarna': function () { return ({
|
|
2032
2222
|
capture_method: factories['io.flow.stripe.v0.enums.capture_method'](),
|
|
@@ -2220,6 +2410,22 @@ var factories = {
|
|
|
2220
2410
|
three_ds_optimizations: factories.string(),
|
|
2221
2411
|
directory_server_encryption: factories.object(),
|
|
2222
2412
|
}); },
|
|
2413
|
+
'io.flow.stripe.v0.models.stripe_dispute_event': function () { return ({
|
|
2414
|
+
id: factories.string(),
|
|
2415
|
+
api_version: factories.string(),
|
|
2416
|
+
data: factories['io.flow.stripe.v0.models.stripe_dispute_event_data'](),
|
|
2417
|
+
request: factories.object(),
|
|
2418
|
+
type: factories['io.flow.stripe.v0.enums.dispute_event_type'](),
|
|
2419
|
+
object: factories.string(),
|
|
2420
|
+
account: factories.string(),
|
|
2421
|
+
created: factories.long(),
|
|
2422
|
+
livemode: factories.boolean(),
|
|
2423
|
+
pending_webhooks: factories.integer(),
|
|
2424
|
+
}); },
|
|
2425
|
+
'io.flow.stripe.v0.models.stripe_dispute_event_data': function () { return ({
|
|
2426
|
+
object: factories['io.flow.stripe.v0.models.dispute'](),
|
|
2427
|
+
previous_attributes: factories.object(),
|
|
2428
|
+
}); },
|
|
2223
2429
|
'io.flow.stripe.v0.models.stripe_error': function () { return ({
|
|
2224
2430
|
type: factories['io.flow.stripe.v0.enums.error_type'](),
|
|
2225
2431
|
charge: factories.string(),
|
|
@@ -2312,21 +2518,27 @@ var factories = {
|
|
|
2312
2518
|
'io.flow.stripe.v0.unions.payment_method_data': function () {
|
|
2313
2519
|
var f = faker.helpers.arrayElement([
|
|
2314
2520
|
function () { return factories['io.flow.stripe.v0.models.payment_method_data_card'](); },
|
|
2521
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_data_ideal'](); },
|
|
2315
2522
|
function () { return factories['io.flow.stripe.v0.models.payment_method_data_klarna'](); },
|
|
2523
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_data_bancontact'](); },
|
|
2316
2524
|
]);
|
|
2317
2525
|
return f();
|
|
2318
2526
|
},
|
|
2319
2527
|
'io.flow.stripe.v0.unions.payment_method_details': function () {
|
|
2320
2528
|
var f = faker.helpers.arrayElement([
|
|
2321
2529
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_card'](); },
|
|
2530
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_details_ideal'](); },
|
|
2322
2531
|
function () { return factories['io.flow.stripe.v0.models.payment_method_details_klarna'](); },
|
|
2532
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_details_bancontact'](); },
|
|
2323
2533
|
]);
|
|
2324
2534
|
return f();
|
|
2325
2535
|
},
|
|
2326
2536
|
'io.flow.stripe.v0.unions.payment_method_form': function () {
|
|
2327
2537
|
var f = faker.helpers.arrayElement([
|
|
2328
2538
|
function () { return factories['io.flow.stripe.v0.models.payment_method_form_card'](); },
|
|
2539
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_form_ideal'](); },
|
|
2329
2540
|
function () { return factories['io.flow.stripe.v0.models.payment_method_form_klarna'](); },
|
|
2541
|
+
function () { return factories['io.flow.stripe.v0.models.payment_method_form_bancontact'](); },
|
|
2330
2542
|
]);
|
|
2331
2543
|
return f();
|
|
2332
2544
|
},
|
|
@@ -2846,6 +3058,7 @@ var factories = {
|
|
|
2846
3058
|
'business_street_address_is_po_box',
|
|
2847
3059
|
'exception_merchant',
|
|
2848
3060
|
'application_missing',
|
|
3061
|
+
'missing_logistics_contact_info',
|
|
2849
3062
|
]); },
|
|
2850
3063
|
'io.flow.v0.enums.onboarding_trade_sector': function () { return faker.helpers.arrayElement([
|
|
2851
3064
|
'accessories',
|
|
@@ -3014,6 +3227,7 @@ var factories = {
|
|
|
3014
3227
|
'order_missing_information',
|
|
3015
3228
|
'order_domestic',
|
|
3016
3229
|
'order_mismatched_currencies',
|
|
3230
|
+
'order_missing',
|
|
3017
3231
|
]); },
|
|
3018
3232
|
'io.flow.v0.enums.payment_request_review_status': function () { return faker.helpers.arrayElement(['pending', 'approved', 'rejected']); },
|
|
3019
3233
|
'io.flow.v0.enums.payment_source_confirmation_action_type': function () { return faker.helpers.arrayElement(['cvv', 'billing_address', 'number']); },
|
|
@@ -9136,6 +9350,14 @@ var factories = {
|
|
|
9136
9350
|
discriminator: 'payment_processor_reference',
|
|
9137
9351
|
processor: factories.string(),
|
|
9138
9352
|
}); },
|
|
9353
|
+
'io.flow.v0.models.payment_processor_transaction_details_apm': function () { return ({
|
|
9354
|
+
discriminator: 'apm',
|
|
9355
|
+
transaction_identifier: factories.string(),
|
|
9356
|
+
capture_identifier: factories.string(),
|
|
9357
|
+
method_type: factories.string(),
|
|
9358
|
+
result_status: factories.string(),
|
|
9359
|
+
reason_code: factories.string(),
|
|
9360
|
+
}); },
|
|
9139
9361
|
'io.flow.v0.models.payment_processor_transaction_details_card': function () { return ({
|
|
9140
9362
|
discriminator: 'card',
|
|
9141
9363
|
transaction_identifier: factories.string(),
|
|
@@ -9212,6 +9434,10 @@ var factories = {
|
|
|
9212
9434
|
payment_request: factories['io.flow.v0.models.payment_request_form'](),
|
|
9213
9435
|
billing: factories['io.flow.v0.models.payment_request_billing'](),
|
|
9214
9436
|
}); },
|
|
9437
|
+
'io.flow.v0.models.payment_request_cancellation_reason_order_missing': function () { return ({
|
|
9438
|
+
type: 'order_missing',
|
|
9439
|
+
description: factories.string(),
|
|
9440
|
+
}); },
|
|
9215
9441
|
'io.flow.v0.models.payment_request_deleted': function () { return ({
|
|
9216
9442
|
discriminator: 'payment_request_deleted',
|
|
9217
9443
|
event_id: factories.string(),
|
|
@@ -9333,6 +9559,7 @@ var factories = {
|
|
|
9333
9559
|
'io.flow.v0.models.paypal_authorization_details': function () { return ({
|
|
9334
9560
|
discriminator: 'paypal_authorization_details',
|
|
9335
9561
|
payment_id: factories.string(),
|
|
9562
|
+
internal_payment_id: factories.string(),
|
|
9336
9563
|
payment_method: factories.string(),
|
|
9337
9564
|
payment_state: factories.string(),
|
|
9338
9565
|
payer_id: factories.string(),
|
|
@@ -10200,6 +10427,10 @@ var factories = {
|
|
|
10200
10427
|
'io.flow.v0.models.region_setting_form': function () { return ({
|
|
10201
10428
|
status: factories['io.flow.v0.enums.availability_status'](),
|
|
10202
10429
|
}); },
|
|
10430
|
+
'io.flow.v0.models.rejection_put_form': function () { return ({
|
|
10431
|
+
reason: factories['io.flow.v0.enums.merchant_rejected_reason'](),
|
|
10432
|
+
description: factories.string(),
|
|
10433
|
+
}); },
|
|
10203
10434
|
'io.flow.v0.models.remote_area_by_weight_service_fee': function () { return ({
|
|
10204
10435
|
discriminator: 'remote_area_by_weight_service_fee',
|
|
10205
10436
|
amount: factories['io.flow.v0.models.money'](),
|
|
@@ -11861,7 +12092,7 @@ var factories = {
|
|
|
11861
12092
|
discriminator: 'channel',
|
|
11862
12093
|
method: factories.string(),
|
|
11863
12094
|
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
11864
|
-
organization_transaction: factories['io.flow.v0.models.
|
|
12095
|
+
organization_transaction: factories['io.flow.v0.models.transaction_metadata_channel_organization_transaction'](),
|
|
11865
12096
|
}); },
|
|
11866
12097
|
'io.flow.v0.models.transaction_metadata_channel_card_metadata': function () { return ({
|
|
11867
12098
|
type: factories['io.flow.v0.enums.card_type'](),
|
|
@@ -11871,6 +12102,10 @@ var factories = {
|
|
|
11871
12102
|
iin: factories.string(),
|
|
11872
12103
|
country: factories.string(),
|
|
11873
12104
|
}); },
|
|
12105
|
+
'io.flow.v0.models.transaction_metadata_channel_organization_transaction': function () { return ({
|
|
12106
|
+
id: factories.string(),
|
|
12107
|
+
metadata: factories['io.flow.v0.models.transaction_metadata_payment_transaction'](),
|
|
12108
|
+
}); },
|
|
11874
12109
|
'io.flow.v0.models.transaction_metadata_failed_payout': function () { return ({
|
|
11875
12110
|
discriminator: 'failed_payout',
|
|
11876
12111
|
failed_payout: factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](),
|
|
@@ -12965,6 +13200,13 @@ var factories = {
|
|
|
12965
13200
|
'io.flow.v0.unions.payment_processor_transaction_details': function () {
|
|
12966
13201
|
var f = faker.helpers.arrayElement([
|
|
12967
13202
|
function () { return factories['io.flow.v0.models.payment_processor_transaction_details_card'](); },
|
|
13203
|
+
function () { return factories['io.flow.v0.models.payment_processor_transaction_details_apm'](); },
|
|
13204
|
+
]);
|
|
13205
|
+
return f();
|
|
13206
|
+
},
|
|
13207
|
+
'io.flow.v0.unions.payment_request_cancellation_reason': function () {
|
|
13208
|
+
var f = faker.helpers.arrayElement([
|
|
13209
|
+
function () { return factories['io.flow.v0.models.payment_request_cancellation_reason_order_missing'](); },
|
|
12968
13210
|
]);
|
|
12969
13211
|
return f();
|
|
12970
13212
|
},
|
|
@@ -14380,6 +14622,7 @@ export var makePaymentProcessorAccountReference = function () { return factories
|
|
|
14380
14622
|
export var makePaymentProcessorIdentifier = function () { return factories['io.flow.v0.models.payment_processor_identifier'](); };
|
|
14381
14623
|
export var makePaymentProcessorReference = function () { return factories['io.flow.v0.models.payment_processor_reference'](); };
|
|
14382
14624
|
export var makePaymentProcessorTransactionDetails = function () { return factories['io.flow.v0.unions.payment_processor_transaction_details'](); };
|
|
14625
|
+
export var makePaymentProcessorTransactionDetailsApm = function () { return factories['io.flow.v0.models.payment_processor_transaction_details_apm'](); };
|
|
14383
14626
|
export var makePaymentProcessorTransactionDetailsCard = function () { return factories['io.flow.v0.models.payment_processor_transaction_details_card'](); };
|
|
14384
14627
|
export var makePaymentReference = function () { return factories['io.flow.v0.models.payment_reference'](); };
|
|
14385
14628
|
export var makePaymentRefund = function () { return factories['io.flow.v0.models.payment_refund'](); };
|
|
@@ -14391,6 +14634,8 @@ export var makePaymentRequestBillingCurrencyRate = function () { return factorie
|
|
|
14391
14634
|
export var makePaymentRequestBillingFees = function () { return factories['io.flow.v0.models.payment_request_billing_fees'](); };
|
|
14392
14635
|
export var makePaymentRequestBundle = function () { return factories['io.flow.v0.models.payment_request_bundle'](); };
|
|
14393
14636
|
export var makePaymentRequestBundleForm = function () { return factories['io.flow.v0.models.payment_request_bundle_form'](); };
|
|
14637
|
+
export var makePaymentRequestCancellationReason = function () { return factories['io.flow.v0.unions.payment_request_cancellation_reason'](); };
|
|
14638
|
+
export var makePaymentRequestCancellationReasonOrderMissing = function () { return factories['io.flow.v0.models.payment_request_cancellation_reason_order_missing'](); };
|
|
14394
14639
|
export var makePaymentRequestDeleted = function () { return factories['io.flow.v0.models.payment_request_deleted'](); };
|
|
14395
14640
|
export var makePaymentRequestForm = function () { return factories['io.flow.v0.models.payment_request_form'](); };
|
|
14396
14641
|
export var makePaymentRequestReference = function () { return factories['io.flow.v0.models.payment_request_reference'](); };
|
|
@@ -14576,6 +14821,7 @@ export var makeRegionReference = function () { return factories['io.flow.v0.mode
|
|
|
14576
14821
|
export var makeRegionSetting = function () { return factories['io.flow.v0.models.region_setting'](); };
|
|
14577
14822
|
export var makeRegionSettingForm = function () { return factories['io.flow.v0.models.region_setting_form'](); };
|
|
14578
14823
|
export var makeRegionType = function () { return factories['io.flow.v0.enums.region_type'](); };
|
|
14824
|
+
export var makeRejectionPutForm = function () { return factories['io.flow.v0.models.rejection_put_form'](); };
|
|
14579
14825
|
export var makeRemoteAreaByWeightServiceFee = function () { return factories['io.flow.v0.models.remote_area_by_weight_service_fee'](); };
|
|
14580
14826
|
export var makeRemoteAreaRatecardFee = function () { return factories['io.flow.v0.models.remote_area_ratecard_fee'](); };
|
|
14581
14827
|
export var makeRemoteAreaServiceFee = function () { return factories['io.flow.v0.models.remote_area_service_fee'](); };
|
|
@@ -14903,6 +15149,7 @@ export var makeTransactionMetadataCarrierCharge = function () { return factories
|
|
|
14903
15149
|
export var makeTransactionMetadataChannel = function () { return factories['io.flow.v0.models.transaction_metadata_channel'](); };
|
|
14904
15150
|
export var makeTransactionMetadataChannelCardMetadata = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](); };
|
|
14905
15151
|
export var makeTransactionMetadataChannelCardMetadataIssuerSummary = function () { return factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary'](); };
|
|
15152
|
+
export var makeTransactionMetadataChannelOrganizationTransaction = function () { return factories['io.flow.v0.models.transaction_metadata_channel_organization_transaction'](); };
|
|
14906
15153
|
export var makeTransactionMetadataFailedPayout = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout'](); };
|
|
14907
15154
|
export var makeTransactionMetadataFailedPayoutReference = function () { return factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](); };
|
|
14908
15155
|
export var makeTransactionMetadataManual = function () { return factories['io.flow.v0.models.transaction_metadata_manual'](); };
|
package/dist/types/api.d.ts
CHANGED
|
@@ -1157,7 +1157,8 @@ export declare const makePaymentProcessorAccount: () => io.flow.v0.models.Paymen
|
|
|
1157
1157
|
export declare const makePaymentProcessorAccountReference: () => io.flow.v0.models.PaymentProcessorAccountReference;
|
|
1158
1158
|
export declare const makePaymentProcessorIdentifier: () => io.flow.v0.models.PaymentProcessorIdentifier;
|
|
1159
1159
|
export declare const makePaymentProcessorReference: () => io.flow.v0.models.PaymentProcessorReference;
|
|
1160
|
-
export declare const makePaymentProcessorTransactionDetails: () => io.flow.v0.
|
|
1160
|
+
export declare const makePaymentProcessorTransactionDetails: () => io.flow.v0.unions.PaymentProcessorTransactionDetails;
|
|
1161
|
+
export declare const makePaymentProcessorTransactionDetailsApm: () => io.flow.v0.models.PaymentProcessorTransactionDetailsApm;
|
|
1161
1162
|
export declare const makePaymentProcessorTransactionDetailsCard: () => io.flow.v0.models.PaymentProcessorTransactionDetailsCard;
|
|
1162
1163
|
export declare const makePaymentReference: () => io.flow.v0.models.PaymentReference;
|
|
1163
1164
|
export declare const makePaymentRefund: () => io.flow.v0.models.PaymentRefund;
|
|
@@ -1169,6 +1170,8 @@ export declare const makePaymentRequestBillingCurrencyRate: () => io.flow.v0.mod
|
|
|
1169
1170
|
export declare const makePaymentRequestBillingFees: () => io.flow.v0.models.PaymentRequestBillingFees;
|
|
1170
1171
|
export declare const makePaymentRequestBundle: () => io.flow.v0.models.PaymentRequestBundle;
|
|
1171
1172
|
export declare const makePaymentRequestBundleForm: () => io.flow.v0.models.PaymentRequestBundleForm;
|
|
1173
|
+
export declare const makePaymentRequestCancellationReason: () => io.flow.v0.models.PaymentRequestCancellationReasonOrderMissing;
|
|
1174
|
+
export declare const makePaymentRequestCancellationReasonOrderMissing: () => io.flow.v0.models.PaymentRequestCancellationReasonOrderMissing;
|
|
1172
1175
|
export declare const makePaymentRequestDeleted: () => io.flow.v0.models.PaymentRequestDeleted;
|
|
1173
1176
|
export declare const makePaymentRequestForm: () => io.flow.v0.models.PaymentRequestForm;
|
|
1174
1177
|
export declare const makePaymentRequestReference: () => io.flow.v0.models.PaymentRequestReference;
|
|
@@ -1354,6 +1357,7 @@ export declare const makeRegionReference: () => io.flow.v0.models.RegionReferenc
|
|
|
1354
1357
|
export declare const makeRegionSetting: () => io.flow.v0.models.RegionSetting;
|
|
1355
1358
|
export declare const makeRegionSettingForm: () => io.flow.v0.models.RegionSettingForm;
|
|
1356
1359
|
export declare const makeRegionType: () => io.flow.v0.enums.RegionType;
|
|
1360
|
+
export declare const makeRejectionPutForm: () => io.flow.v0.models.RejectionPutForm;
|
|
1357
1361
|
export declare const makeRemoteAreaByWeightServiceFee: () => io.flow.v0.models.RemoteAreaByWeightServiceFee;
|
|
1358
1362
|
export declare const makeRemoteAreaRatecardFee: () => io.flow.v0.models.RemoteAreaRatecardFee;
|
|
1359
1363
|
export declare const makeRemoteAreaServiceFee: () => io.flow.v0.models.RemoteAreaServiceFee;
|
|
@@ -1681,6 +1685,7 @@ export declare const makeTransactionMetadataCarrierCharge: () => io.flow.v0.mode
|
|
|
1681
1685
|
export declare const makeTransactionMetadataChannel: () => io.flow.v0.models.TransactionMetadataChannel;
|
|
1682
1686
|
export declare const makeTransactionMetadataChannelCardMetadata: () => io.flow.v0.models.TransactionMetadataChannelCardMetadata;
|
|
1683
1687
|
export declare const makeTransactionMetadataChannelCardMetadataIssuerSummary: () => io.flow.v0.models.TransactionMetadataChannelCardMetadataIssuerSummary;
|
|
1688
|
+
export declare const makeTransactionMetadataChannelOrganizationTransaction: () => io.flow.v0.models.TransactionMetadataChannelOrganizationTransaction;
|
|
1684
1689
|
export declare const makeTransactionMetadataFailedPayout: () => io.flow.v0.models.TransactionMetadataFailedPayout;
|
|
1685
1690
|
export declare const makeTransactionMetadataFailedPayoutReference: () => io.flow.v0.models.TransactionMetadataFailedPayoutReference;
|
|
1686
1691
|
export declare const makeTransactionMetadataManual: () => io.flow.v0.models.TransactionMetadataManual;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flowio/api-factories",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.88",
|
|
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": "e2172791ebb0708545e2d68100656b52120f50e4"
|
|
40
40
|
}
|