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