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:
Sahkal Poddar
2024-01-11 12:40:28 +05:30
committed by GitHub
parent 8830a880d6
commit 61176524ca
13 changed files with 88 additions and 54 deletions

View File

@ -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,
}

View File

@ -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)]