// Code generated by go-swagger; DO NOT EDIT.

// All Code Copyright(c) 2018-2020 by Taxnexus, Inc.
// All rights reserved worldwide.
// Proprietary product; unlicensed use is not allowed

package sf_gate_models

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// TaxTypeAccount tax type account
//
// swagger:model TaxTypeAccount
type TaxTypeAccount struct {

	// Account
	Accountid string `json:"accountid,omitempty"`

	// Account Number
	Accountnumber string `json:"accountnumber,omitempty"`

	// Active
	Active bool `json:"active,omitempty"`

	// Rollup Amount
	Amount float64 `json:"amount,omitempty"`

	// Contact ID
	Contactid string `json:"contactid,omitempty"`

	// createdbyid
	Createdbyid string `json:"createdbyid,omitempty"`

	// createddate
	Createddate string `json:"createddate,omitempty"`

	// Description
	Description string `json:"description,omitempty"`

	// End Date
	Enddate string `json:"enddate,omitempty"`

	// Taxnexus Record Id Only; not used in POST
	ID string `json:"id,omitempty"`

	// Interest
	Interest float64 `json:"interest,omitempty"`

	// lastmodifiedbyid
	Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`

	// lastmodifieddate
	Lastmodifieddate string `json:"lastmodifieddate,omitempty"`

	// Notes
	Notes string `json:"notes,omitempty"`

	// UUID Reference the master record that owns this item
	Parentfk string `json:"parentfk,omitempty"`

	// Penalty
	Penalty float64 `json:"penalty,omitempty"`

	// Source System identifier for this record, if any
	Ref string `json:"ref,omitempty"`

	// Reported Adjustments
	Reportedadjustments float64 `json:"reportedadjustments,omitempty"`

	// Reported Deductions
	Reporteddeductions float64 `json:"reporteddeductions,omitempty"`

	// Reported Net Revenue
	Reportednetrevenue float64 `json:"reportednetrevenue,omitempty"`

	// Reported Rate
	Reportedrate float64 `json:"reportedrate,omitempty"`

	// Reported Revenue
	Reportedrevenue float64 `json:"reportedrevenue,omitempty"`

	// Rollup Revenue Base
	Revenuebase float64 `json:"revenuebase,omitempty"`

	// Rollup Revenue Net
	Revenuenet float64 `json:"revenuenet,omitempty"`

	// Rollup Revenue Not Taxable
	Revenuenottaxable float64 `json:"revenuenottaxable,omitempty"`

	// Start Date
	Startdate string `json:"startdate,omitempty"`

	// Reported Tax
	Subtotal float64 `json:"subtotal,omitempty"`

	// Rollup Tax
	Tax float64 `json:"tax,omitempty"`

	// Rollup Tax on Tax
	Taxontax float64 `json:"taxontax,omitempty"`

	// Tax Type
	Taxtypeid string `json:"taxtypeid,omitempty"`

	// tenantid
	Tenantid string `json:"tenantid,omitempty"`

	// Total Amount
	Totalamount float64 `json:"totalamount,omitempty"`

	// Rollup Unit Base
	Unitbase float64 `json:"unitbase,omitempty"`
}

// Validate validates this tax type account
func (m *TaxTypeAccount) Validate(formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *TaxTypeAccount) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *TaxTypeAccount) UnmarshalBinary(b []byte) error {
	var res TaxTypeAccount
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
