-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
127 lines (112 loc) · 2.91 KB
/
structs.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package ede
import "time"
type SuiteAPI struct {
User string
Secret string
}
type EdeData struct {
Emarsys_auth SuiteAPI
SearchField string
MergeRules MergeRules
Exclude Exclude
}
type MergeRules struct {
LastAdded bool
ByDateField string
UpdateEmptyField bool
CreateContactList bool
}
type Exclude struct {
FieldId string
FieldValue Field_value
}
type Field_value struct {
Null bool
}
type DataQueryResponse struct {
Data struct {
Errors []interface{} `json:"errors"`
Result []interface{} `json:"result"`
} `json:"data"`
ReplyCode int64 `json:"replyCode"`
ReplyText string `json:"replyText"`
}
type Settings struct {
ReplyCode int `json:"replyCode"`
ReplyText string `json:"replyText"`
Data struct {
ID int `json:"id"`
Environment string `json:"environment"`
Timezone string `json:"timezone"`
Name string `json:"name"`
PasswordHistoryQueueSize int `json:"password_history_queue_size"`
Country string `json:"country"`
TotalContacts string `json:"totalContacts"`
} `json:"data"`
}
type ReturnedDupsList struct {
ReplyCode int `json:"replyCode"`
ReplyText string `json:"replyText"`
Data struct {
Errors []interface{} `json:"errors"`
Result []struct {
Optin string `json:"31"`
ID string `json:"id"`
} `json:"result"`
} `json:"data"`
}
type DupsByDate struct {
ReplyCode int `json:"replyCode"`
ReplyText string `json:"replyText"`
Data struct {
Errors []interface{} `json:"errors"`
Result []struct {
DateField string `json:"date_field"`
ID string `json:"id"`
} `json:"result"`
} `json:"data"`
}
type Date_dups_slice []struct {
ID string
Date_field time.Time
}
type Date_dups_slice_element struct {
ID string
Date_field time.Time
}
type EmarsysFields struct {
ReplyCode int `json:"replyCode"`
ReplyText string `json:"replyText"`
Data []struct {
ID int `json:"id"`
Name string `json:"name"`
ApplicationType string `json:"application_type"`
StringID string `json:"string_id"`
} `json:"data"`
}
type Suite_Contact_Response struct {
ReplyCode int `json:"replyCode"`
ReplyText string `json:"replyText"`
Data struct {
Errors []interface{} `json:"errors"`
Result []interface{} `json:"result"`
} `json:"data"`
}
type Cl_response struct {
Data struct {
Errors []interface{} `json:"errors,omitempty"`
ID int `json:"id,omitempty"`
} `json:"data,omitempty"`
ReplyCode int `json:"replyCode"`
ReplyText string `json:"replyText"`
}
type CL_List struct {
Data []struct {
Created string `json:"created,omitempty"`
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
Type int `json:"type,omitempty"`
} `json:"data"`
ReplyCode int `json:"replyCode"`
ReplyText string `json:"replyText"`
}