@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/lib/api.d.ts +73 -2
- package/lib/api.js +1 -1
- package/package.json +2 -2
- package/src/api.d.ts +73 -2
- package/src/api.js +110 -0
package/lib/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';
|