lib/api/geo/geo_models/tax_rate.go

94 lines
2.2 KiB
Go
Raw Permalink Normal View History

2021-01-08 17:40:28 +00:00
// Code generated by go-swagger; DO NOT EDIT.
2021-01-19 16:58:40 +00:00
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
2021-01-08 17:40:28 +00:00
// 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 (
2021-02-09 16:56:57 +00:00
"context"
2021-01-08 17:40:28 +00:00
"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
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this tax rate based on context it is used
func (m *TaxRate) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// 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
}