feat(connector): [BRAINTREE] Paypal wallet added (#8984)

This commit is contained in:
sweta-sharma
2025-10-09 19:54:32 +05:30
committed by GitHub
parent 5c6635be29
commit f71090a94c
11 changed files with 212 additions and 2 deletions

View File

@ -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)]