Package com.stripe.service
Class InvoiceItemService
java.lang.Object
com.stripe.net.ApiService
com.stripe.service.InvoiceItemService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(InvoiceItemCreateParams params) Creates an item to be added to a draft invoice (up to 250 items per invoice).create
(InvoiceItemCreateParams params, RequestOptions options) Creates an item to be added to a draft invoice (up to 250 items per invoice).Deletes an invoice item, removing it from an invoice.delete
(String invoiceitem, RequestOptions options) Deletes an invoice item, removing it from an invoice.list()
Returns a list of your invoice items.list
(RequestOptions options) Returns a list of your invoice items.list
(InvoiceItemListParams params) Returns a list of your invoice items.list
(InvoiceItemListParams params, RequestOptions options) Returns a list of your invoice items.Retrieves the invoice item with the given ID.retrieve
(String invoiceitem, RequestOptions options) Retrieves the invoice item with the given ID.retrieve
(String invoiceitem, InvoiceItemRetrieveParams params) Retrieves the invoice item with the given ID.retrieve
(String invoiceitem, InvoiceItemRetrieveParams params, RequestOptions options) Retrieves the invoice item with the given ID.Updates the amount or description of an invoice item on an upcoming invoice.update
(String invoiceitem, RequestOptions options) Updates the amount or description of an invoice item on an upcoming invoice.update
(String invoiceitem, InvoiceItemUpdateParams params) Updates the amount or description of an invoice item on an upcoming invoice.update
(String invoiceitem, InvoiceItemUpdateParams params, RequestOptions options) Updates the amount or description of an invoice item on an upcoming invoice.Methods inherited from class com.stripe.net.ApiService
getResponseGetter, request, requestStream
-
Constructor Details
-
InvoiceItemService
-
-
Method Details
-
delete
Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.- Throws:
StripeException
-
delete
Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.- Throws:
StripeException
-
retrieve
public InvoiceItem retrieve(String invoiceitem, InvoiceItemRetrieveParams params) throws StripeException Retrieves the invoice item with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the invoice item with the given ID.- Throws:
StripeException
-
retrieve
Retrieves the invoice item with the given ID.- Throws:
StripeException
-
retrieve
public InvoiceItem retrieve(String invoiceitem, InvoiceItemRetrieveParams params, RequestOptions options) throws StripeException Retrieves the invoice item with the given ID.- Throws:
StripeException
-
update
public InvoiceItem update(String invoiceitem, InvoiceItemUpdateParams params) throws StripeException Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.- Throws:
StripeException
-
update
Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.- Throws:
StripeException
-
update
Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.- Throws:
StripeException
-
update
public InvoiceItem update(String invoiceitem, InvoiceItemUpdateParams params, RequestOptions options) throws StripeException Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.- Throws:
StripeException
-
list
Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.- Throws:
StripeException
-
list
Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.- Throws:
StripeException
-
list
Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.- Throws:
StripeException
-
list
public StripeCollection<InvoiceItem> list(InvoiceItemListParams params, RequestOptions options) throws StripeException Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.- Throws:
StripeException
-
create
Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.- Throws:
StripeException
-
create
public InvoiceItem create(InvoiceItemCreateParams params, RequestOptions options) throws StripeException Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.- Throws:
StripeException
-