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:
ItsMeShashank
2022-12-08 13:00:39 +05:30
committed by GitHub
parent 7ddf5ccf30
commit 21f3d57609
21 changed files with 152 additions and 113 deletions

View File

@ -30,7 +30,7 @@ pub trait Feature<F, T> {
self,
state: &AppState,
connector: api::ConnectorData,
maybe_customer: &Option<api::CustomerResponse>,
maybe_customer: &Option<storage::Customer>,
payment_data: PaymentData<F>,
call_connector_action: payments::CallConnectorAction,
) -> (RouterResult<Self>, PaymentData<F>)