feat(router): Custom payment link config for payment create (#2741)

Co-authored-by: Kashif <46213975+kashif-m@users.noreply.github.com>
Co-authored-by: Kashif <kashif@protonmail.com>
Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in>
This commit is contained in:
Sahkal Poddar
2023-11-17 13:40:29 +05:30
committed by GitHub
parent aea390a6a1
commit c39beb2501
9 changed files with 51 additions and 14 deletions

View File

@ -455,6 +455,11 @@ pub struct PrimaryBusinessDetails {
#[derive(Clone, Debug, Deserialize, ToSchema, Serialize, PartialEq)]
#[serde(deny_unknown_fields)]
pub struct PaymentLinkConfig {
#[schema(
max_length = 255,
max_length = 255,
example = "https://i.imgur.com/RfxPFQo.png"
)]
pub merchant_logo: Option<String>,
pub color_scheme: Option<PaymentLinkColorSchema>,
}

View File

@ -3150,6 +3150,8 @@ pub struct PaymentLinkObject {
#[serde(default, with = "common_utils::custom_serde::iso8601::option")]
pub link_expiry: Option<PrimitiveDateTime>,
pub merchant_custom_domain_name: Option<String>,
#[schema(value_type = PaymentLinkConfig)]
pub payment_link_config: Option<admin::PaymentLinkConfig>,
/// Custom merchant name for payment link
pub custom_merchant_name: Option<String>,
}