mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
fix(router): add serde(transparent) annotation for PaymentMethodMetadata (#1899)
This commit is contained in:
@ -1831,7 +1831,7 @@ pub async fn list_customer_payment_method(
|
|||||||
.parse_value("PaymentMethodMetadata")
|
.parse_value("PaymentMethodMetadata")
|
||||||
.change_context(errors::ApiErrorResponse::InternalServerError)
|
.change_context(errors::ApiErrorResponse::InternalServerError)
|
||||||
.attach_printable(
|
.attach_printable(
|
||||||
"Failed to deserialize metadata to PaymmentmethodMetadata struct",
|
"Failed to deserialize metadata to PaymentmethodMetadata struct",
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
for pm_metadata in pm_metadata_vec.payment_method_tokenization {
|
for pm_metadata in pm_metadata_vec.payment_method_tokenization {
|
||||||
|
|||||||
@ -147,6 +147,7 @@ pub struct DeleteCardResponse {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize)]
|
#[derive(Debug, Deserialize, Serialize)]
|
||||||
|
#[serde(transparent)]
|
||||||
pub struct PaymentMethodMetadata {
|
pub struct PaymentMethodMetadata {
|
||||||
pub payment_method_tokenization: std::collections::HashMap<String, String>,
|
pub payment_method_tokenization: std::collections::HashMap<String, String>,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user