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 theTabbyCapturePaymentRequestto capture the payment.buildCreateSessionRequest(TabbyPaymentRequest tabbyPaymentRequest) Builds theTabbyCheckoutSessionto create the checkout session.buildRefundPaymentRequest(TabbyPaymentRequest tabbyPaymentRequest) Builds theTabbyRefundPaymentRequestto refund the payment.
-
Method Details
-
buildCreateSessionRequest
Builds theTabbyCheckoutSessionto create the checkout session.- Parameters:
tabbyPaymentRequest- the payment request- Returns:
- the
TabbyCheckoutSessionto create the checkout session
-
buildCapturePaymentRequest
Builds theTabbyCapturePaymentRequestto capture the payment.- Parameters:
tabbyPaymentRequest- the payment request- Returns:
- the
TabbyCapturePaymentRequestto capture the payment
-
buildRefundPaymentRequest
Builds theTabbyRefundPaymentRequestto refund the payment.- Parameters:
tabbyPaymentRequest- the payment request- Returns:
- the
TabbyRefundPaymentRequestto refund the payment
-