Skip to content

Commit

Permalink
chore: Resolve PR Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshu-iiitu committed May 22, 2024
1 parent 7e92baa commit e9691c7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions crates/router/src/connector/authorizedotnet/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ struct Profile {
merchant_customer_id: String,
#[serde(skip_serializing_if = "Option::is_none")]
description: Option<String>,
email: pii::Email,
email: Option<pii::Email>,
payment_profiles: PaymentProfiles,
}

Expand Down Expand Up @@ -301,15 +301,13 @@ impl TryFrom<&types::SetupMandateRouterData> for CreateCustomerProfileRequest {
.clone()
.ok_or_else(missing_field_err("customer_id"))?,
description: item.description.clone(),
email: utils::PaymentsSetupMandateRequestData::get_email(
&item.request,
)?,
email: item.request.email.clone(),
payment_profiles: PaymentProfiles {
customer_type: CustomerType::Individual,
payment: PaymentDetails::CreditCard(CreditCardDetails {
card_number: (*ccard.card_number).clone(),
expiration_date: ccard.get_expiry_date_as_yyyymm("-"),
card_code: None,
card_code: Some(ccard.card_cvc.clone()),
}),
},
},
Expand Down

0 comments on commit e9691c7

Please sign in to comment.