mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [BRAINTREE] Paypal wallet added (#8984)
This commit is contained in:
@ -7966,6 +7966,25 @@ pub struct KlarnaSessionTokenResponse {
|
||||
pub session_id: String,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum PaypalFlow {
|
||||
Checkout,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct PaypalTransactionInfo {
|
||||
/// Paypal flow type
|
||||
#[schema(value_type = PaypalFlow, example = "checkout")]
|
||||
pub flow: PaypalFlow,
|
||||
/// Currency code
|
||||
#[schema(value_type = Currency, example = "USD")]
|
||||
pub currency_code: api_enums::Currency,
|
||||
/// Total price
|
||||
#[schema(value_type = String, example = "38.02")]
|
||||
pub total_price: StringMajorUnit,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, ToSchema)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub struct PaypalSessionTokenResponse {
|
||||
@ -7975,6 +7994,10 @@ pub struct PaypalSessionTokenResponse {
|
||||
pub session_token: String,
|
||||
/// The next action for the sdk (ex: calling confirm or sync call)
|
||||
pub sdk_next_action: SdkNextAction,
|
||||
/// Authorization token used by client to initiate sdk
|
||||
pub client_token: Option<String>,
|
||||
/// The transaction info Paypal requires
|
||||
pub transaction_info: Option<PaypalTransactionInfo>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user