Class InvoicesServiceImpl
java.lang.Object
vn.payos.core.APIService<PayOS>
vn.payos.service.blocking.v2.paymentRequests.invoices.InvoicesServiceImpl
- All Implemented Interfaces:
InvoicesService
InvoicesServiceImpl
-
Field Summary
Fields inherited from class vn.payos.core.APIService
client -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDownload an invoice in PDF format by order code.download(String invoiceId, Long orderCode, RequestOptions<Void> options) Download an invoice in PDF format by order code.Download an invoice in PDF format by payment link ID.download(String invoiceId, String paymentLinkId, RequestOptions<Void> options) Download an invoice in PDF format by payment link ID.Retrieve invoices of a payment link by order code.get(Long orderCode, RequestOptions<Void> options) Retrieve invoices of a payment link by order code.Retrieve invoices of a payment link by payment link ID.get(String paymentLinkId, RequestOptions<Void> options) Retrieve invoices of a payment link by payment link ID.
-
Constructor Details
-
InvoicesServiceImpl
InvoicesServiceImpl- Parameters:
client- client
-
-
Method Details
-
get
Description copied from interface:InvoicesServiceRetrieve invoices of a payment link by payment link ID.- Specified by:
getin interfaceInvoicesService- Parameters:
paymentLinkId- Payment link ID.options- Additional options.- Returns:
- Invoice information.
-
get
Description copied from interface:InvoicesServiceRetrieve invoices of a payment link by order code.- Specified by:
getin interfaceInvoicesService- Parameters:
orderCode- Order code.options- Additional options.- Returns:
- Invoice information.
-
get
Description copied from interface:InvoicesServiceRetrieve invoices of a payment link by payment link ID.- Specified by:
getin interfaceInvoicesService- Parameters:
paymentLinkId- Payment link ID.- Returns:
- Invoice information.
-
get
Description copied from interface:InvoicesServiceRetrieve invoices of a payment link by order code.- Specified by:
getin interfaceInvoicesService- Parameters:
orderCode- Order code.- Returns:
- Invoice information.
-
download
public FileDownloadResponse download(String invoiceId, String paymentLinkId, RequestOptions<Void> options) Description copied from interface:InvoicesServiceDownload an invoice in PDF format by payment link ID.- Specified by:
downloadin interfaceInvoicesService- Parameters:
invoiceId- Invoice ID.paymentLinkId- Payment link ID.options- Additional options.- Returns:
- Invoice file.
-
download
public FileDownloadResponse download(String invoiceId, Long orderCode, RequestOptions<Void> options) Description copied from interface:InvoicesServiceDownload an invoice in PDF format by order code.- Specified by:
downloadin interfaceInvoicesService- Parameters:
invoiceId- Invoice ID.orderCode- Order code.options- Additional options.- Returns:
- Invoice file.
-
download
Description copied from interface:InvoicesServiceDownload an invoice in PDF format by payment link ID.- Specified by:
downloadin interfaceInvoicesService- Parameters:
invoiceId- Invoice ID.paymentLinkId- Payment link ID.- Returns:
- Invoice file.
-
download
Description copied from interface:InvoicesServiceDownload an invoice in PDF format by order code.- Specified by:
downloadin interfaceInvoicesService- Parameters:
invoiceId- Invoice ID.orderCode- Order code.- Returns:
- Invoice file.
-