lib/api/vendor-gw/vendor_gw_models/item_basic.go

119 lines
2.9 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 vendor_gw_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"
)
// ItemBasic item basic
//
// swagger:model ItemBasic
type ItemBasic struct {
// Cost of Goods Sold for this Item
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
COGS float64 `json:"COGS,omitempty"`
// Line Item Description (not used in tax calculation)
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
Description string `json:"Description,omitempty"`
// Taxnexus Record Id Only; not used in POST
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ID string `json:"ID,omitempty"`
// Source System Parent Foreign Key to Invoice
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
InvoiceID string `json:"InvoiceID,omitempty"`
// The pre-discount price of the item
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
ListPrice float64 `json:"ListPrice,omitempty"`
// The pre-discount price of the item
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
MRCInterval int64 `json:"MRCInterval,omitempty"`
// UUID Reference the master record that owns this item
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ParentFK string `json:"ParentFK,omitempty"`
// Product Code (not used in tax calculation)
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ProductCode string `json:"ProductCode,omitempty"`
// Quantity
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Quantity float64 `json:"Quantity,omitempty"`
// Source System identifier for this record, if any; copied to invoiceitemid in Tax Transaction result records
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
Ref string `json:"Ref,omitempty"`
// Sales Regulation Type
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
SalesRegulation string `json:"SalesRegulation,omitempty"`
// Shipping & Handling and Delivery Fees for this Item
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
ShippingHandling float64 `json:"ShippingHandling,omitempty"`
// Subtotal (not used in tax calculation)
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
Subtotal float64 `json:"Subtotal,omitempty"`
// Taxnexus Code
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
TaxnexusCode string `json:"TaxnexusCode,omitempty"`
// Unique Taxnexus ID
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
UUID string `json:"UUID,omitempty"`
// Unit Price
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
UnitPrice float64 `json:"UnitPrice,omitempty"`
// The Unit of Measure for this item
Units string `json:"Units,omitempty"`
}
// Validate validates this item basic
func (m *ItemBasic) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this item basic based on context it is used
func (m *ItemBasic) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *ItemBasic) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *ItemBasic) UnmarshalBinary(b []byte) error {
var res ItemBasic
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}