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:
Sahkal Poddar
2024-04-02 17:45:08 +05:30
committed by GitHub
parent 88b53b0d5c
commit 97fbc899c1
4 changed files with 33 additions and 9 deletions

View File

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