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

120 lines
2.7 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"
)
// Harvest harvest
//
// swagger:model Harvest
type Harvest struct {
// current weight
// Example: 0
CurrentWeight float64 `json:"CurrentWeight,omitempty"`
// drying room Id
// Example: 1
DryingRoomID float64 `json:"DryingRoomId,omitempty"`
// drying room name
// Example: Harvest Room
DryingRoomName string `json:"DryingRoomName,omitempty"`
// harvest start date
// Example: 2014-11-19
HarvestStartDate string `json:"HarvestStartDate,omitempty"`
// harvest type
// Example: WholePlant
HarvestType string `json:"HarvestType,omitempty"`
// Id
// Example: 2
ID float64 `json:"Id,omitempty"`
// is on hold
// Example: false
IsOnHold bool `json:"IsOnHold,omitempty"`
// last modified
// Example: 0001-01-01T00:00:00+00:00
LastModified string `json:"LastModified,omitempty"`
// name
// Example: 2014-11-19-Harvest Room-H
Name string `json:"Name,omitempty"`
// package count
// Example: 0
PackageCount float64 `json:"PackageCount,omitempty"`
// plant count
// Example: 70
PlantCount float64 `json:"PlantCount,omitempty"`
// source strain count
// Example: 0
SourceStrainCount float64 `json:"SourceStrainCount,omitempty"`
// total packaged weight
// Example: 0
TotalPackagedWeight float64 `json:"TotalPackagedWeight,omitempty"`
// total restored weight
// Example: 0
TotalRestoredWeight float64 `json:"TotalRestoredWeight,omitempty"`
// total waste weight
// Example: 0
TotalWasteWeight float64 `json:"TotalWasteWeight,omitempty"`
// total wet weight
// Example: 40
TotalWetWeight float64 `json:"TotalWetWeight,omitempty"`
// unit of weight name
// Example: Ounces
UnitOfWeightName string `json:"UnitOfWeightName,omitempty"`
}
// Validate validates this harvest
func (m *Harvest) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this harvest based on context it is used
func (m *Harvest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Harvest) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Harvest) UnmarshalBinary(b []byte) error {
var res Harvest
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}