mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
fix(core): add merchant_id to gpay merchant info (#2170)
This commit is contained in:
@ -2317,7 +2317,10 @@ pub struct GpayTransactionInfo {
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct GpayMerchantInfo {
|
||||
/// The name of the merchant
|
||||
/// The merchant Identifier that needs to be passed while invoking Gpay SDK
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub merchant_id: Option<String>,
|
||||
/// The name of the merchant that needs to be displayed on Gpay PopUp
|
||||
pub merchant_name: String,
|
||||
}
|
||||
|
||||
|
||||
@ -1142,6 +1142,7 @@ impl From<GooglePayTransactionInfo> for api_models::payments::GpayTransactionInf
|
||||
impl From<GooglePayMerchantInfo> for api_models::payments::GpayMerchantInfo {
|
||||
fn from(value: GooglePayMerchantInfo) -> Self {
|
||||
Self {
|
||||
merchant_id: None,
|
||||
merchant_name: value.merchant_name,
|
||||
}
|
||||
}
|
||||
|
||||
@ -5537,9 +5537,14 @@
|
||||
"merchant_name"
|
||||
],
|
||||
"properties": {
|
||||
"merchant_id": {
|
||||
"type": "string",
|
||||
"description": "The merchant Identifier that needs to be passed while invoking Gpay SDK",
|
||||
"nullable": true
|
||||
},
|
||||
"merchant_name": {
|
||||
"type": "string",
|
||||
"description": "The name of the merchant"
|
||||
"description": "The name of the merchant that needs to be displayed on Gpay PopUp"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user