mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payment_link): expose payment link configs for SDK UI rules and payment button (#7427)
This commit is contained in:
@ -2810,6 +2810,10 @@ pub struct PaymentLinkConfigRequest {
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
/// Custom background colour for the payment link
|
||||
pub background_colour: Option<String>,
|
||||
/// SDK configuration rules
|
||||
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>>>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -2891,6 +2895,10 @@ pub struct PaymentLinkConfig {
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
/// Custom background colour for the payment link
|
||||
pub background_colour: Option<String>,
|
||||
/// SDK configuration rules
|
||||
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>>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
@ -7881,6 +7881,8 @@ pub struct PaymentLinkDetails {
|
||||
pub payment_button_colour: Option<String>,
|
||||
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>>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
@ -7896,6 +7898,8 @@ pub struct SecurePaymentLinkDetails {
|
||||
pub payment_button_colour: Option<String>,
|
||||
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>>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user