lib/api/ops/ops_models/charge.go

108 lines
2.4 KiB
Go
Raw 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"
)
// Charge charge
//
// swagger:model Charge
type Charge struct {
// Account
AccountID string `json:"AccountID,omitempty"`
// Amount
Amount float64 `json:"Amount,omitempty"`
// Billing Contact ID
BillingContactID string `json:"BillingContactID,omitempty"`
// Contract
ContractID string `json:"ContractID,omitempty"`
// Created By User ID
CreatedByID string `json:"CreatedByID,omitempty"`
// Created Date
CreatedDate string `json:"CreatedDate,omitempty"`
// Description
Description string `json:"Description,omitempty"`
// Email Message
EmailMessage string `json:"EmailMessage,omitempty"`
// External Message
ExternalMessage string `json:"ExternalMessage,omitempty"`
// Salesforce Record Id
ID string `json:"ID,omitempty"`
// Journal Date
JournalDate string `json:"JournalDate,omitempty"`
// Last Modified By User ID
LastModifiedByID string `json:"LastModifiedByID,omitempty"`
// Last Modified Date
LastModifiedDate string `json:"LastModifiedDate,omitempty"`
// Partner Account
PartnerAccountID string `json:"PartnerAccountID,omitempty"`
// Payment Terms
PaymentTerms string `json:"PaymentTerms,omitempty"`
// Period
PeriodID string `json:"PeriodID,omitempty"`
// Posted to external system?
Posted bool `json:"Posted,omitempty"`
// Product
ProductID string `json:"ProductID,omitempty"`
// Quantity
Quantity float64 `json:"Quantity,omitempty"`
// ID of the Tenant that owns this object
TenantID string `json:"TenantID,omitempty"`
// Unit Price
UnitPrice float64 `json:"UnitPrice,omitempty"`
}
// Validate validates this charge
func (m *Charge) Validate(formats strfmt.Registry) error {
return nil
}
// MarshalBinary interface implementation
func (m *Charge) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *Charge) UnmarshalBinary(b []byte) error {
var res Charge
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}