lib/app/account.go

108 lines
3.2 KiB
Go
Raw Permalink Normal View History

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/crm/crm_models"
)
2021-01-14 06:36:35 +00:00
// AccountChannelWrapper wraps the object with workflow params
2021-01-12 05:46:24 +00:00
type AccountChannelWrapper struct {
2021-01-19 01:50:45 +00:00
Obj crm_models.Account
APIKey string
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// Account is a DB struct
type Account struct {
ID string
AccountNumber string
AccountSource string
Active bool
AdministrativeLevel string
Amount float64
AmountInvoiced float64
AmountPaid float64
AnnualRevenue float64
Balance float64
2021-01-14 06:36:35 +00:00
BillingAddress *Address
2021-01-10 18:40:46 +00:00
BillingContactID string
BillingPreference string
2021-01-14 06:36:35 +00:00
BusinessAddress *Address
2021-01-10 18:40:46 +00:00
CannabisCustomer bool
ChannelProgramLevelName string
ChannelProgramName string
ClientEndDate sql.NullTime
ClientStartDate sql.NullTime
CompanyID string
CoordinateID string
CreatedByID string
CreatedDate sql.NullTime
CustomerID string
CustomerPriority string
DandBCompanyID string
DBA string
2021-01-14 06:36:35 +00:00
DefaultAddress *Address
2021-01-10 18:40:46 +00:00
DefaultBackendID string
DefaultDeliveryContactID string
DefaultEndUserID string
Description string
DunsNumber string
EIN string
Email string
EnrollmentStatus string
Fax string
Industry string
IsCustomerPortal bool
IsPartner bool
ISPCustomer bool
Jigsaw string
LastModifiedByID string
LastModifiedDate sql.NullTime
MSPCustomer bool
NaicsCode string
NaicsDesc string
Name string
NumberOfEmployees int64
NumberOfLocations int64
OpenCharges float64
OrderContactID string
OrderEmail string
OwnerID string
Ownership string
ParentFK string
ParentID string
Phone string
PlaceID string
PreparerID string
Rating string
RatingEngineID string
Ref string
RevenueBase float64
RevenueNet float64
RevenueNotTaxable float64
2021-01-14 06:36:35 +00:00
ShippingAddress *Address
2021-01-10 18:40:46 +00:00
ShippingCensusTract string
ShippingContactID string
ShippingCounty string
SIC string
SicDesc string
Site string
Status string
TaxExemption string
TaxOnTax float64
TelecomCustomer bool
TenantID string
TickerSymbol string
TradeStyle string
Type string
UnappliedPayments float64
UnitBase float64
UpsellOpportunity string
Website string
WHMCSClientID int64
XeroContactID string
YearStarted string
}