mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat(core): add is_click_to_pay_enabled in business profile (#6736)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -3555,6 +3555,7 @@ impl ProfileCreateBridge for api::ProfileCreate {
|
||||
is_network_tokenization_enabled: self.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: self.is_auto_retries_enabled.unwrap_or_default(),
|
||||
max_auto_retries_enabled: self.max_auto_retries_enabled.map(i16::from),
|
||||
is_click_to_pay_enabled: self.is_click_to_pay_enabled,
|
||||
}))
|
||||
}
|
||||
|
||||
@ -3662,6 +3663,7 @@ impl ProfileCreateBridge for api::ProfileCreate {
|
||||
tax_connector_id: self.tax_connector_id,
|
||||
is_tax_connector_enabled: self.is_tax_connector_enabled,
|
||||
is_network_tokenization_enabled: self.is_network_tokenization_enabled,
|
||||
is_click_to_pay_enabled: self.is_click_to_pay_enabled,
|
||||
}))
|
||||
}
|
||||
}
|
||||
@ -3911,6 +3913,7 @@ impl ProfileUpdateBridge for api::ProfileUpdate {
|
||||
is_network_tokenization_enabled: self.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: self.is_auto_retries_enabled,
|
||||
max_auto_retries_enabled: self.max_auto_retries_enabled.map(i16::from),
|
||||
is_click_to_pay_enabled: self.is_click_to_pay_enabled,
|
||||
},
|
||||
)))
|
||||
}
|
||||
@ -4007,6 +4010,7 @@ impl ProfileUpdateBridge for api::ProfileUpdate {
|
||||
always_collect_shipping_details_from_wallet_connector: self
|
||||
.always_collect_shipping_details_from_wallet_connector,
|
||||
is_network_tokenization_enabled: self.is_network_tokenization_enabled,
|
||||
is_click_to_pay_enabled: self.is_click_to_pay_enabled,
|
||||
},
|
||||
)))
|
||||
}
|
||||
|
||||
@ -174,6 +174,7 @@ impl ForeignTryFrom<domain::Profile> for ProfileResponse {
|
||||
is_network_tokenization_enabled: item.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: item.is_auto_retries_enabled,
|
||||
max_auto_retries_enabled: item.max_auto_retries_enabled,
|
||||
is_click_to_pay_enabled: item.is_click_to_pay_enabled,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -241,6 +242,7 @@ impl ForeignTryFrom<domain::Profile> for ProfileResponse {
|
||||
tax_connector_id: item.tax_connector_id,
|
||||
is_tax_connector_enabled: item.is_tax_connector_enabled,
|
||||
is_network_tokenization_enabled: item.is_network_tokenization_enabled,
|
||||
is_click_to_pay_enabled: item.is_click_to_pay_enabled,
|
||||
})
|
||||
}
|
||||
}
|
||||
@ -367,5 +369,6 @@ pub async fn create_profile_from_merchant_account(
|
||||
is_network_tokenization_enabled: request.is_network_tokenization_enabled,
|
||||
is_auto_retries_enabled: request.is_auto_retries_enabled.unwrap_or_default(),
|
||||
max_auto_retries_enabled: request.max_auto_retries_enabled.map(i16::from),
|
||||
is_click_to_pay_enabled: request.is_click_to_pay_enabled,
|
||||
}))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user