mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
feat(payment_link): Add payment info metadata to payment link (#4270)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -4376,12 +4376,12 @@ pub struct PaymentLinkInitiateRequest {
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
#[serde(untagged)]
|
||||
pub enum PaymentLinkData {
|
||||
PaymentLinkDetails(PaymentLinkDetails),
|
||||
pub enum PaymentLinkData<'a> {
|
||||
PaymentLinkDetails(&'a PaymentLinkDetails),
|
||||
PaymentLinkStatusDetails(PaymentLinkStatusDetails),
|
||||
}
|
||||
|
||||
#[derive(Debug, serde::Serialize)]
|
||||
#[derive(Debug, serde::Serialize, Clone)]
|
||||
pub struct PaymentLinkDetails {
|
||||
pub amount: String,
|
||||
pub currency: api_enums::Currency,
|
||||
|
||||
Reference in New Issue
Block a user