public class Invoice extends APIResource implements MetadataStore<Invoice>, HasId
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Invoice() |
| Modifier and Type | Method and Description |
|---|---|
static InvoiceCollection |
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 InvoiceCollection |
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 InvoiceCollection |
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 Invoice |
create(java.util.Map<java.lang.String,java.lang.Object> params)
Create an invoice.
|
static Invoice |
create(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Create an invoice.
|
static Invoice |
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. |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
getAmountDue() |
java.lang.Long |
getAmountPaid() |
java.lang.Long |
getAmountRemaining() |
java.lang.Long |
getApplicationFee() |
java.lang.Integer |
getAttemptCount() |
java.lang.Boolean |
getAttempted() |
java.lang.String |
getBilling() |
java.lang.String |
getBillingReason() |
java.lang.String |
getCharge() |
Charge |
getChargeObject() |
java.lang.Boolean |
getClosed() |
java.lang.Long |
getCreated() |
java.lang.String |
getCurrency() |
java.lang.String |
getCustomer() |
java.lang.Long |
getDate() |
java.lang.String |
getDescription() |
Discount |
getDiscount() |
java.lang.Long |
getDueDate() |
java.lang.Long |
getEndingBalance() |
java.lang.Boolean |
getForgiven() |
java.lang.String |
getHostedInvoiceURL() |
java.lang.String |
getId() |
java.lang.String |
getInvoicePDF() |
InvoiceLineItemCollection |
getLines() |
java.lang.Boolean |
getLivemode() |
java.util.Map<java.lang.String,java.lang.String> |
getMetadata() |
java.lang.Long |
getNextPaymentAttempt() |
java.lang.String |
getNumber() |
java.lang.String |
getObject() |
java.lang.Boolean |
getPaid() |
java.lang.Long |
getPeriodEnd() |
java.lang.Long |
getPeriodStart() |
java.lang.String |
getReceiptNumber() |
java.lang.Long |
getStartingBalance() |
java.lang.String |
getStatementDescriptor() |
java.lang.String |
getSubscription() |
Subscription |
getSubscriptionObject() |
java.lang.Long |
getSubscriptionProrationDate() |
java.lang.Long |
getSubtotal() |
java.lang.Long |
getTax() |
java.lang.Double |
getTaxPercent() |
java.lang.Long |
getTotal() |
java.lang.Long |
getWebhooksDeliveredAt() |
int |
hashCode() |
static InvoiceCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params)
List all invoices.
|
static InvoiceCollection |
list(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
List all invoices.
|
Invoice |
pay()
Pay an invoice.
|
Invoice |
pay(java.util.Map<java.lang.String,java.lang.Object> params)
Pay an invoice.
|
Invoice |
pay(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Pay an invoice.
|
Invoice |
pay(RequestOptions options)
Pay an invoice.
|
Invoice |
pay(java.lang.String apiKey)
Deprecated.
Use the
pay(RequestOptions) method instead.
This method will be removed in the next major version. |
static Invoice |
retrieve(java.lang.String id)
Retrieve an invoice.
|
static Invoice |
retrieve(java.lang.String id,
java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieve an invoice.
|
static Invoice |
retrieve(java.lang.String id,
RequestOptions options)
Retrieve an invoice.
|
static Invoice |
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. |
void |
setAmountDue(java.lang.Long amountDue) |
void |
setAmountPaid(java.lang.Long amountPaid) |
void |
setAmountRemaining(java.lang.Long amountRemaining) |
void |
setApplicationFee(java.lang.Long applicationFee) |
void |
setAttemptCount(java.lang.Integer attemptCount) |
void |
setAttempted(java.lang.Boolean attempted) |
void |
setBilling(java.lang.String billing) |
void |
setBillingReason(java.lang.String billingReason) |
void |
setCharge(java.lang.String chargeID) |
void |
setChargeObject(Charge charge) |
void |
setClosed(java.lang.Boolean closed) |
void |
setCreated(java.lang.Long created) |
void |
setCurrency(java.lang.String currency) |
void |
setCustomer(java.lang.String customer) |
void |
setDate(java.lang.Long date) |
void |
setDescription(java.lang.String description) |
void |
setDiscount(Discount discount) |
void |
setDueDate(java.lang.Long dueDate) |
void |
setEndingBalance(java.lang.Long endingBalance) |
void |
setForgiven(java.lang.Boolean forgiven) |
void |
setHostedInvoiceURL(java.lang.String hostedInvoiceURL) |
void |
setId(java.lang.String id) |
void |
setInvoicePDF(java.lang.String invoicePDF) |
void |
setLines(InvoiceLineItemCollection lines) |
void |
setLivemode(java.lang.Boolean livemode) |
void |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata) |
void |
setNextPaymentAttempt(java.lang.Long nextPaymentAttempt) |
void |
setNumber(java.lang.String number) |
void |
setObject(java.lang.String object) |
void |
setPaid(java.lang.Boolean paid) |
void |
setPeriodEnd(java.lang.Long periodEnd) |
void |
setPeriodStart(java.lang.Long periodStart) |
void |
setReceiptNumber(java.lang.String receiptNumber) |
void |
setStartingBalance(java.lang.Long startingBalance) |
void |
setStatementDescriptor(java.lang.String statementDescriptor) |
void |
setSubscription(java.lang.String subscriptionID) |
void |
setSubscriptionObject(Subscription subscription) |
void |
setSubscriptionProrationDate(java.lang.Long subscriptionProrationDate) |
void |
setSubtotal(java.lang.Long subtotal) |
void |
setTax(java.lang.Long tax) |
void |
setTaxPercent(java.lang.Double taxPercent) |
void |
setTotal(java.lang.Long total) |
void |
setWebhooksDeliveredAt(java.lang.Long webhooksDeliveredAt) |
static Invoice |
upcoming(java.util.Map<java.lang.String,java.lang.Object> params)
Retrieve an upcoming invoice.
|
static Invoice |
upcoming(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Retrieve an upcoming invoice.
|
static Invoice |
upcoming(java.util.Map<java.lang.String,java.lang.Object> params,
java.lang.String apiKey)
Deprecated.
Use the
upcoming(Map, RequestOptions) method instead.
This method will be removed in the next major version. |
Invoice |
update(java.util.Map<java.lang.String,java.lang.Object> params)
Update an invoice.
|
Invoice |
update(java.util.Map<java.lang.String,java.lang.Object> params,
RequestOptions options)
Update an invoice.
|
Invoice |
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, urlEncodeequals, getLastResponse, setLastResponse, toJson, toStringpublic java.lang.String getCharge()
public void setCharge(java.lang.String chargeID)
public Charge getChargeObject()
public void setChargeObject(Charge charge)
public java.lang.String getSubscription()
public void setSubscription(java.lang.String subscriptionID)
public Subscription getSubscriptionObject()
public void setSubscriptionObject(Subscription subscription)
@Deprecated public static InvoiceCollection 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 InvoiceCollection 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 InvoiceCollection 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 Invoice create(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice create(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Invoice 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 static InvoiceCollection list(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static InvoiceCollection list(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice pay() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice pay(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Invoice pay(java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
pay(RequestOptions) method instead.
This method will be removed in the next major version.public Invoice pay(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Invoice pay(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice retrieve(java.lang.String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice retrieve(java.lang.String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Invoice 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 Invoice retrieve(java.lang.String id, java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice upcoming(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice upcoming(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Invoice upcoming(java.util.Map<java.lang.String,java.lang.Object> params, java.lang.String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
upcoming(Map, RequestOptions) method instead.
This method will be removed in the next major version.public Invoice update(java.util.Map<java.lang.String,java.lang.Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Invoice>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic Invoice update(java.util.Map<java.lang.String,java.lang.Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Invoice>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@Deprecated public Invoice 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 getAmountDue()
public java.lang.Long getAmountPaid()
public java.lang.Long getAmountRemaining()
public java.lang.Long getApplicationFee()
public java.lang.Integer getAttemptCount()
public java.lang.Boolean getAttempted()
public java.lang.String getBilling()
public java.lang.String getBillingReason()
public java.lang.Boolean getClosed()
public java.lang.Long getCreated()
public java.lang.String getCurrency()
public java.lang.String getCustomer()
public java.lang.Long getDate()
public java.lang.String getDescription()
public Discount getDiscount()
public java.lang.Long getDueDate()
public java.lang.Long getEndingBalance()
public java.lang.Boolean getForgiven()
public java.lang.String getHostedInvoiceURL()
public java.lang.String getInvoicePDF()
public InvoiceLineItemCollection getLines()
public java.lang.Boolean getLivemode()
public java.lang.Long getNextPaymentAttempt()
public java.lang.String getNumber()
public java.lang.Boolean getPaid()
public java.lang.Long getPeriodEnd()
public java.lang.Long getPeriodStart()
public java.lang.String getReceiptNumber()
public java.lang.Long getStartingBalance()
public java.lang.String getStatementDescriptor()
public java.lang.Long getSubscriptionProrationDate()
public java.lang.Long getSubtotal()
public java.lang.Long getTax()
public java.lang.Double getTaxPercent()
public java.lang.Long getTotal()
public java.lang.Long getWebhooksDeliveredAt()
public void setId(java.lang.String id)
public void setObject(java.lang.String object)
public void setAmountDue(java.lang.Long amountDue)
public void setAmountPaid(java.lang.Long amountPaid)
public void setAmountRemaining(java.lang.Long amountRemaining)
public void setApplicationFee(java.lang.Long applicationFee)
public void setAttemptCount(java.lang.Integer attemptCount)
public void setAttempted(java.lang.Boolean attempted)
public void setBilling(java.lang.String billing)
public void setBillingReason(java.lang.String billingReason)
public void setClosed(java.lang.Boolean closed)
public void setCreated(java.lang.Long created)
public void setCurrency(java.lang.String currency)
public void setCustomer(java.lang.String customer)
public void setDate(java.lang.Long date)
public void setDescription(java.lang.String description)
public void setDiscount(Discount discount)
public void setDueDate(java.lang.Long dueDate)
public void setEndingBalance(java.lang.Long endingBalance)
public void setForgiven(java.lang.Boolean forgiven)
public void setHostedInvoiceURL(java.lang.String hostedInvoiceURL)
public void setInvoicePDF(java.lang.String invoicePDF)
public void setLines(InvoiceLineItemCollection lines)
public void setLivemode(java.lang.Boolean livemode)
public void setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
public void setNextPaymentAttempt(java.lang.Long nextPaymentAttempt)
public void setNumber(java.lang.String number)
public void setPaid(java.lang.Boolean paid)
public void setPeriodEnd(java.lang.Long periodEnd)
public void setPeriodStart(java.lang.Long periodStart)
public void setReceiptNumber(java.lang.String receiptNumber)
public void setStartingBalance(java.lang.Long startingBalance)
public void setStatementDescriptor(java.lang.String statementDescriptor)
public void setSubscriptionProrationDate(java.lang.Long subscriptionProrationDate)
public void setSubtotal(java.lang.Long subtotal)
public void setTax(java.lang.Long tax)
public void setTaxPercent(java.lang.Double taxPercent)
public void setTotal(java.lang.Long total)
public void setWebhooksDeliveredAt(java.lang.Long webhooksDeliveredAt)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectprotected boolean canEqual(java.lang.Object other)
public int hashCode()
hashCode in class java.lang.Objectpublic java.util.Map<java.lang.String,java.lang.String> getMetadata()
getMetadata in interface MetadataStore<Invoice>