mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
fix: payment link styling for dynamic classes (#8273)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -3075,6 +3075,8 @@ pub struct PaymentLinkConfigRequest {
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
/// Boolean to control payment button text for setup mandate calls
|
||||
pub is_setup_mandate_flow: Option<bool>,
|
||||
/// Hex color for the CVC icon during error state
|
||||
pub color_icon_card_cvc_error: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -3172,6 +3174,8 @@ pub struct PaymentLinkConfig {
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
/// Boolean to control payment button text for setup mandate calls
|
||||
pub is_setup_mandate_flow: Option<bool>,
|
||||
/// Hex color for the CVC icon during error state
|
||||
pub color_icon_card_cvc_error: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
@ -8159,7 +8159,6 @@ pub struct PaymentLinkDetails {
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
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 status: api_enums::IntentStatus,
|
||||
pub enable_button_only_on_form_ready: bool,
|
||||
pub payment_form_header_text: Option<String>,
|
||||
@ -8168,6 +8167,7 @@ pub struct PaymentLinkDetails {
|
||||
pub is_setup_mandate_flow: Option<bool>,
|
||||
pub capture_method: Option<common_enums::CaptureMethod>,
|
||||
pub setup_future_usage_applied: Option<common_enums::FutureUsage>,
|
||||
pub color_icon_card_cvc_error: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
@ -8184,11 +8184,11 @@ pub struct SecurePaymentLinkDetails {
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
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,
|
||||
pub payment_form_header_text: Option<String>,
|
||||
pub payment_form_label_type: Option<api_enums::PaymentLinkSdkLabelType>,
|
||||
pub show_card_terms: Option<api_enums::PaymentLinkShowSdkTerms>,
|
||||
pub color_icon_card_cvc_error: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user