Class MultiDocumentModel

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

public class MultiDocumentModel extends 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Getter for accountId The unique ID number of the AvaTax customer account that created this MultiDocument object.
    Getter for code The transaction code of the MultiDocument transaction.
    Getter for createdDate The date/time when this record was created.
    Getter for createdUserId The user ID of the user who created this record.
    Getter for documents A separate document will exist for each unique combination of buyer and seller in this MultiDocument transaction.
    Getter for id The unique ID number of this MultiDocument object.
    Getter for modifiedDate The date/time when this record was last modified.
    Getter for modifiedUserId The user ID of the user who last modified this record.
    Getter for type Indicates the type of MultiDocument transaction.
    void
    Setter for accountId The unique ID number of the AvaTax customer account that created this MultiDocument object.
    void
    setCode(String value)
    Setter for code The transaction code of the MultiDocument transaction.
    void
    Setter for createdDate The date/time when this record was created.
    void
    Setter for createdUserId The user ID of the user who created this record.
    void
    Setter for documents A separate document will exist for each unique combination of buyer and seller in this MultiDocument transaction.
    void
    setId(Long value)
    Setter for id The unique ID number of this MultiDocument object.
    void
    Setter for modifiedDate The date/time when this record was last modified.
    void
    Setter for modifiedUserId The user ID of the user who last modified this record.
    void
    Setter for type Indicates the type of MultiDocument transaction.
    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

    • MultiDocumentModel

      public MultiDocumentModel()
  • Method Details

    • getId

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

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

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

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

      public 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(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 Integer getCreatedUserId()
      Getter for createdUserId The user ID of the user who created this record.
    • setCreatedUserId

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

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

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

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

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

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

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

      public 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(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 String toString()
      Returns a JSON string representation of MultiDocumentModel
      Overrides:
      toString in class Object