94 lines
2.2 KiB
Go
94 lines
2.2 KiB
Go
// Code generated by go-swagger; DO NOT EDIT.
|
|
|
|
// All Code Copyright(c) 2018-2021 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 (
|
|
"context"
|
|
|
|
"github.com/go-openapi/strfmt"
|
|
"github.com/go-openapi/swag"
|
|
)
|
|
|
|
// TaxRate tax rate
|
|
//
|
|
// swagger:model TaxRate
|
|
type TaxRate struct {
|
|
|
|
// Total Sales Tax Rate (use this one!)
|
|
CombinedRate float64 `json:"CombinedRate,omitempty"`
|
|
|
|
// County full name
|
|
County string `json:"County,omitempty"`
|
|
|
|
// County Taxnexus ID
|
|
CountyID string `json:"CountyID,omitempty"`
|
|
|
|
// County Sales Tax Rate
|
|
CountyRate float64 `json:"CountyRate,omitempty"`
|
|
|
|
// Date of tax situs determination
|
|
Date string `json:"Date,omitempty"`
|
|
|
|
// Where the tax rate is focused (place or county)
|
|
Focus string `json:"Focus,omitempty"`
|
|
|
|
// Taxnexus Geocode for this location
|
|
Geocode string `json:"Geocode,omitempty"`
|
|
|
|
// Journal Entry Date (transaction date)
|
|
JournalDate string `json:"JournalDate,omitempty"`
|
|
|
|
// City/Town/Village full name
|
|
Place string `json:"Place,omitempty"`
|
|
|
|
// City/Town/Village Taxnexus ID
|
|
PlaceID string `json:"PlaceID,omitempty"`
|
|
|
|
// City/Town/Village Tax Rate
|
|
PlaceRate float64 `json:"PlaceRate,omitempty"`
|
|
|
|
// State full name
|
|
State string `json:"State,omitempty"`
|
|
|
|
// State Taxnexus ID
|
|
StateID string `json:"StateID,omitempty"`
|
|
|
|
// State Sales Tax Rate
|
|
StateRate float64 `json:"StateRate,omitempty"`
|
|
}
|
|
|
|
// Validate validates this tax rate
|
|
func (m *TaxRate) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this tax rate based on context it is used
|
|
func (m *TaxRate) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *TaxRate) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *TaxRate) UnmarshalBinary(b []byte) error {
|
|
var res TaxRate
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|