-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlead.go
48 lines (47 loc) · 1.78 KB
/
lead.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package main
type Lead struct {
Product struct {
TypeId string `json:"typeId,omitempty"`
Amount int `json:"amount,omitempty"`
Term string `json:"term,omitempty"`
//BidId string `json:"bidId,omitempty"`
} `json:"product,omitempty"`
Location struct {
Name struct {
Region string `json:"region,omitempty"`
City string `json:"city,omitempty"`
} `json:"name,omitempty"`
//Exbico struct {
// RegionId string `json:"regionId,omitempty"`
// CityId string `json:"cityId,omitempty"`
//} `json:"exbico,omitempty"`
//Coordinates struct {
// Latitude float64 `json:"latitude,omitempty"`
// Longitude float64 `json:"longitude,omitempty"`
//} `json:"coordinates,omitempty"`
//KladrId string `json:"kladrId,omitempty"`
} `json:"location,omitempty"`
Passport struct {
Series string `json:"series,omitempty"`
Number string `json:"number,omitempty"`
IssueDate string `json:"issueDate,omitempty"`
} `json:"passport,omitempty"`
Client struct {
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
Patronymic string `json:"patronymic,omitempty"`
BirthDate string `json:"birthDate,omitempty"`
Age int `json:"age,omitempty"`
Phone string `json:"phone,omitempty"`
Email string `json:"email,omitempty"`
} `json:"client,omitempty"`
//Meta struct {
// UtmSource string `json:"utmSource,omitempty"`
// UtmMedium string `json:"utmMedium,omitempty"`
// UtmCampaign string `json:"utmCampaign,omitempty"`
// UtmTerm string `json:"utmTerm,omitempty"`
// UtmContent string `json:"utmContent,omitempty"`
//} `json:"meta,omitempty"`
//AgreedWithPersonalDataTransfer bool `json:"agreedWithPersonalDataTransfer,omitempty"`
//ConfirmedWithSms bool `json:"confirmedWithSms,omitempty"`
}