fix(payment): fix max limit on payment intents list (#2014)

Co-authored-by: Apoorv Dixit <apoorv.dixit@juspay.in>
This commit is contained in:
Sampras Lopes
2023-08-25 14:44:17 +05:30
committed by GitHub
parent ac63794162
commit a888953004
6 changed files with 29 additions and 26 deletions

View File

@ -1923,9 +1923,9 @@ pub struct PaymentListConstraints {
pub ending_before: Option<String>,
/// limit on the number of objects to return
#[schema(default = 10)]
#[schema(default = 10, maximum = 100)]
#[serde(default = "default_limit")]
pub limit: i64,
pub limit: u32,
/// The time at which payment is created
#[schema(example = "2022-09-10T10:11:12Z")]
@ -2037,7 +2037,7 @@ pub struct VerifyResponse {
pub error_message: Option<String>,
}
fn default_limit() -> i64 {
fn default_limit() -> u32 {
10
}