feat(payment-link): add config for enabling form button only when form is complete (#7517)

This commit is contained in:
Kashif
2025-03-17 20:01:07 +05:30
committed by GitHub
parent c702535e91
commit 0be1f878ed
16 changed files with 123 additions and 14 deletions

View File

@ -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)]

View File

@ -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)]