fix(router): make customer_id optional when billing and shipping address is passed in payments create, update (#2762)

This commit is contained in:
Prasunna Soppa
2023-11-03 12:31:06 +05:30
committed by GitHub
parent c0a5e7b7d9
commit e40a29351c
13 changed files with 18 additions and 37 deletions

View File

@ -566,7 +566,7 @@ impl CustomerAddress for api_models::customers::CustomerRequest {
.async_lift(|inner| encrypt_optional(inner, key))
.await?,
country_code: self.phone_country_code.clone(),
customer_id: customer_id.to_string(),
customer_id: Some(customer_id.to_string()),
merchant_id: merchant_id.to_string(),
address_id: generate_id(consts::ID_LENGTH, "add"),
payment_id: None,