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

92 lines
2.2 KiB
Go
Raw Permalink 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"
)
// Transaction transaction
//
// swagger:model Transaction
type Transaction struct {
// archived date
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
ArchivedDate string `json:"ArchivedDate,omitempty"`
// last modified
2021-02-09 16:56:57 +00:00
// Example: 2019-02-14T23:52:31+00:00
2021-01-08 17:40:28 +00:00
LastModified string `json:"LastModified,omitempty"`
// package Id
2021-02-09 16:56:57 +00:00
// Example: 4081625
2021-01-08 17:40:28 +00:00
PackageID float64 `json:"PackageId,omitempty"`
// package label
2021-02-09 16:56:57 +00:00
// Example: 1A401030001AD55000000426
2021-01-08 17:40:28 +00:00
PackageLabel string `json:"PackageLabel,omitempty"`
// product name
2021-02-09 16:56:57 +00:00
// Example: Platinum Yeti
2021-01-08 17:40:28 +00:00
ProductName string `json:"ProductName,omitempty"`
// quantity sold
2021-02-09 16:56:57 +00:00
// Example: 4
2021-01-08 17:40:28 +00:00
QuantitySold float64 `json:"QuantitySold,omitempty"`
// sales delivery state
2021-02-09 16:56:57 +00:00
// Example: string
2021-01-08 17:40:28 +00:00
SalesDeliveryState string `json:"SalesDeliveryState,omitempty"`
// total price
2021-02-09 16:56:57 +00:00
// Example: 20
2021-01-08 17:40:28 +00:00
TotalPrice float64 `json:"TotalPrice,omitempty"`
// unit of measure abbreviation
2021-02-09 16:56:57 +00:00
// Example: g
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: Grams
2021-01-08 17:40:28 +00:00
UnitOfMeasureName string `json:"UnitOfMeasureName,omitempty"`
}
// Validate validates this transaction
func (m *Transaction) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this transaction based on context it is used
func (m *Transaction) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// 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
}