mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
fix(euclid_wasm): connector config wasm metadata update (#4460)
This commit is contained in:
committed by
GitHub
parent
1b75a3e43e
commit
28df646830
@ -87,6 +87,9 @@ pub struct ApiModelMetaData {
|
|||||||
pub merchant_name: Option<String>,
|
pub merchant_name: Option<String>,
|
||||||
pub acquirer_bin: Option<String>,
|
pub acquirer_bin: Option<String>,
|
||||||
pub acquirer_merchant_id: Option<String>,
|
pub acquirer_merchant_id: Option<String>,
|
||||||
|
pub three_ds_requestor_name: Option<String>,
|
||||||
|
pub three_ds_requestor_id: Option<String>,
|
||||||
|
pub pull_mechanism_for_external_3ds_enabled: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[serde_with::skip_serializing_none]
|
#[serde_with::skip_serializing_none]
|
||||||
@ -185,4 +188,7 @@ pub struct DashboardMetaData {
|
|||||||
pub merchant_name: Option<String>,
|
pub merchant_name: Option<String>,
|
||||||
pub acquirer_bin: Option<String>,
|
pub acquirer_bin: Option<String>,
|
||||||
pub acquirer_merchant_id: Option<String>,
|
pub acquirer_merchant_id: Option<String>,
|
||||||
|
pub three_ds_requestor_name: Option<String>,
|
||||||
|
pub three_ds_requestor_id: Option<String>,
|
||||||
|
pub pull_mechanism_for_external_3ds_enabled: Option<bool>,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -317,6 +317,10 @@ impl From<ApiModelMetaData> for DashboardMetaData {
|
|||||||
merchant_name: api_model.merchant_name,
|
merchant_name: api_model.merchant_name,
|
||||||
acquirer_bin: api_model.acquirer_bin,
|
acquirer_bin: api_model.acquirer_bin,
|
||||||
acquirer_merchant_id: api_model.acquirer_merchant_id,
|
acquirer_merchant_id: api_model.acquirer_merchant_id,
|
||||||
|
three_ds_requestor_name: api_model.three_ds_requestor_name,
|
||||||
|
three_ds_requestor_id: api_model.three_ds_requestor_id,
|
||||||
|
pull_mechanism_for_external_3ds_enabled: api_model
|
||||||
|
.pull_mechanism_for_external_3ds_enabled,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -114,8 +114,8 @@ impl DashboardRequestPayload {
|
|||||||
maximum_amount: Some(68607706),
|
maximum_amount: Some(68607706),
|
||||||
recurring_enabled: true,
|
recurring_enabled: true,
|
||||||
installment_payment_enabled: false,
|
installment_payment_enabled: false,
|
||||||
accepted_currencies: None,
|
accepted_currencies: method.accepted_currencies,
|
||||||
accepted_countries: None,
|
accepted_countries: method.accepted_countries,
|
||||||
payment_experience: None,
|
payment_experience: None,
|
||||||
};
|
};
|
||||||
card_payment_method_types.push(data)
|
card_payment_method_types.push(data)
|
||||||
@ -192,6 +192,9 @@ impl DashboardRequestPayload {
|
|||||||
merchant_name: None,
|
merchant_name: None,
|
||||||
acquirer_bin: None,
|
acquirer_bin: None,
|
||||||
acquirer_merchant_id: None,
|
acquirer_merchant_id: None,
|
||||||
|
three_ds_requestor_name: None,
|
||||||
|
three_ds_requestor_id: None,
|
||||||
|
pull_mechanism_for_external_3ds_enabled: None,
|
||||||
};
|
};
|
||||||
let meta_data = match request.metadata {
|
let meta_data = match request.metadata {
|
||||||
Some(data) => data,
|
Some(data) => data,
|
||||||
@ -211,6 +214,10 @@ impl DashboardRequestPayload {
|
|||||||
let merchant_name = meta_data.merchant_name;
|
let merchant_name = meta_data.merchant_name;
|
||||||
let acquirer_bin = meta_data.acquirer_bin;
|
let acquirer_bin = meta_data.acquirer_bin;
|
||||||
let acquirer_merchant_id = meta_data.acquirer_merchant_id;
|
let acquirer_merchant_id = meta_data.acquirer_merchant_id;
|
||||||
|
let three_ds_requestor_name = meta_data.three_ds_requestor_name;
|
||||||
|
let three_ds_requestor_id = meta_data.three_ds_requestor_id;
|
||||||
|
let pull_mechanism_for_external_3ds_enabled =
|
||||||
|
meta_data.pull_mechanism_for_external_3ds_enabled;
|
||||||
|
|
||||||
Some(ApiModelMetaData {
|
Some(ApiModelMetaData {
|
||||||
google_pay,
|
google_pay,
|
||||||
@ -227,6 +234,9 @@ impl DashboardRequestPayload {
|
|||||||
merchant_name,
|
merchant_name,
|
||||||
acquirer_bin,
|
acquirer_bin,
|
||||||
acquirer_merchant_id,
|
acquirer_merchant_id,
|
||||||
|
three_ds_requestor_name,
|
||||||
|
three_ds_requestor_id,
|
||||||
|
pull_mechanism_for_external_3ds_enabled,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user