mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(payments): [Payment links] Add configs for payment link (#7288)
This commit is contained in:
@ -2708,6 +2708,10 @@ pub struct PaymentLinkConfigRequest {
|
||||
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
|
||||
/// Text for payment link's handle confirm button
|
||||
pub payment_button_text: Option<String>,
|
||||
/// Text for customizing message for card terms
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
/// Custom background colour for payment link's handle confirm button
|
||||
pub payment_button_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -2779,6 +2783,10 @@ pub struct PaymentLinkConfig {
|
||||
pub branding_visibility: Option<bool>,
|
||||
/// Text for payment link's handle confirm button
|
||||
pub payment_button_text: Option<String>,
|
||||
/// Text for customizing message for card terms
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
/// Custom background colour for payment link's handle confirm button
|
||||
pub payment_button_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
@ -7531,6 +7531,8 @@ pub struct PaymentLinkDetails {
|
||||
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
|
||||
pub branding_visibility: Option<bool>,
|
||||
pub payment_button_text: Option<String>,
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
pub payment_button_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
@ -7541,6 +7543,8 @@ pub struct SecurePaymentLinkDetails {
|
||||
#[serde(flatten)]
|
||||
pub payment_link_details: PaymentLinkDetails,
|
||||
pub payment_button_text: Option<String>,
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
pub payment_button_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user