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

75 lines
1.7 KiB
Go
Raw Normal View History

2021-01-08 17:40:28 +00:00
// Code generated by go-swagger; DO NOT EDIT.
// All Code Copyright(c) 2018-2020 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 (
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// Transaction transaction
//
// swagger:model Transaction
type Transaction struct {
// archived date
ArchivedDate string `json:"ArchivedDate,omitempty"`
// last modified
LastModified string `json:"LastModified,omitempty"`
// package Id
PackageID float64 `json:"PackageId,omitempty"`
// package label
PackageLabel string `json:"PackageLabel,omitempty"`
// product name
ProductName string `json:"ProductName,omitempty"`
// quantity sold
QuantitySold float64 `json:"QuantitySold,omitempty"`
// sales delivery state
SalesDeliveryState string `json:"SalesDeliveryState,omitempty"`
// total price
TotalPrice float64 `json:"TotalPrice,omitempty"`
// unit of measure abbreviation
UnitOfMeasureAbbreviation string `json:"UnitOfMeasureAbbreviation,omitempty"`
// unit of measure name
UnitOfMeasureName string `json:"UnitOfMeasureName,omitempty"`
}
// Validate validates this transaction
func (m *Transaction) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Transaction) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Transaction) UnmarshalBinary(b []byte) error {
var res Transaction
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}