mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor(router): infer ip address for online mandates from request headers if absent (#1419)
This commit is contained in:
@ -432,7 +432,7 @@ pub enum AcceptanceType {
|
||||
pub struct OnlineMandate {
|
||||
/// Ip address of the customer machine from which the mandate was created
|
||||
#[schema(value_type = String, example = "123.32.25.123")]
|
||||
pub ip_address: Secret<String, pii::IpAddress>,
|
||||
pub ip_address: Option<Secret<String, pii::IpAddress>>,
|
||||
/// The user-agent of the customer's browser
|
||||
pub user_agent: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user