mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
feat(core): [Card Testing Guard] Implement Card Testing Guard (#7108)
Co-authored-by: Debarshi Gupta <debarshi.gupta@Debarshi-Gupta-CM92YWDXFD.local> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -152,3 +152,24 @@ pub const X_REQUEST_ID: &str = "x-request-id";
|
||||
|
||||
/// Default Tenant ID for the `Global` tenant
|
||||
pub const DEFAULT_GLOBAL_TENANT_ID: &str = "global";
|
||||
|
||||
/// Default status of Card IP Blocking
|
||||
pub const DEFAULT_CARD_IP_BLOCKING_STATUS: bool = false;
|
||||
|
||||
/// Default Threshold for Card IP Blocking
|
||||
pub const DEFAULT_CARD_IP_BLOCKING_THRESHOLD: i32 = 3;
|
||||
|
||||
/// Default status of Guest User Card Blocking
|
||||
pub const DEFAULT_GUEST_USER_CARD_BLOCKING_STATUS: bool = false;
|
||||
|
||||
/// Default Threshold for Card Blocking for Guest Users
|
||||
pub const DEFAULT_GUEST_USER_CARD_BLOCKING_THRESHOLD: i32 = 10;
|
||||
|
||||
/// Default status of Customer ID Blocking
|
||||
pub const DEFAULT_CUSTOMER_ID_BLOCKING_STATUS: bool = false;
|
||||
|
||||
/// Default Threshold for Customer ID Blocking
|
||||
pub const DEFAULT_CUSTOMER_ID_BLOCKING_THRESHOLD: i32 = 5;
|
||||
|
||||
/// Default Card Testing Guard Redis Expiry in seconds
|
||||
pub const DEFAULT_CARD_TESTING_GUARD_EXPIRY_IN_SECS: i32 = 3600;
|
||||
|
||||
Reference in New Issue
Block a user