2021-01-10 23:44:39 +00:00
|
|
|
package app
|
2021-01-10 18:40:46 +00:00
|
|
|
|
2021-01-12 05:46:24 +00:00
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
|
|
|
|
"code.tnxs.net/taxnexus/lib/api/geo/geo_models"
|
|
|
|
)
|
|
|
|
|
2021-01-19 20:23:02 +00:00
|
|
|
// TaxTypeActivityWrapper wraps the object with workflow params
|
|
|
|
type TaxTypeActivityWrapper struct {
|
2021-01-19 01:50:45 +00:00
|
|
|
Obj geo_models.TaxType
|
|
|
|
APIKey string
|
|
|
|
SagaID string
|
|
|
|
SagaType string
|
2021-01-12 05:46:24 +00:00
|
|
|
}
|
2021-01-10 18:40:46 +00:00
|
|
|
|
|
|
|
// TaxType is a first class object type
|
|
|
|
type TaxType struct {
|
|
|
|
ID string
|
2021-01-27 22:39:23 +00:00
|
|
|
Account Account
|
2021-01-10 18:40:46 +00:00
|
|
|
AccountID string
|
|
|
|
AccountingRuleCode string
|
|
|
|
Active bool
|
|
|
|
AgencyType string
|
|
|
|
AgentID string
|
|
|
|
Amount float64
|
|
|
|
Category string
|
2021-02-05 22:04:17 +00:00
|
|
|
ChainType string
|
2021-01-10 18:40:46 +00:00
|
|
|
CollectorDomainID string
|
|
|
|
CompanyID string
|
2021-01-27 22:39:23 +00:00
|
|
|
Contact Contact
|
2021-01-10 18:40:46 +00:00
|
|
|
ContactID string
|
|
|
|
CreatedByID string
|
|
|
|
CreatedDate sql.NullTime
|
|
|
|
Description string
|
|
|
|
EffectiveDate sql.NullTime
|
|
|
|
EndDate sql.NullTime
|
|
|
|
EnrollmentStatus string
|
|
|
|
FilingCity string
|
|
|
|
FilingCountry string
|
|
|
|
FilingEmail string
|
|
|
|
FilingMethod string
|
|
|
|
FilingPostalcode string
|
|
|
|
FilingState string
|
|
|
|
FilingStreet string
|
2021-01-28 01:58:08 +00:00
|
|
|
Formatted TaxTypeFormatted
|
2021-01-10 18:40:46 +00:00
|
|
|
Fractional bool
|
|
|
|
Frequency string
|
|
|
|
GeocodeString string
|
|
|
|
InterestRate float64
|
|
|
|
IsMedicinal bool
|
|
|
|
IsRecreational bool
|
|
|
|
LastModifiedByID string
|
|
|
|
LastModifiedDate sql.NullTime
|
|
|
|
MarkupRate float64
|
|
|
|
Name string
|
|
|
|
OwnerID string
|
|
|
|
Passthrough bool
|
|
|
|
PenaltyDays int64
|
|
|
|
PenaltyRate float64
|
|
|
|
Rate float64
|
|
|
|
Reference string
|
|
|
|
RevenueBase float64
|
|
|
|
RevenueNet float64
|
|
|
|
RevenueNotTaxable float64
|
|
|
|
SalesRegulation string
|
|
|
|
Status string
|
|
|
|
TaxnexusCodeID string
|
|
|
|
TaxnexusNumber string
|
|
|
|
TemplateID string
|
|
|
|
UnitBase float64
|
|
|
|
Units string
|
|
|
|
}
|
2021-01-28 01:58:08 +00:00
|
|
|
|
|
|
|
// TaxTypeFormatted offers formatted versions of numerical values
|
|
|
|
type TaxTypeFormatted struct {
|
2021-01-27 22:39:23 +00:00
|
|
|
CreatedDate string
|
|
|
|
EffectiveDate string
|
|
|
|
EndDate string
|
|
|
|
Fractional string
|
|
|
|
InterestRate string
|
|
|
|
IsMedicinal string
|
|
|
|
IsRecreational string
|
|
|
|
LastModifiedDate string
|
|
|
|
MarkupRate string
|
|
|
|
PassThrough string
|
|
|
|
PenaltyDays string
|
|
|
|
PenaltyRate string
|
|
|
|
Rate string
|
|
|
|
}
|