@flowio/api-prop-types 10.16.78 → 10.16.79

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.78",
3
+ "version": "10.16.79",
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": "25d6ba675365a3fb318abcc4bc935dd549089238"
32
+ "gitHead": "e2172791ebb0708545e2d68100656b52120f50e4"
33
33
  }
package/src/api.d.ts CHANGED
@@ -164,9 +164,14 @@ declare namespace io.flow.stripe.v0.enums {
164
164
  type CodeVerificationStatus = 'pending' | 'succeeded' | 'failed';
165
165
  type ConfirmationMethod = 'automatic' | 'manual';
166
166
  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' | 'previously_declined_do_not_retry' | 'highest_risk_level' | 'requested_block_on_incorrect_cvc';
167
+ type DisputeEventType = 'charge.dispute.closed' | 'charge.dispute.created' | 'charge.dispute.funds_reinstated' | 'charge.dispute.funds_withdrawn' | 'charge.dispute.updated';
168
+ type DisputePaymentMethodDetailsCardCaseType = 'chargeback' | 'inquiry';
169
+ type DisputePaymentMethodDetailsType = 'card' | 'klarna' | 'paypal';
170
+ type DisputeReason = 'bank_cannot_process' | 'check_returned' | 'credit_not_processed' | 'customer_initiated' | 'debit_not_authorized' | 'duplicate' | 'fraudulent' | 'general' | 'incorrect_account_details' | 'insufficient_funds' | 'product_not_received' | 'product_unacceptable' | 'subscription_canceled' | 'unrecognized';
171
+ type DisputeStatus = 'warning_needs_response' | 'warning_under_review' | 'warning_closed' | 'needs_response' | 'under_review' | 'won' | 'lost';
167
172
  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';
168
173
  type ErrorType = 'api_connection_error' | 'api_error' | 'authentication_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | 'rate_limit_error' | 'validation_error';
169
- 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';
174
+ type EventType = 'charge.captured' | 'charge.failed' | 'charge.pending' | 'charge.refunded' | 'charge.expired' | 'charge.succeeded' | 'charge.updated' | 'charge.refund.updated' | 'charge.dispute.closed' | 'charge.dispute.created' | 'charge.dispute.funds_reinstated' | 'charge.dispute.funds_withdrawn' | 'charge.dispute.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';
170
175
  type ExtendedAuthorizationStatus = 'enabled' | 'disabled';
171
176
  type FeatureAvailability = 'available' | 'unavailable';
172
177
  type KlarnaPaymentMethodCategoryType = 'direct_bank_transfer' | 'direct_debit' | 'pay_later' | 'pay_now' | 'pay_over_time';
@@ -414,6 +419,54 @@ declare namespace io.flow.stripe.v0.models {
414
419
  readonly 'description'?: string;
415
420
  }
416
421
 
422
+ interface Dispute {
423
+ readonly 'id': string;
424
+ readonly 'amount': number;
425
+ readonly 'charge': string;
426
+ readonly 'currency': string;
427
+ readonly 'evidence': any/*object*/;
428
+ readonly 'metadata': Record<string, string>;
429
+ readonly 'payment_intent'?: string;
430
+ readonly 'reason': io.flow.stripe.v0.enums.DisputeReason;
431
+ readonly 'status': io.flow.stripe.v0.enums.DisputeStatus;
432
+ readonly 'object': string;
433
+ readonly 'balance_transactions': any/*object*/[];
434
+ readonly 'created': number;
435
+ readonly 'evidence_details': io.flow.stripe.v0.models.DisputeEvidenceDetails;
436
+ readonly 'is_charge_refundable': boolean;
437
+ readonly 'livemode': boolean;
438
+ readonly 'payment_method_details'?: io.flow.stripe.v0.models.DisputePaymentMethodDetails;
439
+ }
440
+
441
+ interface DisputeEvidenceDetails {
442
+ readonly 'due_by'?: number;
443
+ readonly 'has_evidence': boolean;
444
+ readonly 'past_due': boolean;
445
+ readonly 'submission_count': number;
446
+ }
447
+
448
+ interface DisputePaymentMethodDetails {
449
+ readonly 'card'?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsCard;
450
+ readonly 'klarna'?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsKlarna;
451
+ readonly 'paypal'?: io.flow.stripe.v0.models.DisputePaymentMethodDetailsPaypal;
452
+ readonly 'type': io.flow.stripe.v0.enums.DisputePaymentMethodDetailsType;
453
+ }
454
+
455
+ interface DisputePaymentMethodDetailsCard {
456
+ readonly 'brand': string;
457
+ readonly 'case_type'?: io.flow.stripe.v0.enums.DisputePaymentMethodDetailsCardCaseType;
458
+ readonly 'network_reason_code'?: string;
459
+ }
460
+
461
+ interface DisputePaymentMethodDetailsKlarna {
462
+ readonly 'reason_code'?: string;
463
+ }
464
+
465
+ interface DisputePaymentMethodDetailsPaypal {
466
+ readonly 'case_id'?: string;
467
+ readonly 'reason_code'?: string;
468
+ }
469
+
417
470
  interface Error {
418
471
  readonly 'error': io.flow.stripe.v0.models.StripeError;
419
472
  }
@@ -1099,6 +1152,24 @@ declare namespace io.flow.stripe.v0.models {
1099
1152
  readonly 'directory_server_encryption'?: any/*object*/;
1100
1153
  }
1101
1154
 
1155
+ interface StripeDisputeEvent {
1156
+ readonly 'id': string;
1157
+ readonly 'api_version'?: string;
1158
+ readonly 'data': io.flow.stripe.v0.models.StripeDisputeEventData;
1159
+ readonly 'request'?: any/*object*/;
1160
+ readonly 'type': io.flow.stripe.v0.enums.DisputeEventType;
1161
+ readonly 'object': string;
1162
+ readonly 'account'?: string;
1163
+ readonly 'created': number;
1164
+ readonly 'livemode': boolean;
1165
+ readonly 'pending_webhooks': number;
1166
+ }
1167
+
1168
+ interface StripeDisputeEventData {
1169
+ readonly 'object': io.flow.stripe.v0.models.Dispute;
1170
+ readonly 'previous_attributes'?: any/*object*/;
1171
+ }
1172
+
1102
1173
  interface StripeError {
1103
1174
  readonly 'type': io.flow.stripe.v0.enums.ErrorType;
1104
1175
  readonly 'charge'?: string;
@@ -2331,7 +2402,7 @@ declare namespace io.flow.v0.enums {
2331
2402
  type MerchantRejectedReason = 'merchant_ubo_is_pep' | 'merchant_catalog_is_unsupportable' | 'merchant_failed_kyb_review';
2332
2403
  type Method = 'post';
2333
2404
  type OnboardingApplicationStatus = 'to_do' | 'in_progress' | 'on_hold' | 'rejected' | 'accepted';
2334
- type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box' | 'exception_merchant' | 'application_missing';
2405
+ type OnboardingBlockedReason = 'street_address_is_blank_3pl' | 'street_address_is_po_box_3pl' | 'business_street_address_is_blank' | 'business_street_address_is_po_box' | 'exception_merchant' | 'application_missing' | 'missing_logistics_contact_info';
2335
2406
  type OnboardingTradeSector = 'accessories' | 'animals_and_pet_supplies' | 'apparel' | 'apparel_and_accessories' | 'arts_and_entertainment' | 'baby_and_toddler' | 'business_and_industrial' | 'cameras_and_optics' | 'electronics' | 'food_beverages_and_tobacco' | 'furniture' | 'gift_cards' | 'hardware' | 'health_and_beauty' | 'home_and_garden' | 'jewelry' | 'luggage_and_bags' | 'mature' | 'media' | 'office_supplies' | 'paper_and_art' | 'religious_and_ceremonial' | 'software' | 'sporting_goods' | 'sports_and_fitness' | 'toys_and_games' | 'toys_hobbies_gifts' | 'vehicles_and_parts' | 'other';
2336
2407
  type OptinResponseType = 'not_shown' | 'opted_in' | 'opted_out';
2337
2408
  type OrderChangeSource = 'consumer' | 'retailer' | 'fulfillment' | 'flow' | 'carrier';
package/src/api.js CHANGED
@@ -856,6 +856,14 @@ T['io.flow.stripe.v0.models.stripe_event'] = PropTypes.exact({
856
856
  type: PropTypes.string.isRequired,
857
857
  });
858
858
 
859
+ T['io.flow.stripe.v0.enums.dispute_event_type'] = PropTypes.oneOf([
860
+ 'charge.dispute.closed',
861
+ 'charge.dispute.created',
862
+ 'charge.dispute.funds_reinstated',
863
+ 'charge.dispute.funds_withdrawn',
864
+ 'charge.dispute.updated',
865
+ ]);
866
+
859
867
  T['io.flow.stripe.v0.enums.use_stripe_sdk_type'] = PropTypes.oneOf(['three_d_secure_redirect', 'stripe_3ds2_fingerprint']);
860
868
 
861
869
  T['io.flow.stripe.v0.models.three_d_secure_redirect'] = PropTypes.exact({
@@ -1495,6 +1503,102 @@ T['io.flow.stripe.v0.enums.error_type'] = PropTypes.oneOf([
1495
1503
  'validation_error',
1496
1504
  ]);
1497
1505
 
1506
+ T['io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type'] = PropTypes.oneOf(['chargeback', 'inquiry']);
1507
+ T['io.flow.stripe.v0.enums.dispute_payment_method_details_type'] = PropTypes.oneOf(['card', 'klarna', 'paypal']);
1508
+
1509
+ T['io.flow.stripe.v0.models.dispute_payment_method_details_paypal'] = PropTypes.exact({
1510
+ case_id: PropTypes.string,
1511
+ reason_code: PropTypes.string,
1512
+ });
1513
+
1514
+ T['io.flow.stripe.v0.models.dispute_payment_method_details_klarna'] = PropTypes.exact({
1515
+ reason_code: PropTypes.string,
1516
+ });
1517
+
1518
+ T['io.flow.stripe.v0.models.dispute_payment_method_details_card'] = PropTypes.exact({
1519
+ brand: PropTypes.string.isRequired,
1520
+ case_type: T['io.flow.stripe.v0.enums.dispute_payment_method_details_card_case_type'],
1521
+ network_reason_code: PropTypes.string,
1522
+ });
1523
+
1524
+ T['io.flow.stripe.v0.models.dispute_payment_method_details'] = PropTypes.exact({
1525
+ card: T['io.flow.stripe.v0.models.dispute_payment_method_details_card'],
1526
+ klarna: T['io.flow.stripe.v0.models.dispute_payment_method_details_klarna'],
1527
+ paypal: T['io.flow.stripe.v0.models.dispute_payment_method_details_paypal'],
1528
+ type: T['io.flow.stripe.v0.enums.dispute_payment_method_details_type'].isRequired,
1529
+ });
1530
+
1531
+ T['io.flow.stripe.v0.models.dispute_evidence_details'] = PropTypes.exact({
1532
+ due_by: PropTypes.number,
1533
+ has_evidence: PropTypes.bool.isRequired,
1534
+ past_due: PropTypes.bool.isRequired,
1535
+ submission_count: PropTypes.number.isRequired,
1536
+ });
1537
+
1538
+ T['io.flow.stripe.v0.enums.dispute_status'] = PropTypes.oneOf([
1539
+ 'warning_needs_response',
1540
+ 'warning_under_review',
1541
+ 'warning_closed',
1542
+ 'needs_response',
1543
+ 'under_review',
1544
+ 'won',
1545
+ 'lost',
1546
+ ]);
1547
+
1548
+ T['io.flow.stripe.v0.enums.dispute_reason'] = PropTypes.oneOf([
1549
+ 'bank_cannot_process',
1550
+ 'check_returned',
1551
+ 'credit_not_processed',
1552
+ 'customer_initiated',
1553
+ 'debit_not_authorized',
1554
+ 'duplicate',
1555
+ 'fraudulent',
1556
+ 'general',
1557
+ 'incorrect_account_details',
1558
+ 'insufficient_funds',
1559
+ 'product_not_received',
1560
+ 'product_unacceptable',
1561
+ 'subscription_canceled',
1562
+ 'unrecognized',
1563
+ ]);
1564
+
1565
+ T['io.flow.stripe.v0.models.dispute'] = PropTypes.exact({
1566
+ id: PropTypes.string.isRequired,
1567
+ amount: PropTypes.number.isRequired,
1568
+ charge: PropTypes.string.isRequired,
1569
+ currency: PropTypes.string.isRequired,
1570
+ evidence: PropTypes.object.isRequired,
1571
+ metadata: PropTypes.objectOf(PropTypes.string).isRequired,
1572
+ payment_intent: PropTypes.string,
1573
+ reason: T['io.flow.stripe.v0.enums.dispute_reason'].isRequired,
1574
+ status: T['io.flow.stripe.v0.enums.dispute_status'].isRequired,
1575
+ object: PropTypes.string.isRequired,
1576
+ balance_transactions: PropTypes.arrayOf(PropTypes.object).isRequired,
1577
+ created: PropTypes.number.isRequired,
1578
+ evidence_details: T['io.flow.stripe.v0.models.dispute_evidence_details'].isRequired,
1579
+ is_charge_refundable: PropTypes.bool.isRequired,
1580
+ livemode: PropTypes.bool.isRequired,
1581
+ payment_method_details: T['io.flow.stripe.v0.models.dispute_payment_method_details'],
1582
+ });
1583
+
1584
+ T['io.flow.stripe.v0.models.stripe_dispute_event_data'] = PropTypes.exact({
1585
+ object: T['io.flow.stripe.v0.models.dispute'].isRequired,
1586
+ previous_attributes: PropTypes.object,
1587
+ });
1588
+
1589
+ T['io.flow.stripe.v0.models.stripe_dispute_event'] = PropTypes.exact({
1590
+ id: PropTypes.string.isRequired,
1591
+ api_version: PropTypes.string,
1592
+ data: T['io.flow.stripe.v0.models.stripe_dispute_event_data'].isRequired,
1593
+ request: PropTypes.object,
1594
+ type: T['io.flow.stripe.v0.enums.dispute_event_type'].isRequired,
1595
+ object: PropTypes.string.isRequired,
1596
+ account: PropTypes.string,
1597
+ created: PropTypes.number.isRequired,
1598
+ livemode: PropTypes.bool.isRequired,
1599
+ pending_webhooks: PropTypes.number.isRequired,
1600
+ });
1601
+
1498
1602
  T['io.flow.stripe.v0.enums.code_verification_status'] = PropTypes.oneOf(['pending', 'succeeded', 'failed']);
1499
1603
 
1500
1604
  T['io.flow.stripe.v0.models.transfer_data'] = PropTypes.exact({
@@ -3718,6 +3822,7 @@ T['io.flow.v0.enums.onboarding_blocked_reason'] = PropTypes.oneOf([
3718
3822
  'business_street_address_is_po_box',
3719
3823
  'exception_merchant',
3720
3824
  'application_missing',
3825
+ 'missing_logistics_contact_info',
3721
3826
  ]);
3722
3827
 
3723
3828
  T['io.flow.v0.models.session_experiment_variant_form'] = PropTypes.exact({
@@ -14828,6 +14933,11 @@ T['io.flow.stripe.v0.enums.event_type'] = PropTypes.oneOf([
14828
14933
  'charge.succeeded',
14829
14934
  'charge.updated',
14830
14935
  'charge.refund.updated',
14936
+ 'charge.dispute.closed',
14937
+ 'charge.dispute.created',
14938
+ 'charge.dispute.funds_reinstated',
14939
+ 'charge.dispute.funds_withdrawn',
14940
+ 'charge.dispute.updated',
14831
14941
  'payment_intent.created',
14832
14942
  'payment_intent.amount_capturable_updated',
14833
14943
  'payment_intent.payment_failed',