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

180 lines
4.5 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"
)
// Package package
//
// swagger:model Package
type Package struct {
// archived date
2021-02-09 16:56:57 +00:00
// Example: 2014-11-29
2021-01-08 17:40:28 +00:00
ArchivedDate string `json:"ArchivedDate,omitempty"`
// contains remediated product
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ContainsRemediatedProduct bool `json:"ContainsRemediatedProduct,omitempty"`
// finished date
2021-02-09 16:56:57 +00:00
// Example: 2014-11-29
2021-01-08 17:40:28 +00:00
FinishedDate string `json:"FinishedDate,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"`
// initial lab testing state
2021-02-09 16:56:57 +00:00
// Example: NotSubmitted
2021-01-08 17:40:28 +00:00
InitialLabTestingState string `json:"InitialLabTestingState,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"`
// is process validation testing sample
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
IsProcessValidationTestingSample bool `json:"IsProcessValidationTestingSample,omitempty"`
// is production batch
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
IsProductionBatch bool `json:"IsProductionBatch,omitempty"`
// is testing sample
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
IsTestingSample bool `json:"IsTestingSample,omitempty"`
// lab testing state
2021-02-09 16:56:57 +00:00
// Example: NotSubmitted
2021-01-08 17:40:28 +00:00
LabTestingState string `json:"LabTestingState,omitempty"`
// lab testing state date
2021-02-09 16:56:57 +00:00
// Example: 2014-11-29
2021-01-08 17:40:28 +00:00
LabTestingStateDate string `json:"LabTestingStateDate,omitempty"`
// label
2021-02-09 16:56:57 +00:00
// Example: ABCDEF012345670000010042
2021-01-08 17:40:28 +00:00
Label string `json:"Label,omitempty"`
// last modified
2021-02-09 16:56:57 +00:00
// Example: 2019-01-30T02:52:15.0599079+00:00
2021-01-08 17:40:28 +00:00
LastModified string `json:"LastModified,omitempty"`
// package type
2021-02-09 16:56:57 +00:00
// Example: Product
2021-01-08 17:40:28 +00:00
PackageType string `json:"PackageType,omitempty"`
// packaged date
2021-02-09 16:56:57 +00:00
// Example: 2014-11-29
2021-01-08 17:40:28 +00:00
PackagedDate string `json:"PackagedDate,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"`
// product category name
2021-02-09 16:56:57 +00:00
// Example: Buds
2021-01-08 17:40:28 +00:00
ProductCategoryName string `json:"ProductCategoryName,omitempty"`
// product Id
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
ProductID float64 `json:"ProductId,omitempty"`
// product name
2021-02-09 16:56:57 +00:00
// Example: Buds
2021-01-08 17:40:28 +00:00
ProductName string `json:"ProductName,omitempty"`
// product requires remediation
2021-02-09 16:56:57 +00:00
// Example: false
2021-01-08 17:40:28 +00:00
ProductRequiresRemediation bool `json:"ProductRequiresRemediation,omitempty"`
// production batch number
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
ProductionBatchNumber string `json:"ProductionBatchNumber,omitempty"`
// quantity
2021-02-09 16:56:57 +00:00
// Example: 1
2021-01-08 17:40:28 +00:00
Quantity float64 `json:"Quantity,omitempty"`
// received date time
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
ReceivedDateTime string `json:"ReceivedDateTime,omitempty"`
// received from facility license number
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
ReceivedFromFacilityLicenseNumber string `json:"ReceivedFromFacilityLicenseNumber,omitempty"`
// received from facility name
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
ReceivedFromFacilityName string `json:"ReceivedFromFacilityName,omitempty"`
// received from manifest number
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
ReceivedFromManifestNumber string `json:"ReceivedFromManifestNumber,omitempty"`
// remediation date
2021-02-09 16:56:57 +00:00
// Example: 2014-11-29
2021-01-08 17:40:28 +00:00
RemediationDate string `json:"RemediationDate,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 harvest names
2021-02-09 16:56:57 +00:00
// Example: _string_
2021-01-08 17:40:28 +00:00
SourceHarvestNames string `json:"SourceHarvestNames,omitempty"`
// unit of measure abbreviation
2021-02-09 16:56:57 +00:00
// Example: oz
2021-01-08 17:40:28 +00:00
UnitOfMeasureAbbreviation string `json:"UnitOfMeasureAbbreviation,omitempty"`
// unit of measure name
2021-02-09 16:56:57 +00:00
// Example: Ounces
2021-01-08 17:40:28 +00:00
UnitOfMeasureName string `json:"UnitOfMeasureName,omitempty"`
}
// Validate validates this package
func (m *Package) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this package based on context it is used
func (m *Package) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// 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
}