101 lines
2.3 KiB
Go
101 lines
2.3 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 metrc_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"
|
|
)
|
|
|
|
// Item item
|
|
//
|
|
// swagger:model Item
|
|
type Item struct {
|
|
|
|
// administration method
|
|
AdministrationMethod string `json:"AdministrationMethod,omitempty"`
|
|
|
|
// approval status
|
|
// Example: Approved
|
|
ApprovalStatus string `json:"ApprovalStatus,omitempty"`
|
|
|
|
// default lab testing state
|
|
// Example: NotSubmitted
|
|
DefaultLabTestingState string `json:"DefaultLabTestingState,omitempty"`
|
|
|
|
// Id
|
|
// Example: 34904
|
|
ID float64 `json:"Id,omitempty"`
|
|
|
|
// ingredients
|
|
Ingredients string `json:"Ingredients,omitempty"`
|
|
|
|
// name
|
|
// Example: Ak-47 Shatter 2
|
|
Name string `json:"Name,omitempty"`
|
|
|
|
// product category name
|
|
// Example: Extracts (each)
|
|
ProductCategoryName string `json:"ProductCategoryName,omitempty"`
|
|
|
|
// product category type
|
|
// Example: Concentrate
|
|
ProductCategoryType string `json:"ProductCategoryType,omitempty"`
|
|
|
|
// quantity type
|
|
// Example: CountBased
|
|
QuantityType string `json:"QuantityType,omitempty"`
|
|
|
|
// serving size
|
|
ServingSize string `json:"ServingSize,omitempty"`
|
|
|
|
// unit of measure name
|
|
// Example: Each
|
|
UnitOfMeasureName string `json:"UnitOfMeasureName,omitempty"`
|
|
|
|
// unit weight
|
|
// Example: 50
|
|
UnitWeight float64 `json:"UnitWeight,omitempty"`
|
|
|
|
// unit weight unit of measure name
|
|
// Example: Milligrams
|
|
UnitWeightUnitOfMeasureName string `json:"UnitWeightUnitOfMeasureName,omitempty"`
|
|
}
|
|
|
|
// Validate validates this item
|
|
func (m *Item) Validate(formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// ContextValidate validates this item based on context it is used
|
|
func (m *Item) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
|
return nil
|
|
}
|
|
|
|
// MarshalBinary interface implementation
|
|
func (m *Item) MarshalBinary() ([]byte, error) {
|
|
if m == nil {
|
|
return nil, nil
|
|
}
|
|
return swag.WriteJSON(m)
|
|
}
|
|
|
|
// UnmarshalBinary interface implementation
|
|
func (m *Item) UnmarshalBinary(b []byte) error {
|
|
var res Item
|
|
if err := swag.ReadJSON(b, &res); err != nil {
|
|
return err
|
|
}
|
|
*m = res
|
|
return nil
|
|
}
|