refactor: rename the payment request struct (#48)

This commit is contained in:
Narayan Bhat
2022-12-01 16:30:34 +05:30
committed by GitHub
parent 5a5ac61d01
commit 2a050cc340
29 changed files with 436 additions and 710 deletions

View File

@ -10,7 +10,7 @@ use crate::{
routes::AppState,
services::api,
types::api::{
self as api_types, payments::PaymentsCaptureRequest, Authorize, PCapture, PSync,
self as api_types, payments::PaymentsCaptureRequest, Authorize, Capture, PSync,
PaymentListConstraints, PaymentsCancelRequest, PaymentsRequest, PaymentsRetrieveRequest,
Void,
},
@ -251,7 +251,7 @@ pub async fn payment_intents_capture(
&req,
capture_payload,
|state, merchant_account, payload| {
payments::payments_core::<PCapture, _, _, _>(
payments::payments_core::<Capture, _, _, _>(
state,
merchant_account,
payments::PaymentCapture,