@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/dist/esm/api.js CHANGED
@@ -1157,20 +1157,6 @@ var factories = {
1157
1157
  'Diners Club',
1158
1158
  'Unknown',
1159
1159
  ]); },
1160
- 'io.flow.stripe.v0.enums.card_error_code': function () { return faker.helpers.arrayElement([
1161
- 'invalid_number',
1162
- 'invalid_expiry_month',
1163
- 'invalid_expiry_year',
1164
- 'invalid_cvc',
1165
- 'invalid_swipe_data',
1166
- 'incorrect_number',
1167
- 'expired_card',
1168
- 'incorrect_cvc',
1169
- 'incorrect_zip',
1170
- 'card_declined',
1171
- 'missing',
1172
- 'processing_error',
1173
- ]); },
1174
1160
  'io.flow.stripe.v0.enums.card_funding_type': function () { return faker.helpers.arrayElement(['credit', 'debit', 'prepaid', 'unknown']); },
1175
1161
  'io.flow.stripe.v0.enums.card_network': function () { return faker.helpers.arrayElement([
1176
1162
  'amex',
@@ -1208,6 +1194,7 @@ var factories = {
1208
1194
  'invalid_account',
1209
1195
  'invalid_amount',
1210
1196
  'invalid_cvc',
1197
+ 'invalid_expiry_month',
1211
1198
  'invalid_expiry_year',
1212
1199
  'invalid_number',
1213
1200
  'invalid_pin',
@@ -1231,6 +1218,82 @@ var factories = {
1231
1218
  'transaction_not_allowed',
1232
1219
  'try_again_later',
1233
1220
  'withdrawal_count_limit_exceeded',
1221
+ 'previously_declined_do_not_retry',
1222
+ 'highest_risk_level',
1223
+ 'requested_block_on_incorrect_cvc',
1224
+ ]); },
1225
+ 'io.flow.stripe.v0.enums.error_code': function () { return faker.helpers.arrayElement([
1226
+ 'invalid_number',
1227
+ 'invalid_expiry_month',
1228
+ 'invalid_expiry_year',
1229
+ 'invalid_cvc',
1230
+ 'invalid_swipe_data',
1231
+ 'country_code_invalid',
1232
+ 'email_invalid',
1233
+ 'postal_code_invalid',
1234
+ 'invalid_characters',
1235
+ 'url_invalid',
1236
+ 'invalid_charge_amount',
1237
+ 'incorrect_number',
1238
+ 'incorrect_address',
1239
+ 'incorrect_cvc',
1240
+ 'incorrect_zip',
1241
+ 'card_declined',
1242
+ 'expired_card',
1243
+ 'missing',
1244
+ 'processing_error',
1245
+ 'account_closed',
1246
+ 'amount_too_small',
1247
+ 'amount_too_large',
1248
+ 'api_key_expired',
1249
+ 'authentication_required',
1250
+ 'capture_charge_authorization_expired',
1251
+ 'capture_unauthorized_payment',
1252
+ 'card_decline_rate_limit_exceeded',
1253
+ 'charge_already_captured',
1254
+ 'charge_already_refunded',
1255
+ 'charge_disputed',
1256
+ 'charge_exceeds_source_limit',
1257
+ 'charge_expired_for_capture',
1258
+ 'charge_invalid_parameter',
1259
+ 'charge_not_refundable',
1260
+ 'insufficient_funds',
1261
+ 'intent_invalid_state',
1262
+ 'livemode_mismatch',
1263
+ 'parameter_invalid_empty',
1264
+ 'parameter_invalid_integer',
1265
+ 'parameter_invalid_string_blank',
1266
+ 'parameter_invalid_string_empty',
1267
+ 'parameter_missing',
1268
+ 'parameter_unknown',
1269
+ 'parameters_exclusive',
1270
+ 'payment_intent_action_required',
1271
+ 'payment_intent_authentication_failure',
1272
+ 'payment_intent_incompatible_payment_method',
1273
+ 'payment_intent_payment_attempt_expired',
1274
+ 'payment_intent_payment_attempt_failed',
1275
+ 'payment_intent_unexpected_state',
1276
+ 'payment_intent_invalid_parameter',
1277
+ 'payment_method_billing_details_address_missing',
1278
+ 'payment_method_customer_decline',
1279
+ 'payment_method_currency_mismatch',
1280
+ 'payment_method_invalid_parameter',
1281
+ 'payment_method_invalid_parameter_testmode',
1282
+ 'payment_method_not_available',
1283
+ 'payment_method_provider_decline',
1284
+ 'payment_method_provider_timeout',
1285
+ 'payment_method_unactivated',
1286
+ 'payment_method_unexpected_state',
1287
+ 'payment_method_unsupported_type',
1288
+ 'platform_api_key_expired',
1289
+ 'refund_disputed_payment',
1290
+ 'testmode_charges_only',
1291
+ 'tls_version_unsupported',
1292
+ 'setup_attempt_failed',
1293
+ 'setup_intent_authentication_failure',
1294
+ 'setup_intent_invalid_parameter',
1295
+ 'setup_intent_setup_attempt_expired',
1296
+ 'setup_intent_unexpected_state',
1234
1297
  ]); },
1235
1298
  'io.flow.stripe.v0.enums.error_type': function () { return faker.helpers.arrayElement([
1236
1299
  'api_connection_error',
@@ -1262,6 +1325,8 @@ var factories = {
1262
1325
  'source.chargeable',
1263
1326
  'source.failed',
1264
1327
  ]); },
1328
+ 'io.flow.stripe.v0.enums.extended_authorization_status': function () { return faker.helpers.arrayElement(['enabled', 'disabled']); },
1329
+ 'io.flow.stripe.v0.enums.feature_availability': function () { return faker.helpers.arrayElement(['available', 'unavailable']); },
1265
1330
  'io.flow.stripe.v0.enums.klarna_payment_method_category_type': function () { return faker.helpers.arrayElement([
1266
1331
  'direct_bank_transfer',
1267
1332
  'direct_debit',
@@ -1499,6 +1564,7 @@ var factories = {
1499
1564
  currency: factories.string(),
1500
1565
  customer: factories.string(),
1501
1566
  outcome: factories['io.flow.stripe.v0.models.payment_outcome'](),
1567
+ disputed: factories.boolean(),
1502
1568
  paid: factories.boolean(),
1503
1569
  refunded: factories.boolean(),
1504
1570
  refunds: factories['io.flow.stripe.v0.models.refunds'](),
@@ -1507,7 +1573,7 @@ var factories = {
1507
1573
  balance_transaction: factories.string(),
1508
1574
  destination: factories.string(),
1509
1575
  dispute: factories.string(),
1510
- failure_code: factories.string(),
1576
+ failure_code: factories['io.flow.stripe.v0.enums.error_code'](),
1511
1577
  failure_message: factories.string(),
1512
1578
  on_behalf_of: factories.string(),
1513
1579
  review: factories.string(),
@@ -1518,6 +1584,7 @@ var factories = {
1518
1584
  calculated_statement_descriptor: factories.string(),
1519
1585
  statement_descriptor: factories.string(),
1520
1586
  payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
1587
+ payment_method: factories.string(),
1521
1588
  }); },
1522
1589
  'io.flow.stripe.v0.models.charge_destination': function () { return ({
1523
1590
  account: factories.string(),
@@ -1543,6 +1610,7 @@ var factories = {
1543
1610
  amount_refunded: factories.long(),
1544
1611
  authorization_code: factories.string(),
1545
1612
  captured: factories.boolean(),
1613
+ disputed: factories.boolean(),
1546
1614
  created: factories.long(),
1547
1615
  currency: factories.string(),
1548
1616
  customer: factories.string(),
@@ -1555,7 +1623,7 @@ var factories = {
1555
1623
  balance_transaction: factories.string(),
1556
1624
  destination: factories.string(),
1557
1625
  dispute: factories.string(),
1558
- failure_code: factories.string(),
1626
+ failure_code: factories['io.flow.stripe.v0.enums.error_code'](),
1559
1627
  failure_message: factories.string(),
1560
1628
  on_behalf_of: factories.string(),
1561
1629
  review: factories.string(),
@@ -1566,6 +1634,7 @@ var factories = {
1566
1634
  calculated_statement_descriptor: factories.string(),
1567
1635
  statement_descriptor: factories.string(),
1568
1636
  payment_method_details: factories['io.flow.stripe.v0.unions.payment_method_details'](),
1637
+ payment_method: factories.string(),
1569
1638
  }); },
1570
1639
  'io.flow.stripe.v0.models.code_verification': function () { return ({
1571
1640
  attempts_remaining: factories.long(),
@@ -1588,6 +1657,12 @@ var factories = {
1588
1657
  'io.flow.stripe.v0.models.error': function () { return ({
1589
1658
  error: factories['io.flow.stripe.v0.models.stripe_error'](),
1590
1659
  }); },
1660
+ 'io.flow.stripe.v0.models.extended_authorization': function () { return ({
1661
+ status: factories['io.flow.stripe.v0.enums.extended_authorization_status'](),
1662
+ }); },
1663
+ 'io.flow.stripe.v0.models.incremental_authorization': function () { return ({
1664
+ status: factories['io.flow.stripe.v0.enums.feature_availability'](),
1665
+ }); },
1591
1666
  'io.flow.stripe.v0.models.keys': function () { return ({
1592
1667
  secret: factories.string(),
1593
1668
  publishable: factories.string(),
@@ -1599,16 +1674,6 @@ var factories = {
1599
1674
  sub_merchant_id: factories.string(),
1600
1675
  product_category: factories.string(),
1601
1676
  }); },
1602
- 'io.flow.stripe.v0.models.last_payment_error': function () { return ({
1603
- charge: factories.string(),
1604
- code: factories.string(),
1605
- decline_code: factories['io.flow.stripe.v0.enums.decline_code'](),
1606
- doc_url: factories.string(),
1607
- message: factories.string(),
1608
- param: factories.string(),
1609
- payment_method: factories['io.flow.stripe.v0.models.payment_method'](),
1610
- type: factories['io.flow.stripe.v0.enums.error_type'](),
1611
- }); },
1612
1677
  'io.flow.stripe.v0.models.legal_entity': function () { return ({
1613
1678
  additional_owners: arrayOf(function () { return factories['io.flow.stripe.v0.models.owner'](); }),
1614
1679
  }); },
@@ -1630,6 +1695,9 @@ var factories = {
1630
1695
  payment_request_id: factories.string(),
1631
1696
  payment_request_order_reference: factories.string(),
1632
1697
  }); },
1698
+ 'io.flow.stripe.v0.models.multicapture': function () { return ({
1699
+ status: factories['io.flow.stripe.v0.enums.feature_availability'](),
1700
+ }); },
1633
1701
  'io.flow.stripe.v0.models.network_token_used': function () { return ({
1634
1702
  used: factories.boolean(),
1635
1703
  }); },
@@ -1671,6 +1739,10 @@ var factories = {
1671
1739
  items: arrayOf(function () { return factories['io.flow.stripe.v0.models.order_item_request'](); }),
1672
1740
  shipping: factories['io.flow.stripe.v0.models.shipping'](),
1673
1741
  }); },
1742
+ 'io.flow.stripe.v0.models.overcapture': function () { return ({
1743
+ maximum_amount_capturable: factories.integer(),
1744
+ status: factories['io.flow.stripe.v0.enums.feature_availability'](),
1745
+ }); },
1674
1746
  'io.flow.stripe.v0.models.owner': function () { return ({
1675
1747
  address: factories['io.flow.stripe.v0.models.address'](),
1676
1748
  email: factories.string(),
@@ -1700,7 +1772,7 @@ var factories = {
1700
1772
  customer: factories.string(),
1701
1773
  description: factories.string(),
1702
1774
  invoice: factories.string(),
1703
- last_payment_error: factories['io.flow.stripe.v0.models.last_payment_error'](),
1775
+ last_payment_error: factories['io.flow.stripe.v0.models.stripe_error'](),
1704
1776
  livemode: factories.boolean(),
1705
1777
  metadata: factories['io.flow.stripe.v0.models.metadata'](),
1706
1778
  next_action: factories['io.flow.stripe.v0.models.next_action'](),
@@ -1739,7 +1811,7 @@ var factories = {
1739
1811
  off_session: factories.boolean(),
1740
1812
  payment_method: factories.string(),
1741
1813
  payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
1742
- payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
1814
+ payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options_form'](),
1743
1815
  payment_method_types: arrayOf(function () { return factories.string(); }),
1744
1816
  receipt_email: factories.string(),
1745
1817
  save_payment_method: factories.boolean(),
@@ -1759,7 +1831,7 @@ var factories = {
1759
1831
  on_behalf_of: factories.string(),
1760
1832
  payment_method: factories.string(),
1761
1833
  payment_method_data: factories['io.flow.stripe.v0.unions.payment_method_data'](),
1762
- payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options'](),
1834
+ payment_method_options: factories['io.flow.stripe.v0.models.payment_method_options_form'](),
1763
1835
  payment_method_types: arrayOf(function () { return factories.string(); }),
1764
1836
  receipt_email: factories.string(),
1765
1837
  return_url: factories.string(),
@@ -1856,6 +1928,10 @@ var factories = {
1856
1928
  issuer: factories.string(),
1857
1929
  wallet: factories['io.flow.stripe.v0.unions.card_wallet'](),
1858
1930
  network_transaction_id: factories.string(),
1931
+ extended_authorization: factories['io.flow.stripe.v0.models.extended_authorization'](),
1932
+ incremental_authorization: factories['io.flow.stripe.v0.models.incremental_authorization'](),
1933
+ multicapture: factories['io.flow.stripe.v0.models.multicapture'](),
1934
+ overcapture: factories['io.flow.stripe.v0.models.overcapture'](),
1859
1935
  }); },
1860
1936
  'io.flow.stripe.v0.models.payment_method_details_klarna': function () { return ({
1861
1937
  type: 'klarna',
@@ -1879,6 +1955,16 @@ var factories = {
1879
1955
  request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
1880
1956
  stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
1881
1957
  mcc: factories.string(),
1958
+ capture_before: factories.long(),
1959
+ }); },
1960
+ 'io.flow.stripe.v0.models.payment_method_options_card_form': function () { return ({
1961
+ network: factories.string(),
1962
+ request_three_d_secure: factories['io.flow.stripe.v0.enums.request_three_d_secure_type'](),
1963
+ stored_credential_transaction_type: factories['io.flow.stripe.v0.enums.stored_credential_transaction_type'](),
1964
+ mcc: factories.string(),
1965
+ }); },
1966
+ 'io.flow.stripe.v0.models.payment_method_options_form': function () { return ({
1967
+ card: factories['io.flow.stripe.v0.models.payment_method_options_card_form'](),
1882
1968
  }); },
1883
1969
  'io.flow.stripe.v0.models.payment_outcome': function () { return ({
1884
1970
  network_status: factories['io.flow.stripe.v0.enums.network_status'](),
@@ -2064,10 +2150,11 @@ var factories = {
2064
2150
  type: factories['io.flow.stripe.v0.enums.error_type'](),
2065
2151
  charge: factories.string(),
2066
2152
  message: factories.string(),
2067
- code: factories['io.flow.stripe.v0.enums.card_error_code'](),
2068
- decline_code: factories.string(),
2153
+ code: factories['io.flow.stripe.v0.enums.error_code'](),
2154
+ decline_code: factories['io.flow.stripe.v0.enums.decline_code'](),
2069
2155
  param: factories.string(),
2070
2156
  payment_intent: factories['io.flow.stripe.v0.models.payment_intent'](),
2157
+ payment_method: factories['io.flow.stripe.v0.models.payment_method'](),
2071
2158
  }); },
2072
2159
  'io.flow.stripe.v0.models.stripe_event': function () { return ({
2073
2160
  id: factories.string(),
@@ -2095,9 +2182,12 @@ var factories = {
2095
2182
  'io.flow.stripe.v0.models.three_d_secure_charge': function () { return ({
2096
2183
  authenticated: factories.boolean(),
2097
2184
  authentication_flow: factories['io.flow.stripe.v0.enums.three_ds_authentication_flow'](),
2185
+ electronic_commerce_indicator: factories.string(),
2186
+ exemption_indicator: factories.string(),
2098
2187
  result: factories['io.flow.stripe.v0.enums.three_ds_result'](),
2099
2188
  result_reason: factories['io.flow.stripe.v0.enums.three_ds_result_reason'](),
2100
2189
  succeeded: factories.boolean(),
2190
+ transaction_id: factories.string(),
2101
2191
  version: factories.string(),
2102
2192
  }); },
2103
2193
  'io.flow.stripe.v0.models.three_d_secure_redirect': function () { return ({
@@ -3287,6 +3377,10 @@ var factories = {
3287
3377
  'io.flow.v0.models.activation_put_form': function () { return ({
3288
3378
  placeholder: factories.boolean(),
3289
3379
  }); },
3380
+ 'io.flow.v0.models.additional_services_requested': function () { return ({
3381
+ name: factories.string(),
3382
+ description: factories.string(),
3383
+ }); },
3290
3384
  'io.flow.v0.models.address': function () { return ({
3291
3385
  text: factories.string(),
3292
3386
  streets: arrayOf(function () { return factories.string(); }),
@@ -10515,6 +10609,7 @@ var factories = {
10515
10609
  shipment_recipient: factories['io.flow.v0.enums.shipment_recipient'](),
10516
10610
  label_request_method: factories['io.flow.v0.enums.label_request_method'](),
10517
10611
  label_trigger_method: factories['io.flow.v0.enums.label_trigger_method'](),
10612
+ additional_services_requested: arrayOf(function () { return factories['io.flow.v0.models.additional_services_requested'](); }),
10518
10613
  created_at: factories.date_time_iso_8601(),
10519
10614
  updated_at: factories.date_time_iso_8601(),
10520
10615
  }); },
@@ -11625,6 +11720,7 @@ var factories = {
11625
11720
  }); },
11626
11721
  'io.flow.v0.models.transaction_metadata_manual': function () { return ({
11627
11722
  discriminator: 'manual',
11723
+ description: factories.string(),
11628
11724
  original: factories['io.flow.v0.models.transaction_metadata_original_transaction'](),
11629
11725
  url: factories.string(),
11630
11726
  }); },
@@ -12938,6 +13034,7 @@ export var makeActionUseSdkPaypal = function () { return factories['io.flow.v0.m
12938
13034
  export var makeActionUseSdkStripeV3 = function () { return factories['io.flow.v0.models.action_use_sdk_stripe_v3'](); };
12939
13035
  export var makeActionWait = function () { return factories['io.flow.v0.models.action_wait'](); };
12940
13036
  export var makeActivationPutForm = function () { return factories['io.flow.v0.models.activation_put_form'](); };
13037
+ export var makeAdditionalServicesRequested = function () { return factories['io.flow.v0.models.additional_services_requested'](); };
12941
13038
  export var makeAddress = function () { return factories['io.flow.v0.models.address'](); };
12942
13039
  export var makeAddressConfiguration = function () { return factories['io.flow.v0.models.address_configuration'](); };
12943
13040
  export var makeAddressConfigurationFieldPlacement = function () { return factories['io.flow.v0.models.address_configuration_field_placement'](); };
@@ -26,6 +26,7 @@ export declare const makeActionUseSdkPaypal: () => io.flow.v0.models.ActionUseSd
26
26
  export declare const makeActionUseSdkStripeV3: () => io.flow.v0.models.ActionUseSdkStripeV3;
27
27
  export declare const makeActionWait: () => io.flow.v0.models.ActionWait;
28
28
  export declare const makeActivationPutForm: () => io.flow.v0.models.ActivationPutForm;
29
+ export declare const makeAdditionalServicesRequested: () => io.flow.v0.models.AdditionalServicesRequested;
29
30
  export declare const makeAddress: () => io.flow.v0.models.Address;
30
31
  export declare const makeAddressConfiguration: () => io.flow.v0.models.AddressConfiguration;
31
32
  export declare const makeAddressConfigurationFieldPlacement: () => io.flow.v0.models.AddressConfigurationFieldPlacement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-factories",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
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": "8ec8b535c64db79aa4a49bf6bd6eb53f46deee7d"
39
+ "gitHead": "fc644e9ba6f842b12316085c5adbfeaa86923d6b"
40
40
  }