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:
Hrithikesh
2023-10-18 15:42:32 +05:30
committed by GitHub
parent 7a76d6c01a
commit 2f9a3557f6
31 changed files with 786 additions and 47 deletions

View File

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