public class Invoice extends APIResource implements MetadataStore<Invoice>, HasId
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Invoice() |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, requestCollection, setExpandableFieldID, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncodeequals, toJson, toStringpublic void setId(String id)
public String getObject()
public void setObject(String object)
public Long getAmountDue()
public void setAmountDue(Long amountDue)
public Long getApplicationFee()
public void setApplicationFee(Long applicationFee)
public Integer getAttemptCount()
public void setAttemptCount(Integer attemptCount)
public Boolean getAttempted()
public void setAttempted(Boolean attempted)
public String getBilling()
public void setBilling(String billing)
public String getCharge()
public void setCharge(String charge)
public Charge getChargeObject()
public void setChargeObject(Charge charge)
public Boolean getClosed()
public void setClosed(Boolean closed)
public Long getCreated()
public void setCreated(Long created)
public String getCurrency()
public void setCurrency(String currency)
public String getCustomer()
public void setCustomer(String customer)
public Long getDate()
public void setDate(Long date)
public String getDescription()
public void setDescription(String description)
public Discount getDiscount()
public void setDiscount(Discount discount)
public Long getDueDate()
public void setDueDate(Long dueDate)
public Long getEndingBalance()
public void setEndingBalance(Long endingBalance)
public Boolean getForgiven()
public void setForgiven(Boolean forgiven)
public InvoiceLineItemCollection getLines()
public Boolean getLivemode()
public void setLivemode(Boolean livemode)
public Map<String,String> getMetadata()
getMetadata in interface MetadataStore<Invoice>public Long getNextPaymentAttempt()
public void setNextPaymentAttempt(Long nextPaymentAttempt)
public String getNumber()
public void setNumber(String number)
public Boolean getPaid()
public void setPaid(Boolean paid)
public Long getPeriodEnd()
public void setPeriodEnd(Long periodEnd)
public Long getPeriodStart()
public void setPeriodStart(Long periodStart)
public String getReceiptNumber()
public void setReceiptNumber(String receiptNumber)
public Long getStartingBalance()
public void setStartingBalance(Long startingBalance)
public String getStatementDescriptor()
public void setStatementDescriptor(String statementDescriptor)
public String getSubscription()
public void setSubscription(String subscription)
public Long getSubscriptionProrationDate()
public void setSubscriptionProrationDate(Long subscriptionProrationDate)
public Long getSubtotal()
public void setSubtotal(Long subtotal)
public Long getTax()
public void setTax(Long tax)
public Double getTaxPercent()
public void setTaxPercent(Double taxPercent)
public Long getTotal()
public void setTotal(Long total)
public Long getWebhooksDeliveredAt()
public void setWebhooksDeliveredAt(Long webhooksDeliveredAt)
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>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@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>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@Deprecated public Invoice pay(String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice pay(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
Copyright © 2017 Stripe. All rights reserved.