fix(euclid_wasm): connector config wasm metadata update (#4460)

This commit is contained in:
Jeeva Ramachandran
2024-04-30 10:45:29 +05:30
committed by GitHub
parent 1b75a3e43e
commit 28df646830
3 changed files with 22 additions and 2 deletions

View File

@ -87,6 +87,9 @@ pub struct ApiModelMetaData {
pub merchant_name: Option<String>,
pub acquirer_bin: 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]
@ -185,4 +188,7 @@ pub struct DashboardMetaData {
pub merchant_name: Option<String>,
pub acquirer_bin: 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>,
}

View File

@ -317,6 +317,10 @@ impl From<ApiModelMetaData> for DashboardMetaData {
merchant_name: api_model.merchant_name,
acquirer_bin: api_model.acquirer_bin,
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,
}
}
}

View File

@ -114,8 +114,8 @@ impl DashboardRequestPayload {
maximum_amount: Some(68607706),
recurring_enabled: true,
installment_payment_enabled: false,
accepted_currencies: None,
accepted_countries: None,
accepted_currencies: method.accepted_currencies,
accepted_countries: method.accepted_countries,
payment_experience: None,
};
card_payment_method_types.push(data)
@ -192,6 +192,9 @@ impl DashboardRequestPayload {
merchant_name: None,
acquirer_bin: 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 {
Some(data) => data,
@ -211,6 +214,10 @@ impl DashboardRequestPayload {
let merchant_name = meta_data.merchant_name;
let acquirer_bin = meta_data.acquirer_bin;
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 {
google_pay,
@ -227,6 +234,9 @@ impl DashboardRequestPayload {
merchant_name,
acquirer_bin,
acquirer_merchant_id,
three_ds_requestor_name,
three_ds_requestor_id,
pull_mechanism_for_external_3ds_enabled,
})
}