public class Invoices extends AbstractApi
clientpublic Invoices(Client client)
public InvoiceResponse createInvoice(CreateInvoiceRequest request)
public InvoiceResponse getInvoice(String invoiceId)
invoiceId - the id of the invoice to retrievepublic InvoiceResponse updateInvoice(String invoiceId, UpdateInvoiceRequest request)
invoiceId - the id of the invoice to updatepublic InvoiceResponse payInvoice(String invoiceId)
invoiceId - the id of the invoice to paypublic ListInvoicesResponse listInvoices(ListInvoicesRequest request)
public ListLineItemsResponse listInvoiceLineItems(String invoiceId, ListInvoiceLineItemsRequest request)
invoiceId - the id of the invoice for which to retrieve line itemspublic InvoiceResponse getUpcomingInvoice(String customerId)
customerId - the id of the customer for which to retrieve the upcoming invoicepublic InvoiceResponse getUpcomingInvoice(String customerId, String subscriptionId)
customerId - the id of the customer for which to retrieve the upcoming invoicesubscriptionId - the id of the subscription for which to retrieve the customer's upcoming invoiceprotected String buildUrl()
Copyright © 2014. All rights reserved.