mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
feat(router): add unified_code, unified_message in payments response (#2918)
This commit is contained in:
committed by
GitHub
parent
efeebc0f23
commit
39540015fd
@ -145,6 +145,8 @@ pub struct PaymentAttempt {
|
||||
pub authentication_data: Option<serde_json::Value>,
|
||||
pub encoded_data: Option<String>,
|
||||
pub merchant_connector_id: Option<String>,
|
||||
pub unified_code: Option<String>,
|
||||
pub unified_message: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
@ -207,6 +209,8 @@ pub struct PaymentAttemptNew {
|
||||
pub authentication_data: Option<serde_json::Value>,
|
||||
pub encoded_data: Option<String>,
|
||||
pub merchant_connector_id: Option<String>,
|
||||
pub unified_code: Option<String>,
|
||||
pub unified_message: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@ -292,6 +296,8 @@ pub enum PaymentAttemptUpdate {
|
||||
updated_by: String,
|
||||
authentication_data: Option<serde_json::Value>,
|
||||
encoded_data: Option<String>,
|
||||
unified_code: Option<Option<String>>,
|
||||
unified_message: Option<Option<String>>,
|
||||
},
|
||||
UnresolvedResponseUpdate {
|
||||
status: storage_enums::AttemptStatus,
|
||||
@ -316,6 +322,8 @@ pub enum PaymentAttemptUpdate {
|
||||
error_reason: Option<Option<String>>,
|
||||
amount_capturable: Option<i64>,
|
||||
updated_by: String,
|
||||
unified_code: Option<Option<String>>,
|
||||
unified_message: Option<Option<String>>,
|
||||
},
|
||||
MultipleCaptureCountUpdate {
|
||||
multiple_capture_count: i16,
|
||||
|
||||
Reference in New Issue
Block a user