customers: Added ephemeral key authentication for customer retrieve (#89)

This commit is contained in:
Kartikeya Hegde
2022-12-09 17:58:04 +05:30
committed by GitHub
parent 2aef3bccfb
commit 3d7d89172c
21 changed files with 214 additions and 41 deletions

View File

@ -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
}