lib/api/sf-gate/sf_gate_models/tax_transaction.go

136 lines
3.0 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 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 (
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"
)
// TaxTransaction tax transaction
//
// swagger:model TaxTransaction
type TaxTransaction struct {
// Account
Accountid string `json:"accountid,omitempty"`
// Amount
Amount float64 `json:"amount,omitempty"`
// Effective Rate
Effectiverate float64 `json:"effectiverate,omitempty"`
// Filing
Filingid string `json:"filingid,omitempty"`
// Taxnexus Record Id
ID string `json:"id,omitempty"`
// Invoice
Invoiceid string `json:"invoiceid,omitempty"`
// Invoice Item
Invoiceitemid string `json:"invoiceitemid,omitempty"`
// isSummary
Issummary bool `json:"issummary,omitempty"`
// The Id of the GL Journal Item, part of a Journal Entry
Journalitemid string `json:"journalitemid,omitempty"`
// Order
Orderid string `json:"orderid,omitempty"`
// Order Product
Orderitemid string `json:"orderitemid,omitempty"`
// Percent Taxable
Percenttaxable float64 `json:"percenttaxable,omitempty"`
// Period
Periodid string `json:"periodid,omitempty"`
// Place
Placeid string `json:"placeid,omitempty"`
// Posted
Posted bool `json:"posted,omitempty"`
// Quote
Quoteid string `json:"quoteid,omitempty"`
// Quote Line Item
Quoteitemid string `json:"quoteitemid,omitempty"`
// Rating Ingest
Ratingingestid string `json:"ratingingestid,omitempty"`
// Rating Type
Ratingtype string `json:"ratingtype,omitempty"`
// Revenue Base
Revenuebase float64 `json:"revenuebase,omitempty"`
// Revenue Net
Revenuenet float64 `json:"revenuenet,omitempty"`
// Revenue Not Taxable
Revenuenottaxable float64 `json:"revenuenottaxable,omitempty"`
// Tax Exempt Revenue
Taxexemptrevenue float64 `json:"taxexemptrevenue,omitempty"`
// Tax Rate
Taxrate float64 `json:"taxrate,omitempty"`
// Tax Type
Taxtypeid string `json:"taxtypeid,omitempty"`
// tenant identifier
Tenantid string `json:"tenantid,omitempty"`
// Unit Base
Unitbase float64 `json:"unitbase,omitempty"`
// Unit Fee Rate
Unitfeerate float64 `json:"unitfeerate,omitempty"`
}
// Validate validates this tax transaction
func (m *TaxTransaction) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this tax transaction based on context it is used
func (m *TaxTransaction) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *TaxTransaction) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *TaxTransaction) UnmarshalBinary(b []byte) error {
var res TaxTransaction
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}