public class InvoiceItem extends ApiResource implements HasId, MetadataStore<InvoiceItem>
ApiResource.RequestMethod, ApiResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
InvoiceItem() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
canEqual(java.lang.Object other) |
static InvoiceItem |
create(InvoiceItemCreateParams params)
Creates an item to be added to a draft invoice.
|
static InvoiceItem |
create(InvoiceItemCreateParams params,
RequestOptions options)
Creates an item to be added to a draft invoice.
|
static InvoiceItem |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Creates an item to be added to a draft invoice.
|
static InvoiceItem |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Creates an item to be added to a draft invoice.
|
InvoiceItem |
delete()
Deletes an invoice item, removing it from an invoice.
|
InvoiceItem |
delete(java.util.Map<java.lang.String,java.lang.Object> params)
Deletes an invoice item, removing it from an invoice.
|
InvoiceItem |
delete(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Deletes an invoice item, removing it from an invoice.
|
InvoiceItem |
delete(RequestOptions options)
Deletes an invoice item, removing it from an invoice.
|
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmount()
Amount (in the `currency` specified) of the invoice item.
|
java.lang.String |
getCurrency()
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
java.lang.String |
getCustomer()
Get id of expandable `customer` object.
|
Customer |
getCustomerObject()
Get expanded `customer`.
|
java.lang.Long |
getDate() |
java.lang.Boolean |
getDeleted()
Always true for a deleted object.
|
java.lang.String |
getDescription()
An arbitrary string attached to the object.
|
java.lang.Boolean |
getDiscountable()
If true, discounts will apply to this invoice item.
|
java.lang.String |
getId()
Unique identifier for the object.
|
java.lang.String |
getInvoice()
Get id of expandable `invoice` object.
|
Invoice |
getInvoiceObject()
Get expanded `invoice`.
|
java.lang.Boolean |
getLivemode()
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.String |
getObject()
String representing the object's type.
|
InvoiceLineItemPeriod |
getPeriod() |
Plan |
getPlan()
If the invoice item is a proration, the plan of the subscription that the proration was
computed for.
|
java.lang.Boolean |
getProration()
Whether the invoice item was created automatically as a proration adjustment when the customer
switched plans.
|
java.lang.Long |
getQuantity()
Quantity of units for the invoice item.
|
java.lang.String |
getSubscription()
Get id of expandable `subscription` object.
|
java.lang.String |
getSubscriptionItem() |
Subscription |
getSubscriptionObject()
Get expanded `subscription`.
|
java.util.List<TaxRate> |
getTaxRates()
The tax rates which apply to the invoice item.
|
java.lang.Boolean |
getUnifiedProration()
For prorations this indicates whether Stripe automatically grouped multiple related debit and
credit line items into a single combined line item.
|
java.lang.Long |
getUnitAmount()
Unit Amount (in the `currency` specified) of the invoice item.
|
int |
hashCode() |
static InvoiceItemCollection |
list(InvoiceItemListParams params)
Returns a list of your invoice items.
|
static InvoiceItemCollection |
list(InvoiceItemListParams params,
RequestOptions options)
Returns a list of your invoice items.
|
static InvoiceItemCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
Returns a list of your invoice items.
|
static InvoiceItemCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Returns a list of your invoice items.
|
static InvoiceItem |
retrieve(java.lang.String invoiceitem)
Retrieves the invoice item with the given ID.
|
static InvoiceItem |
retrieve(java.lang.String invoiceitem,
InvoiceItemRetrieveParams params,
RequestOptions options)
Retrieves the invoice item with the given ID.
|
static InvoiceItem |
retrieve(java.lang.String invoiceitem,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieves the invoice item with the given ID.
|
static InvoiceItem |
retrieve(java.lang.String invoiceitem,
RequestOptions options)
Retrieves the invoice item with the given ID.
|
void |
setAmount(java.lang.Long amount)
Amount (in the `currency` specified) of the invoice item.
|
void |
setCurrency(java.lang.String currency)
Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in
lowercase.
|
void |
setCustomer(java.lang.String id) |
void |
setCustomerObject(Customer expandableObject) |
void |
setDate(java.lang.Long date) |
void |
setDeleted(java.lang.Boolean deleted)
Always true for a deleted object.
|
void |
setDescription(java.lang.String description)
An arbitrary string attached to the object.
|
void |
setDiscountable(java.lang.Boolean discountable)
If true, discounts will apply to this invoice item.
|
void |
setId(java.lang.String id)
Unique identifier for the object.
|
void |
setInvoice(java.lang.String id) |
void |
setInvoiceObject(Invoice expandableObject) |
void |
setLivemode(java.lang.Boolean livemode)
Has the value `true` if the object exists in live mode or the value `false` if the object
exists in test mode.
|
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can attach to an object.
|
void |
setObject(java.lang.String object)
String representing the object's type.
|
void |
setPeriod(InvoiceLineItemPeriod period) |
void |
setPlan(Plan plan)
If the invoice item is a proration, the plan of the subscription that the proration was
computed for.
|
void |
setProration(java.lang.Boolean proration)
Whether the invoice item was created automatically as a proration adjustment when the customer
switched plans.
|
void |
setQuantity(java.lang.Long quantity)
Quantity of units for the invoice item.
|
void |
setSubscription(java.lang.String id) |
void |
setSubscriptionItem(java.lang.String subscriptionItem) |
void |
setSubscriptionObject(Subscription expandableObject) |
void |
setTaxRates(java.util.List<TaxRate> taxRates)
The tax rates which apply to the invoice item.
|
void |
setUnifiedProration(java.lang.Boolean unifiedProration)
For prorations this indicates whether Stripe automatically grouped multiple related debit and
credit line items into a single combined line item.
|
void |
setUnitAmount(java.lang.Long unitAmount)
Unit Amount (in the `currency` specified) of the invoice item.
|
InvoiceItem |
update(InvoiceItemUpdateParams params)
Updates the amount or description of an invoice item on an upcoming invoice.
|
InvoiceItem |
update(InvoiceItemUpdateParams params,
RequestOptions options)
Updates the amount or description of an invoice item on an upcoming invoice.
|
InvoiceItem |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Updates the amount or description of an invoice item on an upcoming invoice.
|
InvoiceItem |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Updates the amount or description of an invoice item on an upcoming invoice.
|
checkNullTypedParams, classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, request, requestCollection, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode, urlEncodeId
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
public java.lang.String getCustomer()
public void setCustomer(java.lang.String id)
public Customer getCustomerObject()
public void setCustomerObject(Customer expandableObject)
public java.lang.String getInvoice()
public void setInvoice(java.lang.String id)
public Invoice getInvoiceObject()
public void setInvoiceObject(Invoice expandableObject)
public java.lang.String getSubscription()
public void setSubscription(java.lang.String id)
public Subscription getSubscriptionObject()
public void setSubscriptionObject(Subscription expandableObject)
public static InvoiceItemCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static InvoiceItemCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static InvoiceItemCollection list(InvoiceItemListParams params) throws StripeException
StripeException
public static InvoiceItemCollection list(InvoiceItemListParams params, RequestOptions options) throws StripeException
StripeException
public static InvoiceItem create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public static InvoiceItem create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static InvoiceItem create(InvoiceItemCreateParams params) throws StripeException
StripeException
public static InvoiceItem create(InvoiceItemCreateParams params, RequestOptions options) throws StripeException
StripeException
public static InvoiceItem retrieve(java.lang.String invoiceitem) throws StripeException
StripeException
public static InvoiceItem retrieve(java.lang.String invoiceitem, RequestOptions options) throws StripeException
StripeException
public static InvoiceItem retrieve(java.lang.String invoiceitem, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public static InvoiceItem retrieve(java.lang.String invoiceitem, InvoiceItemRetrieveParams params, RequestOptions options) throws StripeException
StripeException
public InvoiceItem update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
update
in interface MetadataStore<InvoiceItem>
StripeException
public InvoiceItem update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
update
in interface MetadataStore<InvoiceItem>
StripeException
public InvoiceItem update(InvoiceItemUpdateParams params) throws StripeException
StripeException
public InvoiceItem update(InvoiceItemUpdateParams params, RequestOptions options) throws StripeException
StripeException
public InvoiceItem delete() throws StripeException
StripeException
public InvoiceItem delete(RequestOptions options) throws StripeException
StripeException
public InvoiceItem delete(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
StripeException
public InvoiceItem delete(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
StripeException
public java.lang.Long getAmount()
public java.lang.String getCurrency()
public java.lang.Long getDate()
public java.lang.Boolean getDeleted()
public java.lang.String getDescription()
public java.lang.Boolean getDiscountable()
public java.lang.Boolean getLivemode()
public java.lang.String getObject()
public InvoiceLineItemPeriod getPeriod()
public Plan getPlan()
public java.lang.Boolean getProration()
public java.lang.Long getQuantity()
public java.lang.String getSubscriptionItem()
public java.util.List<TaxRate> getTaxRates()
public java.lang.Boolean getUnifiedProration()
public java.lang.Long getUnitAmount()
public void setAmount(java.lang.Long amount)
public void setCurrency(java.lang.String currency)
public void setDate(java.lang.Long date)
public void setDeleted(java.lang.Boolean deleted)
public void setDescription(java.lang.String description)
public void setDiscountable(java.lang.Boolean discountable)
public void setId(java.lang.String id)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setObject(java.lang.String object)
public void setPeriod(InvoiceLineItemPeriod period)
public void setPlan(Plan plan)
public void setProration(java.lang.Boolean proration)
public void setQuantity(java.lang.Long quantity)
public void setSubscriptionItem(java.lang.String subscriptionItem)
public void setTaxRates(java.util.List<TaxRate> taxRates)
public void setUnifiedProration(java.lang.Boolean unifiedProration)
public void setUnitAmount(java.lang.Long unitAmount)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
protected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<InvoiceItem>