#[non_exhaustive]pub enum ApiErrorsCode {
Show 176 variants
AccountClosed,
AccountCountryInvalidAddress,
AccountErrorCountryChangeRequiresAdditionalSteps,
AccountInformationMismatch,
AccountInvalid,
AccountNumberInvalid,
AcssDebitSessionIncomplete,
AlipayUpgradeRequired,
AmountTooLarge,
AmountTooSmall,
ApiKeyExpired,
ApplicationFeesNotAllowed,
AuthenticationRequired,
BalanceInsufficient,
BalanceInvalidParameter,
BankAccountBadRoutingNumbers,
BankAccountDeclined,
BankAccountExists,
BankAccountRestricted,
BankAccountUnusable,
BankAccountUnverified,
BankAccountVerificationFailed,
BillingInvalidMandate,
BitcoinUpgradeRequired,
CaptureChargeAuthorizationExpired,
CaptureUnauthorizedPayment,
CardDeclineRateLimitExceeded,
CardDeclined,
CardholderPhoneNumberRequired,
ChargeAlreadyCaptured,
ChargeAlreadyRefunded,
ChargeDisputed,
ChargeExceedsSourceLimit,
ChargeExceedsTransactionLimit,
ChargeExpiredForCapture,
ChargeInvalidParameter,
ChargeNotRefundable,
ClearingCodeUnsupported,
CountryCodeInvalid,
CountryUnsupported,
CouponExpired,
CustomerMaxPaymentMethods,
CustomerMaxSubscriptions,
CustomerTaxLocationInvalid,
DebitNotAuthorized,
EmailInvalid,
ExpiredCard,
FinancialConnectionsAccountInactive,
FinancialConnectionsNoSuccessfulTransactionRefresh,
ForwardingApiInactive,
ForwardingApiInvalidParameter,
ForwardingApiRetryableUpstreamError,
ForwardingApiUpstreamConnectionError,
ForwardingApiUpstreamConnectionTimeout,
IdempotencyKeyInUse,
IncorrectAddress,
IncorrectCvc,
IncorrectNumber,
IncorrectZip,
InstantPayoutsConfigDisabled,
InstantPayoutsCurrencyDisabled,
InstantPayoutsLimitExceeded,
InstantPayoutsUnsupported,
InsufficientFunds,
IntentInvalidState,
IntentVerificationMethodMissing,
InvalidCardType,
InvalidCharacters,
InvalidChargeAmount,
InvalidCvc,
InvalidExpiryMonth,
InvalidExpiryYear,
InvalidMandateReferencePrefixFormat,
InvalidNumber,
InvalidSourceUsage,
InvalidTaxLocation,
InvoiceNoCustomerLineItems,
InvoiceNoPaymentMethodTypes,
InvoiceNoSubscriptionLineItems,
InvoiceNotEditable,
InvoiceOnBehalfOfNotEditable,
InvoicePaymentIntentRequiresAction,
InvoiceUpcomingNone,
LivemodeMismatch,
LockTimeout,
Missing,
NoAccount,
NotAllowedOnStandardAccount,
OutOfInventory,
OwnershipDeclarationNotAllowed,
ParameterInvalidEmpty,
ParameterInvalidInteger,
ParameterInvalidStringBlank,
ParameterInvalidStringEmpty,
ParameterMissing,
ParameterUnknown,
ParametersExclusive,
PaymentIntentActionRequired,
PaymentIntentAuthenticationFailure,
PaymentIntentIncompatiblePaymentMethod,
PaymentIntentInvalidParameter,
PaymentIntentKonbiniRejectedConfirmationNumber,
PaymentIntentMandateInvalid,
PaymentIntentPaymentAttemptExpired,
PaymentIntentPaymentAttemptFailed,
PaymentIntentUnexpectedState,
PaymentMethodBankAccountAlreadyVerified,
PaymentMethodBankAccountBlocked,
PaymentMethodBillingDetailsAddressMissing,
PaymentMethodConfigurationFailures,
PaymentMethodCurrencyMismatch,
PaymentMethodCustomerDecline,
PaymentMethodInvalidParameter,
PaymentMethodInvalidParameterTestmode,
PaymentMethodMicrodepositFailed,
PaymentMethodMicrodepositVerificationAmountsInvalid,
PaymentMethodMicrodepositVerificationAmountsMismatch,
PaymentMethodMicrodepositVerificationAttemptsExceeded,
PaymentMethodMicrodepositVerificationDescriptorCodeMismatch,
PaymentMethodMicrodepositVerificationTimeout,
PaymentMethodNotAvailable,
PaymentMethodProviderDecline,
PaymentMethodProviderTimeout,
PaymentMethodUnactivated,
PaymentMethodUnexpectedState,
PaymentMethodUnsupportedType,
PayoutReconciliationNotReady,
PayoutsLimitExceeded,
PayoutsNotAllowed,
PlatformAccountRequired,
PlatformApiKeyExpired,
PostalCodeInvalid,
ProcessingError,
ProductInactive,
ProgressiveOnboardingLimitExceeded,
RateLimit,
ReferToCustomer,
RefundDisputedPayment,
ResourceAlreadyExists,
ResourceMissing,
ReturnIntentAlreadyProcessed,
RoutingNumberInvalid,
SecretKeyRequired,
SepaUnsupportedAccount,
SetupAttemptFailed,
SetupIntentAuthenticationFailure,
SetupIntentInvalidParameter,
SetupIntentMandateInvalid,
SetupIntentMobileWalletUnsupported,
SetupIntentSetupAttemptExpired,
SetupIntentUnexpectedState,
ShippingAddressInvalid,
ShippingCalculationFailed,
SkuInactive,
StateUnsupported,
StatusTransitionInvalid,
StripeTaxInactive,
TaxIdInvalid,
TaxIdProhibited,
TaxesCalculationFailed,
TerminalLocationCountryUnsupported,
TerminalReaderBusy,
TerminalReaderHardwareFault,
TerminalReaderInvalidLocationForActivation,
TerminalReaderInvalidLocationForPayment,
TerminalReaderOffline,
TerminalReaderTimeout,
TestmodeChargesOnly,
TlsVersionUnsupported,
TokenAlreadyUsed,
TokenCardNetworkInvalid,
TokenInUse,
TransferSourceBalanceParametersMismatch,
TransfersNotAllowed,
UrlInvalid,
Unknown(String),
}
Expand description
For some errors that could be handled programmatically, a short string indicating the error code reported.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AccountClosed
AccountCountryInvalidAddress
AccountErrorCountryChangeRequiresAdditionalSteps
AccountInformationMismatch
AccountInvalid
AccountNumberInvalid
AcssDebitSessionIncomplete
AlipayUpgradeRequired
AmountTooLarge
AmountTooSmall
ApiKeyExpired
ApplicationFeesNotAllowed
AuthenticationRequired
BalanceInsufficient
BalanceInvalidParameter
BankAccountBadRoutingNumbers
BankAccountDeclined
BankAccountExists
BankAccountRestricted
BankAccountUnusable
BankAccountUnverified
BankAccountVerificationFailed
BillingInvalidMandate
BitcoinUpgradeRequired
CaptureChargeAuthorizationExpired
CardDeclineRateLimitExceeded
CardDeclined
CardholderPhoneNumberRequired
ChargeAlreadyCaptured
ChargeAlreadyRefunded
ChargeDisputed
ChargeExceedsSourceLimit
ChargeExceedsTransactionLimit
ChargeExpiredForCapture
ChargeInvalidParameter
ChargeNotRefundable
ClearingCodeUnsupported
CountryCodeInvalid
CountryUnsupported
CouponExpired
CustomerMaxPaymentMethods
CustomerMaxSubscriptions
CustomerTaxLocationInvalid
DebitNotAuthorized
EmailInvalid
ExpiredCard
FinancialConnectionsAccountInactive
FinancialConnectionsNoSuccessfulTransactionRefresh
ForwardingApiInactive
ForwardingApiInvalidParameter
ForwardingApiRetryableUpstreamError
ForwardingApiUpstreamConnectionError
ForwardingApiUpstreamConnectionTimeout
IdempotencyKeyInUse
IncorrectAddress
IncorrectCvc
IncorrectNumber
IncorrectZip
InstantPayoutsConfigDisabled
InstantPayoutsCurrencyDisabled
InstantPayoutsLimitExceeded
InstantPayoutsUnsupported
InsufficientFunds
IntentInvalidState
IntentVerificationMethodMissing
InvalidCardType
InvalidCharacters
InvalidChargeAmount
InvalidCvc
InvalidExpiryMonth
InvalidExpiryYear
InvalidMandateReferencePrefixFormat
InvalidNumber
InvalidSourceUsage
InvalidTaxLocation
InvoiceNoCustomerLineItems
InvoiceNoPaymentMethodTypes
InvoiceNoSubscriptionLineItems
InvoiceNotEditable
InvoiceOnBehalfOfNotEditable
InvoicePaymentIntentRequiresAction
InvoiceUpcomingNone
LivemodeMismatch
LockTimeout
Missing
NoAccount
NotAllowedOnStandardAccount
OutOfInventory
OwnershipDeclarationNotAllowed
ParameterInvalidEmpty
ParameterInvalidInteger
ParameterInvalidStringBlank
ParameterInvalidStringEmpty
ParameterMissing
ParameterUnknown
ParametersExclusive
PaymentIntentActionRequired
PaymentIntentAuthenticationFailure
PaymentIntentIncompatiblePaymentMethod
PaymentIntentInvalidParameter
PaymentIntentKonbiniRejectedConfirmationNumber
PaymentIntentMandateInvalid
PaymentIntentPaymentAttemptExpired
PaymentIntentPaymentAttemptFailed
PaymentIntentUnexpectedState
PaymentMethodBankAccountAlreadyVerified
PaymentMethodBankAccountBlocked
PaymentMethodBillingDetailsAddressMissing
PaymentMethodConfigurationFailures
PaymentMethodCurrencyMismatch
PaymentMethodCustomerDecline
PaymentMethodInvalidParameter
PaymentMethodInvalidParameterTestmode
PaymentMethodMicrodepositFailed
PaymentMethodMicrodepositVerificationAmountsInvalid
PaymentMethodMicrodepositVerificationAmountsMismatch
PaymentMethodMicrodepositVerificationAttemptsExceeded
PaymentMethodMicrodepositVerificationDescriptorCodeMismatch
PaymentMethodMicrodepositVerificationTimeout
PaymentMethodNotAvailable
PaymentMethodProviderDecline
PaymentMethodProviderTimeout
PaymentMethodUnactivated
PaymentMethodUnexpectedState
PaymentMethodUnsupportedType
PayoutReconciliationNotReady
PayoutsLimitExceeded
PayoutsNotAllowed
PlatformAccountRequired
PlatformApiKeyExpired
PostalCodeInvalid
ProcessingError
ProductInactive
ProgressiveOnboardingLimitExceeded
RateLimit
ReferToCustomer
RefundDisputedPayment
ResourceAlreadyExists
ResourceMissing
ReturnIntentAlreadyProcessed
RoutingNumberInvalid
SecretKeyRequired
SepaUnsupportedAccount
SetupAttemptFailed
SetupIntentAuthenticationFailure
SetupIntentInvalidParameter
SetupIntentMandateInvalid
SetupIntentMobileWalletUnsupported
SetupIntentSetupAttemptExpired
SetupIntentUnexpectedState
ShippingAddressInvalid
ShippingCalculationFailed
SkuInactive
StateUnsupported
StatusTransitionInvalid
StripeTaxInactive
TaxIdInvalid
TaxIdProhibited
TaxesCalculationFailed
TerminalLocationCountryUnsupported
TerminalReaderBusy
TerminalReaderHardwareFault
TerminalReaderInvalidLocationForActivation
TerminalReaderInvalidLocationForPayment
TerminalReaderOffline
TerminalReaderTimeout
TestmodeChargesOnly
TlsVersionUnsupported
TokenAlreadyUsed
TokenCardNetworkInvalid
TokenInUse
TransferSourceBalanceParametersMismatch
TransfersNotAllowed
UrlInvalid
Unknown(String)
An unrecognized value from Stripe. Should not be used as a request parameter.
Implementations§
Trait Implementations§
Source§impl Clone for ApiErrorsCode
impl Clone for ApiErrorsCode
Source§fn clone(&self) -> ApiErrorsCode
fn clone(&self) -> ApiErrorsCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ApiErrorsCode
impl Debug for ApiErrorsCode
Source§impl Deserialize for ApiErrorsCode
impl Deserialize for ApiErrorsCode
Source§impl Display for ApiErrorsCode
impl Display for ApiErrorsCode
Source§impl FromStr for ApiErrorsCode
impl FromStr for ApiErrorsCode
Source§impl FromValueOpt for ApiErrorsCode
impl FromValueOpt for ApiErrorsCode
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for ApiErrorsCode
impl PartialEq for ApiErrorsCode
impl Eq for ApiErrorsCode
impl StructuralPartialEq for ApiErrorsCode
Auto Trait Implementations§
impl Freeze for ApiErrorsCode
impl RefUnwindSafe for ApiErrorsCode
impl Send for ApiErrorsCode
impl Sync for ApiErrorsCode
impl Unpin for ApiErrorsCode
impl UnwindSafe for ApiErrorsCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more