// 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 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 (
	"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
	COGS float64 `json:"COGS,omitempty"`

	// Line Item Description (not used in tax calculation)
	Description string `json:"Description,omitempty"`

	// Taxnexus Record Id Only; not used in POST
	ID string `json:"ID,omitempty"`

	// Source System Parent Foreign Key to Invoice
	InvoiceID string `json:"InvoiceID,omitempty"`

	// The pre-discount price of the item
	ListPrice float64 `json:"ListPrice,omitempty"`

	// The pre-discount price of the item
	MRCInterval int64 `json:"MRCInterval,omitempty"`

	// UUID Reference the master record that owns this item
	ParentFK string `json:"ParentFK,omitempty"`

	// Product Code (not used in tax calculation)
	ProductCode string `json:"ProductCode,omitempty"`

	// Quantity
	Quantity float64 `json:"Quantity,omitempty"`

	// Source System identifier for this record, if any; copied to invoiceitemid in Tax Transaction result records
	Ref string `json:"Ref,omitempty"`

	// Sales Regulation Type
	SalesRegulation string `json:"SalesRegulation,omitempty"`

	// Shipping & Handling and Delivery Fees for this Item
	ShippingHandling float64 `json:"ShippingHandling,omitempty"`

	// Subtotal (not used in tax calculation)
	Subtotal float64 `json:"Subtotal,omitempty"`

	// Taxnexus Code
	TaxnexusCode string `json:"TaxnexusCode,omitempty"`

	// Unique Taxnexus ID
	UUID string `json:"UUID,omitempty"`

	// Unit Price
	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
}

// 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
}
