@flowio/api-prop-types 10.16.60 → 10.16.61

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowio/api-prop-types",
3
- "version": "10.16.60",
3
+ "version": "10.16.61",
4
4
  "description": "PropType validators that work with Flow API",
5
5
  "keywords": [
6
6
  "flow",
@@ -29,5 +29,5 @@
29
29
  "peerDependencies": {
30
30
  "prop-types": "^15.7.0"
31
31
  },
32
- "gitHead": "8ec8b535c64db79aa4a49bf6bd6eb53f46deee7d"
32
+ "gitHead": "4b5d69bf9ba5f404b7b1c8f07d256db3c25210d9"
33
33
  }
package/src/api.d.ts CHANGED
@@ -156,13 +156,13 @@ declare namespace io.flow.stripe.v0.enums {
156
156
  type CancellationReason = 'abandoned' | 'automatic' | 'duplicate' | 'failed_invoice' | 'fraudulent' | 'requested_by_customer' | 'void_invoice';
157
157
  type CaptureMethod = 'automatic' | 'manual';
158
158
  type CardBrand = 'American Express' | 'MasterCard' | 'Discover' | 'JCB' | 'Diners Club' | 'Unknown';
159
- type CardErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'incorrect_number' | 'expired_card' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'missing' | 'processing_error';
160
159
  type CardFundingType = 'credit' | 'debit' | 'prepaid' | 'unknown';
161
160
  type CardNetwork = 'amex' | 'cartes_bancaires' | 'diners' | 'discover' | 'eftpos_au' | 'interac' | 'jcb' | 'mastercard' | 'unionpay' | 'visa' | 'unknown';
162
161
  type CheckOutcome = 'pass' | 'fail' | 'unavailable' | 'unchecked';
163
162
  type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
164
163
  type ConfirmationMethod = 'automatic' | 'manual';
165
- type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
164
+ type DeclineCode = 'approve_with_id' | 'call_issuer' | 'card_not_supported' | 'card_velocity_exceeded' | 'currency_not_supported' | 'do_not_honor' | 'do_not_try_again' | 'duplicate_transaction' | 'expired_card' | 'fraudulent' | 'generic_decline' | 'incorrect_number' | 'incorrect_cvc' | 'incorrect_pin' | 'incorrect_zip' | 'insufficient_funds' | 'invalid_account' | 'invalid_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_number' | 'invalid_pin' | 'issuer_not_available' | 'lost_card' | 'new_account_information_available' | 'no_action_taken' | 'not_permitted' | 'pickup_card' | 'pin_try_exceeded' | 'processing_error' | 'reenter_transaction' | 'restricted_card' | 'revocation_of_all_authorizations' | 'revocation_of_authorization' | 'security_violation' | 'service_not_allowed' | 'stolen_card' | 'stop_payment_order' | 'testmode_decline' | 'transaction_not_allowed' | 'try_again_later' | 'withdrawal_count_limit_exceeded';
165
+ type ErrorCode = 'invalid_number' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_cvc' | 'invalid_swipe_data' | 'country_code_invalid' | 'email_invalid' | 'postal_code_invalid' | 'invalid_characters' | 'url_invalid' | 'invalid_charge_amount' | 'incorrect_number' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_zip' | 'card_declined' | 'expired_card' | 'missing' | 'processing_error' | 'account_closed' | 'amount_too_small' | 'amount_too_large' | 'api_key_expired' | 'authentication_required' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'insufficient_funds' | 'intent_invalid_state' | 'livemode_mismatch' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_unexpected_state' | 'payment_intent_invalid_parameter' | 'payment_method_billing_details_address_missing' | 'payment_method_customer_decline' | 'payment_method_currency_mismatch' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'platform_api_key_expired' | 'refund_disputed_payment' | 'testmode_charges_only' | 'tls_version_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state';
166
166
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
167
167
  type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'payment_intent.created' | 'payment_intent.amount_capturable_updated' | 'payment_intent.payment_failed' | 'payment_intent.succeeded' | 'payment_intent.requires_action' | 'payment_intent.canceled' | 'payment_intent.processing' | 'source.canceled' | 'source.chargeable' | 'source.failed';
168
168
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
@@ -320,7 +320,7 @@ declare namespace io.flow.stripe.v0.models {
320
320
  readonly 'balance_transaction'?: string;
321
321
  readonly 'destination'?: string;
322
322
  readonly 'dispute'?: string;
323
- readonly 'failure_code'?: string;
323
+ readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
324
324
  readonly 'failure_message'?: string;
325
325
  readonly 'on_behalf_of'?: string;
326
326
  readonly 'review'?: string;
@@ -371,7 +371,7 @@ declare namespace io.flow.stripe.v0.models {
371
371
  readonly 'balance_transaction'?: string;
372
372
  readonly 'destination'?: string;
373
373
  readonly 'dispute'?: string;
374
- readonly 'failure_code'?: string;
374
+ readonly 'failure_code'?: io.flow.stripe.v0.enums.ErrorCode;
375
375
  readonly 'failure_message'?: string;
376
376
  readonly 'on_behalf_of'?: string;
377
377
  readonly 'review'?: string;
@@ -423,17 +423,6 @@ declare namespace io.flow.stripe.v0.models {
423
423
  readonly 'product_category'?: string;
424
424
  }
425
425
 
426
- interface LastPaymentError {
427
- readonly 'charge'?: string;
428
- readonly 'code'?: string;
429
- readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
430
- readonly 'doc_url'?: string;
431
- readonly 'message'?: string;
432
- readonly 'param'?: string;
433
- readonly 'payment_method': io.flow.stripe.v0.models.PaymentMethod;
434
- readonly 'type': io.flow.stripe.v0.enums.ErrorType;
435
- }
436
-
437
426
  interface LegalEntity {
438
427
  readonly 'additional_owners'?: io.flow.stripe.v0.models.Owner[];
439
428
  }
@@ -536,7 +525,7 @@ declare namespace io.flow.stripe.v0.models {
536
525
  readonly 'customer'?: string;
537
526
  readonly 'description'?: string;
538
527
  readonly 'invoice'?: string;
539
- readonly 'last_payment_error'?: io.flow.stripe.v0.models.LastPaymentError;
528
+ readonly 'last_payment_error'?: io.flow.stripe.v0.models.StripeError;
540
529
  readonly 'livemode': boolean;
541
530
  readonly 'metadata'?: io.flow.stripe.v0.models.Metadata;
542
531
  readonly 'next_action'?: io.flow.stripe.v0.models.NextAction;
@@ -737,9 +726,9 @@ declare namespace io.flow.stripe.v0.models {
737
726
  }
738
727
 
739
728
  interface PaymentOutcome {
740
- readonly 'network_status': io.flow.stripe.v0.enums.NetworkStatus;
741
- readonly 'risk_level': string;
742
- readonly 'seller_message': string;
729
+ readonly 'network_status'?: io.flow.stripe.v0.enums.NetworkStatus;
730
+ readonly 'risk_level'?: string;
731
+ readonly 'seller_message'?: string;
743
732
  readonly 'reason'?: string;
744
733
  readonly 'type'?: io.flow.stripe.v0.enums.PaymentOutcomeType;
745
734
  }
@@ -938,10 +927,11 @@ declare namespace io.flow.stripe.v0.models {
938
927
  readonly 'type': io.flow.stripe.v0.enums.ErrorType;
939
928
  readonly 'charge'?: string;
940
929
  readonly 'message'?: string;
941
- readonly 'code'?: io.flow.stripe.v0.enums.CardErrorCode;
942
- readonly 'decline_code'?: string;
930
+ readonly 'code'?: io.flow.stripe.v0.enums.ErrorCode;
931
+ readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
943
932
  readonly 'param'?: string;
944
933
  readonly 'payment_intent'?: io.flow.stripe.v0.models.PaymentIntent;
934
+ readonly 'payment_method'?: io.flow.stripe.v0.models.PaymentMethod;
945
935
  }
946
936
 
947
937
  interface StripeEvent {
@@ -974,9 +964,12 @@ declare namespace io.flow.stripe.v0.models {
974
964
  interface ThreeDSecureCharge {
975
965
  readonly 'authenticated'?: boolean;
976
966
  readonly 'authentication_flow'?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
967
+ readonly 'electronic_commerce_indicator'?: string;
968
+ readonly 'exemption_indicator'?: string;
977
969
  readonly 'result'?: io.flow.stripe.v0.enums.ThreeDsResult;
978
970
  readonly 'result_reason'?: io.flow.stripe.v0.enums.ThreeDsResultReason;
979
971
  readonly 'succeeded'?: boolean;
972
+ readonly 'transaction_id'?: string;
980
973
  readonly 'version'?: string;
981
974
  }
982
975
 
@@ -12129,6 +12122,7 @@ declare namespace io.flow.v0.models {
12129
12122
 
12130
12123
  interface TransactionMetadataManual {
12131
12124
  readonly 'discriminator': 'manual';
12125
+ readonly 'description': string;
12132
12126
  readonly 'original'?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
12133
12127
  readonly 'url'?: string;
12134
12128
  }
package/src/api.js CHANGED
@@ -961,9 +961,12 @@ T['io.flow.stripe.v0.enums.three_ds_authentication_flow'] = PropTypes.oneOf(['ch
961
961
  T['io.flow.stripe.v0.models.three_d_secure_charge'] = PropTypes.exact({
962
962
  authenticated: PropTypes.bool,
963
963
  authentication_flow: T['io.flow.stripe.v0.enums.three_ds_authentication_flow'],
964
+ electronic_commerce_indicator: PropTypes.string,
965
+ exemption_indicator: PropTypes.string,
964
966
  result: T['io.flow.stripe.v0.enums.three_ds_result'],
965
967
  result_reason: T['io.flow.stripe.v0.enums.three_ds_result_reason'],
966
968
  succeeded: PropTypes.bool,
969
+ transaction_id: PropTypes.string,
967
970
  version: PropTypes.string,
968
971
  });
969
972
 
@@ -1103,6 +1106,42 @@ T['io.flow.stripe.v0.models.visa_checkout'] = PropTypes.exact({
1103
1106
  dynamic_last4: PropTypes.string,
1104
1107
  });
1105
1108
 
1109
+ T['io.flow.stripe.v0.models.payment_method_billing_details'] = PropTypes.exact({
1110
+ address: T['io.flow.stripe.v0.models.address'].isRequired,
1111
+ email: PropTypes.string,
1112
+ name: PropTypes.string,
1113
+ phone: PropTypes.string,
1114
+ });
1115
+
1116
+ T['io.flow.stripe.v0.models.payment_method_form_card'] = PropTypes.exact({
1117
+ type: PropTypes.oneOf(['card']).isRequired,
1118
+ billing_details: T['io.flow.stripe.v0.models.payment_method_billing_details'],
1119
+ metadata: PropTypes.object,
1120
+ card: T['io.flow.stripe.v0.models.payment_method_card_form'].isRequired,
1121
+ });
1122
+
1123
+ T['io.flow.stripe.v0.unions.payment_method_form'] = PropTypes.oneOfType([T['io.flow.stripe.v0.models.payment_method_form_card']]);
1124
+
1125
+ T['io.flow.stripe.v0.models.payment_method_data_card'] = PropTypes.exact({
1126
+ type: PropTypes.oneOf(['card']).isRequired,
1127
+ billing_details: T['io.flow.stripe.v0.models.payment_method_billing_details'],
1128
+ metadata: PropTypes.object,
1129
+ card: T['io.flow.stripe.v0.models.payment_method_card_form'].isRequired,
1130
+ });
1131
+
1132
+ T['io.flow.stripe.v0.unions.payment_method_data'] = PropTypes.oneOfType([T['io.flow.stripe.v0.models.payment_method_data_card']]);
1133
+
1134
+ T['io.flow.stripe.v0.models.payment_intent_confirmation_form'] = PropTypes.exact({
1135
+ off_session: PropTypes.bool,
1136
+ payment_method: PropTypes.string,
1137
+ payment_method_data: T['io.flow.stripe.v0.unions.payment_method_data'],
1138
+ payment_method_options: T['io.flow.stripe.v0.models.payment_method_options'],
1139
+ payment_method_types: PropTypes.arrayOf(PropTypes.string),
1140
+ receipt_email: PropTypes.string,
1141
+ save_payment_method: PropTypes.bool,
1142
+ setup_future_usage: T['io.flow.stripe.v0.enums.setup_future_usage'],
1143
+ });
1144
+
1106
1145
  T['io.flow.stripe.v0.models.payment_intent_shipping'] = PropTypes.exact({
1107
1146
  address: T['io.flow.stripe.v0.models.address'].isRequired,
1108
1147
  name: PropTypes.string.isRequired,
@@ -1151,40 +1190,13 @@ T['io.flow.stripe.v0.models.masterpass'] = PropTypes.exact({
1151
1190
  dynamic_last4: PropTypes.string,
1152
1191
  });
1153
1192
 
1154
- T['io.flow.stripe.v0.models.payment_method_billing_details'] = PropTypes.exact({
1155
- address: T['io.flow.stripe.v0.models.address'].isRequired,
1156
- email: PropTypes.string,
1157
- name: PropTypes.string,
1158
- phone: PropTypes.string,
1159
- });
1160
-
1161
- T['io.flow.stripe.v0.models.payment_method_form_card'] = PropTypes.exact({
1162
- type: PropTypes.oneOf(['card']).isRequired,
1163
- billing_details: T['io.flow.stripe.v0.models.payment_method_billing_details'],
1164
- metadata: PropTypes.object,
1165
- card: T['io.flow.stripe.v0.models.payment_method_card_form'].isRequired,
1166
- });
1167
-
1168
- T['io.flow.stripe.v0.unions.payment_method_form'] = PropTypes.oneOfType([T['io.flow.stripe.v0.models.payment_method_form_card']]);
1169
-
1170
- T['io.flow.stripe.v0.models.payment_method_data_card'] = PropTypes.exact({
1171
- type: PropTypes.oneOf(['card']).isRequired,
1172
- billing_details: T['io.flow.stripe.v0.models.payment_method_billing_details'],
1173
- metadata: PropTypes.object,
1174
- card: T['io.flow.stripe.v0.models.payment_method_card_form'].isRequired,
1193
+ T['io.flow.stripe.v0.models.klarna_marketplace_seller_info'] = PropTypes.exact({
1194
+ sub_merchant_id: PropTypes.string,
1195
+ product_category: PropTypes.string,
1175
1196
  });
1176
1197
 
1177
- T['io.flow.stripe.v0.unions.payment_method_data'] = PropTypes.oneOfType([T['io.flow.stripe.v0.models.payment_method_data_card']]);
1178
-
1179
- T['io.flow.stripe.v0.models.payment_intent_confirmation_form'] = PropTypes.exact({
1180
- off_session: PropTypes.bool,
1181
- payment_method: PropTypes.string,
1182
- payment_method_data: T['io.flow.stripe.v0.unions.payment_method_data'],
1183
- payment_method_options: T['io.flow.stripe.v0.models.payment_method_options'],
1184
- payment_method_types: PropTypes.arrayOf(PropTypes.string),
1185
- receipt_email: PropTypes.string,
1186
- save_payment_method: PropTypes.bool,
1187
- setup_future_usage: T['io.flow.stripe.v0.enums.setup_future_usage'],
1198
+ T['io.flow.stripe.v0.models.klarna_attachment'] = PropTypes.exact({
1199
+ marketplace_seller_info: PropTypes.arrayOf(T['io.flow.stripe.v0.models.klarna_marketplace_seller_info']),
1188
1200
  });
1189
1201
 
1190
1202
  T['io.flow.stripe.v0.enums.decline_code'] = PropTypes.oneOf([
@@ -1207,6 +1219,7 @@ T['io.flow.stripe.v0.enums.decline_code'] = PropTypes.oneOf([
1207
1219
  'invalid_account',
1208
1220
  'invalid_amount',
1209
1221
  'invalid_cvc',
1222
+ 'invalid_expiry_month',
1210
1223
  'invalid_expiry_year',
1211
1224
  'invalid_number',
1212
1225
  'invalid_pin',
@@ -1232,30 +1245,6 @@ T['io.flow.stripe.v0.enums.decline_code'] = PropTypes.oneOf([
1232
1245
  'withdrawal_count_limit_exceeded',
1233
1246
  ]);
1234
1247
 
1235
- T['io.flow.stripe.v0.models.klarna_marketplace_seller_info'] = PropTypes.exact({
1236
- sub_merchant_id: PropTypes.string,
1237
- product_category: PropTypes.string,
1238
- });
1239
-
1240
- T['io.flow.stripe.v0.models.klarna_attachment'] = PropTypes.exact({
1241
- marketplace_seller_info: PropTypes.arrayOf(T['io.flow.stripe.v0.models.klarna_marketplace_seller_info']),
1242
- });
1243
-
1244
- T['io.flow.stripe.v0.enums.card_error_code'] = PropTypes.oneOf([
1245
- 'invalid_number',
1246
- 'invalid_expiry_month',
1247
- 'invalid_expiry_year',
1248
- 'invalid_cvc',
1249
- 'invalid_swipe_data',
1250
- 'incorrect_number',
1251
- 'expired_card',
1252
- 'incorrect_cvc',
1253
- 'incorrect_zip',
1254
- 'card_declined',
1255
- 'missing',
1256
- 'processing_error',
1257
- ]);
1258
-
1259
1248
  T['io.flow.stripe.v0.enums.error_type'] = PropTypes.oneOf([
1260
1249
  'api_connection_error',
1261
1250
  'api_error',
@@ -1470,6 +1459,80 @@ T['io.flow.stripe.v0.enums.network_status'] = PropTypes.oneOf([
1470
1459
  'reversed_after_approval',
1471
1460
  ]);
1472
1461
 
1462
+ T['io.flow.stripe.v0.enums.error_code'] = PropTypes.oneOf([
1463
+ 'invalid_number',
1464
+ 'invalid_expiry_month',
1465
+ 'invalid_expiry_year',
1466
+ 'invalid_cvc',
1467
+ 'invalid_swipe_data',
1468
+ 'country_code_invalid',
1469
+ 'email_invalid',
1470
+ 'postal_code_invalid',
1471
+ 'invalid_characters',
1472
+ 'url_invalid',
1473
+ 'invalid_charge_amount',
1474
+ 'incorrect_number',
1475
+ 'incorrect_address',
1476
+ 'incorrect_cvc',
1477
+ 'incorrect_zip',
1478
+ 'card_declined',
1479
+ 'expired_card',
1480
+ 'missing',
1481
+ 'processing_error',
1482
+ 'account_closed',
1483
+ 'amount_too_small',
1484
+ 'amount_too_large',
1485
+ 'api_key_expired',
1486
+ 'authentication_required',
1487
+ 'capture_charge_authorization_expired',
1488
+ 'capture_unauthorized_payment',
1489
+ 'card_decline_rate_limit_exceeded',
1490
+ 'charge_already_captured',
1491
+ 'charge_already_refunded',
1492
+ 'charge_disputed',
1493
+ 'charge_exceeds_source_limit',
1494
+ 'charge_expired_for_capture',
1495
+ 'charge_invalid_parameter',
1496
+ 'charge_not_refundable',
1497
+ 'insufficient_funds',
1498
+ 'intent_invalid_state',
1499
+ 'livemode_mismatch',
1500
+ 'parameter_invalid_empty',
1501
+ 'parameter_invalid_integer',
1502
+ 'parameter_invalid_string_blank',
1503
+ 'parameter_invalid_string_empty',
1504
+ 'parameter_missing',
1505
+ 'parameter_unknown',
1506
+ 'parameters_exclusive',
1507
+ 'payment_intent_action_required',
1508
+ 'payment_intent_authentication_failure',
1509
+ 'payment_intent_incompatible_payment_method',
1510
+ 'payment_intent_payment_attempt_expired',
1511
+ 'payment_intent_payment_attempt_failed',
1512
+ 'payment_intent_unexpected_state',
1513
+ 'payment_intent_invalid_parameter',
1514
+ 'payment_method_billing_details_address_missing',
1515
+ 'payment_method_customer_decline',
1516
+ 'payment_method_currency_mismatch',
1517
+ 'payment_method_invalid_parameter',
1518
+ 'payment_method_invalid_parameter_testmode',
1519
+ 'payment_method_not_available',
1520
+ 'payment_method_provider_decline',
1521
+ 'payment_method_provider_timeout',
1522
+ 'payment_method_unactivated',
1523
+ 'payment_method_unexpected_state',
1524
+ 'payment_method_unsupported_type',
1525
+ 'platform_api_key_expired',
1526
+ 'refund_disputed_payment',
1527
+ 'testmode_charges_only',
1528
+ 'tls_version_unsupported',
1529
+ 'setup_attempt_failed',
1530
+ 'setup_intent_authentication_failure',
1531
+ 'setup_intent_invalid_parameter',
1532
+ 'setup_intent_setup_attempt_expired',
1533
+ 'setup_intent_unexpected_state',
1534
+ ]);
1535
+
1473
1536
  T['io.flow.stripe.v0.enums.payment_status'] = PropTypes.oneOf(['succeeded', 'pending', 'failed']);
1474
1537
 
1475
1538
  T['io.flow.stripe.v0.models.refunds'] = PropTypes.exact({
@@ -1481,9 +1544,9 @@ T['io.flow.stripe.v0.models.refunds'] = PropTypes.exact({
1481
1544
  });
1482
1545
 
1483
1546
  T['io.flow.stripe.v0.models.payment_outcome'] = PropTypes.exact({
1484
- network_status: T['io.flow.stripe.v0.enums.network_status'].isRequired,
1485
- risk_level: PropTypes.string.isRequired,
1486
- seller_message: PropTypes.string.isRequired,
1547
+ network_status: T['io.flow.stripe.v0.enums.network_status'],
1548
+ risk_level: PropTypes.string,
1549
+ seller_message: PropTypes.string,
1487
1550
  reason: PropTypes.string,
1488
1551
  type: T['io.flow.stripe.v0.enums.payment_outcome_type'],
1489
1552
  });
@@ -1549,17 +1612,6 @@ T['io.flow.stripe.v0.models.payment_method'] = PropTypes.exact({
1549
1612
  type: PropTypes.string,
1550
1613
  });
1551
1614
 
1552
- T['io.flow.stripe.v0.models.last_payment_error'] = PropTypes.exact({
1553
- charge: PropTypes.string,
1554
- code: PropTypes.string,
1555
- decline_code: T['io.flow.stripe.v0.enums.decline_code'],
1556
- doc_url: PropTypes.string,
1557
- message: PropTypes.string,
1558
- param: PropTypes.string,
1559
- payment_method: T['io.flow.stripe.v0.models.payment_method'].isRequired,
1560
- type: T['io.flow.stripe.v0.enums.error_type'].isRequired,
1561
- });
1562
-
1563
1615
  T['io.flow.stripe.v0.enums.apple_pay_type'] = PropTypes.oneOf(['apple_pay', 'apple_pay_later']);
1564
1616
 
1565
1617
  T['io.flow.stripe.v0.models.apple_pay_information'] = PropTypes.exact({
@@ -1682,7 +1734,7 @@ T['io.flow.stripe.v0.models.charge_source_optional'] = PropTypes.exact({
1682
1734
  balance_transaction: PropTypes.string,
1683
1735
  destination: PropTypes.string,
1684
1736
  dispute: PropTypes.string,
1685
- failure_code: PropTypes.string,
1737
+ failure_code: T['io.flow.stripe.v0.enums.error_code'],
1686
1738
  failure_message: PropTypes.string,
1687
1739
  on_behalf_of: PropTypes.string,
1688
1740
  review: PropTypes.string,
@@ -1721,7 +1773,7 @@ T['io.flow.stripe.v0.models.payment_intent'] = PropTypes.exact({
1721
1773
  customer: PropTypes.string,
1722
1774
  description: PropTypes.string,
1723
1775
  invoice: PropTypes.string,
1724
- last_payment_error: T['io.flow.stripe.v0.models.last_payment_error'],
1776
+ last_payment_error: PropTypes.any,
1725
1777
  livemode: PropTypes.bool.isRequired,
1726
1778
  metadata: T['io.flow.stripe.v0.models.metadata'],
1727
1779
  next_action: T['io.flow.stripe.v0.models.next_action'],
@@ -1745,14 +1797,15 @@ T['io.flow.stripe.v0.models.stripe_error'] = PropTypes.exact({
1745
1797
  type: T['io.flow.stripe.v0.enums.error_type'].isRequired,
1746
1798
  charge: PropTypes.string,
1747
1799
  message: PropTypes.string,
1748
- code: T['io.flow.stripe.v0.enums.card_error_code'],
1749
- decline_code: PropTypes.string,
1800
+ code: T['io.flow.stripe.v0.enums.error_code'],
1801
+ decline_code: T['io.flow.stripe.v0.enums.decline_code'],
1750
1802
  param: PropTypes.string,
1751
1803
  payment_intent: T['io.flow.stripe.v0.models.payment_intent'],
1804
+ payment_method: T['io.flow.stripe.v0.models.payment_method'],
1752
1805
  });
1753
1806
 
1754
1807
  T['io.flow.stripe.v0.models.error'] = PropTypes.exact({
1755
- error: T['io.flow.stripe.v0.models.stripe_error'].isRequired,
1808
+ error: PropTypes.any.isRequired,
1756
1809
  });
1757
1810
 
1758
1811
  T['io.flow.stripe.v0.models.charge'] = PropTypes.exact({
@@ -1773,7 +1826,7 @@ T['io.flow.stripe.v0.models.charge'] = PropTypes.exact({
1773
1826
  balance_transaction: PropTypes.string,
1774
1827
  destination: PropTypes.string,
1775
1828
  dispute: PropTypes.string,
1776
- failure_code: PropTypes.string,
1829
+ failure_code: T['io.flow.stripe.v0.enums.error_code'],
1777
1830
  failure_message: PropTypes.string,
1778
1831
  on_behalf_of: PropTypes.string,
1779
1832
  review: PropTypes.string,
@@ -6806,6 +6859,7 @@ T['io.flow.v0.enums.fee_deduction_type'] = PropTypes.oneOf([
6806
6859
 
6807
6860
  T['io.flow.v0.models.transaction_metadata_manual'] = PropTypes.exact({
6808
6861
  discriminator: PropTypes.oneOf(['manual']).isRequired,
6862
+ description: PropTypes.string.isRequired,
6809
6863
  original: T['io.flow.v0.models.transaction_metadata_original_transaction'],
6810
6864
  url: PropTypes.string,
6811
6865
  });