lib/api/ops/ops_models/contract.go

99 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.
// 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"
)
// Contract contract
//
// swagger:model Contract
type Contract struct {
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
// Description
Description string `json:"Description,omitempty"`
// Contract End Date
EndDate string `json:"EndDate,omitempty"`
// Hourly Rate
HourlyRate float64 `json:"HourlyRate,omitempty"`
// Taxnexus Record Id
ID string `json:"ID,omitempty"`
// Is Active?
IsActive bool `json:"IsActive,omitempty"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Contract Name
Name string `json:"Name,omitempty"`
2021-01-17 21:49:00 +00:00
// Reference the master record that owns this item
2021-01-08 17:40:28 +00:00
ParentFK string `json:"ParentFK,omitempty"`
// Payment Terms
PaymentTerms string `json:"PaymentTerms,omitempty"`
// Price Book
PriceBookID string `json:"PriceBookID,omitempty"`
// Source System identifier for this record, if any
Ref string `json:"Ref,omitempty"`
// Contract Start Date
StartDate string `json:"StartDate,omitempty"`
// Status
Status string `json:"Status,omitempty"`
// ID of the Tenant that owns this object
TenantID string `json:"TenantID,omitempty"`
// Contract Type
Type string `json:"Type,omitempty"`
}
// Validate validates this contract
func (m *Contract) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Contract) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Contract) UnmarshalBinary(b []byte) error {
var res Contract
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}