Class PaymentRequestsServiceImpl
java.lang.Object
vn.payos.core.APIService<PayOS>
vn.payos.service.blocking.v2.paymentRequests.PaymentRequestsServiceImpl
- All Implemented Interfaces:
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.Cancel a payment link by order code.cancel(Long orderCode, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Cancel a payment link by order code.Cancel a payment link by payment link ID.Cancel a payment link by payment link ID.cancel(String paymentLinkId, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Cancel a payment link by payment link ID.create(CreatePaymentLinkRequest paymentData) Creates a payment link for the provided order data.create(CreatePaymentLinkRequest paymentData, RequestOptions<CreatePaymentLinkRequest> options) Creates a payment link for the provided order data.Retrieve payment link information from order code.get(Long orderCode, RequestOptions<Void> options) Retrieve payment link information from order code.Retrieve payment link information from payment link ID.get(String paymentLinkId, RequestOptions<Void> options) Retrieve payment link information from payment link ID.invoices()InvoicesService
-
Constructor Details
-
PaymentRequestsServiceImpl
PaymentRequestsServiceImpl- Parameters:
client- client
-
-
Method Details
-
create
public CreatePaymentLinkResponse create(CreatePaymentLinkRequest paymentData, RequestOptions<CreatePaymentLinkRequest> options) Description copied from interface:PaymentRequestsServiceCreates a payment link for the provided order data.- 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.- 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.- 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.- 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.- 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.- Specified by:
getin interfacePaymentRequestsService- Parameters:
orderCode- The order code.- Returns:
- Payment link detail.
-
cancel
public PaymentLink cancel(String paymentLinkId, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Description copied from interface:PaymentRequestsServiceCancel a payment link by payment link ID.- 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.- 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.- Specified by:
cancelin interfacePaymentRequestsService- Parameters:
paymentLinkId- The payment link ID.- Returns:
- Payment link detail.
-
cancel
public PaymentLink cancel(Long orderCode, String cancellationReason, RequestOptions<CancelPaymentLinkRequest> options) Description copied from interface:PaymentRequestsServiceCancel a payment link by order code.- 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.- 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.- 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
-