#[non_exhaustive]pub enum ErrorErrorCode {
Show 92 variants
InvalidNumber,
InvalidCvc,
InvalidExpirationDate,
IncorrectCardData,
InvalidExpiryMonth,
InvalidExpiryYear,
ExpiredCard,
CardDeclined,
CardFlagged,
ProcessingError,
MissingCard,
UnacceptableBrand,
InvalidId,
NoApiKey,
InvalidApiKey,
InvalidPlan,
InvalidExpiryDays,
UnnecessaryExpiryDays,
InvalidFlexibleId,
InvalidTimestamp,
InvalidTrialEnd,
InvalidStringLength,
InvalidCountry,
InvalidCurrency,
InvalidAddressZip,
InvalidAmount,
InvalidPlanAmount,
InvalidCard,
InvalidCardName,
InvalidCardCountry,
InvalidCardAddressZip,
InvalidCardAddressState,
InvalidCardAddressCity,
InvalidCardAddressLine,
InvalidCustomer,
InvalidBoolean,
InvalidEmail,
NoAllowedParam,
NoParam,
InvalidQuerystring,
MissingParam,
InvalidParamKey,
NoPaymentMethod,
PaymentMethodDuplicate,
PaymentMethodDuplicateIncludingCustomer,
FailedPayment,
InvalidRefundAmount,
AlreadyRefunded,
InvalidAmountToNotCaptured,
RefundAmountGtNet,
CaptureAmountGtNet,
InvalidRefundReason,
AlreadyCaptured,
CantCaptureRefundedCharge,
CantReauthRefundedCharge,
ChargeExpired,
AlreadyExistId,
TokenAlreadyUsed,
AlreadyHaveCard,
DontHasThisCard,
DoesntHaveCard,
AlreadyHaveTheSameCard,
InvalidInterval,
InvalidTrialDays,
InvalidBillingDay,
BillingDayForNonMonthlyPlan,
ExistSubscribers,
AlreadySubscribed,
AlreadyCanceled,
AlreadyPaused,
SubscriptionWorked,
CannotChangeProrateStatus,
TooManyMetadataKeys,
InvalidMetadataKey,
InvalidMetadataValue,
ApplePayDisabledInLivemode,
InvalidApplePayToken,
TestCardOnLivemode,
NotActivatedAccount,
PayjpWrong,
PgWrong,
NotFound,
NotAllowedMethod,
OverCapacity,
RefundLimitExceeded,
CannotProratedRefundOfSubscription,
ThreeDSecureIncompleted,
ThreeDSecureFailed,
NotInThreeDSecureFlow,
UnverifiedToken,
InvalidOwnerType,
Unknown,
}
Expand description
詳細なエラー内容の識別子が入ります
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.
InvalidNumber
InvalidCvc
InvalidExpirationDate
IncorrectCardData
InvalidExpiryMonth
InvalidExpiryYear
ExpiredCard
CardDeclined
CardFlagged
ProcessingError
MissingCard
UnacceptableBrand
InvalidId
NoApiKey
InvalidApiKey
InvalidPlan
InvalidExpiryDays
UnnecessaryExpiryDays
InvalidFlexibleId
InvalidTimestamp
InvalidTrialEnd
InvalidStringLength
InvalidCountry
InvalidCurrency
InvalidAddressZip
InvalidAmount
InvalidPlanAmount
InvalidCard
InvalidCardName
InvalidCardCountry
InvalidCardAddressZip
InvalidCardAddressState
InvalidCardAddressCity
InvalidCardAddressLine
InvalidCustomer
InvalidBoolean
InvalidEmail
NoAllowedParam
NoParam
InvalidQuerystring
MissingParam
InvalidParamKey
NoPaymentMethod
PaymentMethodDuplicate
PaymentMethodDuplicateIncludingCustomer
FailedPayment
InvalidRefundAmount
AlreadyRefunded
InvalidAmountToNotCaptured
RefundAmountGtNet
CaptureAmountGtNet
InvalidRefundReason
AlreadyCaptured
CantCaptureRefundedCharge
CantReauthRefundedCharge
ChargeExpired
AlreadyExistId
TokenAlreadyUsed
AlreadyHaveCard
DontHasThisCard
DoesntHaveCard
AlreadyHaveTheSameCard
InvalidInterval
InvalidTrialDays
InvalidBillingDay
BillingDayForNonMonthlyPlan
ExistSubscribers
AlreadySubscribed
AlreadyCanceled
AlreadyPaused
SubscriptionWorked
CannotChangeProrateStatus
TooManyMetadataKeys
InvalidMetadataKey
InvalidMetadataValue
ApplePayDisabledInLivemode
InvalidApplePayToken
TestCardOnLivemode
NotActivatedAccount
PayjpWrong
PgWrong
NotFound
NotAllowedMethod
OverCapacity
RefundLimitExceeded
CannotProratedRefundOfSubscription
ThreeDSecureIncompleted
ThreeDSecureFailed
NotInThreeDSecureFlow
UnverifiedToken
InvalidOwnerType
Unknown
Implementations§
Trait Implementations§
Source§impl Clone for ErrorErrorCode
impl Clone for ErrorErrorCode
Source§fn clone(&self) -> ErrorErrorCode
fn clone(&self) -> ErrorErrorCode
Returns a copy 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 ErrorErrorCode
impl Debug for ErrorErrorCode
Source§impl Deserialize for ErrorErrorCode
impl Deserialize for ErrorErrorCode
Source§impl Display for ErrorErrorCode
impl Display for ErrorErrorCode
Source§impl FromStr for ErrorErrorCode
impl FromStr for ErrorErrorCode
Source§impl FromValueOpt for ErrorErrorCode
impl FromValueOpt for ErrorErrorCode
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for ErrorErrorCode
impl PartialEq for ErrorErrorCode
impl Copy for ErrorErrorCode
impl Eq for ErrorErrorCode
impl StructuralPartialEq for ErrorErrorCode
Auto Trait Implementations§
impl Freeze for ErrorErrorCode
impl RefUnwindSafe for ErrorErrorCode
impl Send for ErrorErrorCode
impl Sync for ErrorErrorCode
impl Unpin for ErrorErrorCode
impl UnwindSafe for ErrorErrorCode
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