public class Invoice extends BillingEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
Invoice.InvoiceState |
static class |
Invoice.InvoiceType |
| Modifier and Type | Field and Description |
|---|---|
protected String |
accountID |
protected String |
changedBy |
protected BigDecimal |
costExcludingTax |
protected Date |
created |
protected String |
currency |
protected Boolean |
deleted |
protected BigDecimal |
discountAmount |
protected Date |
finalExecutionAttempt |
protected String |
id |
protected Boolean |
initialInvoice |
protected BigDecimal |
invoiceCost |
protected InvoiceLine[] |
invoiceLines |
protected BigDecimal |
invoicePaid |
protected InvoicePayment[] |
invoicePayments |
protected BigDecimal |
invoiceRefunded |
protected Date |
lastExecutionAttempt |
protected String |
locked |
protected String |
managedBy |
protected Date |
nextExecutionAttempt |
protected String |
organizationID |
protected Date |
paymentReceived |
protected Date |
periodEnd |
protected Date |
periodStart |
protected static ResourcePath |
resourcePath |
protected String |
state |
protected String |
subscriptionID |
protected int |
totalExecutionAttempts |
protected String |
type |
protected Date |
updated |
protected String |
versionID |
protected int |
versionNumber |
m_client, PRETTY_PRINT_GSON| Modifier | Constructor and Description |
|---|---|
protected |
Invoice() |
protected |
Invoice(BillForwardClient client_) |
getAll, getByID, getByID, getByIDPostPath, getClient, setClient, toStringprotected String id
protected String versionID
protected String subscriptionID
protected String accountID
protected String organizationID
protected String state
protected Date periodStart
protected Date periodEnd
protected Boolean deleted
protected int totalExecutionAttempts
protected Date lastExecutionAttempt
protected Date nextExecutionAttempt
protected Date finalExecutionAttempt
protected Date paymentReceived
protected String currency
protected BigDecimal costExcludingTax
protected BigDecimal invoiceCost
protected BigDecimal invoicePaid
protected BigDecimal discountAmount
protected BigDecimal invoiceRefunded
protected String type
protected String locked
protected String managedBy
protected Boolean initialInvoice
protected int versionNumber
protected Date updated
protected String changedBy
protected Date created
protected InvoiceLine[] invoiceLines
protected InvoicePayment[] invoicePayments
protected static ResourcePath resourcePath
protected Invoice(BillForwardClient client_)
protected Invoice()
public String getID()
public String getVersionID()
public String getSubscriptionID()
public String getAccountID()
public String getOrganizationID()
public String getStateAsString()
public Invoice.InvoiceState getState()
public Date getPeriodStart()
public Date getPeriodEnd()
public Boolean getDeleted()
public int getTotalExecutionAttempts()
public Date getLastExecutionAttempt()
public Date getNextExecutionAttempt()
public Date getFinalExecutionAttempt()
public Date getPaymentReceived()
public String getCurrency()
public BigDecimal getCostExcludingTax()
public BigDecimal getInvoiceCost()
public BigDecimal getInvoicePaid()
public BigDecimal getDiscountAmount()
public BigDecimal getInvoiceRefunded()
public String getTypeAsString()
public Invoice.InvoiceType getType()
public String getLocked()
public String getManagedBy()
public Boolean getInitialInvoice()
public int getVersionNumber()
public Date getUpdated()
public String getChangedBy()
public Date getCreated()
public InvoiceLine[] getInvoiceLines()
public InvoicePayment[] getInvoicePayments()
public static Invoice getByID(String ID) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice[] getBySubscriptionID(String subscriptionID) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Invoice[] getByState(Invoice.InvoiceState invoiceState_) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
protected ResourcePath getResourcePath()
getResourcePath in class BillingEntityprotected static ResourcePath ResourcePath()
public InvoiceRecalculationAmendment recalculate(Invoice.InvoiceState newInvoiceState) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public InvoiceNextExecutionAttemptAmendment retryTakingPayment() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public InvoiceNextExecutionAttemptAmendment retryTakingPayment(Date dateToExecute_) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public IssueInvoiceAmendment issue() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public void setUsage(int usage)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
Copyright © 2014 BillForward. All rights reserved.