Class 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 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).

    • Method Detail

      • 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
      • 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()
      • getSubscriptionIds

        public List<String> getSubscriptionIds()
        List of subscription identifiers
        Returns:
        the value
      • toString

        public String toString()
        Overrides:
        toString in class com.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 class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel