mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 19:42:27 +08:00
feat(core): create surcharge_metadata field in payment attempt (#2371)
This commit is contained in:
@ -138,6 +138,7 @@ pub struct PaymentAttempt {
|
||||
// reference to the payment at connector side
|
||||
pub connector_response_reference_id: Option<String>,
|
||||
pub amount_capturable: i64,
|
||||
pub surcharge_metadata: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
@ -194,6 +195,7 @@ pub struct PaymentAttemptNew {
|
||||
pub connector_response_reference_id: Option<String>,
|
||||
pub multiple_capture_count: Option<i16>,
|
||||
pub amount_capturable: i64,
|
||||
pub surcharge_metadata: Option<serde_json::Value>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@ -299,4 +301,7 @@ pub enum PaymentAttemptUpdate {
|
||||
connector_transaction_id: Option<String>,
|
||||
connector_response_reference_id: Option<String>,
|
||||
},
|
||||
SurchargeMetadataUpdate {
|
||||
surcharge_metadata: Option<serde_json::Value>,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user