126 lines
2.9 KiB
Go
126 lines
2.9 KiB
Go
// 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"`
|
|
|
|
// The Accounting Ruleset Code
|
|
AccountingRulesetCode string `json:"AccountingRulesetCode,omitempty"`
|
|
|
|
// Amount
|
|
Amount float64 `json:"Amount,omitempty"`
|
|
|
|
// Billing Contact ID
|
|
BillingContactID string `json:"BillingContactID,omitempty"`
|
|
|
|
// The Email Address to send this charge notification
|
|
BillingEmail string `json:"BillingEmail,omitempty"`
|
|
|
|
// The ID of the BillingRun that generated this Charge
|
|
BillingRunID string `json:"BillingRunID,omitempty"`
|
|
|
|
// The Contract Hourly Rate
|
|
ContractHourlyRate float64 `json:"ContractHourlyRate,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"`
|
|
|
|
// Taxnexus 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"`
|
|
|
|
// external reference, if any
|
|
Ref string `json:"Ref,omitempty"`
|
|
|
|
// The ID of the Template used to render this object
|
|
TemplateID string `json:"TemplateID,omitempty"`
|
|
|
|
// ID of the Tenant that owns this object
|
|
TenantID string `json:"TenantID,omitempty"`
|
|
|
|
// Charge Type
|
|
Type string `json:"Type,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
|
|
}
|