mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
feat: update surcharge_amount and tax_amount in update_trackers of payment_confirm (#2603)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This commit is contained in:
@ -311,7 +311,9 @@ pub struct PaymentsRequest {
|
||||
pub payment_type: Option<api_enums::PaymentType>,
|
||||
}
|
||||
|
||||
#[derive(Default, Debug, Clone, serde::Serialize, serde::Deserialize, Copy, ToSchema)]
|
||||
#[derive(
|
||||
Default, Debug, Clone, serde::Serialize, serde::Deserialize, Copy, ToSchema, PartialEq,
|
||||
)]
|
||||
pub struct RequestSurchargeDetails {
|
||||
pub surcharge_amount: i64,
|
||||
pub tax_amount: Option<i64>,
|
||||
@ -2096,6 +2098,9 @@ pub struct PaymentsResponse {
|
||||
/// The business profile that is associated with this payment
|
||||
pub profile_id: Option<String>,
|
||||
|
||||
/// details of surcharge applied on this payment
|
||||
pub surcharge_details: Option<RequestSurchargeDetails>,
|
||||
|
||||
/// total number of attempts associated with this payment
|
||||
pub attempt_count: i16,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user