Class MultiDocumentModel

java.lang.Object
net.avalara.avatax.rest.client.models.MultiDocumentModel

public class MultiDocumentModel
extends java.lang.Object
A MultiDocument transaction represents a sale or purchase that occurred between more than two companies. A traditional transaction requires exactly two parties: a seller and a buyer. MultiDocument transactions can involve a marketplace of vendors, each of which contributes some portion of the final transaction. Within a MultiDocument transaction, each individual buyer and seller pair are matched up and converted to a separate document. This separation of documents allows each seller to file their taxes separately.
  • Constructor Summary

    Constructors 
    Constructor Description
    MultiDocumentModel()  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Integer getAccountId()
    Getter for accountId The unique ID number of the AvaTax customer account that created this MultiDocument object.
    java.lang.String getCode()
    Getter for code The transaction code of the MultiDocument transaction.
    java.util.Date getCreatedDate()
    Getter for createdDate The date/time when this record was created.
    java.lang.Integer getCreatedUserId()
    Getter for createdUserId The user ID of the user who created this record.
    java.util.ArrayList<TransactionModel> getDocuments()
    Getter for documents A separate document will exist for each unique combination of buyer and seller in this MultiDocument transaction.
    java.lang.Long getId()
    Getter for id The unique ID number of this MultiDocument object.
    java.util.Date getModifiedDate()
    Getter for modifiedDate The date/time when this record was last modified.
    java.lang.Integer getModifiedUserId()
    Getter for modifiedUserId The user ID of the user who last modified this record.
    DocumentType getType()
    Getter for type Indicates the type of MultiDocument transaction.
    void setAccountId​(java.lang.Integer value)
    Setter for accountId The unique ID number of the AvaTax customer account that created this MultiDocument object.
    void setCode​(java.lang.String value)
    Setter for code The transaction code of the MultiDocument transaction.
    void setCreatedDate​(java.util.Date value)
    Setter for createdDate The date/time when this record was created.
    void setCreatedUserId​(java.lang.Integer value)
    Setter for createdUserId The user ID of the user who created this record.
    void setDocuments​(java.util.ArrayList<TransactionModel> value)
    Setter for documents A separate document will exist for each unique combination of buyer and seller in this MultiDocument transaction.
    void setId​(java.lang.Long value)
    Setter for id The unique ID number of this MultiDocument object.
    void setModifiedDate​(java.util.Date value)
    Setter for modifiedDate The date/time when this record was last modified.
    void setModifiedUserId​(java.lang.Integer value)
    Setter for modifiedUserId The user ID of the user who last modified this record.
    void setType​(DocumentType value)
    Setter for type Indicates the type of MultiDocument transaction.
    java.lang.String toString()
    Returns a JSON string representation of MultiDocumentModel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

  • Method Details

    • getId

      public java.lang.Long getId()
      Getter for id The unique ID number of this MultiDocument object.
    • setId

      public void setId​(java.lang.Long value)
      Setter for id The unique ID number of this MultiDocument object.
    • getAccountId

      public java.lang.Integer getAccountId()
      Getter for accountId The unique ID number of the AvaTax customer account that created this MultiDocument object.
    • setAccountId

      public void setAccountId​(java.lang.Integer value)
      Setter for accountId The unique ID number of the AvaTax customer account that created this MultiDocument object.
    • getCode

      public java.lang.String getCode()
      Getter for code The transaction code of the MultiDocument transaction. All individual transactions within this MultiDocument object will have this code as a prefix.
    • setCode

      public void setCode​(java.lang.String value)
      Setter for code The transaction code of the MultiDocument transaction. All individual transactions within this MultiDocument object will have this code as a prefix.
    • getType

      public DocumentType getType()
      Getter for type Indicates the type of MultiDocument transaction. Common values are: * SalesOrder - An estimate that is not permanently recorded * SalesInvoice - An invoice that can be reported on a tax return For more information about document types, see [DocumentType](https://developer.avalara.com/api-reference/avatax/rest/v2/models/enums/DocumentType/)
    • setType

      public void setType​(DocumentType value)
      Setter for type Indicates the type of MultiDocument transaction. Common values are: * SalesOrder - An estimate that is not permanently recorded * SalesInvoice - An invoice that can be reported on a tax return For more information about document types, see [DocumentType](https://developer.avalara.com/api-reference/avatax/rest/v2/models/enums/DocumentType/)
    • getCreatedUserId

      public java.lang.Integer getCreatedUserId()
      Getter for createdUserId The user ID of the user who created this record.
    • setCreatedUserId

      public void setCreatedUserId​(java.lang.Integer value)
      Setter for createdUserId The user ID of the user who created this record.
    • getCreatedDate

      public java.util.Date getCreatedDate()
      Getter for createdDate The date/time when this record was created.
    • setCreatedDate

      public void setCreatedDate​(java.util.Date value)
      Setter for createdDate The date/time when this record was created.
    • getModifiedDate

      public java.util.Date getModifiedDate()
      Getter for modifiedDate The date/time when this record was last modified.
    • setModifiedDate

      public void setModifiedDate​(java.util.Date value)
      Setter for modifiedDate The date/time when this record was last modified.
    • getModifiedUserId

      public java.lang.Integer getModifiedUserId()
      Getter for modifiedUserId The user ID of the user who last modified this record.
    • setModifiedUserId

      public void setModifiedUserId​(java.lang.Integer value)
      Setter for modifiedUserId The user ID of the user who last modified this record.
    • getDocuments

      public java.util.ArrayList<TransactionModel> getDocuments()
      Getter for documents A separate document will exist for each unique combination of buyer and seller in this MultiDocument transaction.
    • setDocuments

      public void setDocuments​(java.util.ArrayList<TransactionModel> value)
      Setter for documents A separate document will exist for each unique combination of buyer and seller in this MultiDocument transaction.
    • toString

      public java.lang.String toString()
      Returns a JSON string representation of MultiDocumentModel
      Overrides:
      toString in class java.lang.Object