mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-31 01:57:45 +08:00
refactor(payment_id): add payment id domain type (#5738)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -9,8 +9,8 @@ use common_utils::{
|
||||
pub struct LinkTokenCreateRequest {
|
||||
pub language: Option<String>, // optional language field to be passed
|
||||
pub client_secret: Option<String>, // client secret to be passed in req body
|
||||
pub payment_id: String, // payment_id to be passed in req body for redis pm_auth connector name fetch
|
||||
pub payment_method: PaymentMethod, // payment_method to be used for filtering pm_auth connector
|
||||
pub payment_id: id_type::PaymentId, // payment_id to be passed in req body for redis pm_auth connector name fetch
|
||||
pub payment_method: PaymentMethod, // payment_method to be used for filtering pm_auth connector
|
||||
pub payment_method_type: PaymentMethodType, // payment_method_type to be used for filtering pm_auth connector
|
||||
}
|
||||
|
||||
@ -26,7 +26,7 @@ pub struct LinkTokenCreateResponse {
|
||||
pub struct ExchangeTokenCreateRequest {
|
||||
pub public_token: String,
|
||||
pub client_secret: Option<String>,
|
||||
pub payment_id: String,
|
||||
pub payment_id: id_type::PaymentId,
|
||||
pub payment_method: PaymentMethod,
|
||||
pub payment_method_type: PaymentMethodType,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user