v0.1.9 v0.1.8
Vernon Keenan 2021-01-17 13:49:00 -08:00
parent 061af6b092
commit 105ade2f84
45 changed files with 81 additions and 263 deletions

View File

@ -46,6 +46,9 @@ type CashReceipt struct {
// Created Date // Created Date
CreatedDate string `json:"CreatedDate,omitempty"` CreatedDate string `json:"CreatedDate,omitempty"`
// Account CustomerID, if any
CustomerID string `json:"CustomerID,omitempty"`
// Memo // Memo
Description string `json:"Description,omitempty"` Description string `json:"Description,omitempty"`

View File

@ -49,7 +49,7 @@ type Contract struct {
// Contract Name // Contract Name
Name string `json:"Name,omitempty"` Name string `json:"Name,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Payment Terms // Payment Terms

View File

@ -93,9 +93,6 @@ type Eft struct {
// Transaction ID // Transaction ID
TransactionID string `json:"TransactionID,omitempty"` TransactionID string `json:"TransactionID,omitempty"`
// UUID
UUID string `json:"UUID,omitempty"`
} }
// Validate validates this eft // Validate validates this eft

View File

@ -181,7 +181,7 @@ type Invoice struct {
// Overdue 90 Days Amount // Overdue 90 Days Amount
OverDue90 float64 `json:"OverDue90,omitempty"` OverDue90 float64 `json:"OverDue90,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Partner Account // Partner Account

View File

@ -76,7 +76,7 @@ type InvoiceBasic struct {
// ID of the Job which created this Invoice // ID of the Job which created this Invoice
JobID string `json:"JobID,omitempty"` JobID string `json:"JobID,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Taxnexus Period ID // Taxnexus Period ID

View File

@ -55,7 +55,7 @@ type InvoiceItem struct {
// Order Item // Order Item
OrderItemID string `json:"OrderItemID,omitempty"` OrderItemID string `json:"OrderItemID,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Product Code // Product Code

View File

@ -31,7 +31,7 @@ type ItemBasic struct {
// Monthly Recurring Charge Indicator // Monthly Recurring Charge Indicator
MRCInterval int64 `json:"MRCInterval,omitempty"` MRCInterval int64 `json:"MRCInterval,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Product Code // Product Code

View File

@ -175,7 +175,7 @@ type Order struct {
// PO Date // PO Date
PODate string `json:"PODate,omitempty"` PODate string `json:"PODate,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Payment Method ID // Payment Method ID

View File

@ -85,7 +85,7 @@ type OrderItem struct {
// Original Order Product // Original Order Product
OriginalOrderItemID string `json:"OriginalOrderItemID,omitempty"` OriginalOrderItemID string `json:"OriginalOrderItemID,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Posted to external system? // Posted to external system?

View File

@ -151,7 +151,7 @@ type Quote struct {
// Owner Name // Owner Name
OwnerID string `json:"OwnerID,omitempty"` OwnerID string `json:"OwnerID,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Payment Terms // Payment Terms

View File

@ -10,13 +10,11 @@ package ops_models
// Editing this file might prove futile when you re-run the swagger generate command // Editing this file might prove futile when you re-run the swagger generate command
import ( import (
"encoding/json"
"strconv" "strconv"
"github.com/go-openapi/errors" "github.com/go-openapi/errors"
"github.com/go-openapi/strfmt" "github.com/go-openapi/strfmt"
"github.com/go-openapi/swag" "github.com/go-openapi/swag"
"github.com/go-openapi/validate"
) )
// QuoteBasic quote basic // QuoteBasic quote basic
@ -69,7 +67,7 @@ type QuoteBasic struct {
// ID of the Job which created this Invoice // ID of the Job which created this Invoice
JobID string `json:"JobID,omitempty"` JobID string `json:"JobID,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Taxnexus Period ID // Taxnexus Period ID
@ -85,14 +83,12 @@ type QuoteBasic struct {
Ref string `json:"Ref,omitempty"` Ref string `json:"Ref,omitempty"`
// Sales Regulation Type // Sales Regulation Type
// Enum: [AdultUse Caregiver Consumer Medicinal MedicinalState MedicinalThirdParty Merchandise Patient Telecom]
SalesRegulation string `json:"SalesRegulation,omitempty"` SalesRegulation string `json:"SalesRegulation,omitempty"`
// Shipping and Handling fees for this document // Shipping and Handling fees for this document
ShippingHandling float64 `json:"ShippingHandling,omitempty"` ShippingHandling float64 `json:"ShippingHandling,omitempty"`
// Status used by for Billing Balances; ignored in tax calculation // Status used by for Billing Balances; ignored in tax calculation
// Enum: [closed delivered hold issued new posted rated rating_failed rating_ready reissued rendered uncollectable voided]
Status string `json:"Status,omitempty"` Status string `json:"Status,omitempty"`
// Subtotal of items // Subtotal of items
@ -123,14 +119,6 @@ func (m *QuoteBasic) Validate(formats strfmt.Registry) error {
res = append(res, err) res = append(res, err)
} }
if err := m.validateSalesRegulation(formats); err != nil {
res = append(res, err)
}
if err := m.validateStatus(formats); err != nil {
res = append(res, err)
}
if err := m.validateTaxTransactions(formats); err != nil { if err := m.validateTaxTransactions(formats); err != nil {
res = append(res, err) res = append(res, err)
} }
@ -188,146 +176,6 @@ func (m *QuoteBasic) validateItems(formats strfmt.Registry) error {
return nil return nil
} }
var quoteBasicTypeSalesRegulationPropEnum []interface{}
func init() {
var res []string
if err := json.Unmarshal([]byte(`["AdultUse","Caregiver","Consumer","Medicinal","MedicinalState","MedicinalThirdParty","Merchandise","Patient","Telecom"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
quoteBasicTypeSalesRegulationPropEnum = append(quoteBasicTypeSalesRegulationPropEnum, v)
}
}
const (
// QuoteBasicSalesRegulationAdultUse captures enum value "AdultUse"
QuoteBasicSalesRegulationAdultUse string = "AdultUse"
// QuoteBasicSalesRegulationCaregiver captures enum value "Caregiver"
QuoteBasicSalesRegulationCaregiver string = "Caregiver"
// QuoteBasicSalesRegulationConsumer captures enum value "Consumer"
QuoteBasicSalesRegulationConsumer string = "Consumer"
// QuoteBasicSalesRegulationMedicinal captures enum value "Medicinal"
QuoteBasicSalesRegulationMedicinal string = "Medicinal"
// QuoteBasicSalesRegulationMedicinalState captures enum value "MedicinalState"
QuoteBasicSalesRegulationMedicinalState string = "MedicinalState"
// QuoteBasicSalesRegulationMedicinalThirdParty captures enum value "MedicinalThirdParty"
QuoteBasicSalesRegulationMedicinalThirdParty string = "MedicinalThirdParty"
// QuoteBasicSalesRegulationMerchandise captures enum value "Merchandise"
QuoteBasicSalesRegulationMerchandise string = "Merchandise"
// QuoteBasicSalesRegulationPatient captures enum value "Patient"
QuoteBasicSalesRegulationPatient string = "Patient"
// QuoteBasicSalesRegulationTelecom captures enum value "Telecom"
QuoteBasicSalesRegulationTelecom string = "Telecom"
)
// prop value enum
func (m *QuoteBasic) validateSalesRegulationEnum(path, location string, value string) error {
if err := validate.EnumCase(path, location, value, quoteBasicTypeSalesRegulationPropEnum, true); err != nil {
return err
}
return nil
}
func (m *QuoteBasic) validateSalesRegulation(formats strfmt.Registry) error {
if swag.IsZero(m.SalesRegulation) { // not required
return nil
}
// value enum
if err := m.validateSalesRegulationEnum("SalesRegulation", "body", m.SalesRegulation); err != nil {
return err
}
return nil
}
var quoteBasicTypeStatusPropEnum []interface{}
func init() {
var res []string
if err := json.Unmarshal([]byte(`["closed","delivered","hold","issued","new","posted","rated","rating_failed","rating_ready","reissued","rendered","uncollectable","voided"]`), &res); err != nil {
panic(err)
}
for _, v := range res {
quoteBasicTypeStatusPropEnum = append(quoteBasicTypeStatusPropEnum, v)
}
}
const (
// QuoteBasicStatusClosed captures enum value "closed"
QuoteBasicStatusClosed string = "closed"
// QuoteBasicStatusDelivered captures enum value "delivered"
QuoteBasicStatusDelivered string = "delivered"
// QuoteBasicStatusHold captures enum value "hold"
QuoteBasicStatusHold string = "hold"
// QuoteBasicStatusIssued captures enum value "issued"
QuoteBasicStatusIssued string = "issued"
// QuoteBasicStatusNew captures enum value "new"
QuoteBasicStatusNew string = "new"
// QuoteBasicStatusPosted captures enum value "posted"
QuoteBasicStatusPosted string = "posted"
// QuoteBasicStatusRated captures enum value "rated"
QuoteBasicStatusRated string = "rated"
// QuoteBasicStatusRatingFailed captures enum value "rating_failed"
QuoteBasicStatusRatingFailed string = "rating_failed"
// QuoteBasicStatusRatingReady captures enum value "rating_ready"
QuoteBasicStatusRatingReady string = "rating_ready"
// QuoteBasicStatusReissued captures enum value "reissued"
QuoteBasicStatusReissued string = "reissued"
// QuoteBasicStatusRendered captures enum value "rendered"
QuoteBasicStatusRendered string = "rendered"
// QuoteBasicStatusUncollectable captures enum value "uncollectable"
QuoteBasicStatusUncollectable string = "uncollectable"
// QuoteBasicStatusVoided captures enum value "voided"
QuoteBasicStatusVoided string = "voided"
)
// prop value enum
func (m *QuoteBasic) validateStatusEnum(path, location string, value string) error {
if err := validate.EnumCase(path, location, value, quoteBasicTypeStatusPropEnum, true); err != nil {
return err
}
return nil
}
func (m *QuoteBasic) validateStatus(formats strfmt.Registry) error {
if swag.IsZero(m.Status) { // not required
return nil
}
// value enum
if err := m.validateStatusEnum("Status", "body", m.Status); err != nil {
return err
}
return nil
}
func (m *QuoteBasic) validateTaxTransactions(formats strfmt.Registry) error { func (m *QuoteBasic) validateTaxTransactions(formats strfmt.Registry) error {
if swag.IsZero(m.TaxTransactions) { // not required if swag.IsZero(m.TaxTransactions) { // not required

View File

@ -55,7 +55,7 @@ type QuoteItem struct {
// Quantity // Quantity
MRCInterval int64 `json:"MRCInterval,omitempty"` MRCInterval int64 `json:"MRCInterval,omitempty"`
// UUID Reference the master record that owns this item // Reference the master record that owns this item
ParentFK string `json:"ParentFK,omitempty"` ParentFK string `json:"ParentFK,omitempty"`
// Product Code // Product Code

View File

@ -43,7 +43,7 @@ func UnMarshalAccountingRule(s *ledger_models.AccountingRule) *AccountingRule {
}, },
} }
} }
func (obj *AccountingRule) marshalToSwagger() *ledger_models.AccountingRule { func (obj *AccountingRule) MarshalToSwagger() *ledger_models.AccountingRule {
return &ledger_models.AccountingRule{ return &ledger_models.AccountingRule{
ID: obj.ID, ID: obj.ID,
AcountID: obj.AccountID, AcountID: obj.AccountID,

View File

@ -37,7 +37,7 @@ func UnMarshalAccountingRuleset(s *ledger_models.AccountingRuleset) *AccountingR
}, },
} }
} }
func (obj *AccountingRuleset) marshalToSwagger() *ledger_models.AccountingRuleset { func (obj *AccountingRuleset) MarshalToSwagger() *ledger_models.AccountingRuleset {
theItems := []*ledger_models.AccountingRulesetItem{} theItems := []*ledger_models.AccountingRulesetItem{}
for _, itm := range obj.Items { for _, itm := range obj.Items {
theItems = append(theItems, theItems = append(theItems,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalAppLog(s *workflow_models.AppLog) *AppLog { func UnMarshalAppLog(s *workflow_models.AppLog) *AppLog {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -35,7 +35,7 @@ func unMarshalAppLog(s *workflow_models.AppLog) *AppLog {
} }
} }
func (obj *AppLog) marshalToSwagger() *workflow_models.AppLog { func (obj *AppLog) MarshalToSwagger() *workflow_models.AppLog {
return &workflow_models.AppLog{ return &workflow_models.AppLog{
ID: obj.ID, ID: obj.ID,
AccountID: obj.AccountID, AccountID: obj.AccountID,

View File

@ -24,6 +24,7 @@ func UnMarshalCashReceipt(s *ops_models.CashReceipt) *CashReceipt {
BillingContactID: s.BillingContactID, BillingContactID: s.BillingContactID,
CashReceiptNumber: s.CashReceiptNumber, CashReceiptNumber: s.CashReceiptNumber,
CreatedByID: s.CreatedByID, CreatedByID: s.CreatedByID,
CustomerID: s.CustomerID,
Description: s.Description, Description: s.Description,
Gateway: s.Gateway, Gateway: s.Gateway,
GatewayKey: s.GatewayKey, GatewayKey: s.GatewayKey,
@ -76,6 +77,7 @@ func (obj *CashReceipt) MarshalToSwagger() *ops_models.CashReceipt {
CashReceiptNumber: obj.CashReceiptNumber, CashReceiptNumber: obj.CashReceiptNumber,
CreatedByID: obj.CreatedByID, CreatedByID: obj.CreatedByID,
CreatedDate: obj.CreatedDate.Time.Format(dateTimeFormat), CreatedDate: obj.CreatedDate.Time.Format(dateTimeFormat),
CustomerID: obj.CustomerID,
Description: obj.Description, Description: obj.Description,
Gateway: obj.Gateway, Gateway: obj.Gateway,
GatewayKey: obj.GatewayKey, GatewayKey: obj.GatewayKey,

View File

@ -26,6 +26,7 @@ type CashReceipt struct {
CashReceiptNumber string CashReceiptNumber string
CreatedByID string CreatedByID string
CreatedDate sql.NullTime CreatedDate sql.NullTime
CustomerID string
Description string Description string
Gateway string Gateway string
GatewayKey string GatewayKey string

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalCountry(s *geo_models.Country) *Country { func UnMarshalCountry(s *geo_models.Country) *Country {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -16,7 +16,7 @@ func unMarshalCountry(s *geo_models.Country) *Country {
lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate) lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate)
theInstances := []*TaxInstance{} theInstances := []*TaxInstance{}
for _, itm := range s.TaxInstances { for _, itm := range s.TaxInstances {
theInstances = append(theInstances, unMarshalTaxInstance(itm)) theInstances = append(theInstances, UnMarshalTaxInstance(itm))
} }
return &Country{ return &Country{
ID: s.ID, ID: s.ID,
@ -58,10 +58,10 @@ func unMarshalCountry(s *geo_models.Country) *Country {
}, },
} }
} }
func (obj *Country) marshalToSwagger() *geo_models.Country { func (obj *Country) MarshalToSwagger() *geo_models.Country {
taxInstances := []*geo_models.TaxInstance{} taxInstances := []*geo_models.TaxInstance{}
for _, itm := range obj.TaxInstances { for _, itm := range obj.TaxInstances {
taxInstances = append(taxInstances, itm.marshalToSwagger()) taxInstances = append(taxInstances, itm.MarshalToSwagger())
} }
return &geo_models.Country{ return &geo_models.Country{
ID: obj.ID, ID: obj.ID,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalCounty(s *geo_models.County) *County { func UnMarshalCounty(s *geo_models.County) *County {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -16,7 +16,7 @@ func unMarshalCounty(s *geo_models.County) *County {
lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate) lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate)
theInstances := []*TaxInstance{} theInstances := []*TaxInstance{}
for _, itm := range s.TaxInstances { for _, itm := range s.TaxInstances {
theInstances = append(theInstances, unMarshalTaxInstance(itm)) theInstances = append(theInstances, UnMarshalTaxInstance(itm))
} }
return &County{ return &County{
ID: s.ID, ID: s.ID,
@ -69,10 +69,10 @@ func unMarshalCounty(s *geo_models.County) *County {
}, },
} }
} }
func (obj *County) marshalToSwagger() *geo_models.County { func (obj *County) MarshalToSwagger() *geo_models.County {
theInstances := []*geo_models.TaxInstance{} theInstances := []*geo_models.TaxInstance{}
for _, itm := range obj.TaxInstances { for _, itm := range obj.TaxInstances {
theInstances = append(theInstances, itm.marshalToSwagger()) theInstances = append(theInstances, itm.MarshalToSwagger())
} }
var salesTaxRate *geo_models.TaxRate var salesTaxRate *geo_models.TaxRate
if obj.SalesTaxRate != nil { if obj.SalesTaxRate != nil {

View File

@ -2,7 +2,7 @@ package app
import "code.tnxs.net/taxnexus/lib/api/geo/geo_models" import "code.tnxs.net/taxnexus/lib/api/geo/geo_models"
func unMarshalDomain(swag *geo_models.Domain) *Domain { func UnMarshalDomain(swag *geo_models.Domain) *Domain {
return &Domain{ return &Domain{
Description: swag.Description, Description: swag.Description,
Active: swag.Active, Active: swag.Active,
@ -10,7 +10,7 @@ func unMarshalDomain(swag *geo_models.Domain) *Domain {
Name: swag.Name, Name: swag.Name,
} }
} }
func (obj *Domain) marshalToSwagger() *geo_models.Domain { func (obj *Domain) MarshalToSwagger() *geo_models.Domain {
return &geo_models.Domain{ return &geo_models.Domain{
ID: obj.ID, ID: obj.ID,
Active: obj.Active, Active: obj.Active,

View File

@ -37,6 +37,7 @@ func UnMarshalEft(s *ops_models.Eft) *Eft {
Items: items, Items: items,
LastModifiedByID: s.LastModifiedByID, LastModifiedByID: s.LastModifiedByID,
PaymentMethodID: s.PaymentMethodID, PaymentMethodID: s.PaymentMethodID,
ParentFK: s.ParentFK,
Ref: s.Ref, Ref: s.Ref,
Status: s.Status, Status: s.Status,
TenantID: s.TenantID, TenantID: s.TenantID,
@ -86,6 +87,7 @@ func (obj *Eft) MarshalToSwagger() *ops_models.Eft {
LastModifiedByID: obj.LastModifiedByID, LastModifiedByID: obj.LastModifiedByID,
LastModifiedDate: obj.LastModifiedDate.Time.Format(dateTimeFormat), LastModifiedDate: obj.LastModifiedDate.Time.Format(dateTimeFormat),
PaymentMethodID: obj.PaymentMethodID, PaymentMethodID: obj.PaymentMethodID,
ParentFK: obj.ParentFK,
Ref: obj.Ref, Ref: obj.Ref,
Status: obj.Status, Status: obj.Status,
TenantID: obj.TenantID, TenantID: obj.TenantID,

View File

@ -33,6 +33,7 @@ type Eft struct {
JournalDate sql.NullTime JournalDate sql.NullTime
LastModifiedByID string LastModifiedByID string
LastModifiedDate sql.NullTime LastModifiedDate sql.NullTime
ParentFK string
PaymentMethodID string PaymentMethodID string
Ref string Ref string
Status string Status string

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalSwaggerFiling(s *regs_models.Filing) *Filing { func UnMarshalSwaggerFiling(s *regs_models.Filing) *Filing {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -80,7 +80,7 @@ func unMarshalSwaggerFiling(s *regs_models.Filing) *Filing {
} }
} }
func (obj *Filing) marshalToSwagger() *regs_models.Filing { func (obj *Filing) MarshalToSwagger() *regs_models.Filing {
return &regs_models.Filing{ return &regs_models.Filing{
ID: obj.ID, ID: obj.ID,
AccountName: obj.AccountName, AccountName: obj.AccountName,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalFilingType(s *regs_models.FilingType) *FilingType { func UnMarshalFilingType(s *regs_models.FilingType) *FilingType {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -78,7 +78,7 @@ func unMarshalFilingType(s *regs_models.FilingType) *FilingType {
} }
} }
func (obj *FilingType) marshal() *regs_models.FilingType { func (obj *FilingType) MarshalToSwagger() *regs_models.FilingType {
var instances []*regs_models.FilingTypeInstance var instances []*regs_models.FilingTypeInstance
if obj.Instances != nil { if obj.Instances != nil {
instances = []*regs_models.FilingTypeInstance{} instances = []*regs_models.FilingTypeInstance{}

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalGlAccount(s *ledger_models.GlAccount) *GlAccount { func UnMarshalGlAccount(s *ledger_models.GlAccount) *GlAccount {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalGlBalance(s *ledger_models.GlBalance) *GlBalance { func UnMarshalGlBalance(s *ledger_models.GlBalance) *GlBalance {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -46,7 +46,7 @@ func unMarshalGlBalance(s *ledger_models.GlBalance) *GlBalance {
}, },
} }
} }
func (obj *GlBalance) marshalToSwagger() *ledger_models.GlBalance { func (obj *GlBalance) MarshalToSwagger() *ledger_models.GlBalance {
return &ledger_models.GlBalance{ return &ledger_models.GlBalance{
ID: obj.ID, ID: obj.ID,
AccountName: obj.AccountName, AccountName: obj.AccountName,

View File

@ -89,7 +89,7 @@ func UnmarshalIngest(s *devops_models.Ingest) *Ingest {
} }
// MarshalToSwagger encodes a first class object to swagger // MarshalToSwagger encodes a first class object to swagger
func (obj *Ingest) marshalToSwagger() *devops_models.Ingest { func (obj *Ingest) MarshalToSwagger() *devops_models.Ingest {
return &devops_models.Ingest{ return &devops_models.Ingest{
ID: obj.ID, ID: obj.ID,
AccountID: &obj.AccountID, AccountID: &obj.AccountID,

View File

@ -4,7 +4,7 @@ import "code.tnxs.net/taxnexus/lib/api/ops/ops_models"
// Invoice unMarshal does validation in the Ops microservice only // Invoice unMarshal does validation in the Ops microservice only
func (obj *Invoice) marshalToSwagger() *ops_models.Invoice { //nolint:funlen // big object func (obj *Invoice) MarshalToSwagger() *ops_models.Invoice { //nolint:funlen // big object
var items []*ops_models.InvoiceItem var items []*ops_models.InvoiceItem
if obj.Items != nil { if obj.Items != nil {
items = []*ops_models.InvoiceItem{} items = []*ops_models.InvoiceItem{}

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalLead(s *crm_models.Lead) *Lead { func UnMarshalLead(s *crm_models.Lead) *Lead {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalOrder(s *ops_models.Order) *Order { //nolint:funlen // big object func UnMarshalOrder(s *ops_models.Order) *Order { //nolint:funlen // big object
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -16,7 +16,7 @@ func unMarshalOrder(s *ops_models.Order) *Order { //nolint:funlen // big object
if s.Items != nil { if s.Items != nil {
items = make([]*OrderItem, 5) items = make([]*OrderItem, 5)
for _, itm := range s.Items { for _, itm := range s.Items {
items = append(items, unMarshalOrderItem(itm)) items = append(items, UnMarshalOrderItem(itm))
} }
} }
createdDate, e0 := time.Parse(dateTimeFormat, s.CreatedDate) createdDate, e0 := time.Parse(dateTimeFormat, s.CreatedDate)

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalOrderItem(s *ops_models.OrderItem) *OrderItem { func UnMarshalOrderItem(s *ops_models.OrderItem) *OrderItem {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }

View File

@ -2,7 +2,7 @@ package app
import "code.tnxs.net/taxnexus/lib/api/workflow/workflow_models" import "code.tnxs.net/taxnexus/lib/api/workflow/workflow_models"
func unMarshalSwaggerOutgoingEmailMessage(s *workflow_models.OutgoingEmailMessage) *OutgoingEmailMessage { func UnMarshalSwaggerOutgoingEmailMessage(s *workflow_models.OutgoingEmailMessage) *OutgoingEmailMessage {
return &OutgoingEmailMessage{ return &OutgoingEmailMessage{
ID: s.ID, ID: s.ID,
BCCAddress: s.BCCAddress, BCCAddress: s.BCCAddress,

View File

@ -2,7 +2,7 @@ package app
import "code.tnxs.net/taxnexus/lib/api/workflow/workflow_models" import "code.tnxs.net/taxnexus/lib/api/workflow/workflow_models"
func (obj *OutgoingEmailMessageReceipt) marshalToSwagger() *workflow_models.EmailMessage { func (obj *OutgoingEmailMessageReceipt) MarshalToSwagger() *workflow_models.EmailMessage {
return &workflow_models.EmailMessage{ return &workflow_models.EmailMessage{
ID: obj.ID, ID: obj.ID,
EmailMessageID: obj.EmailMessageID, EmailMessageID: obj.EmailMessageID,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalPaymentMethod(s *ops_models.PaymentMethod) *PaymentMethod { func UnMarshalPaymentMethod(s *ops_models.PaymentMethod) *PaymentMethod {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }

View File

@ -13,7 +13,7 @@ func (obj *PDF) MarshalToDocument() *stash_models.Document {
} }
} }
func unMarshalNewPDF(swag *stash_models.NewPDF) *PDF { func UnMarshalNewPDF(swag *stash_models.NewPDF) *PDF {
return &PDF{ return &PDF{
Description: swag.Description, Description: swag.Description,
Filename: swag.Filename, Filename: swag.Filename,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalPeriod(s *ledger_models.Period) *Period { func UnMarshalPeriod(s *ledger_models.Period) *Period {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -51,7 +51,7 @@ func unMarshalPeriod(s *ledger_models.Period) *Period {
}, },
} }
} }
func (obj *Period) marshalToSwagger() *ledger_models.Period { func (obj *Period) MarshalToSwagger() *ledger_models.Period {
return &ledger_models.Period{ return &ledger_models.Period{
ID: obj.ID, ID: obj.ID,
AccountID: obj.AccountID, AccountID: obj.AccountID,

View File

@ -16,7 +16,7 @@ func UnMarshalPlace(s *geo_models.Place) *Place {
lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate) lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate)
theInstances := []*TaxInstance{} theInstances := []*TaxInstance{}
for _, itm := range s.TaxInstances { for _, itm := range s.TaxInstances {
theInstances = append(theInstances, unMarshalTaxInstance(itm)) theInstances = append(theInstances, UnMarshalTaxInstance(itm))
} }
return &Place{ return &Place{
ID: s.ID, ID: s.ID,
@ -79,7 +79,7 @@ func (obj *Place) MarshalToSwagger() *geo_models.Place {
} }
taxInstances := []*geo_models.TaxInstance{} taxInstances := []*geo_models.TaxInstance{}
for _, itm := range obj.TaxInstances { for _, itm := range obj.TaxInstances {
taxInstances = append(taxInstances, itm.marshalToSwagger()) taxInstances = append(taxInstances, itm.MarshalToSwagger())
} }
var salesTaxRate *geo_models.TaxRate var salesTaxRate *geo_models.TaxRate
if obj.SalesTaxRate != nil { if obj.SalesTaxRate != nil {

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalPurchaseOrder(s *ops_models.PurchaseOrder) (*PurchaseOrder, error) { //nolint:funlen // big object func UnMarshalPurchaseOrder(s *ops_models.PurchaseOrder) (*PurchaseOrder, error) { //nolint:funlen // big object
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -120,7 +120,7 @@ func unMarshalPurchaseOrder(s *ops_models.PurchaseOrder) (*PurchaseOrder, error)
}, },
}, nil }, nil
} }
func (obj *PurchaseOrder) marshalToSwagger() *ops_models.PurchaseOrder { func (obj *PurchaseOrder) MarshalToSwagger() *ops_models.PurchaseOrder {
var items []*ops_models.PurchaseOrderItem var items []*ops_models.PurchaseOrderItem
if obj.Items != nil { if obj.Items != nil {
items = []*ops_models.PurchaseOrderItem{} items = []*ops_models.PurchaseOrderItem{}

View File

@ -1,10 +1,8 @@
package app package app
import ( import "code.tnxs.net/taxnexus/lib/api/ops/ops_models"
"code.tnxs.net/taxnexus/lib/api/ops/ops_models"
)
func (obj *Quote) marshalToSwagger() *ops_models.Quote { func (obj *Quote) MarshalToSwagger() *ops_models.Quote {
var items []*ops_models.QuoteItem var items []*ops_models.QuoteItem
if obj.Items != nil { if obj.Items != nil {
items = []*ops_models.QuoteItem{} items = []*ops_models.QuoteItem{}

View File

@ -12,7 +12,7 @@ func UnMarshalSwaggerState(s *geo_models.State) *State {
lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate) lastModfiedDate, e1 := time.Parse(dateTimeFormat, s.LastModifiedDate)
theInstances := []*TaxInstance{} theInstances := []*TaxInstance{}
for _, itm := range s.TaxInstances { for _, itm := range s.TaxInstances {
theInstances = append(theInstances, unMarshalTaxInstance(itm)) theInstances = append(theInstances, UnMarshalTaxInstance(itm))
} }
return &State{ return &State{
ID: s.ID, ID: s.ID,
@ -68,7 +68,7 @@ func UnMarshalSwaggerState(s *geo_models.State) *State {
func (obj *State) MarshalToSwagger() *geo_models.State { func (obj *State) MarshalToSwagger() *geo_models.State {
taxInstances := []*geo_models.TaxInstance{} taxInstances := []*geo_models.TaxInstance{}
for _, itm := range obj.TaxInstances { for _, itm := range obj.TaxInstances {
taxInstances = append(taxInstances, itm.marshalToSwagger()) taxInstances = append(taxInstances, itm.MarshalToSwagger())
} }
return &geo_models.State{ return &geo_models.State{
ID: obj.ID, ID: obj.ID,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalSubmission(s *regs_models.Submission) *Submission { func UnMarshalSubmission(s *regs_models.Submission) *Submission {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -57,7 +57,7 @@ func unMarshalSubmission(s *regs_models.Submission) *Submission {
} }
} }
func (obj *Submission) marshalToSwagger() *regs_models.Submission { func (obj *Submission) MarshalToSwagger() *regs_models.Submission {
return &regs_models.Submission{ return &regs_models.Submission{
ID: obj.ID, ID: obj.ID,
CompanyID: obj.CompanyID, CompanyID: obj.CompanyID,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalTaxInstance(s *geo_models.TaxInstance) *TaxInstance { func UnMarshalTaxInstance(s *geo_models.TaxInstance) *TaxInstance {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -34,7 +34,7 @@ func unMarshalTaxInstance(s *geo_models.TaxInstance) *TaxInstance {
}, },
} }
} }
func (obj *TaxInstance) marshalToSwagger() *geo_models.TaxInstance { func (obj *TaxInstance) MarshalToSwagger() *geo_models.TaxInstance {
return &geo_models.TaxInstance{ return &geo_models.TaxInstance{
ID: obj.ID, ID: obj.ID,
CountryID: obj.CountryID, CountryID: obj.CountryID,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalTaxnexusCode(s *geo_models.TaxnexusCode) *TaxnexusCode { func UnMarshalTaxnexusCode(s *geo_models.TaxnexusCode) *TaxnexusCode {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -45,7 +45,7 @@ func unMarshalTaxnexusCode(s *geo_models.TaxnexusCode) *TaxnexusCode {
}, },
} }
} }
func (obj *TaxnexusCode) marshalToSwagger() *geo_models.TaxnexusCode { func (obj *TaxnexusCode) MarshalToSwagger() *geo_models.TaxnexusCode {
swag := geo_models.TaxnexusCode{ swag := geo_models.TaxnexusCode{
ID: obj.ID, ID: obj.ID,
Active: obj.Active, Active: obj.Active,

View File

@ -8,7 +8,7 @@ import (
"github.com/google/uuid" "github.com/google/uuid"
) )
func unMarshalTaxTypeAccount(s *regs_models.TaxTypeAccount) *TaxTypeAccount { func UnMarshalTaxTypeAccount(s *regs_models.TaxTypeAccount) *TaxTypeAccount {
if s.ID == "" { if s.ID == "" {
s.ID = uuid.New().String() s.ID = uuid.New().String()
} }
@ -64,7 +64,7 @@ func unMarshalTaxTypeAccount(s *regs_models.TaxTypeAccount) *TaxTypeAccount {
}, },
} }
} }
func (obj *TaxTypeAccount) marshalToSwagger() *regs_models.TaxTypeAccount { func (obj *TaxTypeAccount) MarshalToSwagger() *regs_models.TaxTypeAccount {
return &regs_models.TaxTypeAccount{ return &regs_models.TaxTypeAccount{
ID: obj.ID, ID: obj.ID,
AccountID: obj.AccountID, AccountID: obj.AccountID,

View File

@ -1592,6 +1592,9 @@ definitions:
CashReceiptNumber: CashReceiptNumber:
description: Journal Date description: Journal Date
type: string type: string
CustomerID:
description: Account CustomerID, if any
type: string
CreatedByID: CreatedByID:
description: Created By User ID description: Created By User ID
type: string type: string
@ -1826,8 +1829,7 @@ definitions:
description: Contract Name description: Contract Name
type: string type: string
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
PaymentTerms: PaymentTerms:
description: Payment Terms description: Payment Terms
@ -1984,9 +1986,6 @@ definitions:
TransactionID: TransactionID:
description: Transaction ID description: Transaction ID
type: string type: string
UUID:
description: UUID
type: string
type: object type: object
EftItem: EftItem:
description: An invoice reference that is batched in a single Eft description: An invoice reference that is batched in a single Eft
@ -2243,8 +2242,7 @@ definitions:
format: double format: double
type: number type: number
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
PartnerAccountID: PartnerAccountID:
description: Partner Account description: Partner Account
@ -2440,8 +2438,7 @@ definitions:
description: ID of the Job which created this Invoice description: ID of the Job which created this Invoice
type: string type: string
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
PeriodID: PeriodID:
description: Taxnexus Period ID description: Taxnexus Period ID
@ -2523,8 +2520,7 @@ definitions:
description: Order Item description: Order Item
type: string type: string
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
ProductCode: ProductCode:
description: Product Code description: Product Code
@ -2613,8 +2609,7 @@ definitions:
format: int64 format: int64
type: number type: number
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
ProductCode: ProductCode:
description: Product Code description: Product Code
@ -2824,8 +2819,7 @@ definitions:
description: PO Date description: PO Date
type: string type: string
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
PaymentMethodID: PaymentMethodID:
description: Payment Method ID description: Payment Method ID
@ -2984,8 +2978,7 @@ definitions:
description: Original Order Product description: Original Order Product
type: string type: string
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
Posted: Posted:
description: Posted to external system? description: Posted to external system?
@ -3898,8 +3891,7 @@ definitions:
description: Period ID description: Period ID
type: string type: string
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
PaymentTerms: PaymentTerms:
description: Payment Terms description: Payment Terms
@ -4040,8 +4032,7 @@ definitions:
description: ID of the Job which created this Invoice description: ID of the Job which created this Invoice
type: string type: string
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
PeriodID: PeriodID:
description: Taxnexus Period ID description: Taxnexus Period ID
@ -4061,16 +4052,6 @@ definitions:
type: string type: string
SalesRegulation: SalesRegulation:
description: Sales Regulation Type description: Sales Regulation Type
enum:
- AdultUse
- Caregiver
- Consumer
- Medicinal
- MedicinalState
- MedicinalThirdParty
- Merchandise
- Patient
- Telecom
type: string type: string
ShippingHandling: ShippingHandling:
description: Shipping and Handling fees for this document description: Shipping and Handling fees for this document
@ -4079,20 +4060,6 @@ definitions:
description: description:
Status used by for Billing Balances; ignored in tax Status used by for Billing Balances; ignored in tax
calculation calculation
enum:
- closed
- delivered
- hold
- issued
- new
- posted
- rated
- rating_failed
- rating_ready
- reissued
- rendered
- uncollectable
- voided
type: string type: string
Subtotal: Subtotal:
description: Subtotal of items description: Subtotal of items
@ -4156,8 +4123,7 @@ definitions:
format: int64 format: int64
type: number type: number
ParentFK: ParentFK:
description: description: Reference the master record that owns this item
UUID Reference the master record that owns this item
type: string type: string
ProductCode: ProductCode:
description: Product Code description: Product Code