Class Invoice
- java.lang.Object
-
- software.amazon.spapi.models.invoices.v2024_06_19.Invoice
-
public class Invoice extends java.lang.Object
Provides detailed information about an invoice.
-
-
Constructor Summary
Constructors Constructor Description Invoice()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Invoice
addTransactionIdsItem(TransactionIdentifier transactionIdsItem)
Invoice
date(org.threeten.bp.OffsetDateTime date)
boolean
equals(java.lang.Object o)
Invoice
errorCode(java.lang.String errorCode)
Invoice
externalInvoiceId(java.lang.String externalInvoiceId)
org.threeten.bp.OffsetDateTime
getDate()
The date and time the invoice is issued.java.lang.String
getErrorCode()
If the invoice is in an error state, this attribute displays the error code.java.lang.String
getExternalInvoiceId()
The invoice identifier that is used by an external party.java.lang.String
getGovResponse()
The response message from the government authority when there is an error during invoice issuance.java.lang.String
getId()
The invoice identifier.java.lang.String
getInvoiceType()
The classification of the invoice type.java.lang.String
getSeries()
Use this identifier in conjunction with `externalInvoiceId` to identify invoices from the same seller.java.lang.String
getStatus()
The invoice status classification.java.util.List<TransactionIdentifier>
getTransactionIds()
List with identifiers for the transactions associated to the invoice.java.lang.String
getTransactionType()
Classification of the transaction that originated this invoice.Invoice
govResponse(java.lang.String govResponse)
int
hashCode()
Invoice
id(java.lang.String id)
Invoice
invoiceType(java.lang.String invoiceType)
Invoice
series(java.lang.String series)
void
setDate(org.threeten.bp.OffsetDateTime date)
void
setErrorCode(java.lang.String errorCode)
void
setExternalInvoiceId(java.lang.String externalInvoiceId)
void
setGovResponse(java.lang.String govResponse)
void
setId(java.lang.String id)
void
setInvoiceType(java.lang.String invoiceType)
void
setSeries(java.lang.String series)
void
setStatus(java.lang.String status)
void
setTransactionIds(java.util.List<TransactionIdentifier> transactionIds)
void
setTransactionType(java.lang.String transactionType)
Invoice
status(java.lang.String status)
java.lang.String
toString()
Invoice
transactionIds(java.util.List<TransactionIdentifier> transactionIds)
Invoice
transactionType(java.lang.String transactionType)
-
-
-
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)
-
transactionIds
public Invoice transactionIds(java.util.List<TransactionIdentifier> transactionIds)
-
addTransactionIdsItem
public Invoice addTransactionIdsItem(TransactionIdentifier transactionIdsItem)
-
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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-