feat(core): customer_details storage in payment_intent (#5007)

Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in>
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Prajjwal Kumar
2024-06-28 15:06:19 +05:30
committed by GitHub
parent a172cba5d3
commit bb9a97154c
20 changed files with 380 additions and 110 deletions

View File

@ -202,11 +202,11 @@ pub struct CustomerDetails {
pub phone_country_code: Option<String>,
}
#[derive(Debug, serde::Serialize, Clone, ToSchema, PartialEq)]
#[derive(Debug, Default, serde::Serialize, Clone, ToSchema, PartialEq, Setter)]
pub struct CustomerDetailsResponse {
/// The identifier for the customer.
#[schema(value_type = String, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
pub id: id_type::CustomerId,
#[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
pub id: Option<id_type::CustomerId>,
/// The customer's name
#[schema(max_length = 255, value_type = Option<String>, example = "John Doe")]