feat(core): added customer phone_number and email to session token response for click to pay (#6863)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sahkal Poddar
2024-12-19 17:04:28 +05:30
committed by GitHub
parent c525c9f4c9
commit 092c79ec40
4 changed files with 80 additions and 1 deletions

View File

@ -6997,6 +6997,11 @@ pub struct ClickToPaySessionResponse {
pub transaction_amount: StringMajorUnit,
#[schema(value_type = Currency)]
pub transaction_currency_code: common_enums::Currency,
#[schema(value_type = Option<String>, max_length = 255, example = "9123456789")]
pub phone_number: Option<Secret<String>>,
#[schema(max_length = 255, value_type = Option<String>, example = "johntest@test.com")]
pub email: Option<Email>,
pub phone_country_code: Option<String>,
}
#[cfg(feature = "v1")]