Class PaymentRequestsServiceImpl
java.lang.Object
vn.payos.core.APIService<PayOSAsync>
vn.payos.service.async.v2.paymentRequests.PaymentRequestsServiceImpl
- All Implemented Interfaces:
PaymentRequestsService
public class PaymentRequestsServiceImpl
extends APIService<PayOSAsync>
implements PaymentRequestsService
PaymentRequestsServiceImpl
-
Field Summary
Fields inherited from class vn.payos.core.APIService
client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCancel a payment link by order code asynchronously.Cancel a payment link by order code asynchronously.cancel(Long orderCode, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Cancel a payment link by order code asynchronously.Cancel a payment link by payment link ID asynchronously.Cancel a payment link by payment link ID asynchronously.cancel(String paymentLinkId, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Cancel a payment link by payment link ID asynchronously.create(CreatePaymentLinkRequest paymentData) Creates a payment link for the provided order data asynchronously.create(CreatePaymentLinkRequest paymentData, RequestOptions<CreatePaymentLinkRequest> options) Creates a payment link for the provided order data asynchronously.Retrieve payment link information from order code asynchronously.get(Long orderCode, RequestOptions<Void> options) Retrieve payment link information from order code asynchronously.Retrieve payment link information from payment link ID asynchronously.get(String paymentLinkId, RequestOptions<Void> options) Retrieve payment link information from payment link ID asynchronously.invoices()InvoicesService
-
Constructor Details
-
PaymentRequestsServiceImpl
PaymentRequestsServiceImpl- Parameters:
client- client
-
-
Method Details
-
create
public CompletableFuture<CreatePaymentLinkResponse> create(CreatePaymentLinkRequest paymentData, RequestOptions<CreatePaymentLinkRequest> options) Description copied from interface:PaymentRequestsServiceCreates a payment link for the provided order data asynchronously.- Specified by:
createin interfacePaymentRequestsService- Parameters:
paymentData- The details of payment link to be created.options- Additional options.- Returns:
- Create payment link detail.
-
create
Description copied from interface:PaymentRequestsServiceCreates a payment link for the provided order data asynchronously.- Specified by:
createin interfacePaymentRequestsService- Parameters:
paymentData- The details of payment link to be created.- Returns:
- Create payment link detail.
-
get
Description copied from interface:PaymentRequestsServiceRetrieve payment link information from payment link ID asynchronously.- Specified by:
getin interfacePaymentRequestsService- Parameters:
paymentLinkId- The payment link ID.options- Additional options.- Returns:
- Payment link detail.
-
get
Description copied from interface:PaymentRequestsServiceRetrieve payment link information from payment link ID asynchronously.- Specified by:
getin interfacePaymentRequestsService- Parameters:
paymentLinkId- The payment link ID.- Returns:
- Payment link detail.
-
get
Description copied from interface:PaymentRequestsServiceRetrieve payment link information from order code asynchronously.- Specified by:
getin interfacePaymentRequestsService- Parameters:
orderCode- The order code.options- Additional options.- Returns:
- Payment link detail.
-
get
Description copied from interface:PaymentRequestsServiceRetrieve payment link information from order code asynchronously.- Specified by:
getin interfacePaymentRequestsService- Parameters:
orderCode- The order code.- Returns:
- Payment link detail.
-
cancel
public CompletableFuture<PaymentLink> cancel(String paymentLinkId, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Description copied from interface:PaymentRequestsServiceCancel a payment link by payment link ID asynchronously.- Specified by:
cancelin interfacePaymentRequestsService- Parameters:
paymentLinkId- The payment link ID.cancellationReason- The cancellation reason.options- Additional options.- Returns:
- Payment link detail.
-
cancel
Description copied from interface:PaymentRequestsServiceCancel a payment link by payment link ID asynchronously.- Specified by:
cancelin interfacePaymentRequestsService- Parameters:
paymentLinkId- The payment link ID.cancellationReason- The cancellation reason.- Returns:
- Payment link detail.
-
cancel
Description copied from interface:PaymentRequestsServiceCancel a payment link by payment link ID asynchronously.- Specified by:
cancelin interfacePaymentRequestsService- Parameters:
paymentLinkId- The payment link ID.- Returns:
- Payment link detail.
-
cancel
public CompletableFuture<PaymentLink> cancel(Long orderCode, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Description copied from interface:PaymentRequestsServiceCancel a payment link by order code asynchronously.- Specified by:
cancelin interfacePaymentRequestsService- Parameters:
orderCode- The order code.cancellationReason- The cancellation reason.options- Additional options.- Returns:
- Payment link detail.
-
cancel
Description copied from interface:PaymentRequestsServiceCancel a payment link by order code asynchronously.- Specified by:
cancelin interfacePaymentRequestsService- Parameters:
orderCode- The order code.cancellationReason- The cancellation reason.- Returns:
- Payment link detail.
-
cancel
Description copied from interface:PaymentRequestsServiceCancel a payment link by order code asynchronously.- Specified by:
cancelin interfacePaymentRequestsService- Parameters:
orderCode- The order code.- Returns:
- Payment link detail.
-
invoices
Description copied from interface:PaymentRequestsServiceInvoicesService- Specified by:
invoicesin interfacePaymentRequestsService- Returns:
- InvoicesService
-