lib/api/plex/plex_models/invoice_summary.go

97 lines
2.4 KiB
Go
Raw Permalink 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 plex_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"
)
// InvoiceSummary invoice summary
//
// swagger:model InvoiceSummary
type InvoiceSummary struct {
// amount
Amount float64 `json:"Amount,omitempty"`
// business tax
BusinessTax float64 `json:"BusinessTax,omitempty"`
// cannabis tax
CannabisTax float64 `json:"CannabisTax,omitempty"`
// estimated amount
EstimatedAmount float64 `json:"EstimatedAmount,omitempty"`
// estimated business tax
EstimatedBusinessTax float64 `json:"EstimatedBusinessTax,omitempty"`
// estimated c o g s
EstimatedCOGS float64 `json:"EstimatedCOGS,omitempty"`
// estimated cannabis tax
EstimatedCannabisTax float64 `json:"EstimatedCannabisTax,omitempty"`
// estimated discount
EstimatedDiscount float64 `json:"EstimatedDiscount,omitempty"`
// estimated sales tax
EstimatedSalesTax float64 `json:"EstimatedSalesTax,omitempty"`
// estimated subtotal
EstimatedSubtotal float64 `json:"EstimatedSubtotal,omitempty"`
// The Period Name of the summary line
PeriodName string `json:"PeriodName,omitempty"`
// Taxnexus Geocode for this group of item summaries
PlaceGeocode string `json:"PlaceGeocode,omitempty"`
// sales regulation
SalesRegulation string `json:"SalesRegulation,omitempty"`
// sales tax
SalesTax float64 `json:"SalesTax,omitempty"`
// subtotal
Subtotal float64 `json:"Subtotal,omitempty"`
}
// Validate validates this invoice summary
func (m *InvoiceSummary) Validate(formats strfmt.Registry) error {
return nil
}
2021-02-09 16:56:57 +00:00
// ContextValidate validates this invoice summary based on context it is used
func (m *InvoiceSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
return nil
}
2021-01-08 17:40:28 +00:00
// MarshalBinary interface implementation
func (m *InvoiceSummary) MarshalBinary() ([]byte, error) {
if m == nil {
return nil, nil
}
return swag.WriteJSON(m)
}
// UnmarshalBinary interface implementation
func (m *InvoiceSummary) UnmarshalBinary(b []byte) error {
var res InvoiceSummary
if err := swag.ReadJSON(b, &res); err != nil {
return err
}
*m = res
return nil
}