Package com.stripe.model
Class InvoiceItem
- java.lang.Object
-
- com.stripe.model.StripeObject
-
- com.stripe.net.ApiResource
-
- com.stripe.model.InvoiceItem
-
- All Implemented Interfaces:
HasId
,MetadataStore<InvoiceItem>
public class InvoiceItem extends ApiResource implements MetadataStore<InvoiceItem>, HasId
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod, ApiResource.RequestType
-
-
Field Summary
-
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description InvoiceItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
static InvoiceItem
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create an invoice item.static InvoiceItem
create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Create an invoice item.InvoiceItem
delete()
Delete an invoice item.InvoiceItem
delete(RequestOptions options)
Delete an invoice item.boolean
equals(java.lang.Object o)
java.lang.Long
getAmount()
java.lang.String
getCurrency()
java.lang.String
getCustomer()
Customer
getCustomerObject()
java.lang.Long
getDate()
java.lang.Boolean
getDeleted()
java.lang.String
getDescription()
java.lang.Boolean
getDiscountable()
java.lang.String
getId()
java.lang.String
getInvoice()
Invoice
getInvoiceObject()
java.lang.Boolean
getLivemode()
java.util.Map<java.lang.String,java.lang.String>
getMetadata()
java.lang.String
getObject()
InvoiceLineItemPeriod
getPeriod()
Plan
getPlan()
java.lang.Boolean
getProration()
java.lang.Long
getQuantity()
java.lang.String
getSubscription()
java.lang.String
getSubscriptionItem()
Subscription
getSubscriptionObject()
java.lang.Long
getUnitAmount()
int
hashCode()
static InvoiceItemCollection
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all invoice items.static InvoiceItemCollection
list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
List all invoice items.static InvoiceItem
retrieve(java.lang.String id)
Retrieve an invoice item.static InvoiceItem
retrieve(java.lang.String id, RequestOptions options)
Retrieve an invoice item.static InvoiceItem
retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Retrieve an invoice item.void
setAmount(java.lang.Long amount)
void
setCurrency(java.lang.String currency)
void
setCustomer(java.lang.String customerId)
void
setCustomerObject(Customer c)
void
setDate(java.lang.Long date)
void
setDeleted(java.lang.Boolean deleted)
void
setDescription(java.lang.String description)
void
setDiscountable(java.lang.Boolean discountable)
void
setId(java.lang.String id)
void
setInvoice(java.lang.String invoiceId)
void
setInvoiceObject(Invoice invoice)
void
setLivemode(java.lang.Boolean livemode)
void
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
void
setObject(java.lang.String object)
void
setPeriod(InvoiceLineItemPeriod period)
void
setPlan(Plan plan)
void
setProration(java.lang.Boolean proration)
void
setQuantity(java.lang.Long quantity)
void
setSubscription(java.lang.String subscriptionId)
void
setSubscriptionItem(java.lang.String subscriptionItem)
void
setSubscriptionObject(Subscription subscription)
void
setUnitAmount(java.lang.Long unitAmount)
InvoiceItem
update(java.util.Map<java.lang.String,java.lang.Object> params)
Update an invoice item.InvoiceItem
update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options)
Update an invoice item.-
Methods inherited from class com.stripe.net.ApiResource
classUrl, classUrl, instanceUrl, instanceUrl, multipartRequest, request, requestCollection, setExpandableFieldId, setStripeResponseGetter, singleClassUrl, singleClassUrl, subresourceUrl, urlEncode
-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getCustomer
public java.lang.String getCustomer()
-
setCustomer
public void setCustomer(java.lang.String customerId)
-
getCustomerObject
public Customer getCustomerObject()
-
setCustomerObject
public void setCustomerObject(Customer c)
-
getInvoice
public java.lang.String getInvoice()
-
setInvoice
public void setInvoice(java.lang.String invoiceId)
-
getInvoiceObject
public Invoice getInvoiceObject()
-
setInvoiceObject
public void setInvoiceObject(Invoice invoice)
-
getSubscription
public java.lang.String getSubscription()
-
setSubscription
public void setSubscription(java.lang.String subscriptionId)
-
getSubscriptionObject
public Subscription getSubscriptionObject()
-
setSubscriptionObject
public void setSubscriptionObject(Subscription subscription)
-
create
public static InvoiceItem create(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Create an invoice item.- Throws:
StripeException
-
create
public static InvoiceItem create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Create an invoice item.- Throws:
StripeException
-
delete
public InvoiceItem delete() throws StripeException
Delete an invoice item.- Throws:
StripeException
-
delete
public InvoiceItem delete(RequestOptions options) throws StripeException
Delete an invoice item.- Throws:
StripeException
-
list
public static InvoiceItemCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
List all invoice items.- Throws:
StripeException
-
list
public static InvoiceItemCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
List all invoice items.- Throws:
StripeException
-
retrieve
public static InvoiceItem retrieve(java.lang.String id) throws StripeException
Retrieve an invoice item.- Throws:
StripeException
-
retrieve
public static InvoiceItem retrieve(java.lang.String id, RequestOptions options) throws StripeException
Retrieve an invoice item.- Throws:
StripeException
-
retrieve
public static InvoiceItem retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Retrieve an invoice item.- Throws:
StripeException
-
update
public InvoiceItem update(java.util.Map<java.lang.String,java.lang.Object> params) throws StripeException
Update an invoice item.- Specified by:
update
in interfaceMetadataStore<InvoiceItem>
- Throws:
StripeException
-
update
public InvoiceItem update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws StripeException
Update an invoice item.- Specified by:
update
in interfaceMetadataStore<InvoiceItem>
- Throws:
StripeException
-
getObject
public java.lang.String getObject()
-
getAmount
public java.lang.Long getAmount()
-
getCurrency
public java.lang.String getCurrency()
-
getDate
public java.lang.Long getDate()
-
getDescription
public java.lang.String getDescription()
-
getDiscountable
public java.lang.Boolean getDiscountable()
-
getLivemode
public java.lang.Boolean getLivemode()
-
getPeriod
public InvoiceLineItemPeriod getPeriod()
-
getPlan
public Plan getPlan()
-
getProration
public java.lang.Boolean getProration()
-
getQuantity
public java.lang.Long getQuantity()
-
getSubscriptionItem
public java.lang.String getSubscriptionItem()
-
getUnitAmount
public java.lang.Long getUnitAmount()
-
getDeleted
public java.lang.Boolean getDeleted()
-
setId
public void setId(java.lang.String id)
-
setObject
public void setObject(java.lang.String object)
-
setAmount
public void setAmount(java.lang.Long amount)
-
setCurrency
public void setCurrency(java.lang.String currency)
-
setDate
public void setDate(java.lang.Long date)
-
setDescription
public void setDescription(java.lang.String description)
-
setDiscountable
public void setDiscountable(java.lang.Boolean discountable)
-
setLivemode
public void setLivemode(java.lang.Boolean livemode)
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
-
setPeriod
public void setPeriod(InvoiceLineItemPeriod period)
-
setPlan
public void setPlan(Plan plan)
-
setProration
public void setProration(java.lang.Boolean proration)
-
setQuantity
public void setQuantity(java.lang.Long quantity)
-
setSubscriptionItem
public void setSubscriptionItem(java.lang.String subscriptionItem)
-
setUnitAmount
public void setUnitAmount(java.lang.Long unitAmount)
-
setDeleted
public void setDeleted(java.lang.Boolean deleted)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getMetadata
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
- Specified by:
getMetadata
in interfaceMetadataStore<InvoiceItem>
-
-