forked from moov-io/metro2
/
model_base_segment.go
1547 lines (1321 loc) · 44.8 KB
/
model_base_segment.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
/*
METRO2 API
Moov Metro2 ([Automated Clearing House](https://en.wikipedia.org/wiki/Automated_Clearing_House)) implements an HTTP API for creating, parsing and validating Metro2 files. Metro2 is an open-source consumer credit history report for credit report file creation and validation.
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
"time"
)
// checks if the BaseSegment type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &BaseSegment{}
// BaseSegment struct for BaseSegment
type BaseSegment struct {
BlockDescriptorWord *int32 `json:"blockDescriptorWord,omitempty"`
RecordDescriptorWord int32 `json:"recordDescriptorWord"`
TimeStamp *time.Time `json:"timeStamp,omitempty"`
IdentificationNumber string `json:"identificationNumber"`
CycleIdentifier *string `json:"cycleIdentifier,omitempty"`
ConsumerAccountNumber string `json:"consumerAccountNumber"`
PortfolioType *string `json:"portfolioType,omitempty"`
AccountType string `json:"accountType"`
DateOpened *time.Time `json:"dateOpened,omitempty"`
CreditLimit *int32 `json:"creditLimit,omitempty"`
HighestCredit int32 `json:"highestCredit"`
TermsDuration string `json:"termsDuration"`
TermsFrequency *string `json:"termsFrequency,omitempty"`
ScheduledMonthlyPaymentAmount *int32 `json:"scheduledMonthlyPaymentAmount,omitempty"`
ActualPaymentAmount *int32 `json:"actualPaymentAmount,omitempty"`
AccountStatus string `json:"accountStatus"`
PaymentRating *string `json:"paymentRating,omitempty"`
PaymentHistoryProfile string `json:"paymentHistoryProfile"`
SpecialComment *string `json:"specialComment,omitempty"`
ComplianceConditionCode *string `json:"complianceConditionCode,omitempty"`
CurrentBalance int32 `json:"currentBalance"`
AmountPastDue *int32 `json:"amountPastDue,omitempty"`
OriginalChargeOffAmount *int32 `json:"originalChargeOffAmount,omitempty"`
DateAccountInformation time.Time `json:"dateAccountInformation"`
DateFirstDelinquency *time.Time `json:"dateFirstDelinquency,omitempty"`
DateClosed *time.Time `json:"dateClosed,omitempty"`
DateLastPayment *time.Time `json:"dateLastPayment,omitempty"`
InterestTypeIndicator *string `json:"interestTypeIndicator,omitempty"`
Surname string `json:"surname"`
FirstName string `json:"firstName"`
MiddleName *string `json:"middleName,omitempty"`
GenerationCode *string `json:"generationCode,omitempty"`
SocialSecurityNumber int32 `json:"socialSecurityNumber"`
DateBirth time.Time `json:"dateBirth"`
TelephoneNumber *int64 `json:"telephoneNumber,omitempty"`
EcoaCode string `json:"ecoaCode"`
ConsumerInformationIndicator *string `json:"consumerInformationIndicator,omitempty"`
CountryCode *string `json:"countryCode,omitempty"`
FirstLineAddress string `json:"firstLineAddress"`
SecondLineAddress *string `json:"secondLineAddress,omitempty"`
City *string `json:"city,omitempty"`
State string `json:"state"`
ZipCode string `json:"zipCode"`
AddressIndicator *string `json:"addressIndicator,omitempty"`
ResidenceCode *string `json:"residenceCode,omitempty"`
}
// NewBaseSegment instantiates a new BaseSegment 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 NewBaseSegment(recordDescriptorWord int32, identificationNumber string, consumerAccountNumber string, accountType string, highestCredit int32, termsDuration string, accountStatus string, paymentHistoryProfile string, currentBalance int32, dateAccountInformation time.Time, surname string, firstName string, socialSecurityNumber int32, dateBirth time.Time, ecoaCode string, firstLineAddress string, state string, zipCode string) *BaseSegment {
this := BaseSegment{}
this.RecordDescriptorWord = recordDescriptorWord
this.IdentificationNumber = identificationNumber
this.ConsumerAccountNumber = consumerAccountNumber
this.AccountType = accountType
this.HighestCredit = highestCredit
this.TermsDuration = termsDuration
this.AccountStatus = accountStatus
this.PaymentHistoryProfile = paymentHistoryProfile
this.CurrentBalance = currentBalance
this.DateAccountInformation = dateAccountInformation
this.Surname = surname
this.FirstName = firstName
this.SocialSecurityNumber = socialSecurityNumber
this.DateBirth = dateBirth
this.EcoaCode = ecoaCode
this.FirstLineAddress = firstLineAddress
this.State = state
this.ZipCode = zipCode
return &this
}
// NewBaseSegmentWithDefaults instantiates a new BaseSegment 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 NewBaseSegmentWithDefaults() *BaseSegment {
this := BaseSegment{}
return &this
}
// GetBlockDescriptorWord returns the BlockDescriptorWord field value if set, zero value otherwise.
func (o *BaseSegment) GetBlockDescriptorWord() int32 {
if o == nil || IsNil(o.BlockDescriptorWord) {
var ret int32
return ret
}
return *o.BlockDescriptorWord
}
// GetBlockDescriptorWordOk returns a tuple with the BlockDescriptorWord field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetBlockDescriptorWordOk() (*int32, bool) {
if o == nil || IsNil(o.BlockDescriptorWord) {
return nil, false
}
return o.BlockDescriptorWord, true
}
// HasBlockDescriptorWord returns a boolean if a field has been set.
func (o *BaseSegment) HasBlockDescriptorWord() bool {
if o != nil && !IsNil(o.BlockDescriptorWord) {
return true
}
return false
}
// SetBlockDescriptorWord gets a reference to the given int32 and assigns it to the BlockDescriptorWord field.
func (o *BaseSegment) SetBlockDescriptorWord(v int32) {
o.BlockDescriptorWord = &v
}
// GetRecordDescriptorWord returns the RecordDescriptorWord field value
func (o *BaseSegment) GetRecordDescriptorWord() int32 {
if o == nil {
var ret int32
return ret
}
return o.RecordDescriptorWord
}
// GetRecordDescriptorWordOk returns a tuple with the RecordDescriptorWord field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetRecordDescriptorWordOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.RecordDescriptorWord, true
}
// SetRecordDescriptorWord sets field value
func (o *BaseSegment) SetRecordDescriptorWord(v int32) {
o.RecordDescriptorWord = v
}
// GetTimeStamp returns the TimeStamp field value if set, zero value otherwise.
func (o *BaseSegment) GetTimeStamp() time.Time {
if o == nil || IsNil(o.TimeStamp) {
var ret time.Time
return ret
}
return *o.TimeStamp
}
// GetTimeStampOk returns a tuple with the TimeStamp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetTimeStampOk() (*time.Time, bool) {
if o == nil || IsNil(o.TimeStamp) {
return nil, false
}
return o.TimeStamp, true
}
// HasTimeStamp returns a boolean if a field has been set.
func (o *BaseSegment) HasTimeStamp() bool {
if o != nil && !IsNil(o.TimeStamp) {
return true
}
return false
}
// SetTimeStamp gets a reference to the given time.Time and assigns it to the TimeStamp field.
func (o *BaseSegment) SetTimeStamp(v time.Time) {
o.TimeStamp = &v
}
// GetIdentificationNumber returns the IdentificationNumber field value
func (o *BaseSegment) GetIdentificationNumber() string {
if o == nil {
var ret string
return ret
}
return o.IdentificationNumber
}
// GetIdentificationNumberOk returns a tuple with the IdentificationNumber field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetIdentificationNumberOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.IdentificationNumber, true
}
// SetIdentificationNumber sets field value
func (o *BaseSegment) SetIdentificationNumber(v string) {
o.IdentificationNumber = v
}
// GetCycleIdentifier returns the CycleIdentifier field value if set, zero value otherwise.
func (o *BaseSegment) GetCycleIdentifier() string {
if o == nil || IsNil(o.CycleIdentifier) {
var ret string
return ret
}
return *o.CycleIdentifier
}
// GetCycleIdentifierOk returns a tuple with the CycleIdentifier field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetCycleIdentifierOk() (*string, bool) {
if o == nil || IsNil(o.CycleIdentifier) {
return nil, false
}
return o.CycleIdentifier, true
}
// HasCycleIdentifier returns a boolean if a field has been set.
func (o *BaseSegment) HasCycleIdentifier() bool {
if o != nil && !IsNil(o.CycleIdentifier) {
return true
}
return false
}
// SetCycleIdentifier gets a reference to the given string and assigns it to the CycleIdentifier field.
func (o *BaseSegment) SetCycleIdentifier(v string) {
o.CycleIdentifier = &v
}
// GetConsumerAccountNumber returns the ConsumerAccountNumber field value
func (o *BaseSegment) GetConsumerAccountNumber() string {
if o == nil {
var ret string
return ret
}
return o.ConsumerAccountNumber
}
// GetConsumerAccountNumberOk returns a tuple with the ConsumerAccountNumber field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetConsumerAccountNumberOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ConsumerAccountNumber, true
}
// SetConsumerAccountNumber sets field value
func (o *BaseSegment) SetConsumerAccountNumber(v string) {
o.ConsumerAccountNumber = v
}
// GetPortfolioType returns the PortfolioType field value if set, zero value otherwise.
func (o *BaseSegment) GetPortfolioType() string {
if o == nil || IsNil(o.PortfolioType) {
var ret string
return ret
}
return *o.PortfolioType
}
// GetPortfolioTypeOk returns a tuple with the PortfolioType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetPortfolioTypeOk() (*string, bool) {
if o == nil || IsNil(o.PortfolioType) {
return nil, false
}
return o.PortfolioType, true
}
// HasPortfolioType returns a boolean if a field has been set.
func (o *BaseSegment) HasPortfolioType() bool {
if o != nil && !IsNil(o.PortfolioType) {
return true
}
return false
}
// SetPortfolioType gets a reference to the given string and assigns it to the PortfolioType field.
func (o *BaseSegment) SetPortfolioType(v string) {
o.PortfolioType = &v
}
// GetAccountType returns the AccountType field value
func (o *BaseSegment) GetAccountType() string {
if o == nil {
var ret string
return ret
}
return o.AccountType
}
// GetAccountTypeOk returns a tuple with the AccountType field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetAccountTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AccountType, true
}
// SetAccountType sets field value
func (o *BaseSegment) SetAccountType(v string) {
o.AccountType = v
}
// GetDateOpened returns the DateOpened field value if set, zero value otherwise.
func (o *BaseSegment) GetDateOpened() time.Time {
if o == nil || IsNil(o.DateOpened) {
var ret time.Time
return ret
}
return *o.DateOpened
}
// GetDateOpenedOk returns a tuple with the DateOpened field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetDateOpenedOk() (*time.Time, bool) {
if o == nil || IsNil(o.DateOpened) {
return nil, false
}
return o.DateOpened, true
}
// HasDateOpened returns a boolean if a field has been set.
func (o *BaseSegment) HasDateOpened() bool {
if o != nil && !IsNil(o.DateOpened) {
return true
}
return false
}
// SetDateOpened gets a reference to the given time.Time and assigns it to the DateOpened field.
func (o *BaseSegment) SetDateOpened(v time.Time) {
o.DateOpened = &v
}
// GetCreditLimit returns the CreditLimit field value if set, zero value otherwise.
func (o *BaseSegment) GetCreditLimit() int32 {
if o == nil || IsNil(o.CreditLimit) {
var ret int32
return ret
}
return *o.CreditLimit
}
// GetCreditLimitOk returns a tuple with the CreditLimit field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetCreditLimitOk() (*int32, bool) {
if o == nil || IsNil(o.CreditLimit) {
return nil, false
}
return o.CreditLimit, true
}
// HasCreditLimit returns a boolean if a field has been set.
func (o *BaseSegment) HasCreditLimit() bool {
if o != nil && !IsNil(o.CreditLimit) {
return true
}
return false
}
// SetCreditLimit gets a reference to the given int32 and assigns it to the CreditLimit field.
func (o *BaseSegment) SetCreditLimit(v int32) {
o.CreditLimit = &v
}
// GetHighestCredit returns the HighestCredit field value
func (o *BaseSegment) GetHighestCredit() int32 {
if o == nil {
var ret int32
return ret
}
return o.HighestCredit
}
// GetHighestCreditOk returns a tuple with the HighestCredit field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetHighestCreditOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.HighestCredit, true
}
// SetHighestCredit sets field value
func (o *BaseSegment) SetHighestCredit(v int32) {
o.HighestCredit = v
}
// GetTermsDuration returns the TermsDuration field value
func (o *BaseSegment) GetTermsDuration() string {
if o == nil {
var ret string
return ret
}
return o.TermsDuration
}
// GetTermsDurationOk returns a tuple with the TermsDuration field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetTermsDurationOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.TermsDuration, true
}
// SetTermsDuration sets field value
func (o *BaseSegment) SetTermsDuration(v string) {
o.TermsDuration = v
}
// GetTermsFrequency returns the TermsFrequency field value if set, zero value otherwise.
func (o *BaseSegment) GetTermsFrequency() string {
if o == nil || IsNil(o.TermsFrequency) {
var ret string
return ret
}
return *o.TermsFrequency
}
// GetTermsFrequencyOk returns a tuple with the TermsFrequency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetTermsFrequencyOk() (*string, bool) {
if o == nil || IsNil(o.TermsFrequency) {
return nil, false
}
return o.TermsFrequency, true
}
// HasTermsFrequency returns a boolean if a field has been set.
func (o *BaseSegment) HasTermsFrequency() bool {
if o != nil && !IsNil(o.TermsFrequency) {
return true
}
return false
}
// SetTermsFrequency gets a reference to the given string and assigns it to the TermsFrequency field.
func (o *BaseSegment) SetTermsFrequency(v string) {
o.TermsFrequency = &v
}
// GetScheduledMonthlyPaymentAmount returns the ScheduledMonthlyPaymentAmount field value if set, zero value otherwise.
func (o *BaseSegment) GetScheduledMonthlyPaymentAmount() int32 {
if o == nil || IsNil(o.ScheduledMonthlyPaymentAmount) {
var ret int32
return ret
}
return *o.ScheduledMonthlyPaymentAmount
}
// GetScheduledMonthlyPaymentAmountOk returns a tuple with the ScheduledMonthlyPaymentAmount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetScheduledMonthlyPaymentAmountOk() (*int32, bool) {
if o == nil || IsNil(o.ScheduledMonthlyPaymentAmount) {
return nil, false
}
return o.ScheduledMonthlyPaymentAmount, true
}
// HasScheduledMonthlyPaymentAmount returns a boolean if a field has been set.
func (o *BaseSegment) HasScheduledMonthlyPaymentAmount() bool {
if o != nil && !IsNil(o.ScheduledMonthlyPaymentAmount) {
return true
}
return false
}
// SetScheduledMonthlyPaymentAmount gets a reference to the given int32 and assigns it to the ScheduledMonthlyPaymentAmount field.
func (o *BaseSegment) SetScheduledMonthlyPaymentAmount(v int32) {
o.ScheduledMonthlyPaymentAmount = &v
}
// GetActualPaymentAmount returns the ActualPaymentAmount field value if set, zero value otherwise.
func (o *BaseSegment) GetActualPaymentAmount() int32 {
if o == nil || IsNil(o.ActualPaymentAmount) {
var ret int32
return ret
}
return *o.ActualPaymentAmount
}
// GetActualPaymentAmountOk returns a tuple with the ActualPaymentAmount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetActualPaymentAmountOk() (*int32, bool) {
if o == nil || IsNil(o.ActualPaymentAmount) {
return nil, false
}
return o.ActualPaymentAmount, true
}
// HasActualPaymentAmount returns a boolean if a field has been set.
func (o *BaseSegment) HasActualPaymentAmount() bool {
if o != nil && !IsNil(o.ActualPaymentAmount) {
return true
}
return false
}
// SetActualPaymentAmount gets a reference to the given int32 and assigns it to the ActualPaymentAmount field.
func (o *BaseSegment) SetActualPaymentAmount(v int32) {
o.ActualPaymentAmount = &v
}
// GetAccountStatus returns the AccountStatus field value
func (o *BaseSegment) GetAccountStatus() string {
if o == nil {
var ret string
return ret
}
return o.AccountStatus
}
// GetAccountStatusOk returns a tuple with the AccountStatus field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetAccountStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AccountStatus, true
}
// SetAccountStatus sets field value
func (o *BaseSegment) SetAccountStatus(v string) {
o.AccountStatus = v
}
// GetPaymentRating returns the PaymentRating field value if set, zero value otherwise.
func (o *BaseSegment) GetPaymentRating() string {
if o == nil || IsNil(o.PaymentRating) {
var ret string
return ret
}
return *o.PaymentRating
}
// GetPaymentRatingOk returns a tuple with the PaymentRating field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetPaymentRatingOk() (*string, bool) {
if o == nil || IsNil(o.PaymentRating) {
return nil, false
}
return o.PaymentRating, true
}
// HasPaymentRating returns a boolean if a field has been set.
func (o *BaseSegment) HasPaymentRating() bool {
if o != nil && !IsNil(o.PaymentRating) {
return true
}
return false
}
// SetPaymentRating gets a reference to the given string and assigns it to the PaymentRating field.
func (o *BaseSegment) SetPaymentRating(v string) {
o.PaymentRating = &v
}
// GetPaymentHistoryProfile returns the PaymentHistoryProfile field value
func (o *BaseSegment) GetPaymentHistoryProfile() string {
if o == nil {
var ret string
return ret
}
return o.PaymentHistoryProfile
}
// GetPaymentHistoryProfileOk returns a tuple with the PaymentHistoryProfile field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetPaymentHistoryProfileOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.PaymentHistoryProfile, true
}
// SetPaymentHistoryProfile sets field value
func (o *BaseSegment) SetPaymentHistoryProfile(v string) {
o.PaymentHistoryProfile = v
}
// GetSpecialComment returns the SpecialComment field value if set, zero value otherwise.
func (o *BaseSegment) GetSpecialComment() string {
if o == nil || IsNil(o.SpecialComment) {
var ret string
return ret
}
return *o.SpecialComment
}
// GetSpecialCommentOk returns a tuple with the SpecialComment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetSpecialCommentOk() (*string, bool) {
if o == nil || IsNil(o.SpecialComment) {
return nil, false
}
return o.SpecialComment, true
}
// HasSpecialComment returns a boolean if a field has been set.
func (o *BaseSegment) HasSpecialComment() bool {
if o != nil && !IsNil(o.SpecialComment) {
return true
}
return false
}
// SetSpecialComment gets a reference to the given string and assigns it to the SpecialComment field.
func (o *BaseSegment) SetSpecialComment(v string) {
o.SpecialComment = &v
}
// GetComplianceConditionCode returns the ComplianceConditionCode field value if set, zero value otherwise.
func (o *BaseSegment) GetComplianceConditionCode() string {
if o == nil || IsNil(o.ComplianceConditionCode) {
var ret string
return ret
}
return *o.ComplianceConditionCode
}
// GetComplianceConditionCodeOk returns a tuple with the ComplianceConditionCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetComplianceConditionCodeOk() (*string, bool) {
if o == nil || IsNil(o.ComplianceConditionCode) {
return nil, false
}
return o.ComplianceConditionCode, true
}
// HasComplianceConditionCode returns a boolean if a field has been set.
func (o *BaseSegment) HasComplianceConditionCode() bool {
if o != nil && !IsNil(o.ComplianceConditionCode) {
return true
}
return false
}
// SetComplianceConditionCode gets a reference to the given string and assigns it to the ComplianceConditionCode field.
func (o *BaseSegment) SetComplianceConditionCode(v string) {
o.ComplianceConditionCode = &v
}
// GetCurrentBalance returns the CurrentBalance field value
func (o *BaseSegment) GetCurrentBalance() int32 {
if o == nil {
var ret int32
return ret
}
return o.CurrentBalance
}
// GetCurrentBalanceOk returns a tuple with the CurrentBalance field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetCurrentBalanceOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.CurrentBalance, true
}
// SetCurrentBalance sets field value
func (o *BaseSegment) SetCurrentBalance(v int32) {
o.CurrentBalance = v
}
// GetAmountPastDue returns the AmountPastDue field value if set, zero value otherwise.
func (o *BaseSegment) GetAmountPastDue() int32 {
if o == nil || IsNil(o.AmountPastDue) {
var ret int32
return ret
}
return *o.AmountPastDue
}
// GetAmountPastDueOk returns a tuple with the AmountPastDue field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetAmountPastDueOk() (*int32, bool) {
if o == nil || IsNil(o.AmountPastDue) {
return nil, false
}
return o.AmountPastDue, true
}
// HasAmountPastDue returns a boolean if a field has been set.
func (o *BaseSegment) HasAmountPastDue() bool {
if o != nil && !IsNil(o.AmountPastDue) {
return true
}
return false
}
// SetAmountPastDue gets a reference to the given int32 and assigns it to the AmountPastDue field.
func (o *BaseSegment) SetAmountPastDue(v int32) {
o.AmountPastDue = &v
}
// GetOriginalChargeOffAmount returns the OriginalChargeOffAmount field value if set, zero value otherwise.
func (o *BaseSegment) GetOriginalChargeOffAmount() int32 {
if o == nil || IsNil(o.OriginalChargeOffAmount) {
var ret int32
return ret
}
return *o.OriginalChargeOffAmount
}
// GetOriginalChargeOffAmountOk returns a tuple with the OriginalChargeOffAmount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetOriginalChargeOffAmountOk() (*int32, bool) {
if o == nil || IsNil(o.OriginalChargeOffAmount) {
return nil, false
}
return o.OriginalChargeOffAmount, true
}
// HasOriginalChargeOffAmount returns a boolean if a field has been set.
func (o *BaseSegment) HasOriginalChargeOffAmount() bool {
if o != nil && !IsNil(o.OriginalChargeOffAmount) {
return true
}
return false
}
// SetOriginalChargeOffAmount gets a reference to the given int32 and assigns it to the OriginalChargeOffAmount field.
func (o *BaseSegment) SetOriginalChargeOffAmount(v int32) {
o.OriginalChargeOffAmount = &v
}
// GetDateAccountInformation returns the DateAccountInformation field value
func (o *BaseSegment) GetDateAccountInformation() time.Time {
if o == nil {
var ret time.Time
return ret
}
return o.DateAccountInformation
}
// GetDateAccountInformationOk returns a tuple with the DateAccountInformation field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetDateAccountInformationOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return &o.DateAccountInformation, true
}
// SetDateAccountInformation sets field value
func (o *BaseSegment) SetDateAccountInformation(v time.Time) {
o.DateAccountInformation = v
}
// GetDateFirstDelinquency returns the DateFirstDelinquency field value if set, zero value otherwise.
func (o *BaseSegment) GetDateFirstDelinquency() time.Time {
if o == nil || IsNil(o.DateFirstDelinquency) {
var ret time.Time
return ret
}
return *o.DateFirstDelinquency
}
// GetDateFirstDelinquencyOk returns a tuple with the DateFirstDelinquency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetDateFirstDelinquencyOk() (*time.Time, bool) {
if o == nil || IsNil(o.DateFirstDelinquency) {
return nil, false
}
return o.DateFirstDelinquency, true
}
// HasDateFirstDelinquency returns a boolean if a field has been set.
func (o *BaseSegment) HasDateFirstDelinquency() bool {
if o != nil && !IsNil(o.DateFirstDelinquency) {
return true
}
return false
}
// SetDateFirstDelinquency gets a reference to the given time.Time and assigns it to the DateFirstDelinquency field.
func (o *BaseSegment) SetDateFirstDelinquency(v time.Time) {
o.DateFirstDelinquency = &v
}
// GetDateClosed returns the DateClosed field value if set, zero value otherwise.
func (o *BaseSegment) GetDateClosed() time.Time {
if o == nil || IsNil(o.DateClosed) {
var ret time.Time
return ret
}
return *o.DateClosed
}
// GetDateClosedOk returns a tuple with the DateClosed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetDateClosedOk() (*time.Time, bool) {
if o == nil || IsNil(o.DateClosed) {
return nil, false
}
return o.DateClosed, true
}
// HasDateClosed returns a boolean if a field has been set.
func (o *BaseSegment) HasDateClosed() bool {
if o != nil && !IsNil(o.DateClosed) {
return true
}
return false
}
// SetDateClosed gets a reference to the given time.Time and assigns it to the DateClosed field.
func (o *BaseSegment) SetDateClosed(v time.Time) {
o.DateClosed = &v
}
// GetDateLastPayment returns the DateLastPayment field value if set, zero value otherwise.
func (o *BaseSegment) GetDateLastPayment() time.Time {
if o == nil || IsNil(o.DateLastPayment) {
var ret time.Time
return ret
}
return *o.DateLastPayment
}
// GetDateLastPaymentOk returns a tuple with the DateLastPayment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetDateLastPaymentOk() (*time.Time, bool) {
if o == nil || IsNil(o.DateLastPayment) {
return nil, false
}
return o.DateLastPayment, true
}
// HasDateLastPayment returns a boolean if a field has been set.
func (o *BaseSegment) HasDateLastPayment() bool {
if o != nil && !IsNil(o.DateLastPayment) {
return true
}
return false
}
// SetDateLastPayment gets a reference to the given time.Time and assigns it to the DateLastPayment field.
func (o *BaseSegment) SetDateLastPayment(v time.Time) {
o.DateLastPayment = &v
}
// GetInterestTypeIndicator returns the InterestTypeIndicator field value if set, zero value otherwise.
func (o *BaseSegment) GetInterestTypeIndicator() string {
if o == nil || IsNil(o.InterestTypeIndicator) {
var ret string
return ret
}
return *o.InterestTypeIndicator
}
// GetInterestTypeIndicatorOk returns a tuple with the InterestTypeIndicator field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetInterestTypeIndicatorOk() (*string, bool) {
if o == nil || IsNil(o.InterestTypeIndicator) {
return nil, false
}
return o.InterestTypeIndicator, true
}
// HasInterestTypeIndicator returns a boolean if a field has been set.
func (o *BaseSegment) HasInterestTypeIndicator() bool {
if o != nil && !IsNil(o.InterestTypeIndicator) {
return true
}
return false
}
// SetInterestTypeIndicator gets a reference to the given string and assigns it to the InterestTypeIndicator field.
func (o *BaseSegment) SetInterestTypeIndicator(v string) {
o.InterestTypeIndicator = &v
}
// GetSurname returns the Surname field value
func (o *BaseSegment) GetSurname() string {
if o == nil {
var ret string
return ret
}
return o.Surname
}
// GetSurnameOk returns a tuple with the Surname field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetSurnameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Surname, true
}
// SetSurname sets field value
func (o *BaseSegment) SetSurname(v string) {
o.Surname = v
}
// GetFirstName returns the FirstName field value
func (o *BaseSegment) GetFirstName() string {
if o == nil {
var ret string
return ret
}
return o.FirstName
}
// GetFirstNameOk returns a tuple with the FirstName field value
// and a boolean to check if the value has been set.
func (o *BaseSegment) GetFirstNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.FirstName, true
}
// SetFirstName sets field value
func (o *BaseSegment) SetFirstName(v string) {
o.FirstName = v
}
// GetMiddleName returns the MiddleName field value if set, zero value otherwise.
func (o *BaseSegment) 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 *BaseSegment) 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 *BaseSegment) 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 *BaseSegment) SetMiddleName(v string) {
o.MiddleName = &v
}