Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions company.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ type Company struct {
SessionCount int64 `json:"session_count,omitempty"`
MonthlySpend int64 `json:"monthly_spend,omitempty"`
UserCount int64 `json:"user_count,omitempty"`
Industry string `json:"industry,omitempty"`
Size int64 `json:"size,omitempty"`
Tags *TagList `json:"tags,omitempty"`
Segments *SegmentList `json:"segments,omitempty"`
Plan *Plan `json:"plan,omitempty"`
Expand Down
4 changes: 4 additions & 0 deletions company_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ type requestCompany struct {
RemoteCreatedAt int64 `json:"remote_created_at,omitempty"`
MonthlySpend int64 `json:"monthly_spend,omitempty"`
Plan string `json:"plan,omitempty"`
Industry string `json:"industry,omitempty"`
Size int64 `json:"size,omitempty"`
CustomAttributes map[string]interface{} `json:"custom_attributes,omitempty"`
}

Expand Down Expand Up @@ -101,6 +103,8 @@ func (api CompanyAPI) save(company *Company) (Company, error) {
RemoteCreatedAt: company.RemoteCreatedAt,
MonthlySpend: company.MonthlySpend,
Plan: api.getPlanName(company),
Industry: company.Industry,
Size: company.Size,
CustomAttributes: company.CustomAttributes,
}

Expand Down