mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(router): create api models for customers as opposed to using db models (#91)
Co-authored-by: Arun Raj M <jarnura47@gmail.com>
This commit is contained in:
@ -104,7 +104,7 @@ pub trait Domain<F: Clone, R>: Send + Sync {
|
||||
payment_data: &mut PaymentData<F>,
|
||||
request: Option<CustomerDetails>,
|
||||
merchant_id: &str,
|
||||
) -> CustomResult<(BoxedOperation<'a, F, R>, Option<api::CustomerResponse>), errors::StorageError>;
|
||||
) -> CustomResult<(BoxedOperation<'a, F, R>, Option<storage::Customer>), errors::StorageError>;
|
||||
|
||||
#[allow(clippy::too_many_arguments)]
|
||||
async fn make_pm_data<'a>(
|
||||
@ -168,7 +168,7 @@ where
|
||||
) -> CustomResult<
|
||||
(
|
||||
BoxedOperation<'a, F, api::PaymentsRequest>,
|
||||
Option<api::CustomerResponse>,
|
||||
Option<storage::Customer>,
|
||||
),
|
||||
errors::StorageError,
|
||||
> {
|
||||
@ -255,7 +255,7 @@ where
|
||||
) -> CustomResult<
|
||||
(
|
||||
BoxedOperation<'a, F, api::PaymentsRetrieveRequest>,
|
||||
Option<api::CustomerResponse>,
|
||||
Option<storage::Customer>,
|
||||
),
|
||||
errors::StorageError,
|
||||
> {
|
||||
@ -312,7 +312,7 @@ where
|
||||
) -> CustomResult<
|
||||
(
|
||||
BoxedOperation<'a, F, api::PaymentsCaptureRequest>,
|
||||
Option<api::CustomerResponse>,
|
||||
Option<storage::Customer>,
|
||||
),
|
||||
errors::StorageError,
|
||||
> {
|
||||
@ -359,7 +359,7 @@ where
|
||||
) -> CustomResult<
|
||||
(
|
||||
BoxedOperation<'a, F, api::PaymentsCancelRequest>,
|
||||
Option<api::CustomerResponse>,
|
||||
Option<storage::Customer>,
|
||||
),
|
||||
errors::StorageError,
|
||||
> {
|
||||
|
||||
Reference in New Issue
Block a user