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 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 (
|
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"
|
|
|
|
)
|
|
|
|
|
|
|
|
// OrderItem order item
|
|
|
|
//
|
|
|
|
// swagger:model OrderItem
|
|
|
|
type OrderItem struct {
|
|
|
|
|
|
|
|
// Activated?
|
|
|
|
Activated bool `json:"Activated,omitempty"`
|
|
|
|
|
|
|
|
// Activated By
|
|
|
|
ActiveatedByID string `json:"ActiveatedByID,omitempty"`
|
|
|
|
|
|
|
|
// Available Quantity
|
|
|
|
AvailableQuantity float64 `json:"AvailableQuantity,omitempty"`
|
|
|
|
|
|
|
|
// Cost of Goods Sold
|
|
|
|
COGS float64 `json:"COGS,omitempty"`
|
|
|
|
|
|
|
|
// Create Reservation?
|
|
|
|
CreateReservation bool `json:"CreateReservation,omitempty"`
|
|
|
|
|
|
|
|
// Created By User ID
|
|
|
|
CreatedByID string `json:"CreatedByID,omitempty"`
|
|
|
|
|
|
|
|
// Created Date
|
|
|
|
CreatedDate string `json:"CreatedDate,omitempty"`
|
|
|
|
|
|
|
|
// Date Delivered
|
|
|
|
DateDelivered string `json:"DateDelivered,omitempty"`
|
|
|
|
|
|
|
|
// Date Ordered
|
|
|
|
DateOrdered string `json:"DateOrdered,omitempty"`
|
|
|
|
|
|
|
|
// Date Promised
|
|
|
|
DatePromised string `json:"DatePromised,omitempty"`
|
|
|
|
|
|
|
|
// Line Description
|
|
|
|
Description string `json:"Description,omitempty"`
|
|
|
|
|
|
|
|
// Discount
|
|
|
|
Discount float64 `json:"Discount,omitempty"`
|
|
|
|
|
|
|
|
// Family
|
|
|
|
Family string `json:"Family,omitempty"`
|
|
|
|
|
|
|
|
// Taxnexus Record Id
|
|
|
|
ID string `json:"ID,omitempty"`
|
|
|
|
|
|
|
|
// Invoice Item
|
|
|
|
InvoiceItemID string `json:"InvoiceItemID,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"`
|
|
|
|
|
|
|
|
// Location
|
|
|
|
LocationID string `json:"LocationID,omitempty"`
|
|
|
|
|
|
|
|
// Monthly Recurring Charge Indicator
|
|
|
|
MRCInterval int64 `json:"MRCInterval,omitempty"`
|
|
|
|
|
|
|
|
// Order
|
|
|
|
OrderID string `json:"OrderID,omitempty"`
|
|
|
|
|
|
|
|
// Original Order Product
|
|
|
|
OriginalOrderItemID string `json:"OriginalOrderItemID,omitempty"`
|
|
|
|
|
2021-01-17 21:49:00 +00:00
|
|
|
// Reference the master record that owns this item
|
2021-01-08 17:40:28 +00:00
|
|
|
ParentFK string `json:"ParentFK,omitempty"`
|
|
|
|
|
|
|
|
// Posted to external system?
|
|
|
|
Posted bool `json:"Posted,omitempty"`
|
|
|
|
|
|
|
|
// Product Code
|
|
|
|
ProductCode string `json:"ProductCode,omitempty"`
|
|
|
|
|
|
|
|
// Product
|
|
|
|
ProductID string `json:"ProductID,omitempty"`
|
|
|
|
|
|
|
|
// Product Name
|
|
|
|
ProductName string `json:"ProductName,omitempty"`
|
|
|
|
|
|
|
|
// Quantity
|
|
|
|
Quantity float64 `json:"Quantity,omitempty"`
|
|
|
|
|
|
|
|
// Quantity On Hand
|
|
|
|
QuantityOnHand float64 `json:"QuantityOnHand,omitempty"`
|
|
|
|
|
|
|
|
// Quote Line Item
|
|
|
|
QuoteItemID string `json:"QuoteItemID,omitempty"`
|
|
|
|
|
|
|
|
// Source System identifier for this record, if any
|
|
|
|
Ref string `json:"Ref,omitempty"`
|
|
|
|
|
|
|
|
// Start Date
|
|
|
|
ServiceDate string `json:"ServiceDate,omitempty"`
|
|
|
|
|
|
|
|
// Shipping & Handling
|
|
|
|
ShippingHandling float64 `json:"ShippingHandling,omitempty"`
|
|
|
|
|
|
|
|
// Status
|
|
|
|
Status string `json:"Status,omitempty"`
|
|
|
|
|
|
|
|
// Subscription
|
|
|
|
SubscriptionID string `json:"SubscriptionID,omitempty"`
|
|
|
|
|
|
|
|
// Subtotal
|
|
|
|
Subtotal float64 `json:"Subtotal,omitempty"`
|
|
|
|
|
|
|
|
// Taxnexus Code Display
|
|
|
|
TaxnexusCodeDisplay string `json:"TaxnexusCodeDisplay,omitempty"`
|
|
|
|
|
|
|
|
// Taxnexus Code
|
|
|
|
TaxnexusCodeID string `json:"TaxnexusCodeID,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"`
|
|
|
|
|
|
|
|
// Units
|
|
|
|
Units string `json:"Units,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// Validate validates this order item
|
|
|
|
func (m *OrderItem) Validate(formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-02-09 16:56:57 +00:00
|
|
|
// ContextValidate validates this order item based on context it is used
|
|
|
|
func (m *OrderItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-08 17:40:28 +00:00
|
|
|
// MarshalBinary interface implementation
|
|
|
|
func (m *OrderItem) MarshalBinary() ([]byte, error) {
|
|
|
|
if m == nil {
|
|
|
|
return nil, nil
|
|
|
|
}
|
|
|
|
return swag.WriteJSON(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
// UnmarshalBinary interface implementation
|
|
|
|
func (m *OrderItem) UnmarshalBinary(b []byte) error {
|
|
|
|
var res OrderItem
|
|
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
*m = res
|
|
|
|
return nil
|
|
|
|
}
|