-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel_payment_intent_response.go
More file actions
882 lines (751 loc) · 26.6 KB
/
model_payment_intent_response.go
File metadata and controls
882 lines (751 loc) · 26.6 KB
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
/*
Secure API
Secure API
API version: 2.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// checks if the PaymentIntentResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PaymentIntentResponse{}
// PaymentIntentResponse struct for PaymentIntentResponse
type PaymentIntentResponse struct {
PaymentToken *string `json:"paymentToken,omitempty"`
Amount *float32 `json:"amount,omitempty"`
Title *string `json:"title,omitempty"`
ShortDescription *string `json:"shortDescription,omitempty"`
PaymentDescription *string `json:"paymentDescription,omitempty"`
InvoiceNumber *string `json:"invoiceNumber,omitempty"`
ExpiresOn *string `json:"expiresOn,omitempty"`
Intent *PaymentIntentResponseIntent `json:"intent,omitempty"`
SaveForFuture *bool `json:"saveForFuture,omitempty"`
EnablePremiumFinance *bool `json:"enablePremiumFinance,omitempty"`
Splits []PaymentIntentRequestSplitsInner `json:"splits,omitempty"`
QuoteKey *string `json:"quoteKey,omitempty"`
AccountNumber *string `json:"accountNumber,omitempty"`
SuppressTechnologyFee *bool `json:"suppressTechnologyFee,omitempty"`
OverrideTechnologyFee *float32 `json:"overrideTechnologyFee,omitempty"`
IsPremiumFinancier *bool `json:"isPremiumFinancier,omitempty"`
Pfr *PaymentIntentRequestPfr `json:"pfr,omitempty"`
Customers []PaymentIntentResponseCustomersInner `json:"customers,omitempty"`
AdditionalDetailsPreference *string `json:"additionalDetailsPreference,omitempty"`
SelectedCustomerFields *string `json:"selectedCustomerFields,omitempty"`
ReferenceDataList []PaymentIntentRequestReferenceDataListInner `json:"referenceDataList,omitempty"`
DisplayMode *string `json:"displayMode,omitempty"`
}
// NewPaymentIntentResponse instantiates a new PaymentIntentResponse 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 NewPaymentIntentResponse() *PaymentIntentResponse {
this := PaymentIntentResponse{}
return &this
}
// NewPaymentIntentResponseWithDefaults instantiates a new PaymentIntentResponse 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 NewPaymentIntentResponseWithDefaults() *PaymentIntentResponse {
this := PaymentIntentResponse{}
return &this
}
// GetPaymentToken returns the PaymentToken field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetPaymentToken() string {
if o == nil || IsNil(o.PaymentToken) {
var ret string
return ret
}
return *o.PaymentToken
}
// GetPaymentTokenOk returns a tuple with the PaymentToken field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetPaymentTokenOk() (*string, bool) {
if o == nil || IsNil(o.PaymentToken) {
return nil, false
}
return o.PaymentToken, true
}
// HasPaymentToken returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasPaymentToken() bool {
if o != nil && !IsNil(o.PaymentToken) {
return true
}
return false
}
// SetPaymentToken gets a reference to the given string and assigns it to the PaymentToken field.
func (o *PaymentIntentResponse) SetPaymentToken(v string) {
o.PaymentToken = &v
}
// GetAmount returns the Amount field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetAmount() float32 {
if o == nil || IsNil(o.Amount) {
var ret float32
return ret
}
return *o.Amount
}
// GetAmountOk returns a tuple with the Amount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetAmountOk() (*float32, bool) {
if o == nil || IsNil(o.Amount) {
return nil, false
}
return o.Amount, true
}
// HasAmount returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasAmount() bool {
if o != nil && !IsNil(o.Amount) {
return true
}
return false
}
// SetAmount gets a reference to the given float32 and assigns it to the Amount field.
func (o *PaymentIntentResponse) SetAmount(v float32) {
o.Amount = &v
}
// GetTitle returns the Title field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetTitle() string {
if o == nil || IsNil(o.Title) {
var ret string
return ret
}
return *o.Title
}
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetTitleOk() (*string, bool) {
if o == nil || IsNil(o.Title) {
return nil, false
}
return o.Title, true
}
// HasTitle returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasTitle() bool {
if o != nil && !IsNil(o.Title) {
return true
}
return false
}
// SetTitle gets a reference to the given string and assigns it to the Title field.
func (o *PaymentIntentResponse) SetTitle(v string) {
o.Title = &v
}
// GetShortDescription returns the ShortDescription field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetShortDescription() string {
if o == nil || IsNil(o.ShortDescription) {
var ret string
return ret
}
return *o.ShortDescription
}
// GetShortDescriptionOk returns a tuple with the ShortDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetShortDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.ShortDescription) {
return nil, false
}
return o.ShortDescription, true
}
// HasShortDescription returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasShortDescription() bool {
if o != nil && !IsNil(o.ShortDescription) {
return true
}
return false
}
// SetShortDescription gets a reference to the given string and assigns it to the ShortDescription field.
func (o *PaymentIntentResponse) SetShortDescription(v string) {
o.ShortDescription = &v
}
// GetPaymentDescription returns the PaymentDescription field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetPaymentDescription() string {
if o == nil || IsNil(o.PaymentDescription) {
var ret string
return ret
}
return *o.PaymentDescription
}
// GetPaymentDescriptionOk returns a tuple with the PaymentDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetPaymentDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.PaymentDescription) {
return nil, false
}
return o.PaymentDescription, true
}
// HasPaymentDescription returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasPaymentDescription() bool {
if o != nil && !IsNil(o.PaymentDescription) {
return true
}
return false
}
// SetPaymentDescription gets a reference to the given string and assigns it to the PaymentDescription field.
func (o *PaymentIntentResponse) SetPaymentDescription(v string) {
o.PaymentDescription = &v
}
// GetInvoiceNumber returns the InvoiceNumber field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetInvoiceNumber() string {
if o == nil || IsNil(o.InvoiceNumber) {
var ret string
return ret
}
return *o.InvoiceNumber
}
// GetInvoiceNumberOk returns a tuple with the InvoiceNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetInvoiceNumberOk() (*string, bool) {
if o == nil || IsNil(o.InvoiceNumber) {
return nil, false
}
return o.InvoiceNumber, true
}
// HasInvoiceNumber returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasInvoiceNumber() bool {
if o != nil && !IsNil(o.InvoiceNumber) {
return true
}
return false
}
// SetInvoiceNumber gets a reference to the given string and assigns it to the InvoiceNumber field.
func (o *PaymentIntentResponse) SetInvoiceNumber(v string) {
o.InvoiceNumber = &v
}
// GetExpiresOn returns the ExpiresOn field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetExpiresOn() string {
if o == nil || IsNil(o.ExpiresOn) {
var ret string
return ret
}
return *o.ExpiresOn
}
// GetExpiresOnOk returns a tuple with the ExpiresOn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetExpiresOnOk() (*string, bool) {
if o == nil || IsNil(o.ExpiresOn) {
return nil, false
}
return o.ExpiresOn, true
}
// HasExpiresOn returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasExpiresOn() bool {
if o != nil && !IsNil(o.ExpiresOn) {
return true
}
return false
}
// SetExpiresOn gets a reference to the given string and assigns it to the ExpiresOn field.
func (o *PaymentIntentResponse) SetExpiresOn(v string) {
o.ExpiresOn = &v
}
// GetIntent returns the Intent field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetIntent() PaymentIntentResponseIntent {
if o == nil || IsNil(o.Intent) {
var ret PaymentIntentResponseIntent
return ret
}
return *o.Intent
}
// GetIntentOk returns a tuple with the Intent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetIntentOk() (*PaymentIntentResponseIntent, bool) {
if o == nil || IsNil(o.Intent) {
return nil, false
}
return o.Intent, true
}
// HasIntent returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasIntent() bool {
if o != nil && !IsNil(o.Intent) {
return true
}
return false
}
// SetIntent gets a reference to the given PaymentIntentResponseIntent and assigns it to the Intent field.
func (o *PaymentIntentResponse) SetIntent(v PaymentIntentResponseIntent) {
o.Intent = &v
}
// GetSaveForFuture returns the SaveForFuture field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetSaveForFuture() bool {
if o == nil || IsNil(o.SaveForFuture) {
var ret bool
return ret
}
return *o.SaveForFuture
}
// GetSaveForFutureOk returns a tuple with the SaveForFuture field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetSaveForFutureOk() (*bool, bool) {
if o == nil || IsNil(o.SaveForFuture) {
return nil, false
}
return o.SaveForFuture, true
}
// HasSaveForFuture returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasSaveForFuture() bool {
if o != nil && !IsNil(o.SaveForFuture) {
return true
}
return false
}
// SetSaveForFuture gets a reference to the given bool and assigns it to the SaveForFuture field.
func (o *PaymentIntentResponse) SetSaveForFuture(v bool) {
o.SaveForFuture = &v
}
// GetEnablePremiumFinance returns the EnablePremiumFinance field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetEnablePremiumFinance() bool {
if o == nil || IsNil(o.EnablePremiumFinance) {
var ret bool
return ret
}
return *o.EnablePremiumFinance
}
// GetEnablePremiumFinanceOk returns a tuple with the EnablePremiumFinance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetEnablePremiumFinanceOk() (*bool, bool) {
if o == nil || IsNil(o.EnablePremiumFinance) {
return nil, false
}
return o.EnablePremiumFinance, true
}
// HasEnablePremiumFinance returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasEnablePremiumFinance() bool {
if o != nil && !IsNil(o.EnablePremiumFinance) {
return true
}
return false
}
// SetEnablePremiumFinance gets a reference to the given bool and assigns it to the EnablePremiumFinance field.
func (o *PaymentIntentResponse) SetEnablePremiumFinance(v bool) {
o.EnablePremiumFinance = &v
}
// GetSplits returns the Splits field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetSplits() []PaymentIntentRequestSplitsInner {
if o == nil || IsNil(o.Splits) {
var ret []PaymentIntentRequestSplitsInner
return ret
}
return o.Splits
}
// GetSplitsOk returns a tuple with the Splits field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetSplitsOk() ([]PaymentIntentRequestSplitsInner, bool) {
if o == nil || IsNil(o.Splits) {
return nil, false
}
return o.Splits, true
}
// HasSplits returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasSplits() bool {
if o != nil && !IsNil(o.Splits) {
return true
}
return false
}
// SetSplits gets a reference to the given []PaymentIntentRequestSplitsInner and assigns it to the Splits field.
func (o *PaymentIntentResponse) SetSplits(v []PaymentIntentRequestSplitsInner) {
o.Splits = v
}
// GetQuoteKey returns the QuoteKey field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetQuoteKey() string {
if o == nil || IsNil(o.QuoteKey) {
var ret string
return ret
}
return *o.QuoteKey
}
// GetQuoteKeyOk returns a tuple with the QuoteKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetQuoteKeyOk() (*string, bool) {
if o == nil || IsNil(o.QuoteKey) {
return nil, false
}
return o.QuoteKey, true
}
// HasQuoteKey returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasQuoteKey() bool {
if o != nil && !IsNil(o.QuoteKey) {
return true
}
return false
}
// SetQuoteKey gets a reference to the given string and assigns it to the QuoteKey field.
func (o *PaymentIntentResponse) SetQuoteKey(v string) {
o.QuoteKey = &v
}
// GetAccountNumber returns the AccountNumber field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetAccountNumber() string {
if o == nil || IsNil(o.AccountNumber) {
var ret string
return ret
}
return *o.AccountNumber
}
// GetAccountNumberOk returns a tuple with the AccountNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetAccountNumberOk() (*string, bool) {
if o == nil || IsNil(o.AccountNumber) {
return nil, false
}
return o.AccountNumber, true
}
// HasAccountNumber returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasAccountNumber() bool {
if o != nil && !IsNil(o.AccountNumber) {
return true
}
return false
}
// SetAccountNumber gets a reference to the given string and assigns it to the AccountNumber field.
func (o *PaymentIntentResponse) SetAccountNumber(v string) {
o.AccountNumber = &v
}
// GetSuppressTechnologyFee returns the SuppressTechnologyFee field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetSuppressTechnologyFee() bool {
if o == nil || IsNil(o.SuppressTechnologyFee) {
var ret bool
return ret
}
return *o.SuppressTechnologyFee
}
// GetSuppressTechnologyFeeOk returns a tuple with the SuppressTechnologyFee field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetSuppressTechnologyFeeOk() (*bool, bool) {
if o == nil || IsNil(o.SuppressTechnologyFee) {
return nil, false
}
return o.SuppressTechnologyFee, true
}
// HasSuppressTechnologyFee returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasSuppressTechnologyFee() bool {
if o != nil && !IsNil(o.SuppressTechnologyFee) {
return true
}
return false
}
// SetSuppressTechnologyFee gets a reference to the given bool and assigns it to the SuppressTechnologyFee field.
func (o *PaymentIntentResponse) SetSuppressTechnologyFee(v bool) {
o.SuppressTechnologyFee = &v
}
// GetOverrideTechnologyFee returns the OverrideTechnologyFee field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetOverrideTechnologyFee() float32 {
if o == nil || IsNil(o.OverrideTechnologyFee) {
var ret float32
return ret
}
return *o.OverrideTechnologyFee
}
// GetOverrideTechnologyFeeOk returns a tuple with the OverrideTechnologyFee field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetOverrideTechnologyFeeOk() (*float32, bool) {
if o == nil || IsNil(o.OverrideTechnologyFee) {
return nil, false
}
return o.OverrideTechnologyFee, true
}
// HasOverrideTechnologyFee returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasOverrideTechnologyFee() bool {
if o != nil && !IsNil(o.OverrideTechnologyFee) {
return true
}
return false
}
// SetOverrideTechnologyFee gets a reference to the given float32 and assigns it to the OverrideTechnologyFee field.
func (o *PaymentIntentResponse) SetOverrideTechnologyFee(v float32) {
o.OverrideTechnologyFee = &v
}
// GetIsPremiumFinancier returns the IsPremiumFinancier field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetIsPremiumFinancier() bool {
if o == nil || IsNil(o.IsPremiumFinancier) {
var ret bool
return ret
}
return *o.IsPremiumFinancier
}
// GetIsPremiumFinancierOk returns a tuple with the IsPremiumFinancier field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetIsPremiumFinancierOk() (*bool, bool) {
if o == nil || IsNil(o.IsPremiumFinancier) {
return nil, false
}
return o.IsPremiumFinancier, true
}
// HasIsPremiumFinancier returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasIsPremiumFinancier() bool {
if o != nil && !IsNil(o.IsPremiumFinancier) {
return true
}
return false
}
// SetIsPremiumFinancier gets a reference to the given bool and assigns it to the IsPremiumFinancier field.
func (o *PaymentIntentResponse) SetIsPremiumFinancier(v bool) {
o.IsPremiumFinancier = &v
}
// GetPfr returns the Pfr field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetPfr() PaymentIntentRequestPfr {
if o == nil || IsNil(o.Pfr) {
var ret PaymentIntentRequestPfr
return ret
}
return *o.Pfr
}
// GetPfrOk returns a tuple with the Pfr field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetPfrOk() (*PaymentIntentRequestPfr, bool) {
if o == nil || IsNil(o.Pfr) {
return nil, false
}
return o.Pfr, true
}
// HasPfr returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasPfr() bool {
if o != nil && !IsNil(o.Pfr) {
return true
}
return false
}
// SetPfr gets a reference to the given PaymentIntentRequestPfr and assigns it to the Pfr field.
func (o *PaymentIntentResponse) SetPfr(v PaymentIntentRequestPfr) {
o.Pfr = &v
}
// GetCustomers returns the Customers field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetCustomers() []PaymentIntentResponseCustomersInner {
if o == nil || IsNil(o.Customers) {
var ret []PaymentIntentResponseCustomersInner
return ret
}
return o.Customers
}
// GetCustomersOk returns a tuple with the Customers field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetCustomersOk() ([]PaymentIntentResponseCustomersInner, bool) {
if o == nil || IsNil(o.Customers) {
return nil, false
}
return o.Customers, true
}
// HasCustomers returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasCustomers() bool {
if o != nil && !IsNil(o.Customers) {
return true
}
return false
}
// SetCustomers gets a reference to the given []PaymentIntentResponseCustomersInner and assigns it to the Customers field.
func (o *PaymentIntentResponse) SetCustomers(v []PaymentIntentResponseCustomersInner) {
o.Customers = v
}
// GetAdditionalDetailsPreference returns the AdditionalDetailsPreference field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetAdditionalDetailsPreference() string {
if o == nil || IsNil(o.AdditionalDetailsPreference) {
var ret string
return ret
}
return *o.AdditionalDetailsPreference
}
// GetAdditionalDetailsPreferenceOk returns a tuple with the AdditionalDetailsPreference field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetAdditionalDetailsPreferenceOk() (*string, bool) {
if o == nil || IsNil(o.AdditionalDetailsPreference) {
return nil, false
}
return o.AdditionalDetailsPreference, true
}
// HasAdditionalDetailsPreference returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasAdditionalDetailsPreference() bool {
if o != nil && !IsNil(o.AdditionalDetailsPreference) {
return true
}
return false
}
// SetAdditionalDetailsPreference gets a reference to the given string and assigns it to the AdditionalDetailsPreference field.
func (o *PaymentIntentResponse) SetAdditionalDetailsPreference(v string) {
o.AdditionalDetailsPreference = &v
}
// GetSelectedCustomerFields returns the SelectedCustomerFields field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetSelectedCustomerFields() string {
if o == nil || IsNil(o.SelectedCustomerFields) {
var ret string
return ret
}
return *o.SelectedCustomerFields
}
// GetSelectedCustomerFieldsOk returns a tuple with the SelectedCustomerFields field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetSelectedCustomerFieldsOk() (*string, bool) {
if o == nil || IsNil(o.SelectedCustomerFields) {
return nil, false
}
return o.SelectedCustomerFields, true
}
// HasSelectedCustomerFields returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasSelectedCustomerFields() bool {
if o != nil && !IsNil(o.SelectedCustomerFields) {
return true
}
return false
}
// SetSelectedCustomerFields gets a reference to the given string and assigns it to the SelectedCustomerFields field.
func (o *PaymentIntentResponse) SetSelectedCustomerFields(v string) {
o.SelectedCustomerFields = &v
}
// GetReferenceDataList returns the ReferenceDataList field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetReferenceDataList() []PaymentIntentRequestReferenceDataListInner {
if o == nil || IsNil(o.ReferenceDataList) {
var ret []PaymentIntentRequestReferenceDataListInner
return ret
}
return o.ReferenceDataList
}
// GetReferenceDataListOk returns a tuple with the ReferenceDataList field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetReferenceDataListOk() ([]PaymentIntentRequestReferenceDataListInner, bool) {
if o == nil || IsNil(o.ReferenceDataList) {
return nil, false
}
return o.ReferenceDataList, true
}
// HasReferenceDataList returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasReferenceDataList() bool {
if o != nil && !IsNil(o.ReferenceDataList) {
return true
}
return false
}
// SetReferenceDataList gets a reference to the given []PaymentIntentRequestReferenceDataListInner and assigns it to the ReferenceDataList field.
func (o *PaymentIntentResponse) SetReferenceDataList(v []PaymentIntentRequestReferenceDataListInner) {
o.ReferenceDataList = v
}
// GetDisplayMode returns the DisplayMode field value if set, zero value otherwise.
func (o *PaymentIntentResponse) GetDisplayMode() string {
if o == nil || IsNil(o.DisplayMode) {
var ret string
return ret
}
return *o.DisplayMode
}
// GetDisplayModeOk returns a tuple with the DisplayMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PaymentIntentResponse) GetDisplayModeOk() (*string, bool) {
if o == nil || IsNil(o.DisplayMode) {
return nil, false
}
return o.DisplayMode, true
}
// HasDisplayMode returns a boolean if a field has been set.
func (o *PaymentIntentResponse) HasDisplayMode() bool {
if o != nil && !IsNil(o.DisplayMode) {
return true
}
return false
}
// SetDisplayMode gets a reference to the given string and assigns it to the DisplayMode field.
func (o *PaymentIntentResponse) SetDisplayMode(v string) {
o.DisplayMode = &v
}
func (o PaymentIntentResponse) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o PaymentIntentResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.PaymentToken) {
toSerialize["paymentToken"] = o.PaymentToken
}
if !IsNil(o.Amount) {
toSerialize["amount"] = o.Amount
}
if !IsNil(o.Title) {
toSerialize["title"] = o.Title
}
if !IsNil(o.ShortDescription) {
toSerialize["shortDescription"] = o.ShortDescription
}
if !IsNil(o.PaymentDescription) {
toSerialize["paymentDescription"] = o.PaymentDescription
}
if !IsNil(o.InvoiceNumber) {
toSerialize["invoiceNumber"] = o.InvoiceNumber
}
if !IsNil(o.ExpiresOn) {
toSerialize["expiresOn"] = o.ExpiresOn
}
if !IsNil(o.Intent) {
toSerialize["intent"] = o.Intent
}
if !IsNil(o.SaveForFuture) {
toSerialize["saveForFuture"] = o.SaveForFuture
}
if !IsNil(o.EnablePremiumFinance) {
toSerialize["enablePremiumFinance"] = o.EnablePremiumFinance
}
if !IsNil(o.Splits) {
toSerialize["splits"] = o.Splits
}
if !IsNil(o.QuoteKey) {
toSerialize["quoteKey"] = o.QuoteKey
}
if !IsNil(o.AccountNumber) {
toSerialize["accountNumber"] = o.AccountNumber
}
if !IsNil(o.SuppressTechnologyFee) {
toSerialize["suppressTechnologyFee"] = o.SuppressTechnologyFee
}
if !IsNil(o.OverrideTechnologyFee) {
toSerialize["overrideTechnologyFee"] = o.OverrideTechnologyFee
}
if !IsNil(o.IsPremiumFinancier) {
toSerialize["isPremiumFinancier"] = o.IsPremiumFinancier
}
if !IsNil(o.Pfr) {
toSerialize["pfr"] = o.Pfr
}
if !IsNil(o.Customers) {
toSerialize["customers"] = o.Customers
}
if !IsNil(o.AdditionalDetailsPreference) {
toSerialize["additionalDetailsPreference"] = o.AdditionalDetailsPreference
}
if !IsNil(o.SelectedCustomerFields) {
toSerialize["selectedCustomerFields"] = o.SelectedCustomerFields
}
if !IsNil(o.ReferenceDataList) {
toSerialize["referenceDataList"] = o.ReferenceDataList
}
if !IsNil(o.DisplayMode) {
toSerialize["displayMode"] = o.DisplayMode
}
return toSerialize, nil
}
type NullablePaymentIntentResponse struct {
value *PaymentIntentResponse
isSet bool
}
func (v NullablePaymentIntentResponse) Get() *PaymentIntentResponse {
return v.value
}
func (v *NullablePaymentIntentResponse) Set(val *PaymentIntentResponse) {
v.value = val
v.isSet = true
}
func (v NullablePaymentIntentResponse) IsSet() bool {
return v.isSet
}
func (v *NullablePaymentIntentResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullablePaymentIntentResponse(val *PaymentIntentResponse) *NullablePaymentIntentResponse {
return &NullablePaymentIntentResponse{value: val, isSet: true}
}
func (v NullablePaymentIntentResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullablePaymentIntentResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}