lib/api/geo/geo_models/tax_instance.go

75 lines
2.0 KiB
Go
Raw Normal View History

2021-01-08 17:40:28 +00:00
// 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 geo_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"
)
// TaxInstance tax instance
//
// swagger:model TaxInstance
type TaxInstance struct {
// The Taxnexus ID of the Country that owns this instance
CountryID string `json:"CountryID,omitempty"`
// The Taxnexus ID of the County that owns this instance
CountyID string `json:"CountyID,omitempty"`
// The Taxnexus ID of the user who created this record
CreatedByID string `json:"CreatedByID,omitempty"`
// The creation date of this database record
CreatedDate string `json:"CreatedDate,omitempty"`
// last modified by ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// last modified date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// The Taxnexus ID of the Place that owns this instance
PlaceID string `json:"PlaceID,omitempty"`
// The Taxnexus ID of the State that owns this instance
StateID string `json:"StateID,omitempty"`
// The Taxnexus Tax Type ID of this instance
TaxTypeID string `json:"TaxTypeID,omitempty"`
// The Type of instance refers to the linking object (place, county, state, country)
Type string `json:"Type,omitempty"`
}
// Validate validates this tax instance
func (m *TaxInstance) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *TaxInstance) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TaxInstance) UnmarshalBinary(b []byte) error {
var res TaxInstance
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}