// 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"
)

// Filing filing
//
// swagger:model Filing
type Filing struct {

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

	// Account Name on Filing
	Accountname string `json:"accountname,omitempty"`

	// The amount of tax to be paid with this filing
	Amount float64 `json:"amount,omitempty"`

	// authorityid
	Authorityid string `json:"authorityid,omitempty"`

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

	// Created By User ID
	Createdbyid string `json:"createdbyid,omitempty"`

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

	// Filing Date
	Date string `json:"date,omitempty"`

	// Due Date
	Duedate string `json:"duedate,omitempty"`

	// Due Date
	Filingnumber string `json:"filingnumber,omitempty"`

	// The ID of the Filing Type for this Filing
	Filingtypeid string `json:"filingtypeid,omitempty"`

	// Due Date
	Frequency string `json:"frequency,omitempty"`

	// Record Id
	ID string `json:"id,omitempty"`

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

	// Interest
	Interestrate float64 `json:"interestrate,omitempty"`

	// Last Modified By User ID
	Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"`

	// Last Modified Date
	Lastmodifieddate string `json:"lastmodifieddate,omitempty"`

	// The number of the Month of the filing
	Monthnumber int64 `json:"monthnumber,omitempty"`

	// Taxneuxs ID of the User who owns this record
	Ownerid string `json:"ownerid,omitempty"`

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

	// Penalty Days
	Penaltydays float64 `json:"penaltydays,omitempty"`

	// Penalty Days
	Penaltyrate float64 `json:"penaltyrate,omitempty"`

	// Period
	Periodid string `json:"periodid,omitempty"`

	// Taxnexus ID of the Contact who prepared this filing
	Preparerid string `json:"preparerid,omitempty"`

	// The number of the Month of the filing
	Quarternumber int64 `json:"quarternumber,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"`

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

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

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

	// The number of the Month of the filing
	Semiannualnumber int64 `json:"semiannualnumber,omitempty"`

	// Status
	Status string `json:"status,omitempty"`

	// Taxnexus ID of the Submission that owns this Filing
	Submissionid string `json:"submissionid,omitempty"`

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

	// Tax On Tax
	Taxontax float64 `json:"taxontax,omitempty"`

	// The TaxType Account for which this Filing is paying remittance
	Taxtypeaccountid string `json:"taxtypeaccountid,omitempty"`

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

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

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

	// The number of the Month of the filing
	Yearnumber int64 `json:"yearnumber,omitempty"`
}

// Validate validates this filing
func (m *Filing) Validate(formats strfmt.Registry) error {
	return nil
}

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

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