use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
#[serde(untagged)]
pub enum StripeDeclineCodeCatcher {
Known(StripeKnownDeclineCode),
Unknown(String),
}
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum StripeKnownDeclineCode {
ApproveWithId,
CallIssuer,
CardNotSupported,
CardVelocityExceeded,
CurrencyNotSupported,
DoNotHonor,
DoNotTryAgain,
ExpiredCard,
Fraudulent,
GenericDecline,
IncorrectNumber,
IncorrectCvc,
InsufficientFunds,
InvalidCvc,
InvalidExpiryMonth,
InvalidExpiryYear,
InvalidNumber,
IssuerNotAvailable,
LostCard,
MerchantBlacklist,
NewAccountInformationAvailable,
NoActionTaken,
NotPermitted,
PickupCard,
ProcessingError,
ReenterTransaction,
RestrictedCard,
RevocationOfAllAuthorizations,
RevocationOfAuthorization,
SecurityViolation,
ServiceNotAllowed,
StolenCard,
StopPaymentOrder,
TransactionNotAllowed,
TryAgainLater,
WithdrawalCountLimitExceeded,
}