Package com.oracle.bmc.ospgateway.model
Class Invoice
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.ospgateway.model.Invoice
-
@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 theInvoice.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 calledInvoice.Builder.__explicitlySet__
. ThehashCode()
andequals(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).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Invoice.Builder
static class
Invoice.InvoiceStatus
Invoice statusstatic class
Invoice.InvoiceType
Type of invoice
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Invoice.Builder
builder()
Create a new builder.boolean
equals(Object o)
BillToAddress
getBillToAddress()
Currency
getCurrency()
String
getInternalInvoiceId()
Transaction identifierBigDecimal
getInvoiceAmount()
Total amount of invoiceBigDecimal
getInvoiceAmountAdjusted()
Invoice amount adjustBigDecimal
getInvoiceAmountApplied()
Invoice amount appliedBigDecimal
getInvoiceAmountCredited()
Invoice amount creditBigDecimal
getInvoiceAmountDue()
Balance of invoiceString
getInvoiceId()
Invoice identifier which is generated on the on-premise sie.String
getInvoiceNumber()
Invoice external referenceString
getInvoicePoNumber()
Invoice PO numberString
getInvoiceRefNumber()
Invoice reference numberInvoice.InvoiceStatus
getInvoiceStatus()
Invoice statusInvoice.InvoiceType
getInvoiceType()
Type of invoiceBoolean
getIsCreditCardPayable()
Is credit card payment eligibleBoolean
getIsDisplayDownloadPdf()
Is pdf download access allowedBoolean
getIsPayable()
Whether invoice can be payedBoolean
getIsPdfEmailAvailable()
Is emailing pdf allowedPaymentDetail
getLastPaymentDetail()
String
getPaymentTerms()
Payment termsString
getPreferredEmail()
Preferred Email on the invoiceList<String>
getSubscriptionIds()
List of subscription identifiersBigDecimal
getTax()
Tax of invoice amountDate
getTimeInvoice()
Date of invoiceDate
getTimeInvoiceDue()
Due date of invoiceint
hashCode()
Invoice.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
Invoice
@Deprecated @ConstructorProperties({"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)
Deprecated.
-
-
Method Detail
-
builder
public static Invoice.Builder builder()
Create a new builder.
-
toBuilder
public Invoice.Builder toBuilder()
-
getInvoiceId
public String getInvoiceId()
Invoice identifier which is generated on the on-premise sie.Pls note this is not an OCID
- Returns:
- the value
-
getInvoiceNumber
public String getInvoiceNumber()
Invoice external reference- Returns:
- the value
-
getInternalInvoiceId
public String getInternalInvoiceId()
Transaction identifier- Returns:
- the value
-
getIsCreditCardPayable
public Boolean getIsCreditCardPayable()
Is credit card payment eligible- Returns:
- the value
-
getTimeInvoice
public Date getTimeInvoice()
Date of invoice- Returns:
- the value
-
getTax
public BigDecimal getTax()
Tax of invoice amount- Returns:
- the value
-
getInvoiceAmount
public BigDecimal getInvoiceAmount()
Total amount of invoice- Returns:
- the value
-
getInvoiceAmountDue
public BigDecimal getInvoiceAmountDue()
Balance of invoice- Returns:
- the value
-
getInvoiceAmountCredited
public BigDecimal getInvoiceAmountCredited()
Invoice amount credit- Returns:
- the value
-
getInvoiceAmountAdjusted
public BigDecimal getInvoiceAmountAdjusted()
Invoice amount adjust- Returns:
- the value
-
getInvoiceAmountApplied
public BigDecimal getInvoiceAmountApplied()
Invoice amount applied- Returns:
- the value
-
getCurrency
public Currency getCurrency()
-
getInvoiceType
public Invoice.InvoiceType getInvoiceType()
Type of invoice- Returns:
- the value
-
getTimeInvoiceDue
public Date getTimeInvoiceDue()
Due date of invoice- Returns:
- the value
-
getInvoiceRefNumber
public String getInvoiceRefNumber()
Invoice reference number- Returns:
- the value
-
getInvoicePoNumber
public String getInvoicePoNumber()
Invoice PO number- Returns:
- the value
-
getInvoiceStatus
public Invoice.InvoiceStatus getInvoiceStatus()
Invoice status- Returns:
- the value
-
getPreferredEmail
public String getPreferredEmail()
Preferred Email on the invoice- Returns:
- the value
-
getIsPdfEmailAvailable
public Boolean getIsPdfEmailAvailable()
Is emailing pdf allowed- Returns:
- the value
-
getIsDisplayDownloadPdf
public Boolean getIsDisplayDownloadPdf()
Is pdf download access allowed- Returns:
- the value
-
getIsPayable
public Boolean getIsPayable()
Whether invoice can be payed- Returns:
- the value
-
getPaymentTerms
public String getPaymentTerms()
Payment terms- Returns:
- the value
-
getLastPaymentDetail
public PaymentDetail getLastPaymentDetail()
-
getBillToAddress
public BillToAddress getBillToAddress()
-
getSubscriptionIds
public List<String> getSubscriptionIds()
List of subscription identifiers- Returns:
- the value
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-