@Gson.TypeAdapters(fieldNamingStrategy=true) @Value.Immutable public interface Invoice extends BaseObject<Invoice>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Invoice.State
Not documented online: got this from Harvest:
|
| Modifier and Type | Method and Description |
|---|---|
Double |
getAmount() |
Reference<Client> |
getClient() |
String |
getClientKey() |
Instant |
getClosedAt() |
Creator |
getCreator() |
String |
getCurrency() |
Double |
getDiscount() |
Double |
getDiscountAmount() |
Double |
getDueAmount() |
LocalDate |
getDueDate() |
Reference<Estimate> |
getEstimate() |
List<InvoiceItem> |
getInvoiceItems() |
LocalDate |
getIssueDate() |
String |
getNotes()
max length = 65,535
|
String |
getNumber() |
Instant |
getPaidAt() |
LocalDate |
getPaidDate() |
LocalDate |
getPeriodEnd() |
LocalDate |
getPeriodStart() |
String |
getPurchaseOrder() |
Retainer |
getRetainer() |
Instant |
getSentAt() |
default Invoice.State |
getState(ZoneId zoneId) |
String |
getSubject() |
Double |
getTax() |
Double |
getTax2() |
Double |
getTaxAmount() |
Double |
getTaxAmount2() |
getCreatedAt, getId, getUpdatedAtdefault Invoice.State getState(ZoneId zoneId)
zoneId - the timezone to use for deciding between LATE and OPEN@SerializedName(value="line_items") @Nullable List<InvoiceItem> getInvoiceItems()
@Nullable Retainer getRetainer()
@Nullable Creator getCreator()
@Nullable String getClientKey()
@Nullable String getNumber()
@Nullable String getPurchaseOrder()
@Nullable Double getAmount()
@Nullable Double getDueAmount()
@Nullable Double getTax()
@Nullable Double getTaxAmount()
@Nullable Double getTax2()
@Nullable Double getTaxAmount2()
@Nullable Double getDiscount()
@Nullable Double getDiscountAmount()
@Nullable String getSubject()
@Nullable String getNotes()
@Nullable String getCurrency()
@Nullable LocalDate getPeriodStart()
@Nullable LocalDate getPeriodEnd()
@Nullable LocalDate getIssueDate()
@Nullable LocalDate getDueDate()
@Nullable Instant getSentAt()
@Nullable Instant getPaidAt()
@Nullable LocalDate getPaidDate()
@Nullable Instant getClosedAt()