mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(payment_link): segregated payment link in html css js files, sdk over flow issue, surcharge bug, block SPM customer call for payment link (#3410)
Co-authored-by: Kashif <mohammed.kashif@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Kashif <kashif.dev@protonmail.com> Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
@ -3496,10 +3496,12 @@ pub struct PaymentLinkStatusDetails {
|
||||
pub merchant_name: String,
|
||||
#[serde(with = "common_utils::custom_serde::iso8601")]
|
||||
pub created: PrimitiveDateTime,
|
||||
pub intent_status: api_enums::IntentStatus,
|
||||
pub payment_link_status: PaymentLinkStatus,
|
||||
pub status: PaymentLinkStatusWrap,
|
||||
pub error_code: Option<String>,
|
||||
pub error_message: Option<String>,
|
||||
pub redirect: bool,
|
||||
pub theme: String,
|
||||
pub return_url: String,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, serde::Deserialize, ToSchema, serde::Serialize)]
|
||||
@ -3583,3 +3585,11 @@ pub enum PaymentLinkStatus {
|
||||
Active,
|
||||
Expired,
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
#[serde(untagged)]
|
||||
pub enum PaymentLinkStatusWrap {
|
||||
PaymentLinkStatus(PaymentLinkStatus),
|
||||
IntentStatus(api_enums::IntentStatus),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user