Skip to content

Commit

Permalink
fix(connector): [PowerTranz] removing optional field shipping address (
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjunKarthik authored Jul 18, 2023
1 parent e271ced commit 63eac1f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/router/src/connector/powertranz/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ pub struct PowertranzPaymentsRequest {
source: Source,
order_identifier: String,
billing_address: Option<PowertranzAddressDetails>,
shipping_address: Option<PowertranzAddressDetails>,
extended_data: Option<ExtendedData>,
}

Expand Down Expand Up @@ -102,7 +101,6 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PowertranzPaymentsRequest
)),
}?;
let billing_address = get_address_details(&item.address.billing, &item.request.email);
let shipping_address = get_address_details(&item.address.shipping, &item.request.email);
let (three_d_secure, extended_data) = match item.auth_type {
diesel_models::enums::AuthenticationType::ThreeDs => {
(true, Some(ExtendedData::try_from(item)?))
Expand All @@ -121,7 +119,6 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PowertranzPaymentsRequest
source,
order_identifier: item.payment_id.clone(),
billing_address,
shipping_address,
extended_data,
})
}
Expand Down

0 comments on commit 63eac1f

Please sign in to comment.