mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
customers: Added ephemeral key authentication for customer retrieve (#89)
This commit is contained in:
@ -303,7 +303,9 @@ pub(crate) enum StripeErrorType {
|
||||
impl From<ApiErrorResponse> for ErrorCode {
|
||||
fn from(value: ApiErrorResponse) -> Self {
|
||||
match value {
|
||||
ApiErrorResponse::Unauthorized => ErrorCode::Unauthorized,
|
||||
ApiErrorResponse::Unauthorized | ApiErrorResponse::InvalidEphermeralKey => {
|
||||
ErrorCode::Unauthorized
|
||||
}
|
||||
ApiErrorResponse::InvalidRequestUrl | ApiErrorResponse::InvalidHttpMethod => {
|
||||
ErrorCode::InvalidRequestUrl
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user