-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_country_code.go
607 lines (585 loc) · 15.8 KB
/
model_country_code.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
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
/*
finAPI Web Form 2.0
The following pages give you some general information on how to use our APIs.<br/>The actual API services documentation then follows further below. You can use the menu to jump between API sections.<br/><br/>This page has a built-in HTTP(S) client, so you can test the services directly from within this page, by filling in the request parameters and/or body in the respective services, and then hitting the TRY button. Note that you need to be authorized to make a successful API call. To authorize, refer to the '<a target='_blank' href='https://docs.finapi.io/?product=access#tag--Authorization'>Authorization</a>' section of Access, or in case you already have a valid user token, just use the QUICK AUTH on the left.<br/>Please also remember that all user management functions should be looked up in <a target='_blank' href='https://docs.finapi.io/?product=access'>Access</a>.<br/><br/>You should also check out the <a target='_blank' href='https://documentation.finapi.io/webform/'>Web Form 2.0 Public Documentation</a> as well as <a target='_blank' href='https://documentation.finapi.io/access/'>Access Public Documentation</a> for more information. If you need any help with the API, contact <a href='mailto:[email protected]'>[email protected]</a>.<br/><h2 id=\"general-information\">General information</h2><h3 id=\"general-request-ids\"><strong>Request IDs</strong></h3>With any API call, you can pass a request ID via a header with name \"X-Request-Id\". The request ID can be an arbitrary string with up to 255 characters. Passing a longer string will result in an error.<br/><br/>If you don't pass a request ID for a call, finAPI will generate a random ID internally.<br/><br/>The request ID is always returned back in the response of a service, as a header with name \"X-Request-Id\".<br/><br/>We highly recommend to always pass a (preferably unique) request ID, and include it into your client application logs whenever you make a request or receive a response(especially in the case of an error response). finAPI is also logging request IDs on its end. Having a request ID can help the finAPI support team to work more efficiently and solve tickets faster.<h3 id=\"type-coercion\"><strong>Type Coercion</strong></h3>In order to ease the integration for some languages, which do not natively support high precision number representations, Web Form 2.0 API supports relax type binding for the openAPI type <code>number</code>, which is used for money amount fields. If you use one of those languages, to avoid precision errors that can appear from <code>float</code> values, you can pass the amount as a <code>string</code>.<h3 id=\"general-faq\"><strong>FAQ</strong></h3><strong>Is there a finAPI SDK?</strong><br/>Currently we do not offer a native SDK, but there is the option to generate an SDKfor almost any target language via OpenAPI. Use the 'Download SDK' button on this page for SDK generation.<br/><br/><strong>Why do I need to keep authorizing when calling services on this page?</strong><br/>This page is a \"one-page-app\". Reloading the page resets the OAuth authorization context. There is generally no need to reload the page, so just don't do it and your authorization will persist.
API version: 2.430.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package webform2
import (
"encoding/json"
"fmt"
)
// CountryCode <strong>Country code:</strong> The ISO 3166 ALPHA-2 country code of the counterparty's address. Examples: 'GB' for the United Kingdom or 'CH' for Switzerland.<br/><br/>This should be defined for direct debits created for debtors outside of the european union.
type CountryCode string
// List of CountryCode
const (
COUNTRYCODE_AD CountryCode = "AD"
COUNTRYCODE_AE CountryCode = "AE"
COUNTRYCODE_AF CountryCode = "AF"
COUNTRYCODE_AG CountryCode = "AG"
COUNTRYCODE_AI CountryCode = "AI"
COUNTRYCODE_AL CountryCode = "AL"
COUNTRYCODE_AM CountryCode = "AM"
COUNTRYCODE_AO CountryCode = "AO"
COUNTRYCODE_AQ CountryCode = "AQ"
COUNTRYCODE_AR CountryCode = "AR"
COUNTRYCODE_AS CountryCode = "AS"
COUNTRYCODE_AT CountryCode = "AT"
COUNTRYCODE_AU CountryCode = "AU"
COUNTRYCODE_AW CountryCode = "AW"
COUNTRYCODE_AX CountryCode = "AX"
COUNTRYCODE_AZ CountryCode = "AZ"
COUNTRYCODE_BA CountryCode = "BA"
COUNTRYCODE_BB CountryCode = "BB"
COUNTRYCODE_BD CountryCode = "BD"
COUNTRYCODE_BE CountryCode = "BE"
COUNTRYCODE_BF CountryCode = "BF"
COUNTRYCODE_BG CountryCode = "BG"
COUNTRYCODE_BH CountryCode = "BH"
COUNTRYCODE_BI CountryCode = "BI"
COUNTRYCODE_BJ CountryCode = "BJ"
COUNTRYCODE_BL CountryCode = "BL"
COUNTRYCODE_BM CountryCode = "BM"
COUNTRYCODE_BN CountryCode = "BN"
COUNTRYCODE_BO CountryCode = "BO"
COUNTRYCODE_BQ CountryCode = "BQ"
COUNTRYCODE_BR CountryCode = "BR"
COUNTRYCODE_BS CountryCode = "BS"
COUNTRYCODE_BT CountryCode = "BT"
COUNTRYCODE_BV CountryCode = "BV"
COUNTRYCODE_BW CountryCode = "BW"
COUNTRYCODE_BY CountryCode = "BY"
COUNTRYCODE_BZ CountryCode = "BZ"
COUNTRYCODE_CA CountryCode = "CA"
COUNTRYCODE_CC CountryCode = "CC"
COUNTRYCODE_CD CountryCode = "CD"
COUNTRYCODE_CF CountryCode = "CF"
COUNTRYCODE_CG CountryCode = "CG"
COUNTRYCODE_CH CountryCode = "CH"
COUNTRYCODE_CI CountryCode = "CI"
COUNTRYCODE_CK CountryCode = "CK"
COUNTRYCODE_CL CountryCode = "CL"
COUNTRYCODE_CM CountryCode = "CM"
COUNTRYCODE_CN CountryCode = "CN"
COUNTRYCODE_CO CountryCode = "CO"
COUNTRYCODE_CR CountryCode = "CR"
COUNTRYCODE_CU CountryCode = "CU"
COUNTRYCODE_CV CountryCode = "CV"
COUNTRYCODE_CW CountryCode = "CW"
COUNTRYCODE_CX CountryCode = "CX"
COUNTRYCODE_CY CountryCode = "CY"
COUNTRYCODE_CZ CountryCode = "CZ"
COUNTRYCODE_DE CountryCode = "DE"
COUNTRYCODE_DJ CountryCode = "DJ"
COUNTRYCODE_DK CountryCode = "DK"
COUNTRYCODE_DM CountryCode = "DM"
COUNTRYCODE_DO CountryCode = "DO"
COUNTRYCODE_DZ CountryCode = "DZ"
COUNTRYCODE_EC CountryCode = "EC"
COUNTRYCODE_EE CountryCode = "EE"
COUNTRYCODE_EG CountryCode = "EG"
COUNTRYCODE_EH CountryCode = "EH"
COUNTRYCODE_ER CountryCode = "ER"
COUNTRYCODE_ES CountryCode = "ES"
COUNTRYCODE_ET CountryCode = "ET"
COUNTRYCODE_FI CountryCode = "FI"
COUNTRYCODE_FJ CountryCode = "FJ"
COUNTRYCODE_FK CountryCode = "FK"
COUNTRYCODE_FM CountryCode = "FM"
COUNTRYCODE_FO CountryCode = "FO"
COUNTRYCODE_FR CountryCode = "FR"
COUNTRYCODE_GA CountryCode = "GA"
COUNTRYCODE_GB CountryCode = "GB"
COUNTRYCODE_GD CountryCode = "GD"
COUNTRYCODE_GE CountryCode = "GE"
COUNTRYCODE_GF CountryCode = "GF"
COUNTRYCODE_GG CountryCode = "GG"
COUNTRYCODE_GH CountryCode = "GH"
COUNTRYCODE_GI CountryCode = "GI"
COUNTRYCODE_GL CountryCode = "GL"
COUNTRYCODE_GM CountryCode = "GM"
COUNTRYCODE_GN CountryCode = "GN"
COUNTRYCODE_GP CountryCode = "GP"
COUNTRYCODE_GQ CountryCode = "GQ"
COUNTRYCODE_GR CountryCode = "GR"
COUNTRYCODE_GS CountryCode = "GS"
COUNTRYCODE_GT CountryCode = "GT"
COUNTRYCODE_GU CountryCode = "GU"
COUNTRYCODE_GW CountryCode = "GW"
COUNTRYCODE_GY CountryCode = "GY"
COUNTRYCODE_HK CountryCode = "HK"
COUNTRYCODE_HM CountryCode = "HM"
COUNTRYCODE_HN CountryCode = "HN"
COUNTRYCODE_HR CountryCode = "HR"
COUNTRYCODE_HT CountryCode = "HT"
COUNTRYCODE_HU CountryCode = "HU"
COUNTRYCODE_ID CountryCode = "ID"
COUNTRYCODE_IE CountryCode = "IE"
COUNTRYCODE_IL CountryCode = "IL"
COUNTRYCODE_IM CountryCode = "IM"
COUNTRYCODE_IN CountryCode = "IN"
COUNTRYCODE_IO CountryCode = "IO"
COUNTRYCODE_IQ CountryCode = "IQ"
COUNTRYCODE_IR CountryCode = "IR"
COUNTRYCODE_IS CountryCode = "IS"
COUNTRYCODE_IT CountryCode = "IT"
COUNTRYCODE_JE CountryCode = "JE"
COUNTRYCODE_JM CountryCode = "JM"
COUNTRYCODE_JO CountryCode = "JO"
COUNTRYCODE_JP CountryCode = "JP"
COUNTRYCODE_KE CountryCode = "KE"
COUNTRYCODE_KG CountryCode = "KG"
COUNTRYCODE_KH CountryCode = "KH"
COUNTRYCODE_KI CountryCode = "KI"
COUNTRYCODE_KM CountryCode = "KM"
COUNTRYCODE_KN CountryCode = "KN"
COUNTRYCODE_KP CountryCode = "KP"
COUNTRYCODE_KR CountryCode = "KR"
COUNTRYCODE_KW CountryCode = "KW"
COUNTRYCODE_KY CountryCode = "KY"
COUNTRYCODE_KZ CountryCode = "KZ"
COUNTRYCODE_LA CountryCode = "LA"
COUNTRYCODE_LB CountryCode = "LB"
COUNTRYCODE_LC CountryCode = "LC"
COUNTRYCODE_LI CountryCode = "LI"
COUNTRYCODE_LK CountryCode = "LK"
COUNTRYCODE_LR CountryCode = "LR"
COUNTRYCODE_LS CountryCode = "LS"
COUNTRYCODE_LT CountryCode = "LT"
COUNTRYCODE_LU CountryCode = "LU"
COUNTRYCODE_LV CountryCode = "LV"
COUNTRYCODE_LY CountryCode = "LY"
COUNTRYCODE_MA CountryCode = "MA"
COUNTRYCODE_MC CountryCode = "MC"
COUNTRYCODE_MD CountryCode = "MD"
COUNTRYCODE_ME CountryCode = "ME"
COUNTRYCODE_MF CountryCode = "MF"
COUNTRYCODE_MG CountryCode = "MG"
COUNTRYCODE_MH CountryCode = "MH"
COUNTRYCODE_MK CountryCode = "MK"
COUNTRYCODE_ML CountryCode = "ML"
COUNTRYCODE_MM CountryCode = "MM"
COUNTRYCODE_MN CountryCode = "MN"
COUNTRYCODE_MO CountryCode = "MO"
COUNTRYCODE_MP CountryCode = "MP"
COUNTRYCODE_MQ CountryCode = "MQ"
COUNTRYCODE_MR CountryCode = "MR"
COUNTRYCODE_MS CountryCode = "MS"
COUNTRYCODE_MT CountryCode = "MT"
COUNTRYCODE_MU CountryCode = "MU"
COUNTRYCODE_MV CountryCode = "MV"
COUNTRYCODE_MW CountryCode = "MW"
COUNTRYCODE_MX CountryCode = "MX"
COUNTRYCODE_MY CountryCode = "MY"
COUNTRYCODE_MZ CountryCode = "MZ"
COUNTRYCODE_NA CountryCode = "NA"
COUNTRYCODE_NC CountryCode = "NC"
COUNTRYCODE_NE CountryCode = "NE"
COUNTRYCODE_NF CountryCode = "NF"
COUNTRYCODE_NG CountryCode = "NG"
COUNTRYCODE_NI CountryCode = "NI"
COUNTRYCODE_NL CountryCode = "NL"
COUNTRYCODE_NO CountryCode = "NO"
COUNTRYCODE_NP CountryCode = "NP"
COUNTRYCODE_NR CountryCode = "NR"
COUNTRYCODE_NU CountryCode = "NU"
COUNTRYCODE_NZ CountryCode = "NZ"
COUNTRYCODE_OM CountryCode = "OM"
COUNTRYCODE_PA CountryCode = "PA"
COUNTRYCODE_PE CountryCode = "PE"
COUNTRYCODE_PF CountryCode = "PF"
COUNTRYCODE_PG CountryCode = "PG"
COUNTRYCODE_PH CountryCode = "PH"
COUNTRYCODE_PK CountryCode = "PK"
COUNTRYCODE_PL CountryCode = "PL"
COUNTRYCODE_PM CountryCode = "PM"
COUNTRYCODE_PN CountryCode = "PN"
COUNTRYCODE_PR CountryCode = "PR"
COUNTRYCODE_PS CountryCode = "PS"
COUNTRYCODE_PT CountryCode = "PT"
COUNTRYCODE_PW CountryCode = "PW"
COUNTRYCODE_PY CountryCode = "PY"
COUNTRYCODE_QA CountryCode = "QA"
COUNTRYCODE_RE CountryCode = "RE"
COUNTRYCODE_RO CountryCode = "RO"
COUNTRYCODE_RS CountryCode = "RS"
COUNTRYCODE_RU CountryCode = "RU"
COUNTRYCODE_RW CountryCode = "RW"
COUNTRYCODE_SA CountryCode = "SA"
COUNTRYCODE_SB CountryCode = "SB"
COUNTRYCODE_SC CountryCode = "SC"
COUNTRYCODE_SD CountryCode = "SD"
COUNTRYCODE_SE CountryCode = "SE"
COUNTRYCODE_SG CountryCode = "SG"
COUNTRYCODE_SH CountryCode = "SH"
COUNTRYCODE_SI CountryCode = "SI"
COUNTRYCODE_SJ CountryCode = "SJ"
COUNTRYCODE_SK CountryCode = "SK"
COUNTRYCODE_SL CountryCode = "SL"
COUNTRYCODE_SM CountryCode = "SM"
COUNTRYCODE_SN CountryCode = "SN"
COUNTRYCODE_SO CountryCode = "SO"
COUNTRYCODE_SR CountryCode = "SR"
COUNTRYCODE_SS CountryCode = "SS"
COUNTRYCODE_ST CountryCode = "ST"
COUNTRYCODE_SV CountryCode = "SV"
COUNTRYCODE_SX CountryCode = "SX"
COUNTRYCODE_SY CountryCode = "SY"
COUNTRYCODE_SZ CountryCode = "SZ"
COUNTRYCODE_TC CountryCode = "TC"
COUNTRYCODE_TD CountryCode = "TD"
COUNTRYCODE_TF CountryCode = "TF"
COUNTRYCODE_TG CountryCode = "TG"
COUNTRYCODE_TH CountryCode = "TH"
COUNTRYCODE_TJ CountryCode = "TJ"
COUNTRYCODE_TK CountryCode = "TK"
COUNTRYCODE_TL CountryCode = "TL"
COUNTRYCODE_TM CountryCode = "TM"
COUNTRYCODE_TN CountryCode = "TN"
COUNTRYCODE_TO CountryCode = "TO"
COUNTRYCODE_TR CountryCode = "TR"
COUNTRYCODE_TT CountryCode = "TT"
COUNTRYCODE_TV CountryCode = "TV"
COUNTRYCODE_TW CountryCode = "TW"
COUNTRYCODE_TZ CountryCode = "TZ"
COUNTRYCODE_UA CountryCode = "UA"
COUNTRYCODE_UG CountryCode = "UG"
COUNTRYCODE_UM CountryCode = "UM"
COUNTRYCODE_US CountryCode = "US"
COUNTRYCODE_UY CountryCode = "UY"
COUNTRYCODE_UZ CountryCode = "UZ"
COUNTRYCODE_VA CountryCode = "VA"
COUNTRYCODE_VC CountryCode = "VC"
COUNTRYCODE_VE CountryCode = "VE"
COUNTRYCODE_VG CountryCode = "VG"
COUNTRYCODE_VI CountryCode = "VI"
COUNTRYCODE_VN CountryCode = "VN"
COUNTRYCODE_VU CountryCode = "VU"
COUNTRYCODE_WF CountryCode = "WF"
COUNTRYCODE_WS CountryCode = "WS"
COUNTRYCODE_XK CountryCode = "XK"
COUNTRYCODE_YE CountryCode = "YE"
COUNTRYCODE_YT CountryCode = "YT"
COUNTRYCODE_ZA CountryCode = "ZA"
COUNTRYCODE_ZM CountryCode = "ZM"
COUNTRYCODE_ZW CountryCode = "ZW"
)
// All allowed values of CountryCode enum
var AllowedCountryCodeEnumValues = []CountryCode{
"AD",
"AE",
"AF",
"AG",
"AI",
"AL",
"AM",
"AO",
"AQ",
"AR",
"AS",
"AT",
"AU",
"AW",
"AX",
"AZ",
"BA",
"BB",
"BD",
"BE",
"BF",
"BG",
"BH",
"BI",
"BJ",
"BL",
"BM",
"BN",
"BO",
"BQ",
"BR",
"BS",
"BT",
"BV",
"BW",
"BY",
"BZ",
"CA",
"CC",
"CD",
"CF",
"CG",
"CH",
"CI",
"CK",
"CL",
"CM",
"CN",
"CO",
"CR",
"CU",
"CV",
"CW",
"CX",
"CY",
"CZ",
"DE",
"DJ",
"DK",
"DM",
"DO",
"DZ",
"EC",
"EE",
"EG",
"EH",
"ER",
"ES",
"ET",
"FI",
"FJ",
"FK",
"FM",
"FO",
"FR",
"GA",
"GB",
"GD",
"GE",
"GF",
"GG",
"GH",
"GI",
"GL",
"GM",
"GN",
"GP",
"GQ",
"GR",
"GS",
"GT",
"GU",
"GW",
"GY",
"HK",
"HM",
"HN",
"HR",
"HT",
"HU",
"ID",
"IE",
"IL",
"IM",
"IN",
"IO",
"IQ",
"IR",
"IS",
"IT",
"JE",
"JM",
"JO",
"JP",
"KE",
"KG",
"KH",
"KI",
"KM",
"KN",
"KP",
"KR",
"KW",
"KY",
"KZ",
"LA",
"LB",
"LC",
"LI",
"LK",
"LR",
"LS",
"LT",
"LU",
"LV",
"LY",
"MA",
"MC",
"MD",
"ME",
"MF",
"MG",
"MH",
"MK",
"ML",
"MM",
"MN",
"MO",
"MP",
"MQ",
"MR",
"MS",
"MT",
"MU",
"MV",
"MW",
"MX",
"MY",
"MZ",
"NA",
"NC",
"NE",
"NF",
"NG",
"NI",
"NL",
"NO",
"NP",
"NR",
"NU",
"NZ",
"OM",
"PA",
"PE",
"PF",
"PG",
"PH",
"PK",
"PL",
"PM",
"PN",
"PR",
"PS",
"PT",
"PW",
"PY",
"QA",
"RE",
"RO",
"RS",
"RU",
"RW",
"SA",
"SB",
"SC",
"SD",
"SE",
"SG",
"SH",
"SI",
"SJ",
"SK",
"SL",
"SM",
"SN",
"SO",
"SR",
"SS",
"ST",
"SV",
"SX",
"SY",
"SZ",
"TC",
"TD",
"TF",
"TG",
"TH",
"TJ",
"TK",
"TL",
"TM",
"TN",
"TO",
"TR",
"TT",
"TV",
"TW",
"TZ",
"UA",
"UG",
"UM",
"US",
"UY",
"UZ",
"VA",
"VC",
"VE",
"VG",
"VI",
"VN",
"VU",
"WF",
"WS",
"XK",
"YE",
"YT",
"ZA",
"ZM",
"ZW",
}
func (v *CountryCode) UnmarshalJSON(src []byte) error {
var value string
err := json.Unmarshal(src, &value)
if err != nil {
return err
}
enumTypeValue := CountryCode(value)
for _, existing := range AllowedCountryCodeEnumValues {
if existing == enumTypeValue {
*v = enumTypeValue
return nil
}
}
return fmt.Errorf("%+v is not a valid CountryCode", value)
}
// NewCountryCodeFromValue returns a pointer to a valid CountryCode
// for the value passed as argument, or an error if the value passed is not allowed by the enum
func NewCountryCodeFromValue(v string) (*CountryCode, error) {
ev := CountryCode(v)
if ev.IsValid() {
return &ev, nil
} else {
return nil, fmt.Errorf("invalid value '%v' for CountryCode: valid values are %v", v, AllowedCountryCodeEnumValues)
}
}
// IsValid return true if the value is valid for the enum, false otherwise
func (v CountryCode) IsValid() bool {
for _, existing := range AllowedCountryCodeEnumValues {
if existing == v {
return true
}
}
return false
}
// Ptr returns reference to CountryCode value
func (v CountryCode) Ptr() *CountryCode {
return &v
}
type NullableCountryCode struct {
value *CountryCode
isSet bool
}
func (v NullableCountryCode) Get() *CountryCode {
return v.value
}
func (v *NullableCountryCode) Set(val *CountryCode) {
v.value = val
v.isSet = true
}
func (v NullableCountryCode) IsSet() bool {
return v.isSet
}
func (v *NullableCountryCode) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCountryCode(val *CountryCode) *NullableCountryCode {
return &NullableCountryCode{value: val, isSet: true}
}
func (v NullableCountryCode) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCountryCode) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}