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:
Prasunna Soppa
2024-08-09 14:45:15 +05:30
committed by GitHub
parent 885428bd1e
commit f81416e4df
73 changed files with 729 additions and 435 deletions

View File

@ -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,
}