@flowio/api-factories 0.0.69 → 0.0.71

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/src/api.ts CHANGED
@@ -1385,21 +1385,6 @@ const factories = {
1385
1385
  'Unknown',
1386
1386
  ]),
1387
1387
 
1388
- 'io.flow.stripe.v0.enums.card_error_code': (): io.flow.stripe.v0.enums.CardErrorCode => faker.helpers.arrayElement([
1389
- 'invalid_number',
1390
- 'invalid_expiry_month',
1391
- 'invalid_expiry_year',
1392
- 'invalid_cvc',
1393
- 'invalid_swipe_data',
1394
- 'incorrect_number',
1395
- 'expired_card',
1396
- 'incorrect_cvc',
1397
- 'incorrect_zip',
1398
- 'card_declined',
1399
- 'missing',
1400
- 'processing_error',
1401
- ]),
1402
-
1403
1388
  'io.flow.stripe.v0.enums.card_funding_type': (): io.flow.stripe.v0.enums.CardFundingType => faker.helpers.arrayElement(['credit', 'debit', 'prepaid', 'unknown']),
1404
1389
 
1405
1390
  'io.flow.stripe.v0.enums.card_network': (): io.flow.stripe.v0.enums.CardNetwork => faker.helpers.arrayElement([
@@ -1440,6 +1425,7 @@ const factories = {
1440
1425
  'invalid_account',
1441
1426
  'invalid_amount',
1442
1427
  'invalid_cvc',
1428
+ 'invalid_expiry_month',
1443
1429
  'invalid_expiry_year',
1444
1430
  'invalid_number',
1445
1431
  'invalid_pin',
@@ -1463,6 +1449,83 @@ const factories = {
1463
1449
  'transaction_not_allowed',
1464
1450
  'try_again_later',
1465
1451
  'withdrawal_count_limit_exceeded',
1452
+ 'previously_declined_do_not_retry',
1453
+ 'highest_risk_level',
1454
+ 'requested_block_on_incorrect_cvc',
1455
+ ]),
1456
+
1457
+ 'io.flow.stripe.v0.enums.error_code': (): io.flow.stripe.v0.enums.ErrorCode => faker.helpers.arrayElement([
1458
+ 'invalid_number',
1459
+ 'invalid_expiry_month',
1460
+ 'invalid_expiry_year',
1461
+ 'invalid_cvc',
1462
+ 'invalid_swipe_data',
1463
+ 'country_code_invalid',
1464
+ 'email_invalid',
1465
+ 'postal_code_invalid',
1466
+ 'invalid_characters',
1467
+ 'url_invalid',
1468
+ 'invalid_charge_amount',
1469
+ 'incorrect_number',
1470
+ 'incorrect_address',
1471
+ 'incorrect_cvc',
1472
+ 'incorrect_zip',
1473
+ 'card_declined',
1474
+ 'expired_card',
1475
+ 'missing',
1476
+ 'processing_error',
1477
+ 'account_closed',
1478
+ 'amount_too_small',
1479
+ 'amount_too_large',
1480
+ 'api_key_expired',
1481
+ 'authentication_required',
1482
+ 'capture_charge_authorization_expired',
1483
+ 'capture_unauthorized_payment',
1484
+ 'card_decline_rate_limit_exceeded',
1485
+ 'charge_already_captured',
1486
+ 'charge_already_refunded',
1487
+ 'charge_disputed',
1488
+ 'charge_exceeds_source_limit',
1489
+ 'charge_expired_for_capture',
1490
+ 'charge_invalid_parameter',
1491
+ 'charge_not_refundable',
1492
+ 'insufficient_funds',
1493
+ 'intent_invalid_state',
1494
+ 'livemode_mismatch',
1495
+ 'parameter_invalid_empty',
1496
+ 'parameter_invalid_integer',
1497
+ 'parameter_invalid_string_blank',
1498
+ 'parameter_invalid_string_empty',
1499
+ 'parameter_missing',
1500
+ 'parameter_unknown',
1501
+ 'parameters_exclusive',
1502
+ 'payment_intent_action_required',
1503
+ 'payment_intent_authentication_failure',
1504
+ 'payment_intent_incompatible_payment_method',
1505
+ 'payment_intent_payment_attempt_expired',
1506
+ 'payment_intent_payment_attempt_failed',
1507
+ 'payment_intent_unexpected_state',
1508
+ 'payment_intent_invalid_parameter',
1509
+ 'payment_method_billing_details_address_missing',
1510
+ 'payment_method_customer_decline',
1511
+ 'payment_method_currency_mismatch',
1512
+ 'payment_method_invalid_parameter',
1513
+ 'payment_method_invalid_parameter_testmode',
1514
+ 'payment_method_not_available',
1515
+ 'payment_method_provider_decline',
1516
+ 'payment_method_provider_timeout',
1517
+ 'payment_method_unactivated',
1518
+ 'payment_method_unexpected_state',
1519
+ 'payment_method_unsupported_type',
1520
+ 'platform_api_key_expired',
1521
+ 'refund_disputed_payment',
1522
+ 'testmode_charges_only',
1523
+ 'tls_version_unsupported',
1524
+ 'setup_attempt_failed',
1525
+ 'setup_intent_authentication_failure',
1526
+ 'setup_intent_invalid_parameter',
1527
+ 'setup_intent_setup_attempt_expired',
1528
+ 'setup_intent_unexpected_state',
1466
1529
  ]),
1467
1530
 
1468
1531
  'io.flow.stripe.v0.enums.error_type': (): io.flow.stripe.v0.enums.ErrorType => faker.helpers.arrayElement([
@@ -1497,6 +1560,9 @@ const factories = {
1497
1560
  'source.failed',
1498
1561
  ]),
1499
1562
 
1563
+ 'io.flow.stripe.v0.enums.extended_authorization_status': (): io.flow.stripe.v0.enums.ExtendedAuthorizationStatus => faker.helpers.arrayElement(['enabled', 'disabled']),
1564
+ 'io.flow.stripe.v0.enums.feature_availability': (): io.flow.stripe.v0.enums.FeatureAvailability => faker.helpers.arrayElement(['available', 'unavailable']),
1565
+
1500
1566
  'io.flow.stripe.v0.enums.klarna_payment_method_category_type': (): io.flow.stripe.v0.enums.KlarnaPaymentMethodCategoryType => faker.helpers.arrayElement([
1501
1567
  'direct_bank_transfer',
1502
1568
  'direct_debit',
@@ -1758,6 +1824,7 @@ const factories = {
1758
1824
  currency: factories.string(),
1759
1825
  customer: factories.string(),
1760
1826
  outcome: factories['io.flow.stripe.v0.models.payment_outcome'](),
1827
+ disputed: factories.boolean(),
1761
1828
  paid: factories.boolean(),
1762
1829
  refunded: factories.boolean(),
1763
1830
  refunds: factories['io.flow.stripe.v0.models.refunds'](),
@@ -1766,7 +1833,7 @@ const factories = {
1766
1833
  balance_transaction: factories.string(),
1767
1834
  destination: factories.string(),
1768
1835
  dispute: factories.string(),
1769
- failure_code: factories.string(),
1836
+ failure_code: factories['io.flow.stripe.v0.enums.error_code'](),
1770
1837
  failure_message: factories.string(),
1771
1838
  on_behalf_of: factories.string(),
1772
1839
  review: factories.string(),
@@ -1777,6 +1844,7 @@ const factories = {
1777
1844
  calculated_statement_descriptor: factories.string(),
1778
1845
  statement_descriptor: factories.string(),
1779
1846
  payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
1847
+ payment_method: factories.string(),
1780
1848
  }),
1781
1849
 
1782
1850
  'io.flow.stripe.v0.models.charge_destination': (): io.flow.stripe.v0.models.ChargeDestination => ({
@@ -1805,6 +1873,7 @@ const factories = {
1805
1873
  amount_refunded: factories.long(),
1806
1874
  authorization_code: factories.string(),
1807
1875
  captured: factories.boolean(),
1876
+ disputed: factories.boolean(),
1808
1877
  created: factories.long(),
1809
1878
  currency: factories.string(),
1810
1879
  customer: factories.string(),
@@ -1817,7 +1886,7 @@ const factories = {
1817
1886
  balance_transaction: factories.string(),
1818
1887
  destination: factories.string(),
1819
1888
  dispute: factories.string(),
1820
- failure_code: factories.string(),
1889
+ failure_code: factories['io.flow.stripe.v0.enums.error_code'](),
1821
1890
  failure_message: factories.string(),
1822
1891
  on_behalf_of: factories.string(),
1823
1892
  review: factories.string(),
@@ -1828,6 +1897,7 @@ const factories = {
1828
1897
  calculated_statement_descriptor: factories.string(),
1829
1898
  statement_descriptor: factories.string(),
1830
1899
  payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
1900
+ payment_method: factories.string(),
1831
1901
  }),
1832
1902
 
1833
1903
  'io.flow.stripe.v0.models.code_verification': (): io.flow.stripe.v0.models.CodeVerification => ({
@@ -1855,6 +1925,14 @@ const factories = {
1855
1925
  error: factories['io.flow.stripe.v0.models.stripe_error'](),
1856
1926
  }),
1857
1927
 
1928
+ 'io.flow.stripe.v0.models.extended_authorization': (): io.flow.stripe.v0.models.ExtendedAuthorization => ({
1929
+ status: factories['io.flow.stripe.v0.enums.extended_authorization_status'](),
1930
+ }),
1931
+
1932
+ 'io.flow.stripe.v0.models.incremental_authorization': (): io.flow.stripe.v0.models.IncrementalAuthorization => ({
1933
+ status: factories['io.flow.stripe.v0.enums.feature_availability'](),
1934
+ }),
1935
+
1858
1936
  'io.flow.stripe.v0.models.keys': (): io.flow.stripe.v0.models.Keys => ({
1859
1937
  secret: factories.string(),
1860
1938
  publishable: factories.string(),
@@ -1871,17 +1949,6 @@ const factories = {
1871
1949
  product_category: factories.string(),
1872
1950
  }),
1873
1951
 
1874
- 'io.flow.stripe.v0.models.last_payment_error': (): io.flow.stripe.v0.models.LastPaymentError => ({
1875
- charge: factories.string(),
1876
- code: factories.string(),
1877
- decline_code: factories['io.flow.stripe.v0.enums.decline_code'](),
1878
- doc_url: factories.string(),
1879
- message: factories.string(),
1880
- param: factories.string(),
1881
- payment_method: factories['io.flow.stripe.v0.models.payment_method'](),
1882
- type: factories['io.flow.stripe.v0.enums.error_type'](),
1883
- }),
1884
-
1885
1952
  'io.flow.stripe.v0.models.legal_entity': (): io.flow.stripe.v0.models.LegalEntity => ({
1886
1953
  additional_owners: arrayOf(() => factories['io.flow.stripe.v0.models.owner']()),
1887
1954
  }),
@@ -1907,6 +1974,10 @@ const factories = {
1907
1974
  payment_request_order_reference: factories.string(),
1908
1975
  }),
1909
1976
 
1977
+ 'io.flow.stripe.v0.models.multicapture': (): io.flow.stripe.v0.models.Multicapture => ({
1978
+ status: factories['io.flow.stripe.v0.enums.feature_availability'](),
1979
+ }),
1980
+
1910
1981
  'io.flow.stripe.v0.models.network_token_used': (): io.flow.stripe.v0.models.NetworkTokenUsed => ({
1911
1982
  used: factories.boolean(),
1912
1983
  }),
@@ -1954,6 +2025,11 @@ const factories = {
1954
2025
  shipping: factories['io.flow.stripe.v0.models.shipping'](),
1955
2026
  }),
1956
2027
 
2028
+ 'io.flow.stripe.v0.models.overcapture': (): io.flow.stripe.v0.models.Overcapture => ({
2029
+ maximum_amount_capturable: factories.integer(),
2030
+ status: factories['io.flow.stripe.v0.enums.feature_availability'](),
2031
+ }),
2032
+
1957
2033
  'io.flow.stripe.v0.models.owner': (): io.flow.stripe.v0.models.Owner => ({
1958
2034
  address: factories['io.flow.stripe.v0.models.address'](),
1959
2035
  email: factories.string(),
@@ -1984,7 +2060,7 @@ const factories = {
1984
2060
  customer: factories.string(),
1985
2061
  description: factories.string(),
1986
2062
  invoice: factories.string(),
1987
- last_payment_error: factories['io.flow.stripe.v0.models.last_payment_error'](),
2063
+ last_payment_error: factories['io.flow.stripe.v0.models.stripe_error'](),
1988
2064
  livemode: factories.boolean(),
1989
2065
  metadata: factories['io.flow.stripe.v0.models.metadata'](),
1990
2066
  next_action: factories['io.flow.stripe.v0.models.next_action'](),
@@ -2027,7 +2103,7 @@ const factories = {
2027
2103
  off_session: factories.boolean(),
2028
2104
  payment_method: factories.string(),
2029
2105
  payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
2030
- payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
2106
+ payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options_form'](),
2031
2107
  payment_method_types: arrayOf(() => factories.string()),
2032
2108
  receipt_email: factories.string(),
2033
2109
  save_payment_method: factories.boolean(),
@@ -2048,7 +2124,7 @@ const factories = {
2048
2124
  on_behalf_of: factories.string(),
2049
2125
  payment_method: factories.string(),
2050
2126
  payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
2051
- payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
2127
+ payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options_form'](),
2052
2128
  payment_method_types: arrayOf(() => factories.string()),
2053
2129
  receipt_email: factories.string(),
2054
2130
  return_url: factories.string(),
@@ -2154,6 +2230,10 @@ const factories = {
2154
2230
  issuer: factories.string(),
2155
2231
  wallet: factories['io.flow.stripe.v0.unions.card_wallet'](),
2156
2232
  network_transaction_id: factories.string(),
2233
+ extended_authorization: factories['io.flow.stripe.v0.models.extended_authorization'](),
2234
+ incremental_authorization: factories['io.flow.stripe.v0.models.incremental_authorization'](),
2235
+ multicapture: factories['io.flow.stripe.v0.models.multicapture'](),
2236
+ overcapture: factories['io.flow.stripe.v0.models.overcapture'](),
2157
2237
  }),
2158
2238
 
2159
2239
  'io.flow.stripe.v0.models.payment_method_details_klarna': (): io.flow.stripe.v0.models.PaymentMethodDetailsKlarna => ({
@@ -2182,6 +2262,18 @@ const factories = {
2182
2262
  request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
2183
2263
  stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
2184
2264
  mcc: factories.string(),
2265
+ capture_before: factories.long(),
2266
+ }),
2267
+
2268
+ 'io.flow.stripe.v0.models.payment_method_options_card_form': (): io.flow.stripe.v0.models.PaymentMethodOptionsCardForm => ({
2269
+ network: factories.string(),
2270
+ request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
2271
+ stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
2272
+ mcc: factories.string(),
2273
+ }),
2274
+
2275
+ 'io.flow.stripe.v0.models.payment_method_options_form': (): io.flow.stripe.v0.models.PaymentMethodOptionsForm => ({
2276
+ card: factories['io.flow.stripe.v0.models.payment_method_options_card_form'](),
2185
2277
  }),
2186
2278
 
2187
2279
  'io.flow.stripe.v0.models.payment_outcome': (): io.flow.stripe.v0.models.PaymentOutcome => ({
@@ -2386,10 +2478,11 @@ const factories = {
2386
2478
  type: factories['io.flow.stripe.v0.enums.error_type'](),
2387
2479
  charge: factories.string(),
2388
2480
  message: factories.string(),
2389
- code: factories['io.flow.stripe.v0.enums.card_error_code'](),
2390
- decline_code: factories.string(),
2481
+ code: factories['io.flow.stripe.v0.enums.error_code'](),
2482
+ decline_code: factories['io.flow.stripe.v0.enums.decline_code'](),
2391
2483
  param: factories.string(),
2392
2484
  payment_intent: factories['io.flow.stripe.v0.models.payment_intent'](),
2485
+ payment_method: factories['io.flow.stripe.v0.models.payment_method'](),
2393
2486
  }),
2394
2487
 
2395
2488
  'io.flow.stripe.v0.models.stripe_event': (): io.flow.stripe.v0.models.StripeEvent => ({
@@ -2422,9 +2515,12 @@ const factories = {
2422
2515
  'io.flow.stripe.v0.models.three_d_secure_charge': (): io.flow.stripe.v0.models.ThreeDSecureCharge => ({
2423
2516
  authenticated: factories.boolean(),
2424
2517
  authentication_flow: factories['io.flow.stripe.v0.enums.three_ds_authentication_flow'](),
2518
+ electronic_commerce_indicator: factories.string(),
2519
+ exemption_indicator: factories.string(),
2425
2520
  result: factories['io.flow.stripe.v0.enums.three_ds_result'](),
2426
2521
  result_reason: factories['io.flow.stripe.v0.enums.three_ds_result_reason'](),
2427
2522
  succeeded: factories.boolean(),
2523
+ transaction_id: factories.string(),
2428
2524
  version: factories.string(),
2429
2525
  }),
2430
2526
 
@@ -3730,6 +3826,11 @@ const factories = {
3730
3826
  placeholder: factories.boolean(),
3731
3827
  }),
3732
3828
 
3829
+ 'io.flow.v0.models.additional_services_requested': (): io.flow.v0.models.AdditionalServicesRequested => ({
3830
+ name: factories.string(),
3831
+ description: factories.string(),
3832
+ }),
3833
+
3733
3834
  'io.flow.v0.models.address': (): io.flow.v0.models.Address => ({
3734
3835
  text: factories.string(),
3735
3836
  streets: arrayOf(() => factories.string()),
@@ -12150,6 +12251,7 @@ const factories = {
12150
12251
  shipment_recipient: factories['io.flow.v0.enums.shipment_recipient'](),
12151
12252
  label_request_method: factories['io.flow.v0.enums.label_request_method'](),
12152
12253
  label_trigger_method: factories['io.flow.v0.enums.label_trigger_method'](),
12254
+ additional_services_requested: arrayOf(() => factories['io.flow.v0.models.additional_services_requested']()),
12153
12255
  created_at: factories.date_time_iso_8601(),
12154
12256
  updated_at: factories.date_time_iso_8601(),
12155
12257
  }),
@@ -13433,6 +13535,7 @@ const factories = {
13433
13535
 
13434
13536
  'io.flow.v0.models.transaction_metadata_manual': (): io.flow.v0.models.TransactionMetadataManual => ({
13435
13537
  discriminator: 'manual',
13538
+ description: factories.string(),
13436
13539
  original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
13437
13540
  url: factories.string(),
13438
13541
  }),
@@ -15007,6 +15110,7 @@ export const makeActionUseSdkPaypal = () => factories['io.flow.v0.models.action_
15007
15110
  export const makeActionUseSdkStripeV3 = () => factories['io.flow.v0.models.action_use_sdk_stripe_v3']();
15008
15111
  export const makeActionWait = () => factories['io.flow.v0.models.action_wait']();
15009
15112
  export const makeActivationPutForm = () => factories['io.flow.v0.models.activation_put_form']();
15113
+ export const makeAdditionalServicesRequested = () => factories['io.flow.v0.models.additional_services_requested']();
15010
15114
  export const makeAddress = () => factories['io.flow.v0.models.address']();
15011
15115
  export const makeAddressConfiguration = () => factories['io.flow.v0.models.address_configuration']();
15012
15116
  export const makeAddressConfigurationFieldPlacement = () => factories['io.flow.v0.models.address_configuration_field_placement']();