Package com.chargebee.v4.services
Class CreditNoteService
java.lang.Object
com.chargebee.v4.services.BaseService<CreditNoteService>
com.chargebee.v4.services.CreditNoteService
-
Field Summary
Fields inherited from class com.chargebee.v4.services.BaseService
client, options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(CreditNoteCreateParams params) createAsync(CreditNoteCreateParams params) Async variant of create for creditNote with params.creditNotesForCustomer(String customerId) creditNotesForCustomer(String customerId, CreditNotesForCustomerParams params) creditNotesForCustomerAsync(String customerId) Async variant of creditNotesForCustomer for creditNote without params.creditNotesForCustomerAsync(String customerId, CreditNotesForCustomerParams params) Async variant of creditNotesForCustomer for creditNote with params.delete(String creditNoteId, CreditNoteDeleteParams params) deleteAsync(String creditNoteId) Async variant of delete for creditNote without params.deleteAsync(String creditNoteId, CreditNoteDeleteParams params) Async variant of delete for creditNote with params.downloadEinvoice(String creditNoteId) downloadEinvoiceAsync(String creditNoteId) Async variant of downloadEinvoice for creditNote without params.Async variant of importCreditNote for creditNote with params.list()list(CreditNoteListParams params) Async variant of list for creditNote without params.listAsync(CreditNoteListParams params) Async variant of list for creditNote with params.pdf(String creditNoteId, CreditNotePdfParams params) Async variant of pdf for creditNote without params.pdfAsync(String creditNoteId, CreditNotePdfParams params) Async variant of pdf for creditNote with params.recordRefund(String creditNoteId) recordRefund(String creditNoteId, CreditNoteRecordRefundParams params) recordRefundAsync(String creditNoteId) Async variant of recordRefund for creditNote without params.recordRefundAsync(String creditNoteId, CreditNoteRecordRefundParams params) Async variant of recordRefund for creditNote with params.refund(String creditNoteId, CreditNoteRefundParams params) refundAsync(String creditNoteId) Async variant of refund for creditNote without params.refundAsync(String creditNoteId, CreditNoteRefundParams params) Async variant of refund for creditNote with params.removeTaxWithheldRefund(String creditNoteId) removeTaxWithheldRefund(String creditNoteId, CreditNoteRemoveTaxWithheldRefundParams params) removeTaxWithheldRefundAsync(String creditNoteId) Async variant of removeTaxWithheldRefund for creditNote without params.removeTaxWithheldRefundAsync(String creditNoteId, CreditNoteRemoveTaxWithheldRefundParams params) Async variant of removeTaxWithheldRefund for creditNote with params.resendEinvoice(String creditNoteId) resendEinvoiceAsync(String creditNoteId) Async variant of resendEinvoice for creditNote without params.retrieve(String creditNoteId, CreditNoteRetrieveParams params) retrieveAsync(String creditNoteId) Async variant of retrieve for creditNote without params.retrieveAsync(String creditNoteId, CreditNoteRetrieveParams params) Async variant of retrieve for creditNote with params.sendEinvoice(String creditNoteId) sendEinvoiceAsync(String creditNoteId) Async variant of sendEinvoice for creditNote without params.voidCreditNote(String creditNoteId) voidCreditNote(String creditNoteId, VoidCreditNoteParams params) voidCreditNoteAsync(String creditNoteId) Async variant of voidCreditNote for creditNote without params.voidCreditNoteAsync(String creditNoteId, VoidCreditNoteParams params) Async variant of voidCreditNote for creditNote with params.withOptions(RequestOptions options) Apply per-request options for this service instance.Methods inherited from class com.chargebee.v4.services.BaseService
buildPathWithParams, clientForBuilders, clientWithOptions, get, getAsync, getMergedHeaders, getWithSubDomain, getWithSubDomainAsync, header, headers, options, parseResponse, post, postAsync, postJson, postJsonAsync, postJsonWithSubDomain, postJsonWithSubDomainAsync, postWithSubDomain, postWithSubDomainAsync
-
Constructor Details
-
CreditNoteService
-
-
Method Details
-
withOptions
Apply per-request options for this service instance. Users can chain .withOptions or .options to set headers and other options.- Overrides:
withOptionsin classBaseService<CreditNoteService>
-
recordRefund
public CreditNoteRecordRefundResponse recordRefund(String creditNoteId, CreditNoteRecordRefundParams params) throws ChargebeeException - Throws:
ChargebeeException
-
recordRefundAsync
public CompletableFuture<CreditNoteRecordRefundResponse> recordRefundAsync(String creditNoteId, CreditNoteRecordRefundParams params) Async variant of recordRefund for creditNote with params. -
recordRefund
- Throws:
ChargebeeException
-
recordRefundAsync
Async variant of recordRefund for creditNote without params. -
importCreditNote
public ImportCreditNoteResponse importCreditNote(ImportCreditNoteParams params) throws ChargebeeException - Throws:
ChargebeeException
-
importCreditNoteAsync
public CompletableFuture<ImportCreditNoteResponse> importCreditNoteAsync(ImportCreditNoteParams params) Async variant of importCreditNote for creditNote with params. -
delete
public CreditNoteDeleteResponse delete(String creditNoteId, CreditNoteDeleteParams params) throws ChargebeeException - Throws:
ChargebeeException
-
deleteAsync
public CompletableFuture<CreditNoteDeleteResponse> deleteAsync(String creditNoteId, CreditNoteDeleteParams params) Async variant of delete for creditNote with params. -
delete
- Throws:
ChargebeeException
-
deleteAsync
Async variant of delete for creditNote without params. -
creditNotesForCustomer
public CreditNotesForCustomerResponse creditNotesForCustomer(String customerId, CreditNotesForCustomerParams params) throws ChargebeeException - Throws:
ChargebeeException
-
creditNotesForCustomer
public CreditNotesForCustomerResponse creditNotesForCustomer(String customerId) throws ChargebeeException - Throws:
ChargebeeException
-
creditNotesForCustomerAsync
public CompletableFuture<CreditNotesForCustomerResponse> creditNotesForCustomerAsync(String customerId, CreditNotesForCustomerParams params) Async variant of creditNotesForCustomer for creditNote with params. -
creditNotesForCustomerAsync
public CompletableFuture<CreditNotesForCustomerResponse> creditNotesForCustomerAsync(String customerId) Async variant of creditNotesForCustomer for creditNote without params. -
pdf
public CreditNotePdfResponse pdf(String creditNoteId, CreditNotePdfParams params) throws ChargebeeException - Throws:
ChargebeeException
-
pdfAsync
public CompletableFuture<CreditNotePdfResponse> pdfAsync(String creditNoteId, CreditNotePdfParams params) Async variant of pdf for creditNote with params. -
pdf
- Throws:
ChargebeeException
-
pdfAsync
Async variant of pdf for creditNote without params. -
sendEinvoice
- Throws:
ChargebeeException
-
sendEinvoiceAsync
Async variant of sendEinvoice for creditNote without params. -
voidCreditNote
public VoidCreditNoteResponse voidCreditNote(String creditNoteId, VoidCreditNoteParams params) throws ChargebeeException - Throws:
ChargebeeException
-
voidCreditNoteAsync
public CompletableFuture<VoidCreditNoteResponse> voidCreditNoteAsync(String creditNoteId, VoidCreditNoteParams params) Async variant of voidCreditNote for creditNote with params. -
voidCreditNote
- Throws:
ChargebeeException
-
voidCreditNoteAsync
Async variant of voidCreditNote for creditNote without params. -
refund
public CreditNoteRefundResponse refund(String creditNoteId, CreditNoteRefundParams params) throws ChargebeeException - Throws:
ChargebeeException
-
refundAsync
public CompletableFuture<CreditNoteRefundResponse> refundAsync(String creditNoteId, CreditNoteRefundParams params) Async variant of refund for creditNote with params. -
refund
- Throws:
ChargebeeException
-
refundAsync
Async variant of refund for creditNote without params. -
list
- Throws:
ChargebeeException
-
listAsync
Async variant of list for creditNote with params. -
list
- Throws:
ChargebeeException
-
listAsync
Async variant of list for creditNote without params. -
create
- Throws:
ChargebeeException
-
createAsync
Async variant of create for creditNote with params. -
downloadEinvoice
public CreditNoteDownloadEinvoiceResponse downloadEinvoice(String creditNoteId) throws ChargebeeException - Throws:
ChargebeeException
-
downloadEinvoiceAsync
public CompletableFuture<CreditNoteDownloadEinvoiceResponse> downloadEinvoiceAsync(String creditNoteId) Async variant of downloadEinvoice for creditNote without params. -
resendEinvoice
public CreditNoteResendEinvoiceResponse resendEinvoice(String creditNoteId) throws ChargebeeException - Throws:
ChargebeeException
-
resendEinvoiceAsync
Async variant of resendEinvoice for creditNote without params. -
removeTaxWithheldRefund
public CreditNoteRemoveTaxWithheldRefundResponse removeTaxWithheldRefund(String creditNoteId, CreditNoteRemoveTaxWithheldRefundParams params) throws ChargebeeException - Throws:
ChargebeeException
-
removeTaxWithheldRefundAsync
public CompletableFuture<CreditNoteRemoveTaxWithheldRefundResponse> removeTaxWithheldRefundAsync(String creditNoteId, CreditNoteRemoveTaxWithheldRefundParams params) Async variant of removeTaxWithheldRefund for creditNote with params. -
removeTaxWithheldRefund
public CreditNoteRemoveTaxWithheldRefundResponse removeTaxWithheldRefund(String creditNoteId) throws ChargebeeException - Throws:
ChargebeeException
-
removeTaxWithheldRefundAsync
public CompletableFuture<CreditNoteRemoveTaxWithheldRefundResponse> removeTaxWithheldRefundAsync(String creditNoteId) Async variant of removeTaxWithheldRefund for creditNote without params. -
retrieve
public CreditNoteRetrieveResponse retrieve(String creditNoteId, CreditNoteRetrieveParams params) throws ChargebeeException - Throws:
ChargebeeException
-
retrieveAsync
public CompletableFuture<CreditNoteRetrieveResponse> retrieveAsync(String creditNoteId, CreditNoteRetrieveParams params) Async variant of retrieve for creditNote with params. -
retrieve
- Throws:
ChargebeeException
-
retrieveAsync
Async variant of retrieve for creditNote without params.
-