-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_child_account.go
794 lines (678 loc) · 22 KB
/
model_child_account.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
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
/*
Linode API
[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).
API version: 4.189.2
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
"time"
)
// checks if the ChildAccount type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ChildAccount{}
// ChildAccount Child account object.
type ChildAccount struct {
// The activation date and time for the child account.
ActiveSince *time.Time `json:"active_since,omitempty"`
// First line of this child account's billing address.
Address1 *string `json:"address_1,omitempty"`
// Second line of this child account's billing address, if applicable.
Address2 *string `json:"address_2,omitempty"`
// This child account's balance, in US dollars.
Balance *float32 `json:"balance,omitempty"`
// This child account's current estimated invoice in US dollars. This is not your final invoice balance. Transfer charges are not included in the estimate.
BalanceUninvoiced *float32 `json:"balance_uninvoiced,omitempty"`
// The source of service charges for this account, as determined by its relationship with Akamai. The API returns a value of `external` to describe a child account in a parent-child account environment.
BillingSource *string `json:"billing_source,omitempty"`
// A list of the capabilities the child account supports.
Capabilities []string `json:"capabilities,omitempty"`
// The city for this child account's billing address.
City *string `json:"city,omitempty"`
// The company name for the owner of this child account. It can't include any of these characters: `<` `>` `(` `)` `\"` `=`. You can't change this value yourself. We use it to create the proxy users that a parent account uses to access a child account. Talk to your account team if you need to change this value.
Company *string `json:"company,omitempty"`
// The two-letter ISO 3166 country code for this child account's billing address.
Country *string `json:"country,omitempty"`
CreditCard *GetChildAccounts200ResponseDataInnerCreditCard `json:"credit_card,omitempty"`
// The email address of the owner of this child account.
Email *string `json:"email,omitempty"`
// An external, unique identifier that Akamai assigned to the child account.
Euuid *string `json:"euuid,omitempty"`
// The first name of the owner of this child account. It can't include any of these characters: `<` `>` `(` `)` `\"` `=`.
FirstName *string `json:"first_name,omitempty"`
// The last name of the owner of this child account. It can't include any of these characters: `<` `>` `(` `)` `\"` `=`.
LastName *string `json:"last_name,omitempty"`
// The phone number for the owner of this child account.
Phone *string `json:"phone,omitempty"`
// The state or province for the billing address (`address_1` and `address_2, if applicable`). If in the United States (US) or Canada (CA), this is the two-letter ISO 3166 State or Province code. __Note__. If this is a US military address, use state abbreviations (AA, AE, AP).
State *string `json:"state,omitempty"`
// The tax identification number for this child account. Use this for tax calculations in some countries. If you live in a country that doesn't collect taxes, ensure this is an empty string (`\"\"`).
TaxId *string `json:"tax_id,omitempty"`
// The zip code of this Account's billing address. The following restrictions apply: - Can only contain ASCII letters, numbers, and hyphens (`-`). - Can't contain more than 9 letter or number characters.
Zip *string `json:"zip,omitempty"`
}
// NewChildAccount instantiates a new ChildAccount 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 NewChildAccount() *ChildAccount {
this := ChildAccount{}
return &this
}
// NewChildAccountWithDefaults instantiates a new ChildAccount 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 NewChildAccountWithDefaults() *ChildAccount {
this := ChildAccount{}
return &this
}
// GetActiveSince returns the ActiveSince field value if set, zero value otherwise.
func (o *ChildAccount) GetActiveSince() time.Time {
if o == nil || IsNil(o.ActiveSince) {
var ret time.Time
return ret
}
return *o.ActiveSince
}
// GetActiveSinceOk returns a tuple with the ActiveSince field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetActiveSinceOk() (*time.Time, bool) {
if o == nil || IsNil(o.ActiveSince) {
return nil, false
}
return o.ActiveSince, true
}
// HasActiveSince returns a boolean if a field has been set.
func (o *ChildAccount) HasActiveSince() bool {
if o != nil && !IsNil(o.ActiveSince) {
return true
}
return false
}
// SetActiveSince gets a reference to the given time.Time and assigns it to the ActiveSince field.
func (o *ChildAccount) SetActiveSince(v time.Time) {
o.ActiveSince = &v
}
// GetAddress1 returns the Address1 field value if set, zero value otherwise.
func (o *ChildAccount) GetAddress1() string {
if o == nil || IsNil(o.Address1) {
var ret string
return ret
}
return *o.Address1
}
// GetAddress1Ok returns a tuple with the Address1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetAddress1Ok() (*string, bool) {
if o == nil || IsNil(o.Address1) {
return nil, false
}
return o.Address1, true
}
// HasAddress1 returns a boolean if a field has been set.
func (o *ChildAccount) HasAddress1() bool {
if o != nil && !IsNil(o.Address1) {
return true
}
return false
}
// SetAddress1 gets a reference to the given string and assigns it to the Address1 field.
func (o *ChildAccount) SetAddress1(v string) {
o.Address1 = &v
}
// GetAddress2 returns the Address2 field value if set, zero value otherwise.
func (o *ChildAccount) GetAddress2() string {
if o == nil || IsNil(o.Address2) {
var ret string
return ret
}
return *o.Address2
}
// GetAddress2Ok returns a tuple with the Address2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetAddress2Ok() (*string, bool) {
if o == nil || IsNil(o.Address2) {
return nil, false
}
return o.Address2, true
}
// HasAddress2 returns a boolean if a field has been set.
func (o *ChildAccount) HasAddress2() bool {
if o != nil && !IsNil(o.Address2) {
return true
}
return false
}
// SetAddress2 gets a reference to the given string and assigns it to the Address2 field.
func (o *ChildAccount) SetAddress2(v string) {
o.Address2 = &v
}
// GetBalance returns the Balance field value if set, zero value otherwise.
func (o *ChildAccount) GetBalance() float32 {
if o == nil || IsNil(o.Balance) {
var ret float32
return ret
}
return *o.Balance
}
// GetBalanceOk returns a tuple with the Balance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetBalanceOk() (*float32, bool) {
if o == nil || IsNil(o.Balance) {
return nil, false
}
return o.Balance, true
}
// HasBalance returns a boolean if a field has been set.
func (o *ChildAccount) HasBalance() bool {
if o != nil && !IsNil(o.Balance) {
return true
}
return false
}
// SetBalance gets a reference to the given float32 and assigns it to the Balance field.
func (o *ChildAccount) SetBalance(v float32) {
o.Balance = &v
}
// GetBalanceUninvoiced returns the BalanceUninvoiced field value if set, zero value otherwise.
func (o *ChildAccount) GetBalanceUninvoiced() float32 {
if o == nil || IsNil(o.BalanceUninvoiced) {
var ret float32
return ret
}
return *o.BalanceUninvoiced
}
// GetBalanceUninvoicedOk returns a tuple with the BalanceUninvoiced field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetBalanceUninvoicedOk() (*float32, bool) {
if o == nil || IsNil(o.BalanceUninvoiced) {
return nil, false
}
return o.BalanceUninvoiced, true
}
// HasBalanceUninvoiced returns a boolean if a field has been set.
func (o *ChildAccount) HasBalanceUninvoiced() bool {
if o != nil && !IsNil(o.BalanceUninvoiced) {
return true
}
return false
}
// SetBalanceUninvoiced gets a reference to the given float32 and assigns it to the BalanceUninvoiced field.
func (o *ChildAccount) SetBalanceUninvoiced(v float32) {
o.BalanceUninvoiced = &v
}
// GetBillingSource returns the BillingSource field value if set, zero value otherwise.
func (o *ChildAccount) GetBillingSource() string {
if o == nil || IsNil(o.BillingSource) {
var ret string
return ret
}
return *o.BillingSource
}
// GetBillingSourceOk returns a tuple with the BillingSource field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetBillingSourceOk() (*string, bool) {
if o == nil || IsNil(o.BillingSource) {
return nil, false
}
return o.BillingSource, true
}
// HasBillingSource returns a boolean if a field has been set.
func (o *ChildAccount) HasBillingSource() bool {
if o != nil && !IsNil(o.BillingSource) {
return true
}
return false
}
// SetBillingSource gets a reference to the given string and assigns it to the BillingSource field.
func (o *ChildAccount) SetBillingSource(v string) {
o.BillingSource = &v
}
// GetCapabilities returns the Capabilities field value if set, zero value otherwise.
func (o *ChildAccount) GetCapabilities() []string {
if o == nil || IsNil(o.Capabilities) {
var ret []string
return ret
}
return o.Capabilities
}
// GetCapabilitiesOk returns a tuple with the Capabilities field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetCapabilitiesOk() ([]string, bool) {
if o == nil || IsNil(o.Capabilities) {
return nil, false
}
return o.Capabilities, true
}
// HasCapabilities returns a boolean if a field has been set.
func (o *ChildAccount) HasCapabilities() bool {
if o != nil && !IsNil(o.Capabilities) {
return true
}
return false
}
// SetCapabilities gets a reference to the given []string and assigns it to the Capabilities field.
func (o *ChildAccount) SetCapabilities(v []string) {
o.Capabilities = v
}
// GetCity returns the City field value if set, zero value otherwise.
func (o *ChildAccount) GetCity() string {
if o == nil || IsNil(o.City) {
var ret string
return ret
}
return *o.City
}
// GetCityOk returns a tuple with the City field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetCityOk() (*string, bool) {
if o == nil || IsNil(o.City) {
return nil, false
}
return o.City, true
}
// HasCity returns a boolean if a field has been set.
func (o *ChildAccount) HasCity() bool {
if o != nil && !IsNil(o.City) {
return true
}
return false
}
// SetCity gets a reference to the given string and assigns it to the City field.
func (o *ChildAccount) SetCity(v string) {
o.City = &v
}
// GetCompany returns the Company field value if set, zero value otherwise.
func (o *ChildAccount) GetCompany() string {
if o == nil || IsNil(o.Company) {
var ret string
return ret
}
return *o.Company
}
// GetCompanyOk returns a tuple with the Company field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetCompanyOk() (*string, bool) {
if o == nil || IsNil(o.Company) {
return nil, false
}
return o.Company, true
}
// HasCompany returns a boolean if a field has been set.
func (o *ChildAccount) HasCompany() bool {
if o != nil && !IsNil(o.Company) {
return true
}
return false
}
// SetCompany gets a reference to the given string and assigns it to the Company field.
func (o *ChildAccount) SetCompany(v string) {
o.Company = &v
}
// GetCountry returns the Country field value if set, zero value otherwise.
func (o *ChildAccount) GetCountry() string {
if o == nil || IsNil(o.Country) {
var ret string
return ret
}
return *o.Country
}
// GetCountryOk returns a tuple with the Country field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetCountryOk() (*string, bool) {
if o == nil || IsNil(o.Country) {
return nil, false
}
return o.Country, true
}
// HasCountry returns a boolean if a field has been set.
func (o *ChildAccount) HasCountry() bool {
if o != nil && !IsNil(o.Country) {
return true
}
return false
}
// SetCountry gets a reference to the given string and assigns it to the Country field.
func (o *ChildAccount) SetCountry(v string) {
o.Country = &v
}
// GetCreditCard returns the CreditCard field value if set, zero value otherwise.
func (o *ChildAccount) GetCreditCard() GetChildAccounts200ResponseDataInnerCreditCard {
if o == nil || IsNil(o.CreditCard) {
var ret GetChildAccounts200ResponseDataInnerCreditCard
return ret
}
return *o.CreditCard
}
// GetCreditCardOk returns a tuple with the CreditCard field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetCreditCardOk() (*GetChildAccounts200ResponseDataInnerCreditCard, bool) {
if o == nil || IsNil(o.CreditCard) {
return nil, false
}
return o.CreditCard, true
}
// HasCreditCard returns a boolean if a field has been set.
func (o *ChildAccount) HasCreditCard() bool {
if o != nil && !IsNil(o.CreditCard) {
return true
}
return false
}
// SetCreditCard gets a reference to the given GetChildAccounts200ResponseDataInnerCreditCard and assigns it to the CreditCard field.
func (o *ChildAccount) SetCreditCard(v GetChildAccounts200ResponseDataInnerCreditCard) {
o.CreditCard = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *ChildAccount) GetEmail() string {
if o == nil || IsNil(o.Email) {
var ret string
return ret
}
return *o.Email
}
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetEmailOk() (*string, bool) {
if o == nil || IsNil(o.Email) {
return nil, false
}
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
func (o *ChildAccount) HasEmail() bool {
if o != nil && !IsNil(o.Email) {
return true
}
return false
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *ChildAccount) SetEmail(v string) {
o.Email = &v
}
// GetEuuid returns the Euuid field value if set, zero value otherwise.
func (o *ChildAccount) GetEuuid() string {
if o == nil || IsNil(o.Euuid) {
var ret string
return ret
}
return *o.Euuid
}
// GetEuuidOk returns a tuple with the Euuid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetEuuidOk() (*string, bool) {
if o == nil || IsNil(o.Euuid) {
return nil, false
}
return o.Euuid, true
}
// HasEuuid returns a boolean if a field has been set.
func (o *ChildAccount) HasEuuid() bool {
if o != nil && !IsNil(o.Euuid) {
return true
}
return false
}
// SetEuuid gets a reference to the given string and assigns it to the Euuid field.
func (o *ChildAccount) SetEuuid(v string) {
o.Euuid = &v
}
// GetFirstName returns the FirstName field value if set, zero value otherwise.
func (o *ChildAccount) GetFirstName() string {
if o == nil || IsNil(o.FirstName) {
var ret string
return ret
}
return *o.FirstName
}
// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetFirstNameOk() (*string, bool) {
if o == nil || IsNil(o.FirstName) {
return nil, false
}
return o.FirstName, true
}
// HasFirstName returns a boolean if a field has been set.
func (o *ChildAccount) HasFirstName() bool {
if o != nil && !IsNil(o.FirstName) {
return true
}
return false
}
// SetFirstName gets a reference to the given string and assigns it to the FirstName field.
func (o *ChildAccount) SetFirstName(v string) {
o.FirstName = &v
}
// GetLastName returns the LastName field value if set, zero value otherwise.
func (o *ChildAccount) GetLastName() string {
if o == nil || IsNil(o.LastName) {
var ret string
return ret
}
return *o.LastName
}
// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetLastNameOk() (*string, bool) {
if o == nil || IsNil(o.LastName) {
return nil, false
}
return o.LastName, true
}
// HasLastName returns a boolean if a field has been set.
func (o *ChildAccount) HasLastName() bool {
if o != nil && !IsNil(o.LastName) {
return true
}
return false
}
// SetLastName gets a reference to the given string and assigns it to the LastName field.
func (o *ChildAccount) SetLastName(v string) {
o.LastName = &v
}
// GetPhone returns the Phone field value if set, zero value otherwise.
func (o *ChildAccount) GetPhone() string {
if o == nil || IsNil(o.Phone) {
var ret string
return ret
}
return *o.Phone
}
// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetPhoneOk() (*string, bool) {
if o == nil || IsNil(o.Phone) {
return nil, false
}
return o.Phone, true
}
// HasPhone returns a boolean if a field has been set.
func (o *ChildAccount) HasPhone() bool {
if o != nil && !IsNil(o.Phone) {
return true
}
return false
}
// SetPhone gets a reference to the given string and assigns it to the Phone field.
func (o *ChildAccount) SetPhone(v string) {
o.Phone = &v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *ChildAccount) GetState() string {
if o == nil || IsNil(o.State) {
var ret string
return ret
}
return *o.State
}
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetStateOk() (*string, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *ChildAccount) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given string and assigns it to the State field.
func (o *ChildAccount) SetState(v string) {
o.State = &v
}
// GetTaxId returns the TaxId field value if set, zero value otherwise.
func (o *ChildAccount) GetTaxId() string {
if o == nil || IsNil(o.TaxId) {
var ret string
return ret
}
return *o.TaxId
}
// GetTaxIdOk returns a tuple with the TaxId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetTaxIdOk() (*string, bool) {
if o == nil || IsNil(o.TaxId) {
return nil, false
}
return o.TaxId, true
}
// HasTaxId returns a boolean if a field has been set.
func (o *ChildAccount) HasTaxId() bool {
if o != nil && !IsNil(o.TaxId) {
return true
}
return false
}
// SetTaxId gets a reference to the given string and assigns it to the TaxId field.
func (o *ChildAccount) SetTaxId(v string) {
o.TaxId = &v
}
// GetZip returns the Zip field value if set, zero value otherwise.
func (o *ChildAccount) GetZip() string {
if o == nil || IsNil(o.Zip) {
var ret string
return ret
}
return *o.Zip
}
// GetZipOk returns a tuple with the Zip field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChildAccount) GetZipOk() (*string, bool) {
if o == nil || IsNil(o.Zip) {
return nil, false
}
return o.Zip, true
}
// HasZip returns a boolean if a field has been set.
func (o *ChildAccount) HasZip() bool {
if o != nil && !IsNil(o.Zip) {
return true
}
return false
}
// SetZip gets a reference to the given string and assigns it to the Zip field.
func (o *ChildAccount) SetZip(v string) {
o.Zip = &v
}
func (o ChildAccount) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ChildAccount) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.ActiveSince) {
toSerialize["active_since"] = o.ActiveSince
}
if !IsNil(o.Address1) {
toSerialize["address_1"] = o.Address1
}
if !IsNil(o.Address2) {
toSerialize["address_2"] = o.Address2
}
if !IsNil(o.Balance) {
toSerialize["balance"] = o.Balance
}
if !IsNil(o.BalanceUninvoiced) {
toSerialize["balance_uninvoiced"] = o.BalanceUninvoiced
}
if !IsNil(o.BillingSource) {
toSerialize["billing_source"] = o.BillingSource
}
if !IsNil(o.Capabilities) {
toSerialize["capabilities"] = o.Capabilities
}
if !IsNil(o.City) {
toSerialize["city"] = o.City
}
if !IsNil(o.Company) {
toSerialize["company"] = o.Company
}
if !IsNil(o.Country) {
toSerialize["country"] = o.Country
}
if !IsNil(o.CreditCard) {
toSerialize["credit_card"] = o.CreditCard
}
if !IsNil(o.Email) {
toSerialize["email"] = o.Email
}
if !IsNil(o.Euuid) {
toSerialize["euuid"] = o.Euuid
}
if !IsNil(o.FirstName) {
toSerialize["first_name"] = o.FirstName
}
if !IsNil(o.LastName) {
toSerialize["last_name"] = o.LastName
}
if !IsNil(o.Phone) {
toSerialize["phone"] = o.Phone
}
if !IsNil(o.State) {
toSerialize["state"] = o.State
}
if !IsNil(o.TaxId) {
toSerialize["tax_id"] = o.TaxId
}
if !IsNil(o.Zip) {
toSerialize["zip"] = o.Zip
}
return toSerialize, nil
}
type NullableChildAccount struct {
value *ChildAccount
isSet bool
}
func (v NullableChildAccount) Get() *ChildAccount {
return v.value
}
func (v *NullableChildAccount) Set(val *ChildAccount) {
v.value = val
v.isSet = true
}
func (v NullableChildAccount) IsSet() bool {
return v.isSet
}
func (v *NullableChildAccount) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableChildAccount(val *ChildAccount) *NullableChildAccount {
return &NullableChildAccount{value: val, isSet: true}
}
func (v NullableChildAccount) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableChildAccount) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}