forked from juspay/hyperswitch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): added customer phone_number and email to session token re…
…sponse for click to pay (juspay#6863) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
c525c9f
commit 092c79e
Showing
4 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6280,6 +6280,22 @@ | |
}, | ||
"transaction_currency_code": { | ||
"$ref": "#/components/schemas/Currency" | ||
}, | ||
"phone_number": { | ||
"type": "string", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
"email": { | ||
"type": "string", | ||
"example": "[email protected]", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
"phone_country_code": { | ||
"type": "string", | ||
"nullable": true | ||
} | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8882,6 +8882,22 @@ | |
}, | ||
"transaction_currency_code": { | ||
"$ref": "#/components/schemas/Currency" | ||
}, | ||
"phone_number": { | ||
"type": "string", | ||
"example": "9123456789", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
"email": { | ||
"type": "string", | ||
"example": "[email protected]", | ||
"nullable": true, | ||
"maxLength": 255 | ||
}, | ||
"phone_country_code": { | ||
"type": "string", | ||
"nullable": true | ||
} | ||
} | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 = "[email protected]")] | ||
pub email: Option<Email>, | ||
pub phone_country_code: Option<String>, | ||
} | ||
|
||
#[cfg(feature = "v1")] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters