From ba35bc48e29e48727d0c8c33213528094870cd35 Mon Sep 17 00:00:00 2001 From: Patrick Peng Sun Date: Mon, 3 Jul 2017 13:51:55 +1000 Subject: [PATCH] remove verifier --- crmLead.go | 2 ++ crmLead_test.go | 23 ++++------------------- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/crmLead.go b/crmLead.go index 8343c4a..8da83c3 100644 --- a/crmLead.go +++ b/crmLead.go @@ -12,6 +12,8 @@ type crmdLead struct { //ID string `json:"id,omitempty"` //Name string `json:"name,omitempty"` //Deleted bool `json:"deleted,omitempty"` + AvatarID string `json:"avatarId,omitempty"` + AvatarName string `json:"avatarName,omotempty"` SalutationName string `json:"salutationName,omitempty"` FirstName string `json:"firstName,omitempty"` LastName string `json:"lastName,omitempty"` diff --git a/crmLead_test.go b/crmLead_test.go index 94bd9fa..a264f48 100644 --- a/crmLead_test.go +++ b/crmLead_test.go @@ -34,12 +34,7 @@ func TestDecodeLeadInfo(t *testing.T) { "accountName": "", "password": "abcdefg", "wechatOpenID": "the user id obtained from wechat public account", - "verifier": [ - "231823091", - "adkdaifaskfsafsa", - "394kfdjafdsa", - "39410498321041" - ], + "opportunityAmountCurrency": null, "opportunityAmountConverted": null, "createdById": "1", @@ -132,12 +127,7 @@ func TestCrmdLeadByCompleteInfo(t *testing.T) { "accountName": "", "password": "abcdefg", "wechatOpenID": "the user id obtained from wechat public account", - "verifier": [ - "231823091", - "adkdaifaskfsafsa", - "394kfdjafdsa", - "39410498321041" - ], + "opportunityAmountCurrency": "AUD", "opportunityAmountConverted": 120, "emailAddressData": [ @@ -309,12 +299,7 @@ func TestSearchResult(t *testing.T) { "accountName": "", "password": "abcdefg", "wechatOpenID": "the user id obtained from wechat public account", - "verifier": [ - "231823091", - "adkdaifaskfsafsa", - "394kfdjafdsa", - "39410498321041" - ], + "opportunityAmountCurrency": "AUD", "opportunityAmountConverted": 120, "createdById": "1", @@ -355,7 +340,7 @@ func TestSearchResult(t *testing.T) { "accountName": "", "password": null, "wechatOpenID": "the user id obtained from wechat public account", - "verifier": [], + "opportunityAmountCurrency": null, "opportunityAmountConverted": null, "createdById": "1",