Skip to content

Commit

Permalink
fix(euclid_wasm): connector config wasm metadata update (#4460)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 committed Apr 30, 2024
1 parent 1b75a3e commit 28df646
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions crates/connector_configs/src/common_config.rs
Expand Up @@ -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]
Expand Down Expand Up @@ -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>,
}
4 changes: 4 additions & 0 deletions crates/connector_configs/src/response_modifier.rs
Expand Up @@ -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,
}
}
}
Expand Down
14 changes: 12 additions & 2 deletions crates/connector_configs/src/transformer.rs
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
})
}

Expand Down

0 comments on commit 28df646

Please sign in to comment.