Class Invoice


  • public class Invoice
    extends java.lang.Object
    Provides detailed information about an invoice.
    • Constructor Detail

      • Invoice

        public Invoice()
    • Method Detail

      • date

        public Invoice date​(org.threeten.bp.OffsetDateTime date)
      • getDate

        public org.threeten.bp.OffsetDateTime getDate()
        The date and time the invoice is issued. Values are in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
        Returns:
        date
      • setDate

        public void setDate​(org.threeten.bp.OffsetDateTime date)
      • errorCode

        public Invoice errorCode​(java.lang.String errorCode)
      • getErrorCode

        public java.lang.String getErrorCode()
        If the invoice is in an error state, this attribute displays the error code.
        Returns:
        errorCode
      • setErrorCode

        public void setErrorCode​(java.lang.String errorCode)
      • externalInvoiceId

        public Invoice externalInvoiceId​(java.lang.String externalInvoiceId)
      • getExternalInvoiceId

        public java.lang.String getExternalInvoiceId()
        The invoice identifier that is used by an external party. This is typically the government agency that authorized the invoice.
        Returns:
        externalInvoiceId
      • setExternalInvoiceId

        public void setExternalInvoiceId​(java.lang.String externalInvoiceId)
      • govResponse

        public Invoice govResponse​(java.lang.String govResponse)
      • getGovResponse

        public java.lang.String getGovResponse()
        The response message from the government authority when there is an error during invoice issuance.
        Returns:
        govResponse
      • setGovResponse

        public void setGovResponse​(java.lang.String govResponse)
      • id

        public Invoice id​(java.lang.String id)
      • getId

        public java.lang.String getId()
        The invoice identifier.
        Returns:
        id
      • setId

        public void setId​(java.lang.String id)
      • invoiceType

        public Invoice invoiceType​(java.lang.String invoiceType)
      • getInvoiceType

        public java.lang.String getInvoiceType()
        The classification of the invoice type. This varies across marketplaces. Use the `getInvoicesAttributes` operation to check `invoiceType` options.
        Returns:
        invoiceType
      • setInvoiceType

        public void setInvoiceType​(java.lang.String invoiceType)
      • series

        public Invoice series​(java.lang.String series)
      • getSeries

        public java.lang.String getSeries()
        Use this identifier in conjunction with `externalInvoiceId` to identify invoices from the same seller.
        Returns:
        series
      • setSeries

        public void setSeries​(java.lang.String series)
      • status

        public Invoice status​(java.lang.String status)
      • getStatus

        public java.lang.String getStatus()
        The invoice status classification. Use the `getInvoicesAttributes` operation to check invoice status options.
        Returns:
        status
      • setStatus

        public void setStatus​(java.lang.String status)
      • getTransactionIds

        public java.util.List<TransactionIdentifier> getTransactionIds()
        List with identifiers for the transactions associated to the invoice.
        Returns:
        transactionIds
      • setTransactionIds

        public void setTransactionIds​(java.util.List<TransactionIdentifier> transactionIds)
      • transactionType

        public Invoice transactionType​(java.lang.String transactionType)
      • getTransactionType

        public java.lang.String getTransactionType()
        Classification of the transaction that originated this invoice. Use the `getInvoicesAttributes` operation to check `transactionType` options.
        Returns:
        transactionType
      • setTransactionType

        public void setTransactionType​(java.lang.String transactionType)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object