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

120 lines
2.7 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"
)
// Harvest harvest
//
// swagger:model Harvest
type Harvest struct {
// current weight
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
CurrentWeight float64 `json:"CurrentWeight,omitempty"`
// drying room Id
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
DryingRoomID float64 `json:"DryingRoomId,omitempty"`
// drying room name
2021-02-09 16:56:57 +00:00
// Example: Harvest Room
2021-01-08 17:40:28 +00:00
DryingRoomName string `json:"DryingRoomName,omitempty"`
// harvest start date
2021-02-09 16:56:57 +00:00
// Example: 2014-11-19
2021-01-08 17:40:28 +00:00
HarvestStartDate string `json:"HarvestStartDate,omitempty"`
// harvest type
2021-02-09 16:56:57 +00:00
// Example: WholePlant
2021-01-08 17:40:28 +00:00
HarvestType string `json:"HarvestType,omitempty"`
// Id
2021-02-09 16:56:57 +00:00
// Example: 2
2021-01-08 17:40:28 +00:00
ID float64 `json:"Id,omitempty"`
// is on hold
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
IsOnHold bool `json:"IsOnHold,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"`
// name
2021-02-09 16:56:57 +00:00
// Example: 2014-11-19-Harvest Room-H
2021-01-08 17:40:28 +00:00
Name string `json:"Name,omitempty"`
// package count
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
PackageCount float64 `json:"PackageCount,omitempty"`
// plant count
2021-02-09 16:56:57 +00:00
// Example: 70
2021-01-08 17:40:28 +00:00
PlantCount float64 `json:"PlantCount,omitempty"`
// source strain count
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
SourceStrainCount float64 `json:"SourceStrainCount,omitempty"`
// total packaged weight
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TotalPackagedWeight float64 `json:"TotalPackagedWeight,omitempty"`
// total restored weight
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TotalRestoredWeight float64 `json:"TotalRestoredWeight,omitempty"`
// total waste weight
2021-02-09 16:56:57 +00:00
// Example: 0
2021-01-08 17:40:28 +00:00
TotalWasteWeight float64 `json:"TotalWasteWeight,omitempty"`
// total wet weight
2021-02-09 16:56:57 +00:00
// Example: 40
2021-01-08 17:40:28 +00:00
TotalWetWeight float64 `json:"TotalWetWeight,omitempty"`
// unit of weight name
2021-02-09 16:56:57 +00:00
// Example: Ounces
2021-01-08 17:40:28 +00:00
UnitOfWeightName string `json:"UnitOfWeightName,omitempty"`
}
// Validate validates this harvest
func (m *Harvest) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this harvest based on context it is used
func (m *Harvest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// 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
}