fix(router): remove attempt_count in payments list response and add it in payments response (#2008)

This commit is contained in:
Sai Harsha Vardhan
2023-08-28 23:47:51 +05:30
committed by GitHub
parent aeebc5b525
commit 23b8d3412c
4 changed files with 13 additions and 18 deletions

View File

@ -1905,6 +1905,9 @@ pub struct PaymentsResponse {
/// The business profile that is associated with this payment
pub profile_id: Option<String>,
/// total number of attempts associated with this payment
pub attempt_count: i16,
}
#[derive(Clone, Debug, serde::Deserialize, ToSchema)]
@ -1970,8 +1973,6 @@ pub struct PaymentListConstraints {
pub struct PaymentListResponse {
/// The number of payments included in the list
pub size: usize,
/// The total number of payment_attempts for intents included in the list
pub attempt_count: i16,
// The list of payments response objects
pub data: Vec<PaymentsResponse>,
}