// 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 regs_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 {

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

	// The amount of tax to be paid with this filing
	Amount float64 `json:"Amount,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 that owns this object instance
	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
}
