mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
feat(router): added merchant custom name support for payment link (#2685)
Co-authored-by: Sahkal Poddar <sahkal.poddar@juspay.in> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -3100,6 +3100,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>,
|
||||
/// Custom merchant name for payment link
|
||||
pub custom_merchant_name: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, serde::Deserialize, Clone, ToSchema, serde::Serialize)]
|
||||
@ -3143,11 +3145,11 @@ pub struct PaymentLinkDetails {
|
||||
pub pub_key: String,
|
||||
pub client_secret: String,
|
||||
pub payment_id: String,
|
||||
#[serde(with = "common_utils::custom_serde::iso8601")]
|
||||
pub expiry: PrimitiveDateTime,
|
||||
#[serde(with = "common_utils::custom_serde::iso8601::option")]
|
||||
pub expiry: Option<PrimitiveDateTime>,
|
||||
pub merchant_logo: String,
|
||||
pub return_url: String,
|
||||
pub merchant_name: crypto::OptionalEncryptableName,
|
||||
pub merchant_name: String,
|
||||
pub order_details: Vec<pii::SecretSerdeValue>,
|
||||
pub max_items_visible_after_collapse: i8,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user