mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
refactor(core): Use hyperswitch_domain_models within the Payments Core instead of api_models (#5511)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
@ -5,6 +5,8 @@ use common_utils::{
|
||||
impl_api_event_type,
|
||||
};
|
||||
|
||||
use super::payment_method_data::PaymentMethodData;
|
||||
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub enum ApplicationResponse<R> {
|
||||
Json(R),
|
||||
@ -33,7 +35,7 @@ impl_api_event_type!(Miscellaneous, (PaymentLinkFormData, GenericLinkFormData));
|
||||
#[derive(Debug, Eq, PartialEq)]
|
||||
pub struct RedirectionFormData {
|
||||
pub redirect_form: crate::router_response_types::RedirectForm,
|
||||
pub payment_method_data: Option<api_models::payments::PaymentMethodData>,
|
||||
pub payment_method_data: Option<PaymentMethodData>,
|
||||
pub amount: String,
|
||||
pub currency: String,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user