-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_person_details.go
1087 lines (926 loc) · 33.8 KB
/
model_person_details.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
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Paxos API
<p>Welcome to Paxos APIs. At Paxos, our mission is to enable the movement of any asset, any time, in a trustworthy way. These APIs serve that mission by making it easier than ever for you to directly integrate our product capabilities into your application, leveraging the speed, stability, and security of the Paxos platform.</p> <p>The documentation that follows gives you access to our Crypto Brokerage, Trading, and Exchange products. It includes APIs for market data, orders, and the held rate quote flow.</p> <p>To test in our sandbox environment, <a href=\"https://account.sandbox.paxos.com\" target=\"_blank\">sign up</a> for an account. For more information about Paxos and our APIs, visit <a href=\"https://www.paxos.com/\" target=\"_blank\">Paxos.com</a>.</p>
API version: 2.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package paxos
import (
"encoding/json"
"time"
)
// checks if the PersonDetails type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PersonDetails{}
// PersonDetails struct for PersonDetails
type PersonDetails struct {
IdVerificationStatus *IdentityStatus `json:"id_verification_status,omitempty"`
SanctionsVerificationStatus *IdentityStatus `json:"sanctions_verification_status,omitempty"`
FirstName *string `json:"first_name,omitempty" validate:"regexp=^[0-9A-Za-z \\/?:().,&'+-]+$"`
LastName *string `json:"last_name,omitempty" validate:"regexp=^[0-9A-Za-z \\/?:().,&'+-]+$"`
DateOfBirth *string `json:"date_of_birth,omitempty" validate:"regexp=^[0-9]{4}-[0-9]{2}-[0-9]{2}$"`
GovtId *string `json:"govt_id,omitempty" validate:"regexp=^[0-9A-Za-z \\/?:().,&'+-]+$"`
Address *IdentityMailingAddress `json:"address,omitempty"`
PhoneNumber *string `json:"phone_number,omitempty"`
Email *string `json:"email,omitempty"`
// Allowed in create and update. Must be an ISO 3166-1 alpha 3 code.
Nationality *string `json:"nationality,omitempty" validate:"regexp=^[A-Z]{3}$"`
VerifierId *string `json:"verifier_id,omitempty"`
VerifierType *IdentityprotoVerifierType `json:"verifier_type,omitempty"`
IdVerificationUrl *string `json:"id_verification_url,omitempty"`
PassthroughVerifierType *PassthroughVerifierType `json:"passthrough_verifier_type,omitempty"`
PassthroughVerifiedAt *time.Time `json:"passthrough_verified_at,omitempty"`
GovtIdType *PersonDetailsCIPIDType `json:"govt_id_type,omitempty"`
CipId *string `json:"cip_id,omitempty" validate:"regexp=^[0-9A-Za-z \\/?:().,&'+-]+$"`
CipIdType *PersonDetailsCIPIDType `json:"cip_id_type,omitempty"`
// Allowed in create and update. Must be an ISO 3166-1 alpha 3 code.
CipIdCountry *string `json:"cip_id_country,omitempty"`
AdditionalScreeningStatus *IdentityStatus `json:"additional_screening_status,omitempty"`
// Allowed in create and update.
Profession *string `json:"profession,omitempty"`
MiddleName *string `json:"middle_name,omitempty"`
// Allowed in create and update.
CountryOfBirth *string `json:"country_of_birth,omitempty"`
// Unique identifier for the underlying individual's ID verification record.
PassthroughVerificationId *string `json:"passthrough_verification_id,omitempty"`
PassthroughVerificationStatus *IdentityStatus `json:"passthrough_verification_status,omitempty"`
// List of verification fields used by the external verifier to validate the individual's identity.
PassthroughVerificationFields []PassthroughVerificationField `json:"passthrough_verification_fields,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PersonDetails PersonDetails
// NewPersonDetails instantiates a new PersonDetails 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 NewPersonDetails() *PersonDetails {
this := PersonDetails{}
return &this
}
// NewPersonDetailsWithDefaults instantiates a new PersonDetails 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 NewPersonDetailsWithDefaults() *PersonDetails {
this := PersonDetails{}
return &this
}
// GetIdVerificationStatus returns the IdVerificationStatus field value if set, zero value otherwise.
func (o *PersonDetails) GetIdVerificationStatus() IdentityStatus {
if o == nil || IsNil(o.IdVerificationStatus) {
var ret IdentityStatus
return ret
}
return *o.IdVerificationStatus
}
// GetIdVerificationStatusOk returns a tuple with the IdVerificationStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetIdVerificationStatusOk() (*IdentityStatus, bool) {
if o == nil || IsNil(o.IdVerificationStatus) {
return nil, false
}
return o.IdVerificationStatus, true
}
// HasIdVerificationStatus returns a boolean if a field has been set.
func (o *PersonDetails) HasIdVerificationStatus() bool {
if o != nil && !IsNil(o.IdVerificationStatus) {
return true
}
return false
}
// SetIdVerificationStatus gets a reference to the given IdentityStatus and assigns it to the IdVerificationStatus field.
func (o *PersonDetails) SetIdVerificationStatus(v IdentityStatus) {
o.IdVerificationStatus = &v
}
// GetSanctionsVerificationStatus returns the SanctionsVerificationStatus field value if set, zero value otherwise.
func (o *PersonDetails) GetSanctionsVerificationStatus() IdentityStatus {
if o == nil || IsNil(o.SanctionsVerificationStatus) {
var ret IdentityStatus
return ret
}
return *o.SanctionsVerificationStatus
}
// GetSanctionsVerificationStatusOk returns a tuple with the SanctionsVerificationStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetSanctionsVerificationStatusOk() (*IdentityStatus, bool) {
if o == nil || IsNil(o.SanctionsVerificationStatus) {
return nil, false
}
return o.SanctionsVerificationStatus, true
}
// HasSanctionsVerificationStatus returns a boolean if a field has been set.
func (o *PersonDetails) HasSanctionsVerificationStatus() bool {
if o != nil && !IsNil(o.SanctionsVerificationStatus) {
return true
}
return false
}
// SetSanctionsVerificationStatus gets a reference to the given IdentityStatus and assigns it to the SanctionsVerificationStatus field.
func (o *PersonDetails) SetSanctionsVerificationStatus(v IdentityStatus) {
o.SanctionsVerificationStatus = &v
}
// GetFirstName returns the FirstName field value if set, zero value otherwise.
func (o *PersonDetails) 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 *PersonDetails) 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 *PersonDetails) 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 *PersonDetails) SetFirstName(v string) {
o.FirstName = &v
}
// GetLastName returns the LastName field value if set, zero value otherwise.
func (o *PersonDetails) 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 *PersonDetails) 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 *PersonDetails) 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 *PersonDetails) SetLastName(v string) {
o.LastName = &v
}
// GetDateOfBirth returns the DateOfBirth field value if set, zero value otherwise.
func (o *PersonDetails) GetDateOfBirth() string {
if o == nil || IsNil(o.DateOfBirth) {
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 *PersonDetails) GetDateOfBirthOk() (*string, bool) {
if o == nil || IsNil(o.DateOfBirth) {
return nil, false
}
return o.DateOfBirth, true
}
// HasDateOfBirth returns a boolean if a field has been set.
func (o *PersonDetails) HasDateOfBirth() bool {
if o != nil && !IsNil(o.DateOfBirth) {
return true
}
return false
}
// SetDateOfBirth gets a reference to the given string and assigns it to the DateOfBirth field.
func (o *PersonDetails) SetDateOfBirth(v string) {
o.DateOfBirth = &v
}
// GetGovtId returns the GovtId field value if set, zero value otherwise.
func (o *PersonDetails) GetGovtId() string {
if o == nil || IsNil(o.GovtId) {
var ret string
return ret
}
return *o.GovtId
}
// GetGovtIdOk returns a tuple with the GovtId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetGovtIdOk() (*string, bool) {
if o == nil || IsNil(o.GovtId) {
return nil, false
}
return o.GovtId, true
}
// HasGovtId returns a boolean if a field has been set.
func (o *PersonDetails) HasGovtId() bool {
if o != nil && !IsNil(o.GovtId) {
return true
}
return false
}
// SetGovtId gets a reference to the given string and assigns it to the GovtId field.
func (o *PersonDetails) SetGovtId(v string) {
o.GovtId = &v
}
// GetAddress returns the Address field value if set, zero value otherwise.
func (o *PersonDetails) GetAddress() IdentityMailingAddress {
if o == nil || IsNil(o.Address) {
var ret IdentityMailingAddress
return ret
}
return *o.Address
}
// GetAddressOk returns a tuple with the Address field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetAddressOk() (*IdentityMailingAddress, bool) {
if o == nil || IsNil(o.Address) {
return nil, false
}
return o.Address, true
}
// HasAddress returns a boolean if a field has been set.
func (o *PersonDetails) HasAddress() bool {
if o != nil && !IsNil(o.Address) {
return true
}
return false
}
// SetAddress gets a reference to the given IdentityMailingAddress and assigns it to the Address field.
func (o *PersonDetails) SetAddress(v IdentityMailingAddress) {
o.Address = &v
}
// GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.
func (o *PersonDetails) GetPhoneNumber() string {
if o == nil || IsNil(o.PhoneNumber) {
var ret string
return ret
}
return *o.PhoneNumber
}
// GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetPhoneNumberOk() (*string, bool) {
if o == nil || IsNil(o.PhoneNumber) {
return nil, false
}
return o.PhoneNumber, true
}
// HasPhoneNumber returns a boolean if a field has been set.
func (o *PersonDetails) HasPhoneNumber() bool {
if o != nil && !IsNil(o.PhoneNumber) {
return true
}
return false
}
// SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.
func (o *PersonDetails) SetPhoneNumber(v string) {
o.PhoneNumber = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *PersonDetails) 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 *PersonDetails) 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 *PersonDetails) 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 *PersonDetails) SetEmail(v string) {
o.Email = &v
}
// GetNationality returns the Nationality field value if set, zero value otherwise.
func (o *PersonDetails) GetNationality() string {
if o == nil || IsNil(o.Nationality) {
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 *PersonDetails) GetNationalityOk() (*string, bool) {
if o == nil || IsNil(o.Nationality) {
return nil, false
}
return o.Nationality, true
}
// HasNationality returns a boolean if a field has been set.
func (o *PersonDetails) HasNationality() bool {
if o != nil && !IsNil(o.Nationality) {
return true
}
return false
}
// SetNationality gets a reference to the given string and assigns it to the Nationality field.
func (o *PersonDetails) SetNationality(v string) {
o.Nationality = &v
}
// GetVerifierId returns the VerifierId field value if set, zero value otherwise.
func (o *PersonDetails) GetVerifierId() string {
if o == nil || IsNil(o.VerifierId) {
var ret string
return ret
}
return *o.VerifierId
}
// GetVerifierIdOk returns a tuple with the VerifierId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetVerifierIdOk() (*string, bool) {
if o == nil || IsNil(o.VerifierId) {
return nil, false
}
return o.VerifierId, true
}
// HasVerifierId returns a boolean if a field has been set.
func (o *PersonDetails) HasVerifierId() bool {
if o != nil && !IsNil(o.VerifierId) {
return true
}
return false
}
// SetVerifierId gets a reference to the given string and assigns it to the VerifierId field.
func (o *PersonDetails) SetVerifierId(v string) {
o.VerifierId = &v
}
// GetVerifierType returns the VerifierType field value if set, zero value otherwise.
func (o *PersonDetails) GetVerifierType() IdentityprotoVerifierType {
if o == nil || IsNil(o.VerifierType) {
var ret IdentityprotoVerifierType
return ret
}
return *o.VerifierType
}
// GetVerifierTypeOk returns a tuple with the VerifierType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetVerifierTypeOk() (*IdentityprotoVerifierType, bool) {
if o == nil || IsNil(o.VerifierType) {
return nil, false
}
return o.VerifierType, true
}
// HasVerifierType returns a boolean if a field has been set.
func (o *PersonDetails) HasVerifierType() bool {
if o != nil && !IsNil(o.VerifierType) {
return true
}
return false
}
// SetVerifierType gets a reference to the given IdentityprotoVerifierType and assigns it to the VerifierType field.
func (o *PersonDetails) SetVerifierType(v IdentityprotoVerifierType) {
o.VerifierType = &v
}
// GetIdVerificationUrl returns the IdVerificationUrl field value if set, zero value otherwise.
func (o *PersonDetails) GetIdVerificationUrl() string {
if o == nil || IsNil(o.IdVerificationUrl) {
var ret string
return ret
}
return *o.IdVerificationUrl
}
// GetIdVerificationUrlOk returns a tuple with the IdVerificationUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetIdVerificationUrlOk() (*string, bool) {
if o == nil || IsNil(o.IdVerificationUrl) {
return nil, false
}
return o.IdVerificationUrl, true
}
// HasIdVerificationUrl returns a boolean if a field has been set.
func (o *PersonDetails) HasIdVerificationUrl() bool {
if o != nil && !IsNil(o.IdVerificationUrl) {
return true
}
return false
}
// SetIdVerificationUrl gets a reference to the given string and assigns it to the IdVerificationUrl field.
func (o *PersonDetails) SetIdVerificationUrl(v string) {
o.IdVerificationUrl = &v
}
// GetPassthroughVerifierType returns the PassthroughVerifierType field value if set, zero value otherwise.
func (o *PersonDetails) GetPassthroughVerifierType() PassthroughVerifierType {
if o == nil || IsNil(o.PassthroughVerifierType) {
var ret PassthroughVerifierType
return ret
}
return *o.PassthroughVerifierType
}
// GetPassthroughVerifierTypeOk returns a tuple with the PassthroughVerifierType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetPassthroughVerifierTypeOk() (*PassthroughVerifierType, bool) {
if o == nil || IsNil(o.PassthroughVerifierType) {
return nil, false
}
return o.PassthroughVerifierType, true
}
// HasPassthroughVerifierType returns a boolean if a field has been set.
func (o *PersonDetails) HasPassthroughVerifierType() bool {
if o != nil && !IsNil(o.PassthroughVerifierType) {
return true
}
return false
}
// SetPassthroughVerifierType gets a reference to the given PassthroughVerifierType and assigns it to the PassthroughVerifierType field.
func (o *PersonDetails) SetPassthroughVerifierType(v PassthroughVerifierType) {
o.PassthroughVerifierType = &v
}
// GetPassthroughVerifiedAt returns the PassthroughVerifiedAt field value if set, zero value otherwise.
func (o *PersonDetails) GetPassthroughVerifiedAt() time.Time {
if o == nil || IsNil(o.PassthroughVerifiedAt) {
var ret time.Time
return ret
}
return *o.PassthroughVerifiedAt
}
// GetPassthroughVerifiedAtOk returns a tuple with the PassthroughVerifiedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetPassthroughVerifiedAtOk() (*time.Time, bool) {
if o == nil || IsNil(o.PassthroughVerifiedAt) {
return nil, false
}
return o.PassthroughVerifiedAt, true
}
// HasPassthroughVerifiedAt returns a boolean if a field has been set.
func (o *PersonDetails) HasPassthroughVerifiedAt() bool {
if o != nil && !IsNil(o.PassthroughVerifiedAt) {
return true
}
return false
}
// SetPassthroughVerifiedAt gets a reference to the given time.Time and assigns it to the PassthroughVerifiedAt field.
func (o *PersonDetails) SetPassthroughVerifiedAt(v time.Time) {
o.PassthroughVerifiedAt = &v
}
// GetGovtIdType returns the GovtIdType field value if set, zero value otherwise.
func (o *PersonDetails) GetGovtIdType() PersonDetailsCIPIDType {
if o == nil || IsNil(o.GovtIdType) {
var ret PersonDetailsCIPIDType
return ret
}
return *o.GovtIdType
}
// GetGovtIdTypeOk returns a tuple with the GovtIdType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetGovtIdTypeOk() (*PersonDetailsCIPIDType, bool) {
if o == nil || IsNil(o.GovtIdType) {
return nil, false
}
return o.GovtIdType, true
}
// HasGovtIdType returns a boolean if a field has been set.
func (o *PersonDetails) HasGovtIdType() bool {
if o != nil && !IsNil(o.GovtIdType) {
return true
}
return false
}
// SetGovtIdType gets a reference to the given PersonDetailsCIPIDType and assigns it to the GovtIdType field.
func (o *PersonDetails) SetGovtIdType(v PersonDetailsCIPIDType) {
o.GovtIdType = &v
}
// GetCipId returns the CipId field value if set, zero value otherwise.
func (o *PersonDetails) GetCipId() string {
if o == nil || IsNil(o.CipId) {
var ret string
return ret
}
return *o.CipId
}
// GetCipIdOk returns a tuple with the CipId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetCipIdOk() (*string, bool) {
if o == nil || IsNil(o.CipId) {
return nil, false
}
return o.CipId, true
}
// HasCipId returns a boolean if a field has been set.
func (o *PersonDetails) HasCipId() bool {
if o != nil && !IsNil(o.CipId) {
return true
}
return false
}
// SetCipId gets a reference to the given string and assigns it to the CipId field.
func (o *PersonDetails) SetCipId(v string) {
o.CipId = &v
}
// GetCipIdType returns the CipIdType field value if set, zero value otherwise.
func (o *PersonDetails) GetCipIdType() PersonDetailsCIPIDType {
if o == nil || IsNil(o.CipIdType) {
var ret PersonDetailsCIPIDType
return ret
}
return *o.CipIdType
}
// GetCipIdTypeOk returns a tuple with the CipIdType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetCipIdTypeOk() (*PersonDetailsCIPIDType, bool) {
if o == nil || IsNil(o.CipIdType) {
return nil, false
}
return o.CipIdType, true
}
// HasCipIdType returns a boolean if a field has been set.
func (o *PersonDetails) HasCipIdType() bool {
if o != nil && !IsNil(o.CipIdType) {
return true
}
return false
}
// SetCipIdType gets a reference to the given PersonDetailsCIPIDType and assigns it to the CipIdType field.
func (o *PersonDetails) SetCipIdType(v PersonDetailsCIPIDType) {
o.CipIdType = &v
}
// GetCipIdCountry returns the CipIdCountry field value if set, zero value otherwise.
func (o *PersonDetails) GetCipIdCountry() string {
if o == nil || IsNil(o.CipIdCountry) {
var ret string
return ret
}
return *o.CipIdCountry
}
// GetCipIdCountryOk returns a tuple with the CipIdCountry field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetCipIdCountryOk() (*string, bool) {
if o == nil || IsNil(o.CipIdCountry) {
return nil, false
}
return o.CipIdCountry, true
}
// HasCipIdCountry returns a boolean if a field has been set.
func (o *PersonDetails) HasCipIdCountry() bool {
if o != nil && !IsNil(o.CipIdCountry) {
return true
}
return false
}
// SetCipIdCountry gets a reference to the given string and assigns it to the CipIdCountry field.
func (o *PersonDetails) SetCipIdCountry(v string) {
o.CipIdCountry = &v
}
// GetAdditionalScreeningStatus returns the AdditionalScreeningStatus field value if set, zero value otherwise.
func (o *PersonDetails) GetAdditionalScreeningStatus() IdentityStatus {
if o == nil || IsNil(o.AdditionalScreeningStatus) {
var ret IdentityStatus
return ret
}
return *o.AdditionalScreeningStatus
}
// GetAdditionalScreeningStatusOk returns a tuple with the AdditionalScreeningStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetAdditionalScreeningStatusOk() (*IdentityStatus, bool) {
if o == nil || IsNil(o.AdditionalScreeningStatus) {
return nil, false
}
return o.AdditionalScreeningStatus, true
}
// HasAdditionalScreeningStatus returns a boolean if a field has been set.
func (o *PersonDetails) HasAdditionalScreeningStatus() bool {
if o != nil && !IsNil(o.AdditionalScreeningStatus) {
return true
}
return false
}
// SetAdditionalScreeningStatus gets a reference to the given IdentityStatus and assigns it to the AdditionalScreeningStatus field.
func (o *PersonDetails) SetAdditionalScreeningStatus(v IdentityStatus) {
o.AdditionalScreeningStatus = &v
}
// GetProfession returns the Profession field value if set, zero value otherwise.
func (o *PersonDetails) GetProfession() string {
if o == nil || IsNil(o.Profession) {
var ret string
return ret
}
return *o.Profession
}
// GetProfessionOk returns a tuple with the Profession field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetProfessionOk() (*string, bool) {
if o == nil || IsNil(o.Profession) {
return nil, false
}
return o.Profession, true
}
// HasProfession returns a boolean if a field has been set.
func (o *PersonDetails) HasProfession() bool {
if o != nil && !IsNil(o.Profession) {
return true
}
return false
}
// SetProfession gets a reference to the given string and assigns it to the Profession field.
func (o *PersonDetails) SetProfession(v string) {
o.Profession = &v
}
// GetMiddleName returns the MiddleName field value if set, zero value otherwise.
func (o *PersonDetails) GetMiddleName() string {
if o == nil || IsNil(o.MiddleName) {
var ret string
return ret
}
return *o.MiddleName
}
// GetMiddleNameOk returns a tuple with the MiddleName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetMiddleNameOk() (*string, bool) {
if o == nil || IsNil(o.MiddleName) {
return nil, false
}
return o.MiddleName, true
}
// HasMiddleName returns a boolean if a field has been set.
func (o *PersonDetails) HasMiddleName() bool {
if o != nil && !IsNil(o.MiddleName) {
return true
}
return false
}
// SetMiddleName gets a reference to the given string and assigns it to the MiddleName field.
func (o *PersonDetails) SetMiddleName(v string) {
o.MiddleName = &v
}
// GetCountryOfBirth returns the CountryOfBirth field value if set, zero value otherwise.
func (o *PersonDetails) GetCountryOfBirth() string {
if o == nil || IsNil(o.CountryOfBirth) {
var ret string
return ret
}
return *o.CountryOfBirth
}
// GetCountryOfBirthOk returns a tuple with the CountryOfBirth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetCountryOfBirthOk() (*string, bool) {
if o == nil || IsNil(o.CountryOfBirth) {
return nil, false
}
return o.CountryOfBirth, true
}
// HasCountryOfBirth returns a boolean if a field has been set.
func (o *PersonDetails) HasCountryOfBirth() bool {
if o != nil && !IsNil(o.CountryOfBirth) {
return true
}
return false
}
// SetCountryOfBirth gets a reference to the given string and assigns it to the CountryOfBirth field.
func (o *PersonDetails) SetCountryOfBirth(v string) {
o.CountryOfBirth = &v
}
// GetPassthroughVerificationId returns the PassthroughVerificationId field value if set, zero value otherwise.
func (o *PersonDetails) GetPassthroughVerificationId() string {
if o == nil || IsNil(o.PassthroughVerificationId) {
var ret string
return ret
}
return *o.PassthroughVerificationId
}
// GetPassthroughVerificationIdOk returns a tuple with the PassthroughVerificationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetPassthroughVerificationIdOk() (*string, bool) {
if o == nil || IsNil(o.PassthroughVerificationId) {
return nil, false
}
return o.PassthroughVerificationId, true
}
// HasPassthroughVerificationId returns a boolean if a field has been set.
func (o *PersonDetails) HasPassthroughVerificationId() bool {
if o != nil && !IsNil(o.PassthroughVerificationId) {
return true
}
return false
}
// SetPassthroughVerificationId gets a reference to the given string and assigns it to the PassthroughVerificationId field.
func (o *PersonDetails) SetPassthroughVerificationId(v string) {
o.PassthroughVerificationId = &v
}
// GetPassthroughVerificationStatus returns the PassthroughVerificationStatus field value if set, zero value otherwise.
func (o *PersonDetails) GetPassthroughVerificationStatus() IdentityStatus {
if o == nil || IsNil(o.PassthroughVerificationStatus) {
var ret IdentityStatus
return ret
}
return *o.PassthroughVerificationStatus
}
// GetPassthroughVerificationStatusOk returns a tuple with the PassthroughVerificationStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetPassthroughVerificationStatusOk() (*IdentityStatus, bool) {
if o == nil || IsNil(o.PassthroughVerificationStatus) {
return nil, false
}
return o.PassthroughVerificationStatus, true
}
// HasPassthroughVerificationStatus returns a boolean if a field has been set.
func (o *PersonDetails) HasPassthroughVerificationStatus() bool {
if o != nil && !IsNil(o.PassthroughVerificationStatus) {
return true
}
return false
}
// SetPassthroughVerificationStatus gets a reference to the given IdentityStatus and assigns it to the PassthroughVerificationStatus field.
func (o *PersonDetails) SetPassthroughVerificationStatus(v IdentityStatus) {
o.PassthroughVerificationStatus = &v
}
// GetPassthroughVerificationFields returns the PassthroughVerificationFields field value if set, zero value otherwise.
func (o *PersonDetails) GetPassthroughVerificationFields() []PassthroughVerificationField {
if o == nil || IsNil(o.PassthroughVerificationFields) {
var ret []PassthroughVerificationField
return ret
}
return o.PassthroughVerificationFields
}
// GetPassthroughVerificationFieldsOk returns a tuple with the PassthroughVerificationFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PersonDetails) GetPassthroughVerificationFieldsOk() ([]PassthroughVerificationField, bool) {
if o == nil || IsNil(o.PassthroughVerificationFields) {
return nil, false
}
return o.PassthroughVerificationFields, true
}
// HasPassthroughVerificationFields returns a boolean if a field has been set.
func (o *PersonDetails) HasPassthroughVerificationFields() bool {
if o != nil && !IsNil(o.PassthroughVerificationFields) {
return true
}
return false
}
// SetPassthroughVerificationFields gets a reference to the given []PassthroughVerificationField and assigns it to the PassthroughVerificationFields field.
func (o *PersonDetails) SetPassthroughVerificationFields(v []PassthroughVerificationField) {
o.PassthroughVerificationFields = v
}
func (o PersonDetails) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PersonDetails) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.IdVerificationStatus) {
toSerialize["id_verification_status"] = o.IdVerificationStatus
}
if !IsNil(o.SanctionsVerificationStatus) {
toSerialize["sanctions_verification_status"] = o.SanctionsVerificationStatus
}
if !IsNil(o.FirstName) {
toSerialize["first_name"] = o.FirstName
}
if !IsNil(o.LastName) {
toSerialize["last_name"] = o.LastName
}
if !IsNil(o.DateOfBirth) {
toSerialize["date_of_birth"] = o.DateOfBirth
}
if !IsNil(o.GovtId) {
toSerialize["govt_id"] = o.GovtId
}
if !IsNil(o.Address) {
toSerialize["address"] = o.Address
}
if !IsNil(o.PhoneNumber) {
toSerialize["phone_number"] = o.PhoneNumber
}
if !IsNil(o.Email) {
toSerialize["email"] = o.Email
}
if !IsNil(o.Nationality) {
toSerialize["nationality"] = o.Nationality
}
if !IsNil(o.VerifierId) {
toSerialize["verifier_id"] = o.VerifierId
}
if !IsNil(o.VerifierType) {
toSerialize["verifier_type"] = o.VerifierType
}
if !IsNil(o.IdVerificationUrl) {
toSerialize["id_verification_url"] = o.IdVerificationUrl
}
if !IsNil(o.PassthroughVerifierType) {
toSerialize["passthrough_verifier_type"] = o.PassthroughVerifierType
}
if !IsNil(o.PassthroughVerifiedAt) {
toSerialize["passthrough_verified_at"] = o.PassthroughVerifiedAt
}
if !IsNil(o.GovtIdType) {
toSerialize["govt_id_type"] = o.GovtIdType
}
if !IsNil(o.CipId) {
toSerialize["cip_id"] = o.CipId
}
if !IsNil(o.CipIdType) {
toSerialize["cip_id_type"] = o.CipIdType
}
if !IsNil(o.CipIdCountry) {
toSerialize["cip_id_country"] = o.CipIdCountry
}
if !IsNil(o.AdditionalScreeningStatus) {
toSerialize["additional_screening_status"] = o.AdditionalScreeningStatus
}
if !IsNil(o.Profession) {
toSerialize["profession"] = o.Profession
}
if !IsNil(o.MiddleName) {
toSerialize["middle_name"] = o.MiddleName
}
if !IsNil(o.CountryOfBirth) {
toSerialize["country_of_birth"] = o.CountryOfBirth
}
if !IsNil(o.PassthroughVerificationId) {
toSerialize["passthrough_verification_id"] = o.PassthroughVerificationId
}
if !IsNil(o.PassthroughVerificationStatus) {
toSerialize["passthrough_verification_status"] = o.PassthroughVerificationStatus
}
if !IsNil(o.PassthroughVerificationFields) {
toSerialize["passthrough_verification_fields"] = o.PassthroughVerificationFields
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}