lib/api/ledger/v0.0.1/ledger_models/journal_item.go

108 lines
2.6 KiB
Go
Raw Permalink Normal View History

2021-01-08 17:00:13 +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 ledger_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"
)
// JournalItem journal item
//
// swagger:model JournalItem
type JournalItem struct {
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
// Credit value for this Journal Item
Credit float64 `json:"Credit,omitempty"`
// Debit value for this Journal Item
Debit float64 `json:"Debit,omitempty"`
// GL Account Display Value
GLAccountDisplay string `json:"GLAccountDisplay,omitempty"`
// GL Account ID
GLAccountID string `json:"GLAccountID,omitempty"`
// GL Balance ID
GLBalanceID string `json:"GLBalanceID,omitempty"`
// Invoice Item ID
InvoiceItemID string `json:"InvoiceItemID,omitempty"`
// Journal Entry ID
JournalEntryID string `json:"JournalEntryID,omitempty"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// PO Item ID
POItemID string `json:"POItemID,omitempty"`
// Product Code
ProducCode string `json:"ProducCode,omitempty"`
// Product ID
ProductID string `json:"ProductID,omitempty"`
// Reference Type
ReferenceType string `json:"ReferenceType,omitempty"`
// The Sales Regulation value for this CoA Item
SalesRegulation string `json:"SalesRegulation,omitempty"`
// Tax Transaction ID
TaxTransactionID string `json:"TaxTransactionID,omitempty"`
// Taxnexus Code Display Value
TaxnexusCodeDisplay string `json:"TaxnexusCodeDisplay,omitempty"`
// Taxnexus Code ID
TaxnexusCodeID string `json:"TaxnexusCodeID,omitempty"`
// Tenant that owns this object instance
TenantID string `json:"TenantID,omitempty"`
// Taxnexus Record Id Only; not used in POST
ID string `json:"id,omitempty"`
}
// Validate validates this journal item
func (m *JournalItem) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *JournalItem) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *JournalItem) UnmarshalBinary(b []byte) error {
var res JournalItem
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}