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

180 lines
4.5 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"
)
// Package package
//
// swagger:model Package
type Package struct {
// archived date
// Example: 2014-11-29
ArchivedDate string `json:"ArchivedDate,omitempty"`
// contains remediated product
// Example: false
ContainsRemediatedProduct bool `json:"ContainsRemediatedProduct,omitempty"`
// finished date
// Example: 2014-11-29
FinishedDate string `json:"FinishedDate,omitempty"`
// Id
// Example: 2
ID float64 `json:"Id,omitempty"`
// initial lab testing state
// Example: NotSubmitted
InitialLabTestingState string `json:"InitialLabTestingState,omitempty"`
// is on hold
// Example: false
IsOnHold bool `json:"IsOnHold,omitempty"`
// is process validation testing sample
// Example: false
IsProcessValidationTestingSample bool `json:"IsProcessValidationTestingSample,omitempty"`
// is production batch
// Example: false
IsProductionBatch bool `json:"IsProductionBatch,omitempty"`
// is testing sample
// Example: false
IsTestingSample bool `json:"IsTestingSample,omitempty"`
// lab testing state
// Example: NotSubmitted
LabTestingState string `json:"LabTestingState,omitempty"`
// lab testing state date
// Example: 2014-11-29
LabTestingStateDate string `json:"LabTestingStateDate,omitempty"`
// label
// Example: ABCDEF012345670000010042
Label string `json:"Label,omitempty"`
// last modified
// Example: 2019-01-30T02:52:15.0599079+00:00
LastModified string `json:"LastModified,omitempty"`
// package type
// Example: Product
PackageType string `json:"PackageType,omitempty"`
// packaged date
// Example: 2014-11-29
PackagedDate string `json:"PackagedDate,omitempty"`
// patient license number
// Example: _string_
PatientLicenseNumber string `json:"PatientLicenseNumber,omitempty"`
// product category name
// Example: Buds
ProductCategoryName string `json:"ProductCategoryName,omitempty"`
// product Id
// Example: 1
ProductID float64 `json:"ProductId,omitempty"`
// product name
// Example: Buds
ProductName string `json:"ProductName,omitempty"`
// product requires remediation
// Example: false
ProductRequiresRemediation bool `json:"ProductRequiresRemediation,omitempty"`
// production batch number
// Example: _string_
ProductionBatchNumber string `json:"ProductionBatchNumber,omitempty"`
// quantity
// Example: 1
Quantity float64 `json:"Quantity,omitempty"`
// received date time
// Example: _string_
ReceivedDateTime string `json:"ReceivedDateTime,omitempty"`
// received from facility license number
// Example: _string_
ReceivedFromFacilityLicenseNumber string `json:"ReceivedFromFacilityLicenseNumber,omitempty"`
// received from facility name
// Example: _string_
ReceivedFromFacilityName string `json:"ReceivedFromFacilityName,omitempty"`
// received from manifest number
// Example: _string_
ReceivedFromManifestNumber string `json:"ReceivedFromManifestNumber,omitempty"`
// remediation date
// Example: 2014-11-29
RemediationDate string `json:"RemediationDate,omitempty"`
// room Id
// Example: _string_
RoomID string `json:"RoomId,omitempty"`
// room name
// Example: _string_
RoomName string `json:"RoomName,omitempty"`
// source harvest names
// Example: _string_
SourceHarvestNames string `json:"SourceHarvestNames,omitempty"`
// unit of measure abbreviation
// Example: oz
UnitOfMeasureAbbreviation string `json:"UnitOfMeasureAbbreviation,omitempty"`
// unit of measure name
// Example: Ounces
UnitOfMeasureName string `json:"UnitOfMeasureName,omitempty"`
}
// Validate validates this package
func (m *Package) Validate(formats strfmt.Registry) error {
return nil
}
// ContextValidate validates this package based on context it is used
func (m *Package) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Package) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Package) UnmarshalBinary(b []byte) error {
var res Package
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}