mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
fix(payment): fix max limit on payment intents list (#2014)
Co-authored-by: Apoorv Dixit <apoorv.dixit@juspay.in>
This commit is contained in:
@ -586,7 +586,7 @@ pub struct StripePaymentListConstraints {
|
||||
pub starting_after: Option<String>,
|
||||
pub ending_before: Option<String>,
|
||||
#[serde(default = "default_limit")]
|
||||
pub limit: i64,
|
||||
pub limit: u32,
|
||||
pub created: Option<i64>,
|
||||
#[serde(rename = "created[lt]")]
|
||||
pub created_lt: Option<i64>,
|
||||
@ -598,7 +598,7 @@ pub struct StripePaymentListConstraints {
|
||||
pub created_gte: Option<i64>,
|
||||
}
|
||||
|
||||
fn default_limit() -> i64 {
|
||||
fn default_limit() -> u32 {
|
||||
10
|
||||
}
|
||||
|
||||
|
||||
@ -511,7 +511,7 @@ pub struct StripePaymentListConstraints {
|
||||
pub starting_after: Option<String>,
|
||||
pub ending_before: Option<String>,
|
||||
#[serde(default = "default_limit")]
|
||||
pub limit: i64,
|
||||
pub limit: u32,
|
||||
pub created: Option<i64>,
|
||||
#[serde(rename = "created[lt]")]
|
||||
pub created_lt: Option<i64>,
|
||||
@ -523,7 +523,7 @@ pub struct StripePaymentListConstraints {
|
||||
pub created_gte: Option<i64>,
|
||||
}
|
||||
|
||||
fn default_limit() -> i64 {
|
||||
fn default_limit() -> u32 {
|
||||
10
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user