lib/app/account.go

153 lines
4.6 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"
)
2021-01-19 20:23:02 +00:00
// AccountActivityWrapper wraps the object with workflow params
type AccountActivityWrapper struct {
2021-01-19 01:50:45 +00:00
APIKey string
SagaID string
SagaType string
2021-01-19 21:18:59 +00:00
//
AccountSource string
AdministrativeLevel string
BillingAddress Address
BillingContactID string
2021-01-28 01:58:08 +00:00
BillingContact Contact
2021-01-19 21:18:59 +00:00
BillingPreference string
BusinessAddress Address
CannabisCustomer bool
CompanyID string
CoordinateID string
2021-01-28 01:58:08 +00:00
Coordinate Coordinate
2021-01-19 21:18:59 +00:00
CustomerID string
CustomerPriority string
DBA string
DefaultAddress Address
DefaultBackendID string
2021-01-28 01:58:08 +00:00
DefaultBackend Backend
2021-01-19 21:18:59 +00:00
DefaultDeliveryContactID string
2021-01-28 01:58:08 +00:00
DefaultDeliveryContact string
2021-01-19 21:18:59 +00:00
DefaultEndUserID string
2021-01-28 01:58:08 +00:00
DefaultEndUser Contact
2021-01-19 21:18:59 +00:00
Description string
EIN string
Email string
EnrollmentStatus string
Fax string
ISPCustomer bool
MSPCustomer bool
Name string
OrderContactID string
2021-01-28 01:58:08 +00:00
OrderContact Contact
2021-01-19 21:18:59 +00:00
OrderEmail string
OwnerID string
ParentID string
Phone string
PlaceID string
PreparerID string
RatingEngineID string
Ref string
ShippingAddress Address
ShippingContactID string
2021-01-28 01:58:08 +00:00
ShippingContact Contact
2021-01-19 21:18:59 +00:00
Site string
TelecomCustomer bool
TenantID string
Type string
Website 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
}