mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payment-link): add config for enabling form button only when form is complete (#7517)
This commit is contained in:
@ -2839,6 +2839,8 @@ pub struct PaymentLinkConfigRequest {
|
||||
pub sdk_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
/// Payment link configuration rules
|
||||
pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
/// Flag to enable the button only when the payment form is ready for submission
|
||||
pub enable_button_only_on_form_ready: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -2924,6 +2926,8 @@ pub struct PaymentLinkConfig {
|
||||
pub sdk_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
/// Payment link configuration rules
|
||||
pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
/// Flag to enable the button only when the payment form is ready for submission
|
||||
pub enable_button_only_on_form_ready: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
@ -7944,6 +7944,7 @@ pub struct PaymentLinkDetails {
|
||||
pub background_colour: Option<String>,
|
||||
pub sdk_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
pub enable_button_only_on_form_ready: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
@ -7961,6 +7962,7 @@ pub struct SecurePaymentLinkDetails {
|
||||
pub background_colour: Option<String>,
|
||||
pub sdk_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,
|
||||
pub enable_button_only_on_form_ready: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user