// 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 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 ( "context" "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 // Example: 0 COGS float64 `json:"COGS,omitempty"` // Line Item Description (not used in tax calculation) // Example: string Description string `json:"Description,omitempty"` // Taxnexus Record Id Only; not used in POST // Example: string ID string `json:"ID,omitempty"` // Source System Parent Foreign Key to Invoice // Example: string InvoiceID string `json:"InvoiceID,omitempty"` // The pre-discount price of the item // Example: 0 ListPrice float64 `json:"ListPrice,omitempty"` // The pre-discount price of the item // Example: 0 MRCInterval int64 `json:"MRCInterval,omitempty"` // UUID Reference the master record that owns this item // Example: string ParentFK string `json:"ParentFK,omitempty"` // Product Code (not used in tax calculation) // Example: string ProductCode string `json:"ProductCode,omitempty"` // Quantity // Example: 0 Quantity float64 `json:"Quantity,omitempty"` // Source System identifier for this record, if any; copied to invoiceitemid in Tax Transaction result records // Example: string Ref string `json:"Ref,omitempty"` // Sales Regulation Type // Example: string SalesRegulation string `json:"SalesRegulation,omitempty"` // Shipping & Handling and Delivery Fees for this Item // Example: 0 ShippingHandling float64 `json:"ShippingHandling,omitempty"` // Subtotal (not used in tax calculation) // Example: 0 Subtotal float64 `json:"Subtotal,omitempty"` // Taxnexus Code // Example: string TaxnexusCode string `json:"TaxnexusCode,omitempty"` // Unique Taxnexus ID // Example: string UUID string `json:"UUID,omitempty"` // Unit Price // Example: 0 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 } // ContextValidate validates this item basic based on context it is used func (m *ItemBasic) ContextValidate(ctx context.Context, 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 }