lib/api/ops/ops_models/purchase_order_item.go

145 lines
3.5 KiB
Go
Raw 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 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"
)
// PurchaseOrderItem purchase order item
//
// swagger:model PurchaseOrderItem
type PurchaseOrderItem struct {
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
// Line Item Description
Description string `json:"Description,omitempty"`
// Due Date
DueDate string `json:"DueDate,omitempty"`
// Product Family
Family string `json:"Family,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Location
LocationID string `json:"LocationID,omitempty"`
// Monthly Recurring Cost Interval
MRCInterval int64 `json:"MRCInterval,omitempty"`
// Order Item
OrderItemID string `json:"OrderItemID,omitempty"`
// The record identifier of the parent record from the source system
ParentFK string `json:"ParentFK,omitempty"`
// Product Code
ProductCode string `json:"ProductCode,omitempty"`
// Product ID
ProductID string `json:"ProductID,omitempty"`
2021-01-14 06:36:35 +00:00
// Product Name
ProductName string `json:"ProductName,omitempty"`
2021-01-08 17:40:28 +00:00
// Purchase Order
PurchaseOrderID string `json:"PurchaseOrderID,omitempty"`
// Quantity
Quantity float64 `json:"Quantity,omitempty"`
// Quote Item
QuoteItemID string `json:"QuoteItemID,omitempty"`
// Received Quantity
ReceivedQuantity float64 `json:"ReceivedQuantity,omitempty"`
// Source System identifier for this record, if any
Ref string `json:"Ref,omitempty"`
// Rejected Quantity
RejectedQuantity float64 `json:"RejectedQuantity,omitempty"`
// Shipping costs for this item
ShippingHandling float64 `json:"ShippingHandling,omitempty"`
// Shipment Item ID
ShippmentItemID string `json:"ShippmentItemID,omitempty"`
// Status
Status string `json:"Status,omitempty"`
// Stocked Quantity
StockedQuantity float64 `json:"StockedQuantity,omitempty"`
// Subtotal
Subtotal float64 `json:"Subtotal,omitempty"`
// Taxnexus Code
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"`
// Unit Price
UnitPrice float64 `json:"UnitPrice,omitempty"`
// Units
Units string `json:"Units,omitempty"`
}
// Validate validates this purchase order item
func (m *PurchaseOrderItem) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this purchase order item based on context it is used
func (m *PurchaseOrderItem) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *PurchaseOrderItem) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PurchaseOrderItem) UnmarshalBinary(b []byte) error {
var res PurchaseOrderItem
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}