mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(payments): Add MIT payment functionality and update invoice handler (#9668)
Co-authored-by: Jagan <jaganelavarasan@gmail.com>
This commit is contained in:
@ -5,6 +5,7 @@ use utoipa::ToSchema;
|
||||
|
||||
use crate::{
|
||||
enums as api_enums,
|
||||
mandates::RecurringDetails,
|
||||
payments::{Address, PaymentMethodDataRequest},
|
||||
};
|
||||
|
||||
@ -279,6 +280,17 @@ pub struct PaymentResponseData {
|
||||
pub payment_method_type: Option<api_enums::PaymentMethodType>,
|
||||
pub client_secret: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct CreateMitPaymentRequestData {
|
||||
pub amount: MinorUnit,
|
||||
pub currency: api_enums::Currency,
|
||||
pub confirm: bool,
|
||||
pub customer_id: Option<common_utils::id_type::CustomerId>,
|
||||
pub recurring_details: Option<RecurringDetails>,
|
||||
pub off_session: Option<bool>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
pub struct ConfirmSubscriptionRequest {
|
||||
/// Client secret for SDK based interaction.
|
||||
|
||||
Reference in New Issue
Block a user