mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
feat(payment_link): Added sdk layout option payment link (#3207)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Kashif <mohammed.kashif@juspay.in> Co-authored-by: Kashif <kashif.dev@protonmail.com>
This commit is contained in:
@ -1175,6 +1175,9 @@ pub struct PaymentLinkConfigRequest {
|
||||
/// Custom merchant name for payment link
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "hyperswitch")]
|
||||
pub seller_name: Option<String>,
|
||||
/// Custom layout for sdk
|
||||
#[schema(value_type = Option<String>, max_length = 255, example = "accordion")]
|
||||
pub sdk_layout: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Serialize, serde::Deserialize, PartialEq, ToSchema)]
|
||||
@ -1185,4 +1188,6 @@ pub struct PaymentLinkConfig {
|
||||
pub logo: String,
|
||||
/// Custom merchant name for payment link
|
||||
pub seller_name: String,
|
||||
/// Custom layout for sdk
|
||||
pub sdk_layout: String,
|
||||
}
|
||||
|
||||
@ -3381,6 +3381,7 @@ pub struct PaymentLinkDetails {
|
||||
pub max_items_visible_after_collapse: i8,
|
||||
pub theme: String,
|
||||
pub merchant_description: Option<String>,
|
||||
pub sdk_layout: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
|
||||
Reference in New Issue
Block a user