139 lines
3.2 KiB
Go
139 lines
3.2 KiB
Go
// 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 ops_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"
|
|
)
|
|
|
|
// InvoiceItem invoice item
|
|
//
|
|
// swagger:model InvoiceItem
|
|
type InvoiceItem struct {
|
|
|
|
// Cost of Goods Sold
|
|
COGS float64 `json:"COGS,omitempty"`
|
|
|
|
// Created By User ID
|
|
CreatedByID string `json:"CreatedByID,omitempty"`
|
|
|
|
// Created Date
|
|
CreatedDate string `json:"CreatedDate,omitempty"`
|
|
|
|
// Line Item Description
|
|
Description string `json:"Description,omitempty"`
|
|
|
|
// Family
|
|
Family string `json:"Family,omitempty"`
|
|
|
|
// Taxnexus Record Id
|
|
ID string `json:"ID,omitempty"`
|
|
|
|
// Invoice
|
|
InvoiceID string `json:"InvoiceID,omitempty"`
|
|
|
|
// Last Modified By User ID
|
|
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
|
|
|
|
// Last Modified Date
|
|
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
|
|
|
|
// List Price
|
|
ListPrice float64 `json:"ListPrice,omitempty"`
|
|
|
|
// Quantity
|
|
MRCInterval int64 `json:"MRCInterval,omitempty"`
|
|
|
|
// Order Item
|
|
OrderItemID string `json:"OrderItemID,omitempty"`
|
|
|
|
// Reference the master record that owns this item
|
|
ParentFK string `json:"ParentFK,omitempty"`
|
|
|
|
// Product Code
|
|
ProductCode string `json:"ProductCode,omitempty"`
|
|
|
|
// Product
|
|
ProductID string `json:"ProductID,omitempty"`
|
|
|
|
// Quantity
|
|
Quantity float64 `json:"Quantity,omitempty"`
|
|
|
|
// Quote Line Item
|
|
QuoteItemID string `json:"QuoteItemID,omitempty"`
|
|
|
|
// Source System identifier for this record, if any
|
|
Ref string `json:"Ref,omitempty"`
|
|
|
|
// Rejected Quantity
|
|
RejectedQuantity float64 `json:"RejectedQuantity,omitempty"`
|
|
|
|
// SKU
|
|
SKU string `json:"SKU,omitempty"`
|
|
|
|
// Shipped Quantity
|
|
ShippedQuantity float64 `json:"ShippedQuantity,omitempty"`
|
|
|
|
// Shipping & Handling
|
|
ShippingHandling float64 `json:"ShippingHandling,omitempty"`
|
|
|
|
// Subscription
|
|
SubscriptionID string `json:"SubscriptionID,omitempty"`
|
|
|
|
// Subtotal
|
|
Subtotal float64 `json:"Subtotal,omitempty"`
|
|
|
|
// Taxnexus Code
|
|
TaxnexusCode string `json:"TaxnexusCode,omitempty"`
|
|
|
|
// ID of the Tenant that owns this object
|
|
TenantID string `json:"TenantID,omitempty"`
|
|
|
|
// Total Price
|
|
TotalPrice float64 `json:"TotalPrice,omitempty"`
|
|
|
|
// Unit Price
|
|
UnitPrice float64 `json:"UnitPrice,omitempty"`
|
|
|
|
// The Unit of Measure for this item
|
|
Units string `json:"Units,omitempty"`
|
|
}
|
|
|
|
// Validate validates this invoice item
|
|
func (m *InvoiceItem) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this invoice item based on context it is used
|
|
func (m *InvoiceItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *InvoiceItem) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *InvoiceItem) UnmarshalBinary(b []byte) error {
|
|
var res InvoiceItem
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|