mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
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:
@ -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>,
|
||||
}
|
||||
|
||||
@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user