refactor(router): infer ip address for online mandates from request headers if absent (#1419)

This commit is contained in:
ItsMeShashank
2023-06-13 15:17:46 +05:30
committed by GitHub
parent b002c97c9c
commit a1a009d796
6 changed files with 68 additions and 42 deletions

View File

@ -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,
}