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.ExplicitlySetBmcModelInvoice 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 classInvoice.Builderstatic classInvoice.InvoiceStatusInvoice statusstatic classInvoice.InvoiceTypeType 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.Builderbuilder()Create a new builder.booleanequals(Object o)BillToAddressgetBillToAddress()CurrencygetCurrency()StringgetInternalInvoiceId()Transaction identifierBigDecimalgetInvoiceAmount()Total amount of invoiceBigDecimalgetInvoiceAmountAdjusted()Invoice amount adjustBigDecimalgetInvoiceAmountApplied()Invoice amount appliedBigDecimalgetInvoiceAmountCredited()Invoice amount creditBigDecimalgetInvoiceAmountDue()Balance of invoiceStringgetInvoiceId()Invoice identifier which is generated on the on-premise sie.StringgetInvoiceNumber()Invoice external referenceStringgetInvoicePoNumber()Invoice PO numberStringgetInvoiceRefNumber()Invoice reference numberInvoice.InvoiceStatusgetInvoiceStatus()Invoice statusInvoice.InvoiceTypegetInvoiceType()Type of invoiceBooleangetIsCreditCardPayable()Is credit card payment eligibleBooleangetIsDisplayDownloadPdf()Is pdf download access allowedBooleangetIsPayable()Whether invoice can be payedBooleangetIsPdfEmailAvailable()Is emailing pdf allowedPaymentDetailgetLastPaymentDetail()StringgetPaymentTerms()Payment termsStringgetPreferredEmail()Preferred Email on the invoiceList<String>getSubscriptionIds()List of subscription identifiersBigDecimalgetTax()Tax of invoice amountDategetTimeInvoice()Date of invoiceDategetTimeInvoiceDue()Due date of invoiceinthashCode()Invoice.BuildertoBuilder()StringtoString()StringtoString(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:
toStringin 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:
equalsin classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCodein classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-