Skip to content

Commit c4315c9

Browse files
committed
failing cypress fixed
1 parent d0fab1a commit c4315c9

File tree

1 file changed

+2
-2
lines changed
  • crates/hyperswitch_connectors/src/connectors/authorizedotnet

1 file changed

+2
-2
lines changed

crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -578,7 +578,7 @@ pub struct AuthorizedotnetSetupMandateResponse {
578578
#[derive(Debug, Clone, Deserialize, Serialize)]
579579
#[serde(rename_all = "camelCase")]
580580
pub struct AuthorizedotnetCustomerResponse {
581-
customer_profile_id: String,
581+
customer_profile_id: Option<String>,
582582
#[serde(default, skip_serializing_if = "Vec::is_empty")]
583583
customer_payment_profile_id_list: Vec<String>,
584584
#[serde(default, skip_serializing_if = "Vec::is_empty")]
@@ -597,7 +597,7 @@ impl<F, T> TryFrom<ResponseRouterData<F, AuthorizedotnetCustomerResponse, T, Pay
597597
match item.response.messages.result_code {
598598
ResultCode::Ok => Ok(Self {
599599
response: Ok(PaymentsResponseData::ConnectorCustomerResponse {
600-
connector_customer_id,
600+
connector_customer_id: connector_customer_id.unwrap_or_default(),
601601
}),
602602
..item.data
603603
}),

0 commit comments

Comments
 (0)