Interface TabbyRequestService
- All Known Implementing Classes:
DefaultTabbyRequestService
public interface TabbyRequestService
This service is responsible for converting the
TabbyPaymentRequest
to the appropriate
request object for the Tabby API.- Author:
- Dima Myroniuk (dmyroniuk)
-
Method Summary
Modifier and TypeMethodDescriptionbuildCapturePaymentRequest
(TabbyPaymentRequest tabbyPaymentRequest) Builds theTabbyCapturePaymentRequest
to capture the payment.buildCreateSessionRequest
(TabbyPaymentRequest tabbyPaymentRequest) Builds theTabbyCheckoutSession
to create the checkout session.buildRefundPaymentRequest
(TabbyPaymentRequest tabbyPaymentRequest) Builds theTabbyRefundPaymentRequest
to refund the payment.
-
Method Details
-
buildCreateSessionRequest
Builds theTabbyCheckoutSession
to create the checkout session.- Parameters:
tabbyPaymentRequest
- the payment request- Returns:
- the
TabbyCheckoutSession
to create the checkout session
-
buildCapturePaymentRequest
Builds theTabbyCapturePaymentRequest
to capture the payment.- Parameters:
tabbyPaymentRequest
- the payment request- Returns:
- the
TabbyCapturePaymentRequest
to capture the payment
-
buildRefundPaymentRequest
Builds theTabbyRefundPaymentRequest
to refund the payment.- Parameters:
tabbyPaymentRequest
- the payment request- Returns:
- the
TabbyRefundPaymentRequest
to refund the payment
-