mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
fix(router): remove attempt_count in payments list response and add it in payments response (#2008)
This commit is contained in:
committed by
GitHub
parent
aeebc5b525
commit
23b8d3412c
@ -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>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user