|
6 | 6 | import uk.gov.hmcts.reform.authorisation.generators.AuthTokenGenerator; |
7 | 7 | import uk.gov.hmcts.reform.payments.client.models.PaymentDto; |
8 | 8 | import uk.gov.hmcts.reform.payments.request.CardPaymentRequest; |
| 9 | +import uk.gov.hmcts.reform.payments.request.CardPaymentServiceRequestDTO; |
9 | 10 | import uk.gov.hmcts.reform.payments.request.CreateServiceRequestDTO; |
10 | 11 | import uk.gov.hmcts.reform.payments.request.CreditAccountPaymentRequest; |
11 | 12 | import uk.gov.hmcts.reform.payments.request.PBAServiceRequestDTO; |
| 13 | +import uk.gov.hmcts.reform.payments.response.CardPaymentServiceRequestResponse; |
12 | 14 | import uk.gov.hmcts.reform.payments.response.PBAServiceRequestResponse; |
| 15 | +import uk.gov.hmcts.reform.payments.response.PaymentGroupResponse; |
13 | 16 | import uk.gov.hmcts.reform.payments.response.PaymentServiceResponse; |
14 | 17 |
|
15 | 18 | @Service |
@@ -76,4 +79,20 @@ public PBAServiceRequestResponse createPbaPayment(String serviceReqReference, St |
76 | 79 | paymentRequest |
77 | 80 | ); |
78 | 81 | } |
| 82 | + |
| 83 | + public PaymentGroupResponse getCasePaymentGroups(String ccdCaseNumber, String authorisation) { |
| 84 | + return paymentsApi.getCasePaymentGroups(ccdCaseNumber, authorisation, authTokenGenerator.generate()); |
| 85 | + } |
| 86 | + |
| 87 | + public CardPaymentServiceRequestResponse createCardPaymentServiceRequest( |
| 88 | + String serviceReqReference, |
| 89 | + String authorization, |
| 90 | + CardPaymentServiceRequestDTO paymentRequest) { |
| 91 | + return paymentsApi.createCardPaymentServiceRequest( |
| 92 | + serviceReqReference, authorization, authTokenGenerator.generate(), paymentRequest); |
| 93 | + } |
| 94 | + |
| 95 | + public PaymentDto getCardPaymentStatus(String paymentReference, String authorization) { |
| 96 | + return paymentsApi.getCardPaymentStatus(paymentReference, authorization, authTokenGenerator.generate()); |
| 97 | + } |
79 | 98 | } |
0 commit comments