lib/api/metrc-gw/metrc_gw_models/item.go

101 lines
2.3 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 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 (
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"
)
// Item item
//
// swagger:model Item
type Item struct {
// administration method
AdministrationMethod string `json:"AdministrationMethod,omitempty"`
// approval status
2021-02-09 16:56:57 +00:00
// Example: Approved
2021-01-08 17:40:28 +00:00
ApprovalStatus string `json:"ApprovalStatus,omitempty"`
// default lab testing state
2021-02-09 16:56:57 +00:00
// Example: NotSubmitted
2021-01-08 17:40:28 +00:00
DefaultLabTestingState string `json:"DefaultLabTestingState,omitempty"`
// Id
2021-02-09 16:56:57 +00:00
// Example: 34904
2021-01-08 17:40:28 +00:00
ID float64 `json:"Id,omitempty"`
// ingredients
Ingredients string `json:"Ingredients,omitempty"`
// name
2021-02-09 16:56:57 +00:00
// Example: Ak-47 Shatter 2
2021-01-08 17:40:28 +00:00
Name string `json:"Name,omitempty"`
// product category name
2021-02-09 16:56:57 +00:00
// Example: Extracts (each)
2021-01-08 17:40:28 +00:00
ProductCategoryName string `json:"ProductCategoryName,omitempty"`
// product category type
2021-02-09 16:56:57 +00:00
// Example: Concentrate
2021-01-08 17:40:28 +00:00
ProductCategoryType string `json:"ProductCategoryType,omitempty"`
// quantity type
2021-02-09 16:56:57 +00:00
// Example: CountBased
2021-01-08 17:40:28 +00:00
QuantityType string `json:"QuantityType,omitempty"`
// serving size
ServingSize string `json:"ServingSize,omitempty"`
// unit of measure name
2021-02-09 16:56:57 +00:00
// Example: Each
2021-01-08 17:40:28 +00:00
UnitOfMeasureName string `json:"UnitOfMeasureName,omitempty"`
// unit weight
2021-02-09 16:56:57 +00:00
// Example: 50
2021-01-08 17:40:28 +00:00
UnitWeight float64 `json:"UnitWeight,omitempty"`
// unit weight unit of measure name
2021-02-09 16:56:57 +00:00
// Example: Milligrams
2021-01-08 17:40:28 +00:00
UnitWeightUnitOfMeasureName string `json:"UnitWeightUnitOfMeasureName,omitempty"`
}
// Validate validates this item
func (m *Item) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this item based on context it is used
func (m *Item) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// 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
}