feat: Add amount, currency and email to paze session response (#6412)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
DEEPANSHU BANSAL
2024-10-25 18:31:31 +05:30
committed by GitHub
parent 53075792b3
commit a3ea62f885
6 changed files with 58 additions and 4 deletions

View File

@ -5578,6 +5578,15 @@ pub struct PazeSessionTokenResponse {
pub client_name: String,
/// Paze Client Profile ID
pub client_profile_id: String,
/// The transaction currency code
#[schema(value_type = Currency, example = "USD")]
pub transaction_currency_code: api_enums::Currency,
/// The transaction amount
#[schema(value_type = String, example = "38.02")]
pub transaction_amount: StringMajorUnit,
/// Email Address
#[schema(max_length = 255, value_type = Option<String>, example = "johntest@test.com")]
pub email_address: Option<Email>,
}
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, ToSchema)]