-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathmodel_vias_personal_data.go
189 lines (159 loc) · 5.67 KB
/
model_vias_personal_data.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
/*
* Adyen for Platforms: Notifications
*
* The Notification API sends notifications to the endpoints specified in a given subscription. Subscriptions are managed through the Notification Configuration API. The API specifications listed here detail the format of each notification. For more information, refer to our [documentation](https://docs.adyen.com/platforms/notifications).
*
* API version: 6
* Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package platformsnotificationevents
import (
"encoding/json"
)
// ViasPersonalData struct for ViasPersonalData
type ViasPersonalData struct {
// The date of birth of the person. The date should be in ISO-8601 format yyyy-mm-dd (e.g. 2000-01-31).
DateOfBirth *string `json:"dateOfBirth,omitempty"`
// Key value pairs of document type and identify numbers
DocumentData *[]PersonalDocumentData `json:"documentData,omitempty"`
// The nationality of the person represented by a two-character country code. >The permitted country codes are defined in ISO-3166-1 alpha-2 (e.g. 'NL').
Nationality *string `json:"nationality,omitempty"`
}
// NewViasPersonalData instantiates a new ViasPersonalData 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 NewViasPersonalData() *ViasPersonalData {
this := ViasPersonalData{}
return &this
}
// NewViasPersonalDataWithDefaults instantiates a new ViasPersonalData 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 NewViasPersonalDataWithDefaults() *ViasPersonalData {
this := ViasPersonalData{}
return &this
}
// GetDateOfBirth returns the DateOfBirth field value if set, zero value otherwise.
func (o *ViasPersonalData) GetDateOfBirth() string {
if o == nil || o.DateOfBirth == nil {
var ret string
return ret
}
return *o.DateOfBirth
}
// GetDateOfBirthOk returns a tuple with the DateOfBirth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ViasPersonalData) GetDateOfBirthOk() (*string, bool) {
if o == nil || o.DateOfBirth == nil {
return nil, false
}
return o.DateOfBirth, true
}
// HasDateOfBirth returns a boolean if a field has been set.
func (o *ViasPersonalData) HasDateOfBirth() bool {
if o != nil && o.DateOfBirth != nil {
return true
}
return false
}
// SetDateOfBirth gets a reference to the given string and assigns it to the DateOfBirth field.
func (o *ViasPersonalData) SetDateOfBirth(v string) {
o.DateOfBirth = &v
}
// GetDocumentData returns the DocumentData field value if set, zero value otherwise.
func (o *ViasPersonalData) GetDocumentData() []PersonalDocumentData {
if o == nil || o.DocumentData == nil {
var ret []PersonalDocumentData
return ret
}
return *o.DocumentData
}
// GetDocumentDataOk returns a tuple with the DocumentData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ViasPersonalData) GetDocumentDataOk() (*[]PersonalDocumentData, bool) {
if o == nil || o.DocumentData == nil {
return nil, false
}
return o.DocumentData, true
}
// HasDocumentData returns a boolean if a field has been set.
func (o *ViasPersonalData) HasDocumentData() bool {
if o != nil && o.DocumentData != nil {
return true
}
return false
}
// SetDocumentData gets a reference to the given []PersonalDocumentData and assigns it to the DocumentData field.
func (o *ViasPersonalData) SetDocumentData(v []PersonalDocumentData) {
o.DocumentData = &v
}
// GetNationality returns the Nationality field value if set, zero value otherwise.
func (o *ViasPersonalData) GetNationality() string {
if o == nil || o.Nationality == nil {
var ret string
return ret
}
return *o.Nationality
}
// GetNationalityOk returns a tuple with the Nationality field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ViasPersonalData) GetNationalityOk() (*string, bool) {
if o == nil || o.Nationality == nil {
return nil, false
}
return o.Nationality, true
}
// HasNationality returns a boolean if a field has been set.
func (o *ViasPersonalData) HasNationality() bool {
if o != nil && o.Nationality != nil {
return true
}
return false
}
// SetNationality gets a reference to the given string and assigns it to the Nationality field.
func (o *ViasPersonalData) SetNationality(v string) {
o.Nationality = &v
}
func (o ViasPersonalData) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.DateOfBirth != nil {
toSerialize["dateOfBirth"] = o.DateOfBirth
}
if o.DocumentData != nil {
toSerialize["documentData"] = o.DocumentData
}
if o.Nationality != nil {
toSerialize["nationality"] = o.Nationality
}
return json.Marshal(toSerialize)
}
type NullableViasPersonalData struct {
value *ViasPersonalData
isSet bool
}
func (v NullableViasPersonalData) Get() *ViasPersonalData {
return v.value
}
func (v *NullableViasPersonalData) Set(val *ViasPersonalData) {
v.value = val
v.isSet = true
}
func (v NullableViasPersonalData) IsSet() bool {
return v.isSet
}
func (v *NullableViasPersonalData) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableViasPersonalData(val *ViasPersonalData) *NullableViasPersonalData {
return &NullableViasPersonalData{value: val, isSet: true}
}
func (v NullableViasPersonalData) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableViasPersonalData) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}