@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/src/api.ts
CHANGED
|
@@ -588,6 +588,7 @@ const factories = {
|
|
|
588
588
|
published_at: factories.date_time_iso_8601(),
|
|
589
589
|
created_at: factories.date_time_iso_8601(),
|
|
590
590
|
updated_at: factories.date_time_iso_8601(),
|
|
591
|
+
has_variants_that_requires_components: factories.boolean(),
|
|
591
592
|
}),
|
|
592
593
|
|
|
593
594
|
'io.flow.shopify.external.v0.models.product_delete': (): io.flow.shopify.external.v0.models.ProductDelete => ({
|
|
@@ -1399,6 +1400,45 @@ const factories = {
|
|
|
1399
1400
|
'io.flow.stripe.v0.enums.account_type': (): io.flow.stripe.v0.enums.AccountType => faker.helpers.arrayElement(['platform', 'custom', 'standard', 'express']),
|
|
1400
1401
|
'io.flow.stripe.v0.enums.apple_pay_type': (): io.flow.stripe.v0.enums.ApplePayType => faker.helpers.arrayElement(['apple_pay', 'apple_pay_later']),
|
|
1401
1402
|
|
|
1403
|
+
'io.flow.stripe.v0.enums.bank_ideal': (): io.flow.stripe.v0.enums.BankIdeal => faker.helpers.arrayElement([
|
|
1404
|
+
'abn_amro',
|
|
1405
|
+
'asn_bank',
|
|
1406
|
+
'bunq',
|
|
1407
|
+
'handelsbanken',
|
|
1408
|
+
'ing',
|
|
1409
|
+
'knab',
|
|
1410
|
+
'moneyou',
|
|
1411
|
+
'n26',
|
|
1412
|
+
'nn',
|
|
1413
|
+
'rabobank',
|
|
1414
|
+
'regiobank',
|
|
1415
|
+
'revolut',
|
|
1416
|
+
'sns_bank',
|
|
1417
|
+
'triodos_bank',
|
|
1418
|
+
'van_lanschot',
|
|
1419
|
+
'yoursafe',
|
|
1420
|
+
]),
|
|
1421
|
+
|
|
1422
|
+
'io.flow.stripe.v0.enums.bic_ideal': (): io.flow.stripe.v0.enums.BicIdeal => faker.helpers.arrayElement([
|
|
1423
|
+
'ABNANL2A',
|
|
1424
|
+
'ASNBNL21',
|
|
1425
|
+
'BITSNL2A',
|
|
1426
|
+
'BUNQNL2A',
|
|
1427
|
+
'FVLBNL22',
|
|
1428
|
+
'HANDNL2A',
|
|
1429
|
+
'INGBNL2A',
|
|
1430
|
+
'KNABNL2H',
|
|
1431
|
+
'MOYONL21',
|
|
1432
|
+
'NNBANL2G',
|
|
1433
|
+
'NTSBDEB1',
|
|
1434
|
+
'RABONL2U',
|
|
1435
|
+
'RBRBNL21',
|
|
1436
|
+
'REVOIE23',
|
|
1437
|
+
'REVOLT21',
|
|
1438
|
+
'SNSBNL2A',
|
|
1439
|
+
'TRIONL2U',
|
|
1440
|
+
]),
|
|
1441
|
+
|
|
1402
1442
|
'io.flow.stripe.v0.enums.cancellation_reason': (): io.flow.stripe.v0.enums.CancellationReason => faker.helpers.arrayElement([
|
|
1403
1443
|
'abandoned',
|
|
1404
1444
|
'automatic',
|
|
@@ -1489,6 +1529,44 @@ const factories = {
|
|
|
1489
1529
|
'requested_block_on_incorrect_cvc',
|
|
1490
1530
|
]),
|
|
1491
1531
|
|
|
1532
|
+
'io.flow.stripe.v0.enums.dispute_event_type': (): io.flow.stripe.v0.enums.DisputeEventType => faker.helpers.arrayElement([
|
|
1533
|
+
'charge.dispute.closed',
|
|
1534
|
+
'charge.dispute.created',
|
|
1535
|
+
'charge.dispute.funds_reinstated',
|
|
1536
|
+
'charge.dispute.funds_withdrawn',
|
|
1537
|
+
'charge.dispute.updated',
|
|
1538
|
+
]),
|
|
1539
|
+
|
|
1540
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type': (): io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType => faker.helpers.arrayElement(['chargeback', 'inquiry']),
|
|
1541
|
+
'io.flow.stripe.v0.enums.dispute_payment_method_details_type': (): io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType => faker.helpers.arrayElement(['card', 'klarna', 'paypal']),
|
|
1542
|
+
|
|
1543
|
+
'io.flow.stripe.v0.enums.dispute_reason': (): io.flow.stripe.v0.enums.DisputeReason => faker.helpers.arrayElement([
|
|
1544
|
+
'bank_cannot_process',
|
|
1545
|
+
'check_returned',
|
|
1546
|
+
'credit_not_processed',
|
|
1547
|
+
'customer_initiated',
|
|
1548
|
+
'debit_not_authorized',
|
|
1549
|
+
'duplicate',
|
|
1550
|
+
'fraudulent',
|
|
1551
|
+
'general',
|
|
1552
|
+
'incorrect_account_details',
|
|
1553
|
+
'insufficient_funds',
|
|
1554
|
+
'product_not_received',
|
|
1555
|
+
'product_unacceptable',
|
|
1556
|
+
'subscription_canceled',
|
|
1557
|
+
'unrecognized',
|
|
1558
|
+
]),
|
|
1559
|
+
|
|
1560
|
+
'io.flow.stripe.v0.enums.dispute_status': (): io.flow.stripe.v0.enums.DisputeStatus => faker.helpers.arrayElement([
|
|
1561
|
+
'warning_needs_response',
|
|
1562
|
+
'warning_under_review',
|
|
1563
|
+
'warning_closed',
|
|
1564
|
+
'needs_response',
|
|
1565
|
+
'under_review',
|
|
1566
|
+
'won',
|
|
1567
|
+
'lost',
|
|
1568
|
+
]),
|
|
1569
|
+
|
|
1492
1570
|
'io.flow.stripe.v0.enums.error_code': (): io.flow.stripe.v0.enums.ErrorCode => faker.helpers.arrayElement([
|
|
1493
1571
|
'invalid_number',
|
|
1494
1572
|
'invalid_expiry_month',
|
|
@@ -1583,6 +1661,11 @@ const factories = {
|
|
|
1583
1661
|
'charge.succeeded',
|
|
1584
1662
|
'charge.updated',
|
|
1585
1663
|
'charge.refund.updated',
|
|
1664
|
+
'charge.dispute.closed',
|
|
1665
|
+
'charge.dispute.created',
|
|
1666
|
+
'charge.dispute.funds_reinstated',
|
|
1667
|
+
'charge.dispute.funds_withdrawn',
|
|
1668
|
+
'charge.dispute.updated',
|
|
1586
1669
|
'payment_intent.created',
|
|
1587
1670
|
'payment_intent.amount_capturable_updated',
|
|
1588
1671
|
'payment_intent.payment_failed',
|
|
@@ -1629,9 +1712,10 @@ const factories = {
|
|
|
1629
1712
|
]),
|
|
1630
1713
|
|
|
1631
1714
|
'io.flow.stripe.v0.enums.payment_method_category_klarna': (): io.flow.stripe.v0.enums.PaymentMethodCategoryKlarna => faker.helpers.arrayElement(['pay_later', 'pay_now', 'pay_with_financing', 'pay_in_installments']),
|
|
1632
|
-
'io.flow.stripe.v0.enums.payment_method_type': (): io.flow.stripe.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['card', 'card_present', 'klarna']),
|
|
1715
|
+
'io.flow.stripe.v0.enums.payment_method_type': (): io.flow.stripe.v0.enums.PaymentMethodType => faker.helpers.arrayElement(['card', 'card_present', 'ideal', 'klarna', 'bancontact']),
|
|
1633
1716
|
'io.flow.stripe.v0.enums.payment_outcome_type': (): io.flow.stripe.v0.enums.PaymentOutcomeType => faker.helpers.arrayElement(['authorized', 'manual_review', 'issuer_declined', 'blocked', 'invalid']),
|
|
1634
1717
|
'io.flow.stripe.v0.enums.payment_status': (): io.flow.stripe.v0.enums.PaymentStatus => faker.helpers.arrayElement(['succeeded', 'pending', 'failed']),
|
|
1718
|
+
'io.flow.stripe.v0.enums.preferred_language_bancontact': (): io.flow.stripe.v0.enums.PreferredLanguageBancontact => faker.helpers.arrayElement(['de', 'en', 'fr', 'nl']),
|
|
1635
1719
|
|
|
1636
1720
|
'io.flow.stripe.v0.enums.preferred_locale_klarna': (): io.flow.stripe.v0.enums.PreferredLocaleKlarna => faker.helpers.arrayElement([
|
|
1637
1721
|
'de-AT',
|
|
@@ -1956,6 +2040,54 @@ const factories = {
|
|
|
1956
2040
|
description: factories.string(),
|
|
1957
2041
|
}),
|
|
1958
2042
|
|
|
2043
|
+
'io.flow.stripe.v0.models.dispute': (): io.flow.stripe.v0.models.Dispute => ({
|
|
2044
|
+
id: factories.string(),
|
|
2045
|
+
amount: factories.integer(),
|
|
2046
|
+
charge: factories.string(),
|
|
2047
|
+
currency: factories.string(),
|
|
2048
|
+
evidence: factories.object(),
|
|
2049
|
+
metadata: objectOf(() => factories.string()),
|
|
2050
|
+
payment_intent: factories.string(),
|
|
2051
|
+
reason: factories['io.flow.stripe.v0.enums.dispute_reason'](),
|
|
2052
|
+
status: factories['io.flow.stripe.v0.enums.dispute_status'](),
|
|
2053
|
+
object: factories.string(),
|
|
2054
|
+
balance_transactions: arrayOf(() => factories.object()),
|
|
2055
|
+
created: factories.long(),
|
|
2056
|
+
evidence_details: factories['io.flow.stripe.v0.models.dispute_evidence_details'](),
|
|
2057
|
+
is_charge_refundable: factories.boolean(),
|
|
2058
|
+
livemode: factories.boolean(),
|
|
2059
|
+
payment_method_details: factories['io.flow.stripe.v0.models.dispute_payment_method_details'](),
|
|
2060
|
+
}),
|
|
2061
|
+
|
|
2062
|
+
'io.flow.stripe.v0.models.dispute_evidence_details': (): io.flow.stripe.v0.models.DisputeEvidenceDetails => ({
|
|
2063
|
+
due_by: factories.long(),
|
|
2064
|
+
has_evidence: factories.boolean(),
|
|
2065
|
+
past_due: factories.boolean(),
|
|
2066
|
+
submission_count: factories.integer(),
|
|
2067
|
+
}),
|
|
2068
|
+
|
|
2069
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details': (): io.flow.stripe.v0.models.DisputePaymentMethodDetails => ({
|
|
2070
|
+
card: factories['io.flow.stripe.v0.models.dispute_payment_method_details_card'](),
|
|
2071
|
+
klarna: factories['io.flow.stripe.v0.models.dispute_payment_method_details_klarna'](),
|
|
2072
|
+
paypal: factories['io.flow.stripe.v0.models.dispute_payment_method_details_paypal'](),
|
|
2073
|
+
type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_type'](),
|
|
2074
|
+
}),
|
|
2075
|
+
|
|
2076
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_card': (): io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard => ({
|
|
2077
|
+
brand: factories.string(),
|
|
2078
|
+
case_type: factories['io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type'](),
|
|
2079
|
+
network_reason_code: factories.string(),
|
|
2080
|
+
}),
|
|
2081
|
+
|
|
2082
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_klarna': (): io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna => ({
|
|
2083
|
+
reason_code: factories.string(),
|
|
2084
|
+
}),
|
|
2085
|
+
|
|
2086
|
+
'io.flow.stripe.v0.models.dispute_payment_method_details_paypal': (): io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal => ({
|
|
2087
|
+
case_id: factories.string(),
|
|
2088
|
+
reason_code: factories.string(),
|
|
2089
|
+
}),
|
|
2090
|
+
|
|
1959
2091
|
'io.flow.stripe.v0.models.error': (): io.flow.stripe.v0.models.Error => ({
|
|
1960
2092
|
error: factories['io.flow.stripe.v0.models.stripe_error'](),
|
|
1961
2093
|
}),
|
|
@@ -2214,8 +2346,10 @@ const factories = {
|
|
|
2214
2346
|
id: factories.string(),
|
|
2215
2347
|
object: factories.string(),
|
|
2216
2348
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2349
|
+
bancontact: factories.object(),
|
|
2217
2350
|
card: factories['io.flow.stripe.v0.models.payment_method_card_details'](),
|
|
2218
2351
|
card_present: factories.object(),
|
|
2352
|
+
ideal: factories.object(),
|
|
2219
2353
|
klarna: factories.object(),
|
|
2220
2354
|
created: factories.long(),
|
|
2221
2355
|
customer: factories.string(),
|
|
@@ -2250,6 +2384,12 @@ const factories = {
|
|
|
2250
2384
|
cvc: factories.string(),
|
|
2251
2385
|
}),
|
|
2252
2386
|
|
|
2387
|
+
'io.flow.stripe.v0.models.payment_method_data_bancontact': (): io.flow.stripe.v0.models.PaymentMethodDataBancontact => ({
|
|
2388
|
+
type: 'bancontact',
|
|
2389
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2390
|
+
metadata: factories.object(),
|
|
2391
|
+
}),
|
|
2392
|
+
|
|
2253
2393
|
'io.flow.stripe.v0.models.payment_method_data_card': (): io.flow.stripe.v0.models.PaymentMethodDataCard => ({
|
|
2254
2394
|
type: 'card',
|
|
2255
2395
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
@@ -2257,6 +2397,13 @@ const factories = {
|
|
|
2257
2397
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2258
2398
|
}),
|
|
2259
2399
|
|
|
2400
|
+
'io.flow.stripe.v0.models.payment_method_data_ideal': (): io.flow.stripe.v0.models.PaymentMethodDataIdeal => ({
|
|
2401
|
+
type: 'ideal',
|
|
2402
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2403
|
+
metadata: factories.object(),
|
|
2404
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_ideal_form'](),
|
|
2405
|
+
}),
|
|
2406
|
+
|
|
2260
2407
|
'io.flow.stripe.v0.models.payment_method_data_klarna': (): io.flow.stripe.v0.models.PaymentMethodDataKlarna => ({
|
|
2261
2408
|
type: 'klarna',
|
|
2262
2409
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
@@ -2264,6 +2411,22 @@ const factories = {
|
|
|
2264
2411
|
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
2265
2412
|
}),
|
|
2266
2413
|
|
|
2414
|
+
'io.flow.stripe.v0.models.payment_method_details_bancontact': (): io.flow.stripe.v0.models.PaymentMethodDetailsBancontact => ({
|
|
2415
|
+
type: 'bancontact',
|
|
2416
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_details_bancontact_information'](),
|
|
2417
|
+
}),
|
|
2418
|
+
|
|
2419
|
+
'io.flow.stripe.v0.models.payment_method_details_bancontact_information': (): io.flow.stripe.v0.models.PaymentMethodDetailsBancontactInformation => ({
|
|
2420
|
+
bank_code: factories.string(),
|
|
2421
|
+
bank_name: factories.string(),
|
|
2422
|
+
bic: factories.string(),
|
|
2423
|
+
generated_sepa_debit: factories.string(),
|
|
2424
|
+
generated_sepa_debit_mandate: factories.string(),
|
|
2425
|
+
iban_last4: factories.string(),
|
|
2426
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2427
|
+
verified_name: factories.string(),
|
|
2428
|
+
}),
|
|
2429
|
+
|
|
2267
2430
|
'io.flow.stripe.v0.models.payment_method_details_card': (): io.flow.stripe.v0.models.PaymentMethodDetailsCard => ({
|
|
2268
2431
|
type: 'card',
|
|
2269
2432
|
card: factories['io.flow.stripe.v0.models.payment_method_details_card_information'](),
|
|
@@ -2295,6 +2458,20 @@ const factories = {
|
|
|
2295
2458
|
overcapture: factories['io.flow.stripe.v0.models.overcapture'](),
|
|
2296
2459
|
}),
|
|
2297
2460
|
|
|
2461
|
+
'io.flow.stripe.v0.models.payment_method_details_ideal': (): io.flow.stripe.v0.models.PaymentMethodDetailsIdeal => ({
|
|
2462
|
+
type: 'ideal',
|
|
2463
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_details_ideal_information'](),
|
|
2464
|
+
}),
|
|
2465
|
+
|
|
2466
|
+
'io.flow.stripe.v0.models.payment_method_details_ideal_information': (): io.flow.stripe.v0.models.PaymentMethodDetailsIdealInformation => ({
|
|
2467
|
+
bank: factories['io.flow.stripe.v0.enums.bank_ideal'](),
|
|
2468
|
+
bic: factories['io.flow.stripe.v0.enums.bic_ideal'](),
|
|
2469
|
+
generated_sepa_debit: factories.string(),
|
|
2470
|
+
generated_sepa_debit_mandate: factories.string(),
|
|
2471
|
+
iban_last4: factories.string(),
|
|
2472
|
+
verified_name: factories.string(),
|
|
2473
|
+
}),
|
|
2474
|
+
|
|
2298
2475
|
'io.flow.stripe.v0.models.payment_method_details_klarna': (): io.flow.stripe.v0.models.PaymentMethodDetailsKlarna => ({
|
|
2299
2476
|
type: 'klarna',
|
|
2300
2477
|
klarna: factories['io.flow.stripe.v0.models.payment_method_details_klarna_information'](),
|
|
@@ -2305,6 +2482,13 @@ const factories = {
|
|
|
2305
2482
|
preferred_locale: factories['io.flow.stripe.v0.enums.preferred_locale_klarna'](),
|
|
2306
2483
|
}),
|
|
2307
2484
|
|
|
2485
|
+
'io.flow.stripe.v0.models.payment_method_form_bancontact': (): io.flow.stripe.v0.models.PaymentMethodFormBancontact => ({
|
|
2486
|
+
type: 'bancontact',
|
|
2487
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2488
|
+
metadata: factories.object(),
|
|
2489
|
+
bancontact: factories.object(),
|
|
2490
|
+
}),
|
|
2491
|
+
|
|
2308
2492
|
'io.flow.stripe.v0.models.payment_method_form_card': (): io.flow.stripe.v0.models.PaymentMethodFormCard => ({
|
|
2309
2493
|
type: 'card',
|
|
2310
2494
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
@@ -2312,6 +2496,13 @@ const factories = {
|
|
|
2312
2496
|
card: factories['io.flow.stripe.v0.models.payment_method_card_form'](),
|
|
2313
2497
|
}),
|
|
2314
2498
|
|
|
2499
|
+
'io.flow.stripe.v0.models.payment_method_form_ideal': (): io.flow.stripe.v0.models.PaymentMethodFormIdeal => ({
|
|
2500
|
+
type: 'ideal',
|
|
2501
|
+
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
2502
|
+
metadata: factories.object(),
|
|
2503
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_ideal_form'](),
|
|
2504
|
+
}),
|
|
2505
|
+
|
|
2315
2506
|
'io.flow.stripe.v0.models.payment_method_form_klarna': (): io.flow.stripe.v0.models.PaymentMethodFormKlarna => ({
|
|
2316
2507
|
type: 'klarna',
|
|
2317
2508
|
billing_details: factories['io.flow.stripe.v0.models.payment_method_billing_details'](),
|
|
@@ -2319,13 +2510,27 @@ const factories = {
|
|
|
2319
2510
|
klarna: factories['io.flow.stripe.v0.models.payment_method_klarna_form'](),
|
|
2320
2511
|
}),
|
|
2321
2512
|
|
|
2513
|
+
'io.flow.stripe.v0.models.payment_method_ideal_form': (): io.flow.stripe.v0.models.PaymentMethodIdealForm => ({
|
|
2514
|
+
bank: factories.string(),
|
|
2515
|
+
}),
|
|
2516
|
+
|
|
2322
2517
|
'io.flow.stripe.v0.models.payment_method_klarna_form': (): io.flow.stripe.v0.models.PaymentMethodKlarnaForm => ({
|
|
2323
2518
|
dob: factories['io.flow.stripe.v0.models.klarna_dob_form'](),
|
|
2324
2519
|
}),
|
|
2325
2520
|
|
|
2326
2521
|
'io.flow.stripe.v0.models.payment_method_options': (): io.flow.stripe.v0.models.PaymentMethodOptions => ({
|
|
2327
2522
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card'](),
|
|
2523
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_options_ideal'](),
|
|
2328
2524
|
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna'](),
|
|
2525
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_options_bancontact'](),
|
|
2526
|
+
}),
|
|
2527
|
+
|
|
2528
|
+
'io.flow.stripe.v0.models.payment_method_options_bancontact': (): io.flow.stripe.v0.models.PaymentMethodOptionsBancontact => ({
|
|
2529
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2530
|
+
}),
|
|
2531
|
+
|
|
2532
|
+
'io.flow.stripe.v0.models.payment_method_options_bancontact_form': (): io.flow.stripe.v0.models.PaymentMethodOptionsBancontactForm => ({
|
|
2533
|
+
preferred_language: factories['io.flow.stripe.v0.enums.preferred_language_bancontact'](),
|
|
2329
2534
|
}),
|
|
2330
2535
|
|
|
2331
2536
|
'io.flow.stripe.v0.models.payment_method_options_card': (): io.flow.stripe.v0.models.PaymentMethodOptionsCard => ({
|
|
@@ -2345,7 +2550,17 @@ const factories = {
|
|
|
2345
2550
|
|
|
2346
2551
|
'io.flow.stripe.v0.models.payment_method_options_form': (): io.flow.stripe.v0.models.PaymentMethodOptionsForm => ({
|
|
2347
2552
|
card: factories['io.flow.stripe.v0.models.payment_method_options_card_form'](),
|
|
2553
|
+
ideal: factories['io.flow.stripe.v0.models.payment_method_options_ideal_form'](),
|
|
2348
2554
|
klarna: factories['io.flow.stripe.v0.models.payment_method_options_klarna_form'](),
|
|
2555
|
+
bancontact: factories['io.flow.stripe.v0.models.payment_method_options_bancontact_form'](),
|
|
2556
|
+
}),
|
|
2557
|
+
|
|
2558
|
+
'io.flow.stripe.v0.models.payment_method_options_ideal': (): io.flow.stripe.v0.models.PaymentMethodOptionsIdeal => ({
|
|
2559
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2560
|
+
}),
|
|
2561
|
+
|
|
2562
|
+
'io.flow.stripe.v0.models.payment_method_options_ideal_form': (): io.flow.stripe.v0.models.PaymentMethodOptionsIdealForm => ({
|
|
2563
|
+
setup_future_usage: factories['io.flow.stripe.v0.enums.setup_future_usage'](),
|
|
2349
2564
|
}),
|
|
2350
2565
|
|
|
2351
2566
|
'io.flow.stripe.v0.models.payment_method_options_klarna': (): io.flow.stripe.v0.models.PaymentMethodOptionsKlarna => ({
|
|
@@ -2560,6 +2775,24 @@ const factories = {
|
|
|
2560
2775
|
directory_server_encryption: factories.object(),
|
|
2561
2776
|
}),
|
|
2562
2777
|
|
|
2778
|
+
'io.flow.stripe.v0.models.stripe_dispute_event': (): io.flow.stripe.v0.models.StripeDisputeEvent => ({
|
|
2779
|
+
id: factories.string(),
|
|
2780
|
+
api_version: factories.string(),
|
|
2781
|
+
data: factories['io.flow.stripe.v0.models.stripe_dispute_event_data'](),
|
|
2782
|
+
request: factories.object(),
|
|
2783
|
+
type: factories['io.flow.stripe.v0.enums.dispute_event_type'](),
|
|
2784
|
+
object: factories.string(),
|
|
2785
|
+
account: factories.string(),
|
|
2786
|
+
created: factories.long(),
|
|
2787
|
+
livemode: factories.boolean(),
|
|
2788
|
+
pending_webhooks: factories.integer(),
|
|
2789
|
+
}),
|
|
2790
|
+
|
|
2791
|
+
'io.flow.stripe.v0.models.stripe_dispute_event_data': (): io.flow.stripe.v0.models.StripeDisputeEventData => ({
|
|
2792
|
+
object: factories['io.flow.stripe.v0.models.dispute'](),
|
|
2793
|
+
previous_attributes: factories.object(),
|
|
2794
|
+
}),
|
|
2795
|
+
|
|
2563
2796
|
'io.flow.stripe.v0.models.stripe_error': (): io.flow.stripe.v0.models.StripeError => ({
|
|
2564
2797
|
type: factories['io.flow.stripe.v0.enums.error_type'](),
|
|
2565
2798
|
charge: factories.string(),
|
|
@@ -2667,7 +2900,9 @@ const factories = {
|
|
|
2667
2900
|
'io.flow.stripe.v0.unions.payment_method_data': (): io.flow.stripe.v0.unions.PaymentMethodData => {
|
|
2668
2901
|
const f = faker.helpers.arrayElement([
|
|
2669
2902
|
() => factories['io.flow.stripe.v0.models.payment_method_data_card'](),
|
|
2903
|
+
() => factories['io.flow.stripe.v0.models.payment_method_data_ideal'](),
|
|
2670
2904
|
() => factories['io.flow.stripe.v0.models.payment_method_data_klarna'](),
|
|
2905
|
+
() => factories['io.flow.stripe.v0.models.payment_method_data_bancontact'](),
|
|
2671
2906
|
]);
|
|
2672
2907
|
|
|
2673
2908
|
return f();
|
|
@@ -2676,7 +2911,9 @@ const factories = {
|
|
|
2676
2911
|
'io.flow.stripe.v0.unions.payment_method_details': (): io.flow.stripe.v0.unions.PaymentMethodDetails => {
|
|
2677
2912
|
const f = faker.helpers.arrayElement([
|
|
2678
2913
|
() => factories['io.flow.stripe.v0.models.payment_method_details_card'](),
|
|
2914
|
+
() => factories['io.flow.stripe.v0.models.payment_method_details_ideal'](),
|
|
2679
2915
|
() => factories['io.flow.stripe.v0.models.payment_method_details_klarna'](),
|
|
2916
|
+
() => factories['io.flow.stripe.v0.models.payment_method_details_bancontact'](),
|
|
2680
2917
|
]);
|
|
2681
2918
|
|
|
2682
2919
|
return f();
|
|
@@ -2685,7 +2922,9 @@ const factories = {
|
|
|
2685
2922
|
'io.flow.stripe.v0.unions.payment_method_form': (): io.flow.stripe.v0.unions.PaymentMethodForm => {
|
|
2686
2923
|
const f = faker.helpers.arrayElement([
|
|
2687
2924
|
() => factories['io.flow.stripe.v0.models.payment_method_form_card'](),
|
|
2925
|
+
() => factories['io.flow.stripe.v0.models.payment_method_form_ideal'](),
|
|
2688
2926
|
() => factories['io.flow.stripe.v0.models.payment_method_form_klarna'](),
|
|
2927
|
+
() => factories['io.flow.stripe.v0.models.payment_method_form_bancontact'](),
|
|
2689
2928
|
]);
|
|
2690
2929
|
|
|
2691
2930
|
return f();
|
|
@@ -3245,6 +3484,7 @@ const factories = {
|
|
|
3245
3484
|
'business_street_address_is_po_box',
|
|
3246
3485
|
'exception_merchant',
|
|
3247
3486
|
'application_missing',
|
|
3487
|
+
'missing_logistics_contact_info',
|
|
3248
3488
|
]),
|
|
3249
3489
|
|
|
3250
3490
|
'io.flow.v0.enums.onboarding_trade_sector': (): io.flow.v0.enums.OnboardingTradeSector => faker.helpers.arrayElement([
|
|
@@ -3427,6 +3667,7 @@ const factories = {
|
|
|
3427
3667
|
'order_missing_information',
|
|
3428
3668
|
'order_domestic',
|
|
3429
3669
|
'order_mismatched_currencies',
|
|
3670
|
+
'order_missing',
|
|
3430
3671
|
]),
|
|
3431
3672
|
|
|
3432
3673
|
'io.flow.v0.enums.payment_request_review_status': (): io.flow.v0.enums.PaymentRequestReviewStatus => faker.helpers.arrayElement(['pending', 'approved', 'rejected']),
|
|
@@ -10534,6 +10775,15 @@ const factories = {
|
|
|
10534
10775
|
processor: factories.string(),
|
|
10535
10776
|
}),
|
|
10536
10777
|
|
|
10778
|
+
'io.flow.v0.models.payment_processor_transaction_details_apm': (): io.flow.v0.models.PaymentProcessorTransactionDetailsApm => ({
|
|
10779
|
+
discriminator: 'apm',
|
|
10780
|
+
transaction_identifier: factories.string(),
|
|
10781
|
+
capture_identifier: factories.string(),
|
|
10782
|
+
method_type: factories.string(),
|
|
10783
|
+
result_status: factories.string(),
|
|
10784
|
+
reason_code: factories.string(),
|
|
10785
|
+
}),
|
|
10786
|
+
|
|
10537
10787
|
'io.flow.v0.models.payment_processor_transaction_details_card': (): io.flow.v0.models.PaymentProcessorTransactionDetailsCard => ({
|
|
10538
10788
|
discriminator: 'card',
|
|
10539
10789
|
transaction_identifier: factories.string(),
|
|
@@ -10621,6 +10871,11 @@ const factories = {
|
|
|
10621
10871
|
billing: factories['io.flow.v0.models.payment_request_billing'](),
|
|
10622
10872
|
}),
|
|
10623
10873
|
|
|
10874
|
+
'io.flow.v0.models.payment_request_cancellation_reason_order_missing': (): io.flow.v0.models.PaymentRequestCancellationReasonOrderMissing => ({
|
|
10875
|
+
type: 'order_missing',
|
|
10876
|
+
description: factories.string(),
|
|
10877
|
+
}),
|
|
10878
|
+
|
|
10624
10879
|
'io.flow.v0.models.payment_request_deleted': (): io.flow.v0.models.PaymentRequestDeleted => ({
|
|
10625
10880
|
discriminator: 'payment_request_deleted',
|
|
10626
10881
|
event_id: factories.string(),
|
|
@@ -10761,6 +11016,7 @@ const factories = {
|
|
|
10761
11016
|
'io.flow.v0.models.paypal_authorization_details': (): io.flow.v0.models.PaypalAuthorizationDetails => ({
|
|
10762
11017
|
discriminator: 'paypal_authorization_details',
|
|
10763
11018
|
payment_id: factories.string(),
|
|
11019
|
+
internal_payment_id: factories.string(),
|
|
10764
11020
|
payment_method: factories.string(),
|
|
10765
11021
|
payment_state: factories.string(),
|
|
10766
11022
|
payer_id: factories.string(),
|
|
@@ -11757,6 +12013,11 @@ const factories = {
|
|
|
11757
12013
|
status: factories['io.flow.v0.enums.availability_status'](),
|
|
11758
12014
|
}),
|
|
11759
12015
|
|
|
12016
|
+
'io.flow.v0.models.rejection_put_form': (): io.flow.v0.models.RejectionPutForm => ({
|
|
12017
|
+
reason: factories['io.flow.v0.enums.merchant_rejected_reason'](),
|
|
12018
|
+
description: factories.string(),
|
|
12019
|
+
}),
|
|
12020
|
+
|
|
11760
12021
|
'io.flow.v0.models.remote_area_by_weight_service_fee': (): io.flow.v0.models.RemoteAreaByWeightServiceFee => ({
|
|
11761
12022
|
discriminator: 'remote_area_by_weight_service_fee',
|
|
11762
12023
|
amount: factories['io.flow.v0.models.money'](),
|
|
@@ -13684,7 +13945,7 @@ const factories = {
|
|
|
13684
13945
|
discriminator: 'channel',
|
|
13685
13946
|
method: factories.string(),
|
|
13686
13947
|
card: factories['io.flow.v0.models.transaction_metadata_channel_card_metadata'](),
|
|
13687
|
-
organization_transaction: factories['io.flow.v0.models.
|
|
13948
|
+
organization_transaction: factories['io.flow.v0.models.transaction_metadata_channel_organization_transaction'](),
|
|
13688
13949
|
}),
|
|
13689
13950
|
|
|
13690
13951
|
'io.flow.v0.models.transaction_metadata_channel_card_metadata': (): io.flow.v0.models.TransactionMetadataChannelCardMetadata => ({
|
|
@@ -13697,6 +13958,11 @@ const factories = {
|
|
|
13697
13958
|
country: factories.string(),
|
|
13698
13959
|
}),
|
|
13699
13960
|
|
|
13961
|
+
'io.flow.v0.models.transaction_metadata_channel_organization_transaction': (): io.flow.v0.models.TransactionMetadataChannelOrganizationTransaction => ({
|
|
13962
|
+
id: factories.string(),
|
|
13963
|
+
metadata: factories['io.flow.v0.models.transaction_metadata_payment_transaction'](),
|
|
13964
|
+
}),
|
|
13965
|
+
|
|
13700
13966
|
'io.flow.v0.models.transaction_metadata_failed_payout': (): io.flow.v0.models.TransactionMetadataFailedPayout => ({
|
|
13701
13967
|
discriminator: 'failed_payout',
|
|
13702
13968
|
failed_payout: factories['io.flow.v0.models.transaction_metadata_failed_payout_reference'](),
|
|
@@ -14999,6 +15265,15 @@ const factories = {
|
|
|
14999
15265
|
'io.flow.v0.unions.payment_processor_transaction_details': (): io.flow.v0.unions.PaymentProcessorTransactionDetails => {
|
|
15000
15266
|
const f = faker.helpers.arrayElement([
|
|
15001
15267
|
() => factories['io.flow.v0.models.payment_processor_transaction_details_card'](),
|
|
15268
|
+
() => factories['io.flow.v0.models.payment_processor_transaction_details_apm'](),
|
|
15269
|
+
]);
|
|
15270
|
+
|
|
15271
|
+
return f();
|
|
15272
|
+
},
|
|
15273
|
+
|
|
15274
|
+
'io.flow.v0.unions.payment_request_cancellation_reason': (): io.flow.v0.unions.PaymentRequestCancellationReason => {
|
|
15275
|
+
const f = faker.helpers.arrayElement([
|
|
15276
|
+
() => factories['io.flow.v0.models.payment_request_cancellation_reason_order_missing'](),
|
|
15002
15277
|
]);
|
|
15003
15278
|
|
|
15004
15279
|
return f();
|
|
@@ -16476,6 +16751,7 @@ export const makePaymentProcessorAccountReference = () => factories['io.flow.v0.
|
|
|
16476
16751
|
export const makePaymentProcessorIdentifier = () => factories['io.flow.v0.models.payment_processor_identifier']();
|
|
16477
16752
|
export const makePaymentProcessorReference = () => factories['io.flow.v0.models.payment_processor_reference']();
|
|
16478
16753
|
export const makePaymentProcessorTransactionDetails = () => factories['io.flow.v0.unions.payment_processor_transaction_details']();
|
|
16754
|
+
export const makePaymentProcessorTransactionDetailsApm = () => factories['io.flow.v0.models.payment_processor_transaction_details_apm']();
|
|
16479
16755
|
export const makePaymentProcessorTransactionDetailsCard = () => factories['io.flow.v0.models.payment_processor_transaction_details_card']();
|
|
16480
16756
|
export const makePaymentReference = () => factories['io.flow.v0.models.payment_reference']();
|
|
16481
16757
|
export const makePaymentRefund = () => factories['io.flow.v0.models.payment_refund']();
|
|
@@ -16487,6 +16763,8 @@ export const makePaymentRequestBillingCurrencyRate = () => factories['io.flow.v0
|
|
|
16487
16763
|
export const makePaymentRequestBillingFees = () => factories['io.flow.v0.models.payment_request_billing_fees']();
|
|
16488
16764
|
export const makePaymentRequestBundle = () => factories['io.flow.v0.models.payment_request_bundle']();
|
|
16489
16765
|
export const makePaymentRequestBundleForm = () => factories['io.flow.v0.models.payment_request_bundle_form']();
|
|
16766
|
+
export const makePaymentRequestCancellationReason = () => factories['io.flow.v0.unions.payment_request_cancellation_reason']();
|
|
16767
|
+
export const makePaymentRequestCancellationReasonOrderMissing = () => factories['io.flow.v0.models.payment_request_cancellation_reason_order_missing']();
|
|
16490
16768
|
export const makePaymentRequestDeleted = () => factories['io.flow.v0.models.payment_request_deleted']();
|
|
16491
16769
|
export const makePaymentRequestForm = () => factories['io.flow.v0.models.payment_request_form']();
|
|
16492
16770
|
export const makePaymentRequestReference = () => factories['io.flow.v0.models.payment_request_reference']();
|
|
@@ -16672,6 +16950,7 @@ export const makeRegionReference = () => factories['io.flow.v0.models.region_ref
|
|
|
16672
16950
|
export const makeRegionSetting = () => factories['io.flow.v0.models.region_setting']();
|
|
16673
16951
|
export const makeRegionSettingForm = () => factories['io.flow.v0.models.region_setting_form']();
|
|
16674
16952
|
export const makeRegionType = () => factories['io.flow.v0.enums.region_type']();
|
|
16953
|
+
export const makeRejectionPutForm = () => factories['io.flow.v0.models.rejection_put_form']();
|
|
16675
16954
|
export const makeRemoteAreaByWeightServiceFee = () => factories['io.flow.v0.models.remote_area_by_weight_service_fee']();
|
|
16676
16955
|
export const makeRemoteAreaRatecardFee = () => factories['io.flow.v0.models.remote_area_ratecard_fee']();
|
|
16677
16956
|
export const makeRemoteAreaServiceFee = () => factories['io.flow.v0.models.remote_area_service_fee']();
|
|
@@ -16999,6 +17278,7 @@ export const makeTransactionMetadataCarrierCharge = () => factories['io.flow.v0.
|
|
|
16999
17278
|
export const makeTransactionMetadataChannel = () => factories['io.flow.v0.models.transaction_metadata_channel']();
|
|
17000
17279
|
export const makeTransactionMetadataChannelCardMetadata = () => factories['io.flow.v0.models.transaction_metadata_channel_card_metadata']();
|
|
17001
17280
|
export const makeTransactionMetadataChannelCardMetadataIssuerSummary = () => factories['io.flow.v0.models.transaction_metadata_channel_card_metadata_issuer_summary']();
|
|
17281
|
+
export const makeTransactionMetadataChannelOrganizationTransaction = () => factories['io.flow.v0.models.transaction_metadata_channel_organization_transaction']();
|
|
17002
17282
|
export const makeTransactionMetadataFailedPayout = () => factories['io.flow.v0.models.transaction_metadata_failed_payout']();
|
|
17003
17283
|
export const makeTransactionMetadataFailedPayoutReference = () => factories['io.flow.v0.models.transaction_metadata_failed_payout_reference']();
|
|
17004
17284
|
export const makeTransactionMetadataManual = () => factories['io.flow.v0.models.transaction_metadata_manual']();
|