refactor(customers): add offset and limit to customers list (#5735)

This commit is contained in:
Narayan Bhat
2024-08-29 12:15:35 +05:30
committed by GitHub
parent 3f17b52a2e
commit be4419865f
10 changed files with 101 additions and 18 deletions

View File

@ -32,6 +32,8 @@ pub const DEFAULT_SESSION_EXPIRY: i64 = 15 * 60;
/// The length of a merchant fingerprint secret
pub const FINGERPRINT_SECRET_LENGTH: usize = 64;
pub const DEFAULT_LIST_API_LIMIT: u16 = 10;
// String literals
pub(crate) const UNSUPPORTED_ERROR_MESSAGE: &str = "Unsupported response type";
pub(crate) const LOW_BALANCE_ERROR_MESSAGE: &str = "Insufficient balance in the payment method";