lib/api/ops/v0.0.1/ops_models/pricebook_entry.go

84 lines
1.9 KiB
Go
Raw Permalink Normal View History

2021-01-08 17:00:13 +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 ops_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"
)
// PricebookEntry pricebook entry
//
// swagger:model PricebookEntry
type PricebookEntry struct {
// Active
AccountID string `json:"AccountID,omitempty"`
// Created By
AgentID string `json:"AgentID,omitempty"`
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
// Record Id
ID string `json:"ID,omitempty"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// pricebook ID
PricebookID string `json:"PricebookID,omitempty"`
// Product Code
ProductCode string `json:"ProductCode,omitempty"`
// ID of the Tenant that owns this object
TenantID string `json:"TenantID,omitempty"`
// List Price
UnitPrice float64 `json:"UnitPrice,omitempty"`
// Use Standard Price
UseStandardPrice bool `json:"UseStandardPrice,omitempty"`
// procuct ID
ProcuctID string `json:"procuctID,omitempty"`
}
// Validate validates this pricebook entry
func (m *PricebookEntry) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *PricebookEntry) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *PricebookEntry) UnmarshalBinary(b []byte) error {
var res PricebookEntry
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}