// 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 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 ( "context" "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // AccountingRule accounting rule // // swagger:model AccountingRule type AccountingRule struct { // The Account for whom this Account Rule exists Accountid string `json:"accountid,omitempty"` // The Code used for Accounting Rule Lookups Code string `json:"code,omitempty"` // The Cost of Goods Sold account to be used for this Accounting Rule Cogsaccountid string `json:"cogsaccountid,omitempty"` // COGS Account Name Cogsaccountname string `json:"cogsaccountname,omitempty"` // Created By Createdbyid string `json:"createdbyid,omitempty"` // Created Date Createddate string `json:"createddate,omitempty"` // The GL Account that is the Credit Account to be used in this Accounting Rule Creditaccountid string `json:"creditaccountid,omitempty"` // Credit Account Name Creditaccountname string `json:"creditaccountname,omitempty"` // The GL Account that is the Debit Account to be used in this Accounting Rule Debitaccountid string `json:"debitaccountid,omitempty"` // Debit Account Name Debitaccountname string `json:"debitaccountname,omitempty"` // Description Description string `json:"description,omitempty"` // Taxnexus Record Id ID string `json:"id,omitempty"` // The GL Account that is the Inventory Account to be used in this Accounting Rule Inventoryaccountid string `json:"inventoryaccountid,omitempty"` // Inventory Account Name Inventoryaccountname string `json:"inventoryaccountname,omitempty"` // Is this a deferred tax, not to be charged on the invoice? Isdeferred bool `json:"isdeferred,omitempty"` // Last Modified By Lastmodifiedbyid string `json:"lastmodifiedbyid,omitempty"` // Last Modified Date Lastmodifieddate string `json:"lastmodifieddate,omitempty"` // Parent Foreign Key Parentfk string `json:"parentfk,omitempty"` // The Proportion of Revenue which is governed by this Accounting Rule; used for proportional taxing of products and services Proportion float64 `json:"proportion,omitempty"` // tenant identifier Tenantid string `json:"tenantid,omitempty"` } // Validate validates this accounting rule func (m *AccountingRule) Validate(formats strfmt.Registry) error { return nil } // ContextValidate validates this accounting rule based on context it is used func (m *AccountingRule) ContextValidate(ctx context.Context, formats strfmt.Registry) error { return nil } // MarshalBinary interface implementation func (m *AccountingRule) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *AccountingRule) UnmarshalBinary(b []byte) error { var res AccountingRule if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }