public class Invoice extends APIResource implements MetadataStore<Invoice>, HasId
APIResource.RequestMethod, APIResource.RequestType
CHARSET, GSON
PRETTY_PRINT_GSON
Constructor and Description |
---|
Invoice() |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncode
equals, toString
public Integer getSubtotal()
public void setSubtotal(Integer subtotal)
public Integer getTotal()
public void setTotal(Integer total)
public Integer getAmountDue()
public void setAmountDue(Integer amountDue)
public Integer getStartingBalance()
public void setStartingBalance(Integer startingBalance)
public Integer getEndingBalance()
public void setEndingBalance(Integer endingBalance)
public void setId(String id)
public Long getCreated()
public void setCreated(Long created)
public Long getNextPaymentAttempt()
public void setNextPaymentAttempt(Long nextPaymentAttempt)
public Boolean getAttempted()
public void setAttempted(Boolean attempted)
public String getCharge()
public void setCharge(String charge)
public String getDescription()
public void setDescription(String description)
public Boolean getClosed()
public void setClosed(Boolean closed)
public String getCustomer()
public void setCustomer(String customer)
public Long getDate()
public void setDate(Long date)
public Boolean getPaid()
public void setPaid(Boolean paid)
public Boolean getForgiven()
public void setForgiven(Boolean forgiven)
public Long getPeriodStart()
public void setPeriodStart(Long periodStart)
public Long getPeriodEnd()
public void setPeriodEnd(Long periodEnd)
public Discount getDiscount()
public void setDiscount(Discount discount)
public InvoiceLineItemCollection getLines()
public Boolean getLivemode()
public void setLivemode(Boolean livemode)
public Integer getAttemptCount()
public void setAttemptCount(Integer attemptCount)
public String getCurrency()
public void setCurrency(String currency)
public String getSubscription()
public void setSubscription(String subscription)
public Long getApplicationFee()
public void setApplicationFee(Long applicationFee)
public String getStatementDescriptor()
public void setStatementDescriptor(String statementDescriptor)
public Integer getTax()
public void setTax(Integer tax)
public Double getTaxPercent()
public void setTaxPercent(Double taxPercent)
public String getReceiptNumber()
public void setReceiptNumber(String receiptNumber)
public static Invoice retrieve(String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice create(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice upcoming(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice pay() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice update(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Invoice>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
@Deprecated public static Invoice retrieve(String id, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Invoice create(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice create(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Invoice upcoming(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice upcoming(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static InvoiceCollection list(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static InvoiceCollection list(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static InvoiceCollection all(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static InvoiceCollection all(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static InvoiceCollection all(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Invoice update(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice update(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update
in interface MetadataStore<Invoice>
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
@Deprecated public Invoice pay(String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice pay(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Map<String,String> getMetadata()
getMetadata
in interface MetadataStore<Invoice>
Copyright © 2016 Stripe. All rights reserved.