@flowio/api-prop-types 10.16.59 → 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.59",
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": "edaa4ef26aa5601691b51a50d20d45ef9071e43e"
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;
@@ -553,6 +542,7 @@ declare namespace io.flow.stripe.v0.models {
553
542
  readonly 'status': io.flow.stripe.v0.enums.PaymentIntentStatus;
554
543
  readonly 'transfer_data'?: io.flow.stripe.v0.models.TransferData;
555
544
  readonly 'transfer_group'?: string;
545
+ readonly 'shipping'?: io.flow.stripe.v0.models.PaymentIntentShipping;
556
546
  }
557
547
 
558
548
  interface PaymentIntentCancellationForm {
@@ -609,6 +599,13 @@ declare namespace io.flow.stripe.v0.models {
609
599
  readonly 'statement_descriptor_suffix'?: string;
610
600
  readonly 'transfer_data'?: io.flow.stripe.v0.models.TransferData;
611
601
  readonly 'transfer_group'?: string;
602
+ readonly 'shipping'?: io.flow.stripe.v0.models.PaymentIntentShipping;
603
+ }
604
+
605
+ interface PaymentIntentShipping {
606
+ readonly 'address': io.flow.stripe.v0.models.Address;
607
+ readonly 'name': string;
608
+ readonly 'phone'?: string;
612
609
  }
613
610
 
614
611
  interface PaymentIntentUpdateForm {
@@ -729,9 +726,9 @@ declare namespace io.flow.stripe.v0.models {
729
726
  }
730
727
 
731
728
  interface PaymentOutcome {
732
- readonly 'network_status': io.flow.stripe.v0.enums.NetworkStatus;
733
- readonly 'risk_level': string;
734
- readonly 'seller_message': string;
729
+ readonly 'network_status'?: io.flow.stripe.v0.enums.NetworkStatus;
730
+ readonly 'risk_level'?: string;
731
+ readonly 'seller_message'?: string;
735
732
  readonly 'reason'?: string;
736
733
  readonly 'type'?: io.flow.stripe.v0.enums.PaymentOutcomeType;
737
734
  }
@@ -930,10 +927,11 @@ declare namespace io.flow.stripe.v0.models {
930
927
  readonly 'type': io.flow.stripe.v0.enums.ErrorType;
931
928
  readonly 'charge'?: string;
932
929
  readonly 'message'?: string;
933
- readonly 'code'?: io.flow.stripe.v0.enums.CardErrorCode;
934
- readonly 'decline_code'?: string;
930
+ readonly 'code'?: io.flow.stripe.v0.enums.ErrorCode;
931
+ readonly 'decline_code'?: io.flow.stripe.v0.enums.DeclineCode;
935
932
  readonly 'param'?: string;
936
933
  readonly 'payment_intent'?: io.flow.stripe.v0.models.PaymentIntent;
934
+ readonly 'payment_method'?: io.flow.stripe.v0.models.PaymentMethod;
937
935
  }
938
936
 
939
937
  interface StripeEvent {
@@ -966,9 +964,12 @@ declare namespace io.flow.stripe.v0.models {
966
964
  interface ThreeDSecureCharge {
967
965
  readonly 'authenticated'?: boolean;
968
966
  readonly 'authentication_flow'?: io.flow.stripe.v0.enums.ThreeDsAuthenticationFlow;
967
+ readonly 'electronic_commerce_indicator'?: string;
968
+ readonly 'exemption_indicator'?: string;
969
969
  readonly 'result'?: io.flow.stripe.v0.enums.ThreeDsResult;
970
970
  readonly 'result_reason'?: io.flow.stripe.v0.enums.ThreeDsResultReason;
971
971
  readonly 'succeeded'?: boolean;
972
+ readonly 'transaction_id'?: string;
972
973
  readonly 'version'?: string;
973
974
  }
974
975
 
@@ -12121,7 +12122,9 @@ declare namespace io.flow.v0.models {
12121
12122
 
12122
12123
  interface TransactionMetadataManual {
12123
12124
  readonly 'discriminator': 'manual';
12124
- readonly 'original': io.flow.v0.models.TransactionMetadataOriginalTransaction;
12125
+ readonly 'description': string;
12126
+ readonly 'original'?: io.flow.v0.models.TransactionMetadataOriginalTransaction;
12127
+ readonly 'url'?: string;
12125
12128
  }
12126
12129
 
12127
12130
  interface TransactionMetadataOriginalTransaction {
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,48 @@ 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
+
1145
+ T['io.flow.stripe.v0.models.payment_intent_shipping'] = PropTypes.exact({
1146
+ address: T['io.flow.stripe.v0.models.address'].isRequired,
1147
+ name: PropTypes.string.isRequired,
1148
+ phone: PropTypes.string,
1149
+ });
1150
+
1106
1151
  T['io.flow.stripe.v0.models.shipping'] = PropTypes.exact({
1107
1152
  address: T['io.flow.stripe.v0.models.address'].isRequired,
1108
1153
  name: PropTypes.string,
@@ -1145,40 +1190,13 @@ T['io.flow.stripe.v0.models.masterpass'] = PropTypes.exact({
1145
1190
  dynamic_last4: PropTypes.string,
1146
1191
  });
1147
1192
 
1148
- T['io.flow.stripe.v0.models.payment_method_billing_details'] = PropTypes.exact({
1149
- address: T['io.flow.stripe.v0.models.address'].isRequired,
1150
- email: PropTypes.string,
1151
- name: PropTypes.string,
1152
- phone: PropTypes.string,
1153
- });
1154
-
1155
- T['io.flow.stripe.v0.models.payment_method_form_card'] = PropTypes.exact({
1156
- type: PropTypes.oneOf(['card']).isRequired,
1157
- billing_details: T['io.flow.stripe.v0.models.payment_method_billing_details'],
1158
- metadata: PropTypes.object,
1159
- card: T['io.flow.stripe.v0.models.payment_method_card_form'].isRequired,
1160
- });
1161
-
1162
- T['io.flow.stripe.v0.unions.payment_method_form'] = PropTypes.oneOfType([T['io.flow.stripe.v0.models.payment_method_form_card']]);
1163
-
1164
- T['io.flow.stripe.v0.models.payment_method_data_card'] = PropTypes.exact({
1165
- type: PropTypes.oneOf(['card']).isRequired,
1166
- billing_details: T['io.flow.stripe.v0.models.payment_method_billing_details'],
1167
- metadata: PropTypes.object,
1168
- 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,
1169
1196
  });
1170
1197
 
1171
- T['io.flow.stripe.v0.unions.payment_method_data'] = PropTypes.oneOfType([T['io.flow.stripe.v0.models.payment_method_data_card']]);
1172
-
1173
- T['io.flow.stripe.v0.models.payment_intent_confirmation_form'] = PropTypes.exact({
1174
- off_session: PropTypes.bool,
1175
- payment_method: PropTypes.string,
1176
- payment_method_data: T['io.flow.stripe.v0.unions.payment_method_data'],
1177
- payment_method_options: T['io.flow.stripe.v0.models.payment_method_options'],
1178
- payment_method_types: PropTypes.arrayOf(PropTypes.string),
1179
- receipt_email: PropTypes.string,
1180
- save_payment_method: PropTypes.bool,
1181
- 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']),
1182
1200
  });
1183
1201
 
1184
1202
  T['io.flow.stripe.v0.enums.decline_code'] = PropTypes.oneOf([
@@ -1201,6 +1219,7 @@ T['io.flow.stripe.v0.enums.decline_code'] = PropTypes.oneOf([
1201
1219
  'invalid_account',
1202
1220
  'invalid_amount',
1203
1221
  'invalid_cvc',
1222
+ 'invalid_expiry_month',
1204
1223
  'invalid_expiry_year',
1205
1224
  'invalid_number',
1206
1225
  'invalid_pin',
@@ -1226,30 +1245,6 @@ T['io.flow.stripe.v0.enums.decline_code'] = PropTypes.oneOf([
1226
1245
  'withdrawal_count_limit_exceeded',
1227
1246
  ]);
1228
1247
 
1229
- T['io.flow.stripe.v0.models.klarna_marketplace_seller_info'] = PropTypes.exact({
1230
- sub_merchant_id: PropTypes.string,
1231
- product_category: PropTypes.string,
1232
- });
1233
-
1234
- T['io.flow.stripe.v0.models.klarna_attachment'] = PropTypes.exact({
1235
- marketplace_seller_info: PropTypes.arrayOf(T['io.flow.stripe.v0.models.klarna_marketplace_seller_info']),
1236
- });
1237
-
1238
- T['io.flow.stripe.v0.enums.card_error_code'] = PropTypes.oneOf([
1239
- 'invalid_number',
1240
- 'invalid_expiry_month',
1241
- 'invalid_expiry_year',
1242
- 'invalid_cvc',
1243
- 'invalid_swipe_data',
1244
- 'incorrect_number',
1245
- 'expired_card',
1246
- 'incorrect_cvc',
1247
- 'incorrect_zip',
1248
- 'card_declined',
1249
- 'missing',
1250
- 'processing_error',
1251
- ]);
1252
-
1253
1248
  T['io.flow.stripe.v0.enums.error_type'] = PropTypes.oneOf([
1254
1249
  'api_connection_error',
1255
1250
  'api_error',
@@ -1334,6 +1329,7 @@ T['io.flow.stripe.v0.models.payment_intent_form'] = PropTypes.exact({
1334
1329
  statement_descriptor_suffix: PropTypes.string,
1335
1330
  transfer_data: T['io.flow.stripe.v0.models.transfer_data'],
1336
1331
  transfer_group: PropTypes.string,
1332
+ shipping: T['io.flow.stripe.v0.models.payment_intent_shipping'],
1337
1333
  });
1338
1334
 
1339
1335
  T['io.flow.stripe.v0.models.charge_destination'] = PropTypes.exact({
@@ -1463,6 +1459,80 @@ T['io.flow.stripe.v0.enums.network_status'] = PropTypes.oneOf([
1463
1459
  'reversed_after_approval',
1464
1460
  ]);
1465
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
+
1466
1536
  T['io.flow.stripe.v0.enums.payment_status'] = PropTypes.oneOf(['succeeded', 'pending', 'failed']);
1467
1537
 
1468
1538
  T['io.flow.stripe.v0.models.refunds'] = PropTypes.exact({
@@ -1474,9 +1544,9 @@ T['io.flow.stripe.v0.models.refunds'] = PropTypes.exact({
1474
1544
  });
1475
1545
 
1476
1546
  T['io.flow.stripe.v0.models.payment_outcome'] = PropTypes.exact({
1477
- network_status: T['io.flow.stripe.v0.enums.network_status'].isRequired,
1478
- risk_level: PropTypes.string.isRequired,
1479
- 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,
1480
1550
  reason: PropTypes.string,
1481
1551
  type: T['io.flow.stripe.v0.enums.payment_outcome_type'],
1482
1552
  });
@@ -1542,17 +1612,6 @@ T['io.flow.stripe.v0.models.payment_method'] = PropTypes.exact({
1542
1612
  type: PropTypes.string,
1543
1613
  });
1544
1614
 
1545
- T['io.flow.stripe.v0.models.last_payment_error'] = PropTypes.exact({
1546
- charge: PropTypes.string,
1547
- code: PropTypes.string,
1548
- decline_code: T['io.flow.stripe.v0.enums.decline_code'],
1549
- doc_url: PropTypes.string,
1550
- message: PropTypes.string,
1551
- param: PropTypes.string,
1552
- payment_method: T['io.flow.stripe.v0.models.payment_method'].isRequired,
1553
- type: T['io.flow.stripe.v0.enums.error_type'].isRequired,
1554
- });
1555
-
1556
1615
  T['io.flow.stripe.v0.enums.apple_pay_type'] = PropTypes.oneOf(['apple_pay', 'apple_pay_later']);
1557
1616
 
1558
1617
  T['io.flow.stripe.v0.models.apple_pay_information'] = PropTypes.exact({
@@ -1675,7 +1734,7 @@ T['io.flow.stripe.v0.models.charge_source_optional'] = PropTypes.exact({
1675
1734
  balance_transaction: PropTypes.string,
1676
1735
  destination: PropTypes.string,
1677
1736
  dispute: PropTypes.string,
1678
- failure_code: PropTypes.string,
1737
+ failure_code: T['io.flow.stripe.v0.enums.error_code'],
1679
1738
  failure_message: PropTypes.string,
1680
1739
  on_behalf_of: PropTypes.string,
1681
1740
  review: PropTypes.string,
@@ -1714,7 +1773,7 @@ T['io.flow.stripe.v0.models.payment_intent'] = PropTypes.exact({
1714
1773
  customer: PropTypes.string,
1715
1774
  description: PropTypes.string,
1716
1775
  invoice: PropTypes.string,
1717
- last_payment_error: T['io.flow.stripe.v0.models.last_payment_error'],
1776
+ last_payment_error: PropTypes.any,
1718
1777
  livemode: PropTypes.bool.isRequired,
1719
1778
  metadata: T['io.flow.stripe.v0.models.metadata'],
1720
1779
  next_action: T['io.flow.stripe.v0.models.next_action'],
@@ -1731,20 +1790,22 @@ T['io.flow.stripe.v0.models.payment_intent'] = PropTypes.exact({
1731
1790
  status: T['io.flow.stripe.v0.enums.payment_intent_status'].isRequired,
1732
1791
  transfer_data: T['io.flow.stripe.v0.models.transfer_data'],
1733
1792
  transfer_group: PropTypes.string,
1793
+ shipping: T['io.flow.stripe.v0.models.payment_intent_shipping'],
1734
1794
  });
1735
1795
 
1736
1796
  T['io.flow.stripe.v0.models.stripe_error'] = PropTypes.exact({
1737
1797
  type: T['io.flow.stripe.v0.enums.error_type'].isRequired,
1738
1798
  charge: PropTypes.string,
1739
1799
  message: PropTypes.string,
1740
- code: T['io.flow.stripe.v0.enums.card_error_code'],
1741
- 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'],
1742
1802
  param: PropTypes.string,
1743
1803
  payment_intent: T['io.flow.stripe.v0.models.payment_intent'],
1804
+ payment_method: T['io.flow.stripe.v0.models.payment_method'],
1744
1805
  });
1745
1806
 
1746
1807
  T['io.flow.stripe.v0.models.error'] = PropTypes.exact({
1747
- error: T['io.flow.stripe.v0.models.stripe_error'].isRequired,
1808
+ error: PropTypes.any.isRequired,
1748
1809
  });
1749
1810
 
1750
1811
  T['io.flow.stripe.v0.models.charge'] = PropTypes.exact({
@@ -1765,7 +1826,7 @@ T['io.flow.stripe.v0.models.charge'] = PropTypes.exact({
1765
1826
  balance_transaction: PropTypes.string,
1766
1827
  destination: PropTypes.string,
1767
1828
  dispute: PropTypes.string,
1768
- failure_code: PropTypes.string,
1829
+ failure_code: T['io.flow.stripe.v0.enums.error_code'],
1769
1830
  failure_message: PropTypes.string,
1770
1831
  on_behalf_of: PropTypes.string,
1771
1832
  review: PropTypes.string,
@@ -6798,7 +6859,9 @@ T['io.flow.v0.enums.fee_deduction_type'] = PropTypes.oneOf([
6798
6859
 
6799
6860
  T['io.flow.v0.models.transaction_metadata_manual'] = PropTypes.exact({
6800
6861
  discriminator: PropTypes.oneOf(['manual']).isRequired,
6801
- original: T['io.flow.v0.models.transaction_metadata_original_transaction'].isRequired,
6862
+ description: PropTypes.string.isRequired,
6863
+ original: T['io.flow.v0.models.transaction_metadata_original_transaction'],
6864
+ url: PropTypes.string,
6802
6865
  });
6803
6866
 
6804
6867
  T['io.flow.v0.models.transaction_metadata_trueup'] = PropTypes.exact({