lib/api/ops/ops_models/charge.go

133 lines
3.1 KiB
Go
Raw Normal View History

2021-01-08 17:40:28 +00:00
// Code generated by go-swagger; DO NOT EDIT.
2021-01-19 16:58:40 +00:00
// All Code Copyright(c) 2018-2021 by Taxnexus, Inc.
2021-01-08 17:40:28 +00:00
// 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 (
2021-02-09 16:56:57 +00:00
"context"
2021-01-08 17:40:28 +00:00
"github.com/go-openapi/strfmt"
"github.com/go-openapi/swag"
)
// Charge charge
//
// swagger:model Charge
type Charge struct {
// Account
AccountID string `json:"AccountID,omitempty"`
2021-01-14 06:36:35 +00:00
// The Accounting Ruleset Code
AccountingRulesetCode string `json:"AccountingRulesetCode,omitempty"`
2021-01-08 17:40:28 +00:00
// Amount
Amount float64 `json:"Amount,omitempty"`
// Billing Contact ID
BillingContactID string `json:"BillingContactID,omitempty"`
2021-01-14 06:36:35 +00:00
// 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"`
2021-01-08 17:40:28 +00:00
// 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"`
2021-01-14 06:36:35 +00:00
// Taxnexus Record Id
2021-01-08 17:40:28 +00:00
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"`
2021-01-14 06:36:35 +00:00
// external reference, if any
Ref string `json:"Ref,omitempty"`
// The ID of the Template used to render this object
TemplateID string `json:"TemplateID,omitempty"`
2021-01-08 17:40:28 +00:00
// ID of the Tenant that owns this object
TenantID string `json:"TenantID,omitempty"`
2021-01-14 06:36:35 +00:00
// Charge Type
Type string `json:"Type,omitempty"`
2021-01-08 17:40:28 +00:00
// Unit Price
UnitPrice float64 `json:"UnitPrice,omitempty"`
}
// Validate validates this charge
func (m *Charge) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this charge based on context it is used
func (m *Charge) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// 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
}