HasId
, MetadataStore<InvoiceItem>
public class InvoiceItem extends APIResource implements MetadataStore<InvoiceItem>, HasId
APIResource.RequestMethod, APIResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor | Description |
---|---|
InvoiceItem() |
Modifier and Type | Method | Description |
---|---|---|
static InvoiceItemCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params) |
Deprecated.
Use the
list(Map) method instead.
This method will be removed in the next major version. |
static InvoiceItemCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options) |
Deprecated.
Use the
list(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
static InvoiceItemCollection |
all(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey) |
Deprecated.
Use the
list(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
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.
|
static InvoiceItem |
create(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey) |
Deprecated.
Use the
create(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
DeletedInvoiceItem |
delete() |
Delete an invoice item.
|
DeletedInvoiceItem |
delete(RequestOptions options) |
Delete an invoice item.
|
DeletedInvoiceItem |
delete(java.lang.String apiKey) |
Deprecated.
Use the
delete(RequestOptions) method instead.
This method will be removed in the next major version. |
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.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.Integer |
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.lang.String apiKey) |
Deprecated.
Use the
retrieve(String, RequestOptions) method instead.
This method will be removed in the next major version. |
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 |
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.Integer 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.
|
InvoiceItem |
update(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey) |
Deprecated.
Use the
update(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, subresourceURL, urlEncode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equals, getLastResponse, setLastResponse, toJson, toString
public java.lang.String getCustomer()
public void setCustomer(java.lang.String customerID)
public Customer getCustomerObject()
public void setCustomerObject(Customer c)
public java.lang.String getInvoice()
public void setInvoice(java.lang.String invoiceID)
public Invoice getInvoiceObject()
public void setInvoiceObject(Invoice invoice)
public java.lang.String getSubscription()
public void setSubscription(java.lang.String subscriptionID)
public Subscription getSubscriptionObject()
public void setSubscriptionObject(Subscription subscription)
@Deprecated public static InvoiceItemCollection all(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map)
method instead.
This method will be removed in the next major version.@Deprecated public static InvoiceItemCollection all(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions)
method instead.
This method will be removed in the next major version.@Deprecated public static InvoiceItemCollection all(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
list(Map, RequestOptions)
method instead.
This method will be removed in the next major version.public static InvoiceItem create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static InvoiceItem create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static InvoiceItem create(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
create(Map, RequestOptions)
method instead.
This method will be removed in the next major version.public DeletedInvoiceItem delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedInvoiceItem delete(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public DeletedInvoiceItem delete(java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
delete(RequestOptions)
method instead.
This method will be removed in the next major version.public static InvoiceItemCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static InvoiceItemCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static InvoiceItem retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static InvoiceItem retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static InvoiceItem retrieve(java.lang.String id, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
retrieve(String, RequestOptions)
method instead.
This method will be removed in the next major version.public static InvoiceItem retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public InvoiceItem update(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<InvoiceItem>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
public InvoiceItem update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<InvoiceItem>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
@Deprecated public InvoiceItem update(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update(Map, RequestOptions)
method instead.
This method will be removed in the next major version.public java.lang.String getObject()
public java.lang.Long getAmount()
public java.lang.String getCurrency()
public java.lang.Long getDate()
public java.lang.String getDescription()
public java.lang.Boolean getDiscountable()
public java.lang.Boolean getLivemode()
public InvoiceLineItemPeriod getPeriod()
public Plan getPlan()
public java.lang.Boolean getProration()
public java.lang.Integer getQuantity()
public java.lang.String getSubscriptionItem()
public java.lang.Long getUnitAmount()
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setAmount(java.lang.Long amount)
public void setCurrency(java.lang.String currency)
public void setDate(java.lang.Long date)
public void setDescription(java.lang.String description)
public void setDiscountable(java.lang.Boolean discountable)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setPeriod(InvoiceLineItemPeriod period)
public void setPlan(Plan plan)
public void setProration(java.lang.Boolean proration)
public void setQuantity(java.lang.Integer quantity)
public void setSubscriptionItem(java.lang.String subscriptionItem)
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.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata
in interface MetadataStore<InvoiceItem>