From 150f9fb2171ce5cb921337399b71fdbdc3bc778f Mon Sep 17 00:00:00 2001 From: Yehezkiel Syamsuhadi Date: Fri, 1 Mar 2019 11:49:53 +1100 Subject: [PATCH] Allow saving Company industry & size --- company.go | 2 ++ company_api.go | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/company.go b/company.go index 85ce0fc..10f5ea3 100644 --- a/company.go +++ b/company.go @@ -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"` diff --git a/company_api.go b/company_api.go index 2e43b14..b8a3d55 100644 --- a/company_api.go +++ b/company_api.go @@ -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"` } @@ -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, }