lib/app/company.go

89 lines
2.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"
)
2021-01-19 20:23:02 +00:00
// CompanyActivityWrapper wraps the object with workflow params
type CompanyActivityWrapper struct {
2021-01-19 01:50:45 +00:00
APIKey string
SagaID string
SagaType string
2021-01-19 21:18:59 +00:00
//
AccountID string
AccountNumberPrefix string
BillingAddress Address
BillingAdvice string
BillingContactID string
BillingEmail string
BillingPhone string
BillingWebsite string
CoaTemplateID string
ColorAccent1 string
ColorAccent2 string
ColorPrimary string
CurrentPeriodID string
CustomerSuccessID string
DefaultAddress Address
DefaultCompany bool
FontBody string
FontHeading string
FontHeadingNarrow string
FontLink string
FontMono string
International bool
LastAccountNumber int64
LastTaxtypeNumber int64
Logo string
Name string
OwnerID string
PreparerID string
PricebookID string
TenantID string
UserTechLeadID string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// Company is a DB struct
type Company struct {
ID string
AccountID string
AccountNumberPrefix string
AdvancePeriodID string
2021-01-14 06:36:35 +00:00
BillingAddress *Address
2021-01-10 18:40:46 +00:00
BillingAdvice string
BillingContactID string
BillingEmail string
BillingPhone string
BillingWebsite string
CoaTemplateID string
ColorAccent1 string
ColorAccent2 string
ColorPrimary string
ClosedPeriodID string
CreatedByID string
CreatedDate sql.NullTime
CurrentPeriodID string
CurrentPeriodStatus string
CustomerSuccessID string
DateClosed sql.NullTime
2021-01-14 06:36:35 +00:00
DefaultAddress *Address
2021-01-10 18:40:46 +00:00
DefaultCompany bool
FontBody string
FontHeading string
FontHeadingNarrow string
FontLink string
FontMono string
International bool
LastAccountNumber int64
LastModifiedByID string
LastModifiedDate sql.NullTime
LastTaxtypeNumber int64
Logo string
Name string
OwnerID string
PreparerID string
PricebookID string
TenantID string
UserTechLeadID string
}