lib/app/contact.go

68 lines
1.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"
"code.tnxs.net/taxnexus/lib/api/crm/crm_models"
)
// NewContactActivity is an activity identifier
const NewContactActivity = "NEW_CONTACT_ACTIVITY"
2021-01-19 20:23:02 +00:00
// ContactActivityWrapper wraps the object with workflow params
type ContactActivityWrapper struct {
2021-01-19 01:50:45 +00:00
Obj crm_models.Contact
APIKey string
SagaID string
SagaType string
2021-01-12 05:46:24 +00:00
}
2021-01-10 18:40:46 +00:00
// Contact is a first-class object
type Contact struct {
ID string
AccountID string
AssistantName string
AssistantPhone string
BirthDate sql.NullTime
CreatedByID string
CreatedDate sql.NullTime
Department string
Description string
DoNotCall bool
Email string
EmailBounceDate sql.NullTime
EmailBouncedReason string
EnrollmentStatus string
Fax string
FirstName string
HasOptedOutOfEmail bool
HasOptedOutOfFax bool
HomePhone string
IsEmailBounced bool
IsProvisioned bool
LastModifiedByID string
LastModifiedDate sql.NullTime
LastName string
LeadSource string
Level string
LinkedIn string
2021-01-14 06:36:35 +00:00
MailingAddress *Address
2021-01-10 18:40:46 +00:00
MailingLists string
MobilePhone string
Name string
2021-01-14 06:36:35 +00:00
OtherAddress *Address
2021-01-10 18:40:46 +00:00
OtherPhone string
OwnerID string
PersonalEmail string
Phone string
PhotoURL string
RecruitingStatus string
Ref string
ReportsToID string
Salutation string
Status string
TenantID string
Title string
Type string
}