mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
feat(payments): [Payment links] Add config for changing button text for payment links (#6860)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -2769,6 +2769,8 @@ pub struct PaymentLinkConfigRequest {
|
||||
/// Custom layout for details section
|
||||
#[schema(value_type = Option<PaymentLinkDetailsLayout>, example = "layout1")]
|
||||
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
|
||||
/// Text for payment link's handle confirm button
|
||||
pub payment_button_text: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize, PartialEq, ToSchema)]
|
||||
@ -2838,6 +2840,8 @@ pub struct PaymentLinkConfig {
|
||||
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
|
||||
/// Toggle for HyperSwitch branding visibility
|
||||
pub branding_visibility: Option<bool>,
|
||||
/// Text for payment link's handle confirm button
|
||||
pub payment_button_text: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, PartialEq, Eq)]
|
||||
|
||||
@ -6853,6 +6853,7 @@ pub struct PaymentLinkDetails {
|
||||
pub background_image: Option<admin::PaymentLinkBackgroundImageConfig>,
|
||||
pub details_layout: Option<api_enums::PaymentLinkDetailsLayout>,
|
||||
pub branding_visibility: Option<bool>,
|
||||
pub payment_button_text: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
@ -6862,6 +6863,7 @@ pub struct SecurePaymentLinkDetails {
|
||||
pub show_card_form_by_default: bool,
|
||||
#[serde(flatten)]
|
||||
pub payment_link_details: PaymentLinkDetails,
|
||||
pub payment_button_text: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user