lib/api/ops/ops_models/pricebook_entry.go

91 lines
2.1 KiB
Go

// 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 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 (
"context"
"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
}
// ContextValidate validates this pricebook entry based on context it is used
func (m *PricebookEntry) ContextValidate(ctx context.Context, 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
}