mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(core): api ,domain and diesel model changes for extended authorization (#6607)
Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -8,7 +8,10 @@ use common_utils::{
|
||||
id_type, link_utils, pii,
|
||||
};
|
||||
#[cfg(feature = "v1")]
|
||||
use common_utils::{crypto::OptionalEncryptableName, ext_traits::ValueExt};
|
||||
use common_utils::{
|
||||
crypto::OptionalEncryptableName, ext_traits::ValueExt,
|
||||
types::AlwaysRequestExtendedAuthorization,
|
||||
};
|
||||
#[cfg(feature = "v2")]
|
||||
use masking::ExposeInterface;
|
||||
use masking::{PeekInterface, Secret};
|
||||
@ -1897,6 +1900,10 @@ pub struct ProfileCreate {
|
||||
/// Maximum number of auto retries allowed for a payment
|
||||
pub max_auto_retries_enabled: Option<u8>,
|
||||
|
||||
/// Bool indicating if extended authentication must be requested for all payments
|
||||
#[schema(value_type = Option<bool>)]
|
||||
pub always_request_extended_authorization: Option<AlwaysRequestExtendedAuthorization>,
|
||||
|
||||
/// Indicates if click to pay is enabled or not.
|
||||
#[serde(default)]
|
||||
pub is_click_to_pay_enabled: bool,
|
||||
@ -2152,6 +2159,10 @@ pub struct ProfileResponse {
|
||||
/// Maximum number of auto retries allowed for a payment
|
||||
pub max_auto_retries_enabled: Option<i16>,
|
||||
|
||||
/// Bool indicating if extended authentication must be requested for all payments
|
||||
#[schema(value_type = Option<bool>)]
|
||||
pub always_request_extended_authorization: Option<AlwaysRequestExtendedAuthorization>,
|
||||
|
||||
/// Indicates if click to pay is enabled or not.
|
||||
#[schema(default = false, example = false)]
|
||||
pub is_click_to_pay_enabled: bool,
|
||||
|
||||
Reference in New Issue
Block a user