-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmodel_member_create_request_body.go
270 lines (224 loc) · 8.23 KB
/
model_member_create_request_body.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
/*
MX Platform API
The MX Platform API is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions.
API version: 0.1.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package mxplatformgo
import (
"encoding/json"
)
// checks if the MemberCreateRequestBody type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &MemberCreateRequestBody{}
// MemberCreateRequestBody struct for MemberCreateRequestBody
type MemberCreateRequestBody struct {
ClientRedirectUrl *string `json:"client_redirect_url,omitempty"`
EnableApp2app *bool `json:"enable_app2app,omitempty"`
Member *MemberCreateRequest `json:"member,omitempty"`
ReferralSource *string `json:"referral_source,omitempty"`
UiMessageWebviewUrlScheme *string `json:"ui_message_webview_url_scheme,omitempty"`
}
// NewMemberCreateRequestBody instantiates a new MemberCreateRequestBody object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewMemberCreateRequestBody() *MemberCreateRequestBody {
this := MemberCreateRequestBody{}
return &this
}
// NewMemberCreateRequestBodyWithDefaults instantiates a new MemberCreateRequestBody object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewMemberCreateRequestBodyWithDefaults() *MemberCreateRequestBody {
this := MemberCreateRequestBody{}
return &this
}
// GetClientRedirectUrl returns the ClientRedirectUrl field value if set, zero value otherwise.
func (o *MemberCreateRequestBody) GetClientRedirectUrl() string {
if o == nil || IsNil(o.ClientRedirectUrl) {
var ret string
return ret
}
return *o.ClientRedirectUrl
}
// GetClientRedirectUrlOk returns a tuple with the ClientRedirectUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MemberCreateRequestBody) GetClientRedirectUrlOk() (*string, bool) {
if o == nil || IsNil(o.ClientRedirectUrl) {
return nil, false
}
return o.ClientRedirectUrl, true
}
// HasClientRedirectUrl returns a boolean if a field has been set.
func (o *MemberCreateRequestBody) HasClientRedirectUrl() bool {
if o != nil && !IsNil(o.ClientRedirectUrl) {
return true
}
return false
}
// SetClientRedirectUrl gets a reference to the given string and assigns it to the ClientRedirectUrl field.
func (o *MemberCreateRequestBody) SetClientRedirectUrl(v string) {
o.ClientRedirectUrl = &v
}
// GetEnableApp2app returns the EnableApp2app field value if set, zero value otherwise.
func (o *MemberCreateRequestBody) GetEnableApp2app() bool {
if o == nil || IsNil(o.EnableApp2app) {
var ret bool
return ret
}
return *o.EnableApp2app
}
// GetEnableApp2appOk returns a tuple with the EnableApp2app field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MemberCreateRequestBody) GetEnableApp2appOk() (*bool, bool) {
if o == nil || IsNil(o.EnableApp2app) {
return nil, false
}
return o.EnableApp2app, true
}
// HasEnableApp2app returns a boolean if a field has been set.
func (o *MemberCreateRequestBody) HasEnableApp2app() bool {
if o != nil && !IsNil(o.EnableApp2app) {
return true
}
return false
}
// SetEnableApp2app gets a reference to the given bool and assigns it to the EnableApp2app field.
func (o *MemberCreateRequestBody) SetEnableApp2app(v bool) {
o.EnableApp2app = &v
}
// GetMember returns the Member field value if set, zero value otherwise.
func (o *MemberCreateRequestBody) GetMember() MemberCreateRequest {
if o == nil || IsNil(o.Member) {
var ret MemberCreateRequest
return ret
}
return *o.Member
}
// GetMemberOk returns a tuple with the Member field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MemberCreateRequestBody) GetMemberOk() (*MemberCreateRequest, bool) {
if o == nil || IsNil(o.Member) {
return nil, false
}
return o.Member, true
}
// HasMember returns a boolean if a field has been set.
func (o *MemberCreateRequestBody) HasMember() bool {
if o != nil && !IsNil(o.Member) {
return true
}
return false
}
// SetMember gets a reference to the given MemberCreateRequest and assigns it to the Member field.
func (o *MemberCreateRequestBody) SetMember(v MemberCreateRequest) {
o.Member = &v
}
// GetReferralSource returns the ReferralSource field value if set, zero value otherwise.
func (o *MemberCreateRequestBody) GetReferralSource() string {
if o == nil || IsNil(o.ReferralSource) {
var ret string
return ret
}
return *o.ReferralSource
}
// GetReferralSourceOk returns a tuple with the ReferralSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MemberCreateRequestBody) GetReferralSourceOk() (*string, bool) {
if o == nil || IsNil(o.ReferralSource) {
return nil, false
}
return o.ReferralSource, true
}
// HasReferralSource returns a boolean if a field has been set.
func (o *MemberCreateRequestBody) HasReferralSource() bool {
if o != nil && !IsNil(o.ReferralSource) {
return true
}
return false
}
// SetReferralSource gets a reference to the given string and assigns it to the ReferralSource field.
func (o *MemberCreateRequestBody) SetReferralSource(v string) {
o.ReferralSource = &v
}
// GetUiMessageWebviewUrlScheme returns the UiMessageWebviewUrlScheme field value if set, zero value otherwise.
func (o *MemberCreateRequestBody) GetUiMessageWebviewUrlScheme() string {
if o == nil || IsNil(o.UiMessageWebviewUrlScheme) {
var ret string
return ret
}
return *o.UiMessageWebviewUrlScheme
}
// GetUiMessageWebviewUrlSchemeOk returns a tuple with the UiMessageWebviewUrlScheme field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MemberCreateRequestBody) GetUiMessageWebviewUrlSchemeOk() (*string, bool) {
if o == nil || IsNil(o.UiMessageWebviewUrlScheme) {
return nil, false
}
return o.UiMessageWebviewUrlScheme, true
}
// HasUiMessageWebviewUrlScheme returns a boolean if a field has been set.
func (o *MemberCreateRequestBody) HasUiMessageWebviewUrlScheme() bool {
if o != nil && !IsNil(o.UiMessageWebviewUrlScheme) {
return true
}
return false
}
// SetUiMessageWebviewUrlScheme gets a reference to the given string and assigns it to the UiMessageWebviewUrlScheme field.
func (o *MemberCreateRequestBody) SetUiMessageWebviewUrlScheme(v string) {
o.UiMessageWebviewUrlScheme = &v
}
func (o MemberCreateRequestBody) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o MemberCreateRequestBody) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ClientRedirectUrl) {
toSerialize["client_redirect_url"] = o.ClientRedirectUrl
}
if !IsNil(o.EnableApp2app) {
toSerialize["enable_app2app"] = o.EnableApp2app
}
if !IsNil(o.Member) {
toSerialize["member"] = o.Member
}
if !IsNil(o.ReferralSource) {
toSerialize["referral_source"] = o.ReferralSource
}
if !IsNil(o.UiMessageWebviewUrlScheme) {
toSerialize["ui_message_webview_url_scheme"] = o.UiMessageWebviewUrlScheme
}
return toSerialize, nil
}
type NullableMemberCreateRequestBody struct {
value *MemberCreateRequestBody
isSet bool
}
func (v NullableMemberCreateRequestBody) Get() *MemberCreateRequestBody {
return v.value
}
func (v *NullableMemberCreateRequestBody) Set(val *MemberCreateRequestBody) {
v.value = val
v.isSet = true
}
func (v NullableMemberCreateRequestBody) IsSet() bool {
return v.isSet
}
func (v *NullableMemberCreateRequestBody) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableMemberCreateRequestBody(val *MemberCreateRequestBody) *NullableMemberCreateRequestBody {
return &NullableMemberCreateRequestBody{value: val, isSet: true}
}
func (v NullableMemberCreateRequestBody) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableMemberCreateRequestBody) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}