All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.avalara.avatax.rest.client.models.AccountModel Maven / Gradle / Ivy

package net.avalara.avatax.rest.client.models;

import net.avalara.avatax.rest.client.enums.*;
import net.avalara.avatax.rest.client.serializer.JsonSerializer;

import java.lang.Override;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;

/*
 * AvaTax Software Development Kit for Java JRE based environments
 *
 * (c) 2004-2018 Avalara, Inc.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @author     Dustin Welden 
 * @copyright  2004-2018 Avalara, Inc.
 * @license    https://www.apache.org/licenses/LICENSE-2.0
 * @link       https://github.com/avadev/AvaTax-REST-V2-JRE-SDK
 * Swagger name: AvaTaxClient
 */

/**
 * An AvaTax account.
 */
public class AccountModel {


    private Integer id;

    /**
     * Getter for id
     *
     * The unique ID number assigned to this account.
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * Setter for id
     *
     * The unique ID number assigned to this account.
     */
    public void setId(Integer value) {
        this.id = value;
    }

    private String crmid;

    /**
     * Getter for crmid
     *
     * For system registrar use only.
     */
    public String getCrmid() {
        return this.crmid;
    }

    /**
     * Setter for crmid
     *
     * For system registrar use only.
     */
    public void setCrmid(String value) {
        this.crmid = value;
    }

    private String name;

    /**
     * Getter for name
     *
     * The name of this account.
     */
    public String getName() {
        return this.name;
    }

    /**
     * Setter for name
     *
     * The name of this account.
     */
    public void setName(String value) {
        this.name = value;
    }

    private Date effectiveDate;

    /**
     * Getter for effectiveDate
     *
     * The earliest date on which this account may be used.
     */
    public Date getEffectiveDate() {
        return this.effectiveDate;
    }

    /**
     * Setter for effectiveDate
     *
     * The earliest date on which this account may be used.
     */
    public void setEffectiveDate(Date value) {
        this.effectiveDate = value;
    }

    private Date endDate;

    /**
     * Getter for endDate
     *
     * If this account has been closed, this is the last date the account was open.
     */
    public Date getEndDate() {
        return this.endDate;
    }

    /**
     * Setter for endDate
     *
     * If this account has been closed, this is the last date the account was open.
     */
    public void setEndDate(Date value) {
        this.endDate = value;
    }

    private AccountStatusId accountStatusId;

    /**
     * Getter for accountStatusId
     *
     * The current status of this account.
     */
    public AccountStatusId getAccountStatusId() {
        return this.accountStatusId;
    }

    /**
     * Setter for accountStatusId
     *
     * The current status of this account.
     */
    public void setAccountStatusId(AccountStatusId value) {
        this.accountStatusId = value;
    }

    private AccountTypeId accountTypeId;

    /**
     * Getter for accountTypeId
     *
     * The type of this account.
     */
    public AccountTypeId getAccountTypeId() {
        return this.accountTypeId;
    }

    /**
     * Setter for accountTypeId
     *
     * The type of this account.
     */
    public void setAccountTypeId(AccountTypeId value) {
        this.accountTypeId = value;
    }

    private Date createdDate;

    /**
     * Getter for createdDate
     *
     * The date when this record was created.
     */
    public Date getCreatedDate() {
        return this.createdDate;
    }

    /**
     * Setter for createdDate
     *
     * The date when this record was created.
     */
    public void setCreatedDate(Date value) {
        this.createdDate = value;
    }

    private Integer createdUserId;

    /**
     * Getter for createdUserId
     *
     * The User ID of the user who created this record.
     */
    public Integer getCreatedUserId() {
        return this.createdUserId;
    }

    /**
     * Setter for createdUserId
     *
     * The User ID of the user who created this record.
     */
    public void setCreatedUserId(Integer value) {
        this.createdUserId = value;
    }

    private Date modifiedDate;

    /**
     * Getter for modifiedDate
     *
     * The date/time when this record was last modified.
     */
    public Date getModifiedDate() {
        return this.modifiedDate;
    }

    /**
     * Setter for modifiedDate
     *
     * The date/time when this record was last modified.
     */
    public void setModifiedDate(Date value) {
        this.modifiedDate = value;
    }

    private Integer modifiedUserId;

    /**
     * Getter for modifiedUserId
     *
     * The user ID of the user who last modified this record.
     */
    public Integer getModifiedUserId() {
        return this.modifiedUserId;
    }

    /**
     * Setter for modifiedUserId
     *
     * The user ID of the user who last modified this record.
     */
    public void setModifiedUserId(Integer value) {
        this.modifiedUserId = value;
    }

    private ArrayList subscriptions;

    /**
     * Getter for subscriptions
     *
     * Optional: A list of subscriptions granted to this account. To fetch this list, add the query string "?$include=Subscriptions" to your URL.
     */
    public ArrayList getSubscriptions() {
        return this.subscriptions;
    }

    /**
     * Setter for subscriptions
     *
     * Optional: A list of subscriptions granted to this account. To fetch this list, add the query string "?$include=Subscriptions" to your URL.
     */
    public void setSubscriptions(ArrayList value) {
        this.subscriptions = value;
    }

    private ArrayList users;

    /**
     * Getter for users
     *
     * Optional: A list of all the users belonging to this account. To fetch this list, add the query string "?$include=Users" to your URL.
     */
    public ArrayList getUsers() {
        return this.users;
    }

    /**
     * Setter for users
     *
     * Optional: A list of all the users belonging to this account. To fetch this list, add the query string "?$include=Users" to your URL.
     */
    public void setUsers(ArrayList value) {
        this.users = value;
    }

    private Boolean isSamlEnabled;

    /**
     * Getter for isSamlEnabled
     *
     * Is Saml based authentication used by this account for user to login via AI.
     */
    public Boolean getIsSamlEnabled() {
        return this.isSamlEnabled;
    }

    /**
     * Setter for isSamlEnabled
     *
     * Is Saml based authentication used by this account for user to login via AI.
     */
    public void setIsSamlEnabled(Boolean value) {
        this.isSamlEnabled = value;
    }

    private Boolean isDeleted;

    /**
     * Getter for isDeleted
     *
     * A boolean flag to identify if the account is deleted
     */
    public Boolean getIsDeleted() {
        return this.isDeleted;
    }

    /**
     * Setter for isDeleted
     *
     * A boolean flag to identify if the account is deleted
     */
    public void setIsDeleted(Boolean value) {
        this.isDeleted = value;
    }

    /**
     * Returns a JSON string representation of AccountModel
     */
    @Override
    public String toString() {
        return JsonSerializer.SerializeObject(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy