com.stripe.model
Class InvoiceItem
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.APIResource
com.stripe.model.InvoiceItem
- All Implemented Interfaces:
- MetadataStore<InvoiceItem>
public class InvoiceItem
- extends APIResource
- implements MetadataStore<InvoiceItem>
|
Method Summary |
static InvoiceItemCollection |
all(Map<String,Object> params)
|
static InvoiceItemCollection |
all(Map<String,Object> params,
String apiKey)
|
static InvoiceItem |
create(Map<String,Object> params)
|
static InvoiceItem |
create(Map<String,Object> params,
String apiKey)
|
DeletedInvoiceItem |
delete()
|
DeletedInvoiceItem |
delete(String apiKey)
|
Integer |
getAmount()
|
String |
getCurrency()
|
String |
getCustomer()
|
Long |
getDate()
|
String |
getDescription()
|
String |
getId()
|
String |
getInvoice()
|
Boolean |
getLivemode()
|
Map<String,String> |
getMetadata()
|
String |
getSubscription()
|
static InvoiceItem |
retrieve(String id)
|
static InvoiceItem |
retrieve(String id,
String apiKey)
|
void |
setAmount(Integer amount)
|
void |
setCurrency(String currency)
|
void |
setCustomer(String customer)
|
void |
setDate(Long date)
|
void |
setDescription(String description)
|
void |
setId(String id)
|
void |
setInvoice(String invoice)
|
void |
setLivemode(Boolean livemode)
|
void |
setMetadata(Map<String,String> metadata)
|
void |
setSubscription(String subscription)
|
InvoiceItem |
update(Map<String,Object> params)
|
InvoiceItem |
update(Map<String,Object> params,
String apiKey)
|
InvoiceItem
public InvoiceItem()
getAmount
public Integer getAmount()
setAmount
public void setAmount(Integer amount)
getId
public String getId()
setId
public void setId(String id)
getCurrency
public String getCurrency()
setCurrency
public void setCurrency(String currency)
getDescription
public String getDescription()
setDescription
public void setDescription(String description)
getDate
public Long getDate()
setDate
public void setDate(Long date)
getLivemode
public Boolean getLivemode()
setLivemode
public void setLivemode(Boolean livemode)
getCustomer
public String getCustomer()
setCustomer
public void setCustomer(String customer)
getInvoice
public String getInvoice()
setInvoice
public void setInvoice(String invoice)
getMetadata
public Map<String,String> getMetadata()
- Specified by:
getMetadata in interface MetadataStore<InvoiceItem>
setMetadata
public void setMetadata(Map<String,String> metadata)
- Specified by:
setMetadata in interface MetadataStore<InvoiceItem>
getSubscription
public String getSubscription()
setSubscription
public void setSubscription(String subscription)
create
public static InvoiceItem create(Map<String,Object> params)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
retrieve
public static InvoiceItem retrieve(String id)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
all
public static InvoiceItemCollection all(Map<String,Object> params)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
update
public InvoiceItem update(Map<String,Object> params)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Specified by:
update in interface MetadataStore<InvoiceItem>
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
delete
public DeletedInvoiceItem delete()
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
create
public static InvoiceItem create(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
retrieve
public static InvoiceItem retrieve(String id,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
all
public static InvoiceItemCollection all(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
update
public InvoiceItem update(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Specified by:
update in interface MetadataStore<InvoiceItem>
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
delete
public DeletedInvoiceItem delete(String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
Copyright © 2014 Stripe. All rights reserved.