mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payments): [Payment links] add configs for payment link (#7340)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2786,6 +2786,12 @@ pub struct PaymentLinkConfigRequest {
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
/// Custom background colour for payment link's handle confirm button
|
||||
pub payment_button_colour: Option<String>,
|
||||
/// Skip the status screen after payment completion
|
||||
pub skip_status_screen: Option<bool>,
|
||||
/// Custom text colour for payment link's handle confirm button
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
/// Custom background colour for the payment link
|
||||
pub background_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -2861,6 +2867,12 @@ pub struct PaymentLinkConfig {
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
/// Custom background colour for payment link's handle confirm button
|
||||
pub payment_button_colour: Option<String>,
|
||||
/// Skip the status screen after payment completion
|
||||
pub skip_status_screen: Option<bool>,
|
||||
/// Custom text colour for payment link's handle confirm button
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
/// Custom background colour for the payment link
|
||||
pub background_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
@ -7818,8 +7818,11 @@ pub struct PaymentLinkDetails {
|
||||
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
|
||||
pub branding_visibility: Option<bool>,
|
||||
pub payment_button_text: Option<String>,
|
||||
pub skip_status_screen: Option<bool>,
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
pub payment_button_colour: Option<String>,
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
pub background_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
@ -7830,8 +7833,11 @@ pub struct SecurePaymentLinkDetails {
|
||||
#[serde(flatten)]
|
||||
pub payment_link_details: PaymentLinkDetails,
|
||||
pub payment_button_text: Option<String>,
|
||||
pub skip_status_screen: Option<bool>,
|
||||
pub custom_message_for_card_terms: Option<String>,
|
||||
pub payment_button_colour: Option<String>,
|
||||
pub payment_button_text_colour: Option<String>,
|
||||
pub background_colour: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user