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

136 lines
3.0 KiB
Go
Raw Permalink 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"
)
// PlantBatch plant batch
//
// swagger:model PlantBatch
type PlantBatch struct {
// count
2021-02-09 16:56:57 +00:00
// Example: 80
2021-01-08 17:40:28 +00:00
Count float64 `json:"Count,omitempty"`
// destroyed count
2021-02-09 16:56:57 +00:00
// Example: 40
2021-01-08 17:40:28 +00:00
DestroyedCount float64 `json:"DestroyedCount,omitempty"`
// harvested count
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
HarvestedCount float64 `json:"HarvestedCount,omitempty"`
// Id
2021-02-09 16:56:57 +00:00
// Example: 5
2021-01-08 17:40:28 +00:00
ID float64 `json:"Id,omitempty"`
// last modified
2021-02-09 16:56:57 +00:00
// Example: 0001-01-01T00:00:00+00:00
2021-01-08 17:40:28 +00:00
LastModified string `json:"LastModified,omitempty"`
// live count
2021-02-09 16:56:57 +00:00
// Example: 10
2021-01-08 17:40:28 +00:00
LiveCount float64 `json:"LiveCount,omitempty"`
// name
2021-02-09 16:56:57 +00:00
// Example: Demo Plant Batch 1
2021-01-08 17:40:28 +00:00
Name string `json:"Name,omitempty"`
// packaged count
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
PackagedCount float64 `json:"PackagedCount,omitempty"`
// patient license number
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
PatientLicenseNumber string `json:"PatientLicenseNumber,omitempty"`
// planted date
2021-02-09 16:56:57 +00:00
// Example: 2014-10-10
2021-01-08 17:40:28 +00:00
PlantedDate string `json:"PlantedDate,omitempty"`
// room Id
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
RoomID string `json:"RoomId,omitempty"`
// room name
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
RoomName string `json:"RoomName,omitempty"`
// source package Id
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
SourcePackageID float64 `json:"SourcePackageId,omitempty"`
// source package label
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
SourcePackageLabel string `json:"SourcePackageLabel,omitempty"`
// source plant Id
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
SourcePlantID float64 `json:"SourcePlantId,omitempty"`
// source plant label
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
SourcePlantLabel string `json:"SourcePlantLabel,omitempty"`
// strain Id
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
StrainID float64 `json:"StrainId,omitempty"`
// strain name
2021-02-09 16:56:57 +00:00
// Example: Spring Hill Kush
2021-01-08 17:40:28 +00:00
StrainName string `json:"StrainName,omitempty"`
// tracked count
2021-02-09 16:56:57 +00:00
// Example: 10
2021-01-08 17:40:28 +00:00
TrackedCount float64 `json:"TrackedCount,omitempty"`
// type
2021-02-09 16:56:57 +00:00
// Example: Seed
2021-01-08 17:40:28 +00:00
Type string `json:"Type,omitempty"`
// untracked count
2021-02-09 16:56:57 +00:00
// Example: 80
2021-01-08 17:40:28 +00:00
UntrackedCount float64 `json:"UntrackedCount,omitempty"`
}
// Validate validates this plant batch
func (m *PlantBatch) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this plant batch based on context it is used
func (m *PlantBatch) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *PlantBatch) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PlantBatch) UnmarshalBinary(b []byte) error {
var res PlantBatch
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}