@Generated(value="OracleSDKGenerator", comments="API Version: 20191001") public final class Invoice extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Invoice details
Note: Objects should always be created or deserialized using the Invoice.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Invoice.Builder
, which maintain a
set of all explicitly set fields called Invoice.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Invoice.Builder |
static class |
Invoice.InvoiceStatus
Invoice status
|
static class |
Invoice.InvoiceType
Type of invoice
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Invoice(String invoiceId,
String invoiceNumber,
String internalInvoiceId,
Boolean isCreditCardPayable,
Date timeInvoice,
BigDecimal tax,
BigDecimal invoiceAmount,
BigDecimal invoiceAmountDue,
BigDecimal invoiceAmountCredited,
BigDecimal invoiceAmountAdjusted,
BigDecimal invoiceAmountApplied,
Currency currency,
Invoice.InvoiceType invoiceType,
Date timeInvoiceDue,
String invoiceRefNumber,
String invoicePoNumber,
Invoice.InvoiceStatus invoiceStatus,
String preferredEmail,
Boolean isPdfEmailAvailable,
Boolean isDisplayDownloadPdf,
Boolean isPayable,
String paymentTerms,
PaymentDetail lastPaymentDetail,
BillToAddress billToAddress,
List<String> subscriptionIds)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Invoice.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
BillToAddress |
getBillToAddress() |
Currency |
getCurrency() |
String |
getInternalInvoiceId()
Transaction identifier
|
BigDecimal |
getInvoiceAmount()
Total amount of invoice
|
BigDecimal |
getInvoiceAmountAdjusted()
Invoice amount adjust
|
BigDecimal |
getInvoiceAmountApplied()
Invoice amount applied
|
BigDecimal |
getInvoiceAmountCredited()
Invoice amount credit
|
BigDecimal |
getInvoiceAmountDue()
Balance of invoice
|
String |
getInvoiceId()
Invoice identifier which is generated on the on-premise sie.
|
String |
getInvoiceNumber()
Invoice external reference
|
String |
getInvoicePoNumber()
Invoice PO number
|
String |
getInvoiceRefNumber()
Invoice reference number
|
Invoice.InvoiceStatus |
getInvoiceStatus()
Invoice status
|
Invoice.InvoiceType |
getInvoiceType()
Type of invoice
|
Boolean |
getIsCreditCardPayable()
Is credit card payment eligible
|
Boolean |
getIsDisplayDownloadPdf()
Is pdf download access allowed
|
Boolean |
getIsPayable()
Whether invoice can be payed
|
Boolean |
getIsPdfEmailAvailable()
Is emailing pdf allowed
|
PaymentDetail |
getLastPaymentDetail() |
String |
getPaymentTerms()
Payment terms
|
String |
getPreferredEmail()
Preferred Email on the invoice
|
List<String> |
getSubscriptionIds()
List of subscription identifiers
|
BigDecimal |
getTax()
Tax of invoice amount
|
Date |
getTimeInvoice()
Date of invoice
|
Date |
getTimeInvoiceDue()
Due date of invoice
|
int |
hashCode() |
Invoice.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"invoiceId","invoiceNumber","internalInvoiceId","isCreditCardPayable","timeInvoice","tax","invoiceAmount","invoiceAmountDue","invoiceAmountCredited","invoiceAmountAdjusted","invoiceAmountApplied","currency","invoiceType","timeInvoiceDue","invoiceRefNumber","invoicePoNumber","invoiceStatus","preferredEmail","isPdfEmailAvailable","isDisplayDownloadPdf","isPayable","paymentTerms","lastPaymentDetail","billToAddress","subscriptionIds"}) public Invoice(String invoiceId, String invoiceNumber, String internalInvoiceId, Boolean isCreditCardPayable, Date timeInvoice, BigDecimal tax, BigDecimal invoiceAmount, BigDecimal invoiceAmountDue, BigDecimal invoiceAmountCredited, BigDecimal invoiceAmountAdjusted, BigDecimal invoiceAmountApplied, Currency currency, Invoice.InvoiceType invoiceType, Date timeInvoiceDue, String invoiceRefNumber, String invoicePoNumber, Invoice.InvoiceStatus invoiceStatus, String preferredEmail, Boolean isPdfEmailAvailable, Boolean isDisplayDownloadPdf, Boolean isPayable, String paymentTerms, PaymentDetail lastPaymentDetail, BillToAddress billToAddress, List<String> subscriptionIds)
public static Invoice.Builder builder()
Create a new builder.
public Invoice.Builder toBuilder()
public String getInvoiceId()
Invoice identifier which is generated on the on-premise sie. Pls note this is not an OCID
public String getInvoiceNumber()
Invoice external reference
public String getInternalInvoiceId()
Transaction identifier
public Boolean getIsCreditCardPayable()
Is credit card payment eligible
public Date getTimeInvoice()
Date of invoice
public BigDecimal getTax()
Tax of invoice amount
public BigDecimal getInvoiceAmount()
Total amount of invoice
public BigDecimal getInvoiceAmountDue()
Balance of invoice
public BigDecimal getInvoiceAmountCredited()
Invoice amount credit
public BigDecimal getInvoiceAmountAdjusted()
Invoice amount adjust
public BigDecimal getInvoiceAmountApplied()
Invoice amount applied
public Currency getCurrency()
public Invoice.InvoiceType getInvoiceType()
Type of invoice
public Date getTimeInvoiceDue()
Due date of invoice
public String getInvoiceRefNumber()
Invoice reference number
public String getInvoicePoNumber()
Invoice PO number
public Invoice.InvoiceStatus getInvoiceStatus()
Invoice status
public String getPreferredEmail()
Preferred Email on the invoice
public Boolean getIsPdfEmailAvailable()
Is emailing pdf allowed
public Boolean getIsDisplayDownloadPdf()
Is pdf download access allowed
public Boolean getIsPayable()
Whether invoice can be payed
public String getPaymentTerms()
Payment terms
public PaymentDetail getLastPaymentDetail()
public BillToAddress getBillToAddress()
public List<String> getSubscriptionIds()
List of subscription identifiers
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.