-
Notifications
You must be signed in to change notification settings - Fork 28
/
model_three_ds2_request_data.go
1585 lines (1371 loc) · 54.2 KB
/
model_three_ds2_request_data.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
/*
Adyen Checkout API
API version: 71
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package checkout
import (
"encoding/json"
"github.com/adyen/adyen-go-api-library/v8/src/common"
)
// checks if the ThreeDS2RequestData type satisfies the MappedNullable interface at compile time
var _ common.MappedNullable = &ThreeDS2RequestData{}
// ThreeDS2RequestData struct for ThreeDS2RequestData
type ThreeDS2RequestData struct {
AcctInfo *AcctInfo `json:"acctInfo,omitempty"`
// Indicates the type of account. For example, for a multi-account card product. Length: 2 characters. Allowed values: * **01** — Not applicable * **02** — Credit * **03** — Debit
AcctType *string `json:"acctType,omitempty"`
// Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The acquiring BIN enrolled for 3D Secure 2. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform.
AcquirerBIN *string `json:"acquirerBIN,omitempty"`
// Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchantId that is enrolled for 3D Secure 2 by the merchant's acquirer. This string should match the value that you will use in the authorisation. Use 123456 on the Test platform.
AcquirerMerchantID *string `json:"acquirerMerchantID,omitempty"`
// Indicates whether the Cardholder Shipping Address and Cardholder Billing Address are the same. Allowed values: * **Y** — Shipping Address matches Billing Address. * **N** — Shipping Address does not match Billing Address.
AddrMatch *string `json:"addrMatch,omitempty"`
// If set to true, you will only perform the [3D Secure 2 authentication](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only), and not the payment authorisation.
// Deprecated
AuthenticationOnly *bool `json:"authenticationOnly,omitempty"`
// Possibility to specify a preference for receiving a challenge from the issuer. Allowed values: * `noPreference` * `requestNoChallenge` * `requestChallenge` * `requestChallengeAsMandate`
// Deprecated
ChallengeIndicator *string `json:"challengeIndicator,omitempty"`
// The environment of the shopper. Allowed values: * `app` * `browser`
DeviceChannel string `json:"deviceChannel"`
DeviceRenderOptions *DeviceRenderOptions `json:"deviceRenderOptions,omitempty"`
HomePhone *Phone `json:"homePhone,omitempty"`
// Required for merchants that have been enrolled for 3D Secure 2 by another party than Adyen, mostly [authentication-only integrations](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The `mcc` is a four-digit code with which the previously given `acquirerMerchantID` is registered at the scheme.
Mcc *string `json:"mcc,omitempty"`
// Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only). The merchant name that the issuer presents to the shopper if they get a challenge. We recommend to use the same value that you will use in the authorization. Maximum length is 40 characters. > Optional for a [full 3D Secure 2 integration](https://docs.adyen.com/online-payments/3d-secure/native-3ds2/api-integration). Use this field if you are enrolled for 3D Secure 2 with us and want to override the merchant name already configured on your account.
MerchantName *string `json:"merchantName,omitempty"`
// The `messageVersion` value indicating the 3D Secure 2 protocol version.
MessageVersion *string `json:"messageVersion,omitempty"`
MobilePhone *Phone `json:"mobilePhone,omitempty"`
// URL to where the issuer should send the `CRes`. Required if you are not using components for `channel` **Web** or if you are using classic integration `deviceChannel` **browser**.
NotificationURL *string `json:"notificationURL,omitempty"`
// Value **true** indicates that the transaction was de-tokenised prior to being received by the ACS.
PayTokenInd *bool `json:"payTokenInd,omitempty"`
// Indicates the type of payment for which an authentication is requested (message extension)
PaymentAuthenticationUseCase *string `json:"paymentAuthenticationUseCase,omitempty"`
// Indicates the maximum number of authorisations permitted for instalment payments. Length: 1–3 characters.
PurchaseInstalData *string `json:"purchaseInstalData,omitempty"`
// Date after which no further authorisations shall be performed. Format: YYYYMMDD
RecurringExpiry *string `json:"recurringExpiry,omitempty"`
// Indicates the minimum number of days between authorisations. Maximum length: 4 characters.
RecurringFrequency *string `json:"recurringFrequency,omitempty"`
// The `sdkAppID` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**.
SdkAppID *string `json:"sdkAppID,omitempty"`
// The `sdkEncData` value as received from the 3D Secure 2 SDK. Required for `deviceChannel` set to **app**.
SdkEncData *string `json:"sdkEncData,omitempty"`
SdkEphemPubKey *SDKEphemPubKey `json:"sdkEphemPubKey,omitempty"`
// The maximum amount of time in minutes for the 3D Secure 2 authentication process. Optional and only for `deviceChannel` set to **app**. Defaults to **60** minutes.
SdkMaxTimeout *int32 `json:"sdkMaxTimeout,omitempty"`
// The `sdkReferenceNumber` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**.
SdkReferenceNumber *string `json:"sdkReferenceNumber,omitempty"`
// The `sdkTransID` value as received from the 3D Secure 2 SDK. Only for `deviceChannel` set to **app**.
SdkTransID *string `json:"sdkTransID,omitempty"`
// Version of the 3D Secure 2 mobile SDK. Only for `deviceChannel` set to **app**.
SdkVersion *string `json:"sdkVersion,omitempty"`
// Completion indicator for the device fingerprinting.
ThreeDSCompInd *string `json:"threeDSCompInd,omitempty"`
// Indicates the type of Authentication request.
ThreeDSRequestorAuthenticationInd *string `json:"threeDSRequestorAuthenticationInd,omitempty"`
ThreeDSRequestorAuthenticationInfo *ThreeDSRequestorAuthenticationInfo `json:"threeDSRequestorAuthenticationInfo,omitempty"`
// Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only
ThreeDSRequestorChallengeInd *string `json:"threeDSRequestorChallengeInd,omitempty"`
// Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor identifier assigned by the Directory Server when you enrol for 3D Secure 2.
ThreeDSRequestorID *string `json:"threeDSRequestorID,omitempty"`
// Required for [authentication-only integration](https://docs.adyen.com/online-payments/3d-secure/other-3ds-flows/authentication-only) for Visa. Unique 3D Secure requestor name assigned by the Directory Server when you enrol for 3D Secure 2.
ThreeDSRequestorName *string `json:"threeDSRequestorName,omitempty"`
ThreeDSRequestorPriorAuthenticationInfo *ThreeDSRequestorPriorAuthenticationInfo `json:"threeDSRequestorPriorAuthenticationInfo,omitempty"`
// URL of the (customer service) website that will be shown to the shopper in case of technical errors during the 3D Secure 2 process.
ThreeDSRequestorURL *string `json:"threeDSRequestorURL,omitempty"`
// Identifies the type of transaction being authenticated. Length: 2 characters. Allowed values: * **01** — Goods/Service Purchase * **03** — Check Acceptance * **10** — Account Funding * **11** — Quasi-Cash Transaction * **28** — Prepaid Activation and Load
TransType *string `json:"transType,omitempty"`
// Identify the type of the transaction being authenticated.
TransactionType *string `json:"transactionType,omitempty"`
// The `whiteListStatus` value returned from a previous 3D Secure 2 transaction, only applicable for 3D Secure 2 protocol version 2.2.0.
WhiteListStatus *string `json:"whiteListStatus,omitempty"`
WorkPhone *Phone `json:"workPhone,omitempty"`
}
// NewThreeDS2RequestData instantiates a new ThreeDS2RequestData 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 NewThreeDS2RequestData(deviceChannel string) *ThreeDS2RequestData {
this := ThreeDS2RequestData{}
var authenticationOnly bool = false
this.AuthenticationOnly = &authenticationOnly
this.DeviceChannel = deviceChannel
var sdkMaxTimeout int32 = 60
this.SdkMaxTimeout = &sdkMaxTimeout
return &this
}
// NewThreeDS2RequestDataWithDefaults instantiates a new ThreeDS2RequestData 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 NewThreeDS2RequestDataWithDefaults() *ThreeDS2RequestData {
this := ThreeDS2RequestData{}
var authenticationOnly bool = false
this.AuthenticationOnly = &authenticationOnly
var sdkMaxTimeout int32 = 60
this.SdkMaxTimeout = &sdkMaxTimeout
return &this
}
// GetAcctInfo returns the AcctInfo field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetAcctInfo() AcctInfo {
if o == nil || common.IsNil(o.AcctInfo) {
var ret AcctInfo
return ret
}
return *o.AcctInfo
}
// GetAcctInfoOk returns a tuple with the AcctInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetAcctInfoOk() (*AcctInfo, bool) {
if o == nil || common.IsNil(o.AcctInfo) {
return nil, false
}
return o.AcctInfo, true
}
// HasAcctInfo returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasAcctInfo() bool {
if o != nil && !common.IsNil(o.AcctInfo) {
return true
}
return false
}
// SetAcctInfo gets a reference to the given AcctInfo and assigns it to the AcctInfo field.
func (o *ThreeDS2RequestData) SetAcctInfo(v AcctInfo) {
o.AcctInfo = &v
}
// GetAcctType returns the AcctType field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetAcctType() string {
if o == nil || common.IsNil(o.AcctType) {
var ret string
return ret
}
return *o.AcctType
}
// GetAcctTypeOk returns a tuple with the AcctType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetAcctTypeOk() (*string, bool) {
if o == nil || common.IsNil(o.AcctType) {
return nil, false
}
return o.AcctType, true
}
// HasAcctType returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasAcctType() bool {
if o != nil && !common.IsNil(o.AcctType) {
return true
}
return false
}
// SetAcctType gets a reference to the given string and assigns it to the AcctType field.
func (o *ThreeDS2RequestData) SetAcctType(v string) {
o.AcctType = &v
}
// GetAcquirerBIN returns the AcquirerBIN field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetAcquirerBIN() string {
if o == nil || common.IsNil(o.AcquirerBIN) {
var ret string
return ret
}
return *o.AcquirerBIN
}
// GetAcquirerBINOk returns a tuple with the AcquirerBIN field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetAcquirerBINOk() (*string, bool) {
if o == nil || common.IsNil(o.AcquirerBIN) {
return nil, false
}
return o.AcquirerBIN, true
}
// HasAcquirerBIN returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasAcquirerBIN() bool {
if o != nil && !common.IsNil(o.AcquirerBIN) {
return true
}
return false
}
// SetAcquirerBIN gets a reference to the given string and assigns it to the AcquirerBIN field.
func (o *ThreeDS2RequestData) SetAcquirerBIN(v string) {
o.AcquirerBIN = &v
}
// GetAcquirerMerchantID returns the AcquirerMerchantID field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetAcquirerMerchantID() string {
if o == nil || common.IsNil(o.AcquirerMerchantID) {
var ret string
return ret
}
return *o.AcquirerMerchantID
}
// GetAcquirerMerchantIDOk returns a tuple with the AcquirerMerchantID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetAcquirerMerchantIDOk() (*string, bool) {
if o == nil || common.IsNil(o.AcquirerMerchantID) {
return nil, false
}
return o.AcquirerMerchantID, true
}
// HasAcquirerMerchantID returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasAcquirerMerchantID() bool {
if o != nil && !common.IsNil(o.AcquirerMerchantID) {
return true
}
return false
}
// SetAcquirerMerchantID gets a reference to the given string and assigns it to the AcquirerMerchantID field.
func (o *ThreeDS2RequestData) SetAcquirerMerchantID(v string) {
o.AcquirerMerchantID = &v
}
// GetAddrMatch returns the AddrMatch field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetAddrMatch() string {
if o == nil || common.IsNil(o.AddrMatch) {
var ret string
return ret
}
return *o.AddrMatch
}
// GetAddrMatchOk returns a tuple with the AddrMatch field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetAddrMatchOk() (*string, bool) {
if o == nil || common.IsNil(o.AddrMatch) {
return nil, false
}
return o.AddrMatch, true
}
// HasAddrMatch returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasAddrMatch() bool {
if o != nil && !common.IsNil(o.AddrMatch) {
return true
}
return false
}
// SetAddrMatch gets a reference to the given string and assigns it to the AddrMatch field.
func (o *ThreeDS2RequestData) SetAddrMatch(v string) {
o.AddrMatch = &v
}
// GetAuthenticationOnly returns the AuthenticationOnly field value if set, zero value otherwise.
// Deprecated
func (o *ThreeDS2RequestData) GetAuthenticationOnly() bool {
if o == nil || common.IsNil(o.AuthenticationOnly) {
var ret bool
return ret
}
return *o.AuthenticationOnly
}
// GetAuthenticationOnlyOk returns a tuple with the AuthenticationOnly field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *ThreeDS2RequestData) GetAuthenticationOnlyOk() (*bool, bool) {
if o == nil || common.IsNil(o.AuthenticationOnly) {
return nil, false
}
return o.AuthenticationOnly, true
}
// HasAuthenticationOnly returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasAuthenticationOnly() bool {
if o != nil && !common.IsNil(o.AuthenticationOnly) {
return true
}
return false
}
// SetAuthenticationOnly gets a reference to the given bool and assigns it to the AuthenticationOnly field.
// Deprecated
func (o *ThreeDS2RequestData) SetAuthenticationOnly(v bool) {
o.AuthenticationOnly = &v
}
// GetChallengeIndicator returns the ChallengeIndicator field value if set, zero value otherwise.
// Deprecated
func (o *ThreeDS2RequestData) GetChallengeIndicator() string {
if o == nil || common.IsNil(o.ChallengeIndicator) {
var ret string
return ret
}
return *o.ChallengeIndicator
}
// GetChallengeIndicatorOk returns a tuple with the ChallengeIndicator field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *ThreeDS2RequestData) GetChallengeIndicatorOk() (*string, bool) {
if o == nil || common.IsNil(o.ChallengeIndicator) {
return nil, false
}
return o.ChallengeIndicator, true
}
// HasChallengeIndicator returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasChallengeIndicator() bool {
if o != nil && !common.IsNil(o.ChallengeIndicator) {
return true
}
return false
}
// SetChallengeIndicator gets a reference to the given string and assigns it to the ChallengeIndicator field.
// Deprecated
func (o *ThreeDS2RequestData) SetChallengeIndicator(v string) {
o.ChallengeIndicator = &v
}
// GetDeviceChannel returns the DeviceChannel field value
func (o *ThreeDS2RequestData) GetDeviceChannel() string {
if o == nil {
var ret string
return ret
}
return o.DeviceChannel
}
// GetDeviceChannelOk returns a tuple with the DeviceChannel field value
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetDeviceChannelOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DeviceChannel, true
}
// SetDeviceChannel sets field value
func (o *ThreeDS2RequestData) SetDeviceChannel(v string) {
o.DeviceChannel = v
}
// GetDeviceRenderOptions returns the DeviceRenderOptions field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetDeviceRenderOptions() DeviceRenderOptions {
if o == nil || common.IsNil(o.DeviceRenderOptions) {
var ret DeviceRenderOptions
return ret
}
return *o.DeviceRenderOptions
}
// GetDeviceRenderOptionsOk returns a tuple with the DeviceRenderOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetDeviceRenderOptionsOk() (*DeviceRenderOptions, bool) {
if o == nil || common.IsNil(o.DeviceRenderOptions) {
return nil, false
}
return o.DeviceRenderOptions, true
}
// HasDeviceRenderOptions returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasDeviceRenderOptions() bool {
if o != nil && !common.IsNil(o.DeviceRenderOptions) {
return true
}
return false
}
// SetDeviceRenderOptions gets a reference to the given DeviceRenderOptions and assigns it to the DeviceRenderOptions field.
func (o *ThreeDS2RequestData) SetDeviceRenderOptions(v DeviceRenderOptions) {
o.DeviceRenderOptions = &v
}
// GetHomePhone returns the HomePhone field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetHomePhone() Phone {
if o == nil || common.IsNil(o.HomePhone) {
var ret Phone
return ret
}
return *o.HomePhone
}
// GetHomePhoneOk returns a tuple with the HomePhone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetHomePhoneOk() (*Phone, bool) {
if o == nil || common.IsNil(o.HomePhone) {
return nil, false
}
return o.HomePhone, true
}
// HasHomePhone returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasHomePhone() bool {
if o != nil && !common.IsNil(o.HomePhone) {
return true
}
return false
}
// SetHomePhone gets a reference to the given Phone and assigns it to the HomePhone field.
func (o *ThreeDS2RequestData) SetHomePhone(v Phone) {
o.HomePhone = &v
}
// GetMcc returns the Mcc field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetMcc() string {
if o == nil || common.IsNil(o.Mcc) {
var ret string
return ret
}
return *o.Mcc
}
// GetMccOk returns a tuple with the Mcc field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetMccOk() (*string, bool) {
if o == nil || common.IsNil(o.Mcc) {
return nil, false
}
return o.Mcc, true
}
// HasMcc returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasMcc() bool {
if o != nil && !common.IsNil(o.Mcc) {
return true
}
return false
}
// SetMcc gets a reference to the given string and assigns it to the Mcc field.
func (o *ThreeDS2RequestData) SetMcc(v string) {
o.Mcc = &v
}
// GetMerchantName returns the MerchantName field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetMerchantName() string {
if o == nil || common.IsNil(o.MerchantName) {
var ret string
return ret
}
return *o.MerchantName
}
// GetMerchantNameOk returns a tuple with the MerchantName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetMerchantNameOk() (*string, bool) {
if o == nil || common.IsNil(o.MerchantName) {
return nil, false
}
return o.MerchantName, true
}
// HasMerchantName returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasMerchantName() bool {
if o != nil && !common.IsNil(o.MerchantName) {
return true
}
return false
}
// SetMerchantName gets a reference to the given string and assigns it to the MerchantName field.
func (o *ThreeDS2RequestData) SetMerchantName(v string) {
o.MerchantName = &v
}
// GetMessageVersion returns the MessageVersion field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetMessageVersion() string {
if o == nil || common.IsNil(o.MessageVersion) {
var ret string
return ret
}
return *o.MessageVersion
}
// GetMessageVersionOk returns a tuple with the MessageVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetMessageVersionOk() (*string, bool) {
if o == nil || common.IsNil(o.MessageVersion) {
return nil, false
}
return o.MessageVersion, true
}
// HasMessageVersion returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasMessageVersion() bool {
if o != nil && !common.IsNil(o.MessageVersion) {
return true
}
return false
}
// SetMessageVersion gets a reference to the given string and assigns it to the MessageVersion field.
func (o *ThreeDS2RequestData) SetMessageVersion(v string) {
o.MessageVersion = &v
}
// GetMobilePhone returns the MobilePhone field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetMobilePhone() Phone {
if o == nil || common.IsNil(o.MobilePhone) {
var ret Phone
return ret
}
return *o.MobilePhone
}
// GetMobilePhoneOk returns a tuple with the MobilePhone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetMobilePhoneOk() (*Phone, bool) {
if o == nil || common.IsNil(o.MobilePhone) {
return nil, false
}
return o.MobilePhone, true
}
// HasMobilePhone returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasMobilePhone() bool {
if o != nil && !common.IsNil(o.MobilePhone) {
return true
}
return false
}
// SetMobilePhone gets a reference to the given Phone and assigns it to the MobilePhone field.
func (o *ThreeDS2RequestData) SetMobilePhone(v Phone) {
o.MobilePhone = &v
}
// GetNotificationURL returns the NotificationURL field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetNotificationURL() string {
if o == nil || common.IsNil(o.NotificationURL) {
var ret string
return ret
}
return *o.NotificationURL
}
// GetNotificationURLOk returns a tuple with the NotificationURL field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetNotificationURLOk() (*string, bool) {
if o == nil || common.IsNil(o.NotificationURL) {
return nil, false
}
return o.NotificationURL, true
}
// HasNotificationURL returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasNotificationURL() bool {
if o != nil && !common.IsNil(o.NotificationURL) {
return true
}
return false
}
// SetNotificationURL gets a reference to the given string and assigns it to the NotificationURL field.
func (o *ThreeDS2RequestData) SetNotificationURL(v string) {
o.NotificationURL = &v
}
// GetPayTokenInd returns the PayTokenInd field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetPayTokenInd() bool {
if o == nil || common.IsNil(o.PayTokenInd) {
var ret bool
return ret
}
return *o.PayTokenInd
}
// GetPayTokenIndOk returns a tuple with the PayTokenInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetPayTokenIndOk() (*bool, bool) {
if o == nil || common.IsNil(o.PayTokenInd) {
return nil, false
}
return o.PayTokenInd, true
}
// HasPayTokenInd returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasPayTokenInd() bool {
if o != nil && !common.IsNil(o.PayTokenInd) {
return true
}
return false
}
// SetPayTokenInd gets a reference to the given bool and assigns it to the PayTokenInd field.
func (o *ThreeDS2RequestData) SetPayTokenInd(v bool) {
o.PayTokenInd = &v
}
// GetPaymentAuthenticationUseCase returns the PaymentAuthenticationUseCase field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetPaymentAuthenticationUseCase() string {
if o == nil || common.IsNil(o.PaymentAuthenticationUseCase) {
var ret string
return ret
}
return *o.PaymentAuthenticationUseCase
}
// GetPaymentAuthenticationUseCaseOk returns a tuple with the PaymentAuthenticationUseCase field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetPaymentAuthenticationUseCaseOk() (*string, bool) {
if o == nil || common.IsNil(o.PaymentAuthenticationUseCase) {
return nil, false
}
return o.PaymentAuthenticationUseCase, true
}
// HasPaymentAuthenticationUseCase returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasPaymentAuthenticationUseCase() bool {
if o != nil && !common.IsNil(o.PaymentAuthenticationUseCase) {
return true
}
return false
}
// SetPaymentAuthenticationUseCase gets a reference to the given string and assigns it to the PaymentAuthenticationUseCase field.
func (o *ThreeDS2RequestData) SetPaymentAuthenticationUseCase(v string) {
o.PaymentAuthenticationUseCase = &v
}
// GetPurchaseInstalData returns the PurchaseInstalData field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetPurchaseInstalData() string {
if o == nil || common.IsNil(o.PurchaseInstalData) {
var ret string
return ret
}
return *o.PurchaseInstalData
}
// GetPurchaseInstalDataOk returns a tuple with the PurchaseInstalData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetPurchaseInstalDataOk() (*string, bool) {
if o == nil || common.IsNil(o.PurchaseInstalData) {
return nil, false
}
return o.PurchaseInstalData, true
}
// HasPurchaseInstalData returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasPurchaseInstalData() bool {
if o != nil && !common.IsNil(o.PurchaseInstalData) {
return true
}
return false
}
// SetPurchaseInstalData gets a reference to the given string and assigns it to the PurchaseInstalData field.
func (o *ThreeDS2RequestData) SetPurchaseInstalData(v string) {
o.PurchaseInstalData = &v
}
// GetRecurringExpiry returns the RecurringExpiry field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetRecurringExpiry() string {
if o == nil || common.IsNil(o.RecurringExpiry) {
var ret string
return ret
}
return *o.RecurringExpiry
}
// GetRecurringExpiryOk returns a tuple with the RecurringExpiry field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetRecurringExpiryOk() (*string, bool) {
if o == nil || common.IsNil(o.RecurringExpiry) {
return nil, false
}
return o.RecurringExpiry, true
}
// HasRecurringExpiry returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasRecurringExpiry() bool {
if o != nil && !common.IsNil(o.RecurringExpiry) {
return true
}
return false
}
// SetRecurringExpiry gets a reference to the given string and assigns it to the RecurringExpiry field.
func (o *ThreeDS2RequestData) SetRecurringExpiry(v string) {
o.RecurringExpiry = &v
}
// GetRecurringFrequency returns the RecurringFrequency field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetRecurringFrequency() string {
if o == nil || common.IsNil(o.RecurringFrequency) {
var ret string
return ret
}
return *o.RecurringFrequency
}
// GetRecurringFrequencyOk returns a tuple with the RecurringFrequency field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetRecurringFrequencyOk() (*string, bool) {
if o == nil || common.IsNil(o.RecurringFrequency) {
return nil, false
}
return o.RecurringFrequency, true
}
// HasRecurringFrequency returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasRecurringFrequency() bool {
if o != nil && !common.IsNil(o.RecurringFrequency) {
return true
}
return false
}
// SetRecurringFrequency gets a reference to the given string and assigns it to the RecurringFrequency field.
func (o *ThreeDS2RequestData) SetRecurringFrequency(v string) {
o.RecurringFrequency = &v
}
// GetSdkAppID returns the SdkAppID field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetSdkAppID() string {
if o == nil || common.IsNil(o.SdkAppID) {
var ret string
return ret
}
return *o.SdkAppID
}
// GetSdkAppIDOk returns a tuple with the SdkAppID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetSdkAppIDOk() (*string, bool) {
if o == nil || common.IsNil(o.SdkAppID) {
return nil, false
}
return o.SdkAppID, true
}
// HasSdkAppID returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasSdkAppID() bool {
if o != nil && !common.IsNil(o.SdkAppID) {
return true
}
return false
}
// SetSdkAppID gets a reference to the given string and assigns it to the SdkAppID field.
func (o *ThreeDS2RequestData) SetSdkAppID(v string) {
o.SdkAppID = &v
}
// GetSdkEncData returns the SdkEncData field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetSdkEncData() string {
if o == nil || common.IsNil(o.SdkEncData) {
var ret string
return ret
}
return *o.SdkEncData
}
// GetSdkEncDataOk returns a tuple with the SdkEncData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetSdkEncDataOk() (*string, bool) {
if o == nil || common.IsNil(o.SdkEncData) {
return nil, false
}
return o.SdkEncData, true
}
// HasSdkEncData returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasSdkEncData() bool {
if o != nil && !common.IsNil(o.SdkEncData) {
return true
}
return false
}
// SetSdkEncData gets a reference to the given string and assigns it to the SdkEncData field.
func (o *ThreeDS2RequestData) SetSdkEncData(v string) {
o.SdkEncData = &v
}
// GetSdkEphemPubKey returns the SdkEphemPubKey field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetSdkEphemPubKey() SDKEphemPubKey {
if o == nil || common.IsNil(o.SdkEphemPubKey) {
var ret SDKEphemPubKey
return ret
}
return *o.SdkEphemPubKey
}
// GetSdkEphemPubKeyOk returns a tuple with the SdkEphemPubKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetSdkEphemPubKeyOk() (*SDKEphemPubKey, bool) {
if o == nil || common.IsNil(o.SdkEphemPubKey) {
return nil, false
}
return o.SdkEphemPubKey, true
}
// HasSdkEphemPubKey returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasSdkEphemPubKey() bool {
if o != nil && !common.IsNil(o.SdkEphemPubKey) {
return true
}
return false
}
// SetSdkEphemPubKey gets a reference to the given SDKEphemPubKey and assigns it to the SdkEphemPubKey field.
func (o *ThreeDS2RequestData) SetSdkEphemPubKey(v SDKEphemPubKey) {
o.SdkEphemPubKey = &v
}
// GetSdkMaxTimeout returns the SdkMaxTimeout field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetSdkMaxTimeout() int32 {
if o == nil || common.IsNil(o.SdkMaxTimeout) {
var ret int32
return ret
}
return *o.SdkMaxTimeout
}
// GetSdkMaxTimeoutOk returns a tuple with the SdkMaxTimeout field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetSdkMaxTimeoutOk() (*int32, bool) {
if o == nil || common.IsNil(o.SdkMaxTimeout) {
return nil, false
}
return o.SdkMaxTimeout, true
}
// HasSdkMaxTimeout returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasSdkMaxTimeout() bool {
if o != nil && !common.IsNil(o.SdkMaxTimeout) {
return true
}
return false
}
// SetSdkMaxTimeout gets a reference to the given int32 and assigns it to the SdkMaxTimeout field.
func (o *ThreeDS2RequestData) SetSdkMaxTimeout(v int32) {
o.SdkMaxTimeout = &v
}
// GetSdkReferenceNumber returns the SdkReferenceNumber field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetSdkReferenceNumber() string {
if o == nil || common.IsNil(o.SdkReferenceNumber) {
var ret string
return ret
}
return *o.SdkReferenceNumber
}
// GetSdkReferenceNumberOk returns a tuple with the SdkReferenceNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetSdkReferenceNumberOk() (*string, bool) {
if o == nil || common.IsNil(o.SdkReferenceNumber) {
return nil, false
}
return o.SdkReferenceNumber, true
}
// HasSdkReferenceNumber returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasSdkReferenceNumber() bool {
if o != nil && !common.IsNil(o.SdkReferenceNumber) {
return true
}
return false
}
// SetSdkReferenceNumber gets a reference to the given string and assigns it to the SdkReferenceNumber field.
func (o *ThreeDS2RequestData) SetSdkReferenceNumber(v string) {
o.SdkReferenceNumber = &v
}
// GetSdkTransID returns the SdkTransID field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetSdkTransID() string {
if o == nil || common.IsNil(o.SdkTransID) {
var ret string
return ret
}
return *o.SdkTransID
}
// GetSdkTransIDOk returns a tuple with the SdkTransID field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetSdkTransIDOk() (*string, bool) {
if o == nil || common.IsNil(o.SdkTransID) {
return nil, false
}
return o.SdkTransID, true
}
// HasSdkTransID returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasSdkTransID() bool {
if o != nil && !common.IsNil(o.SdkTransID) {
return true
}
return false
}
// SetSdkTransID gets a reference to the given string and assigns it to the SdkTransID field.
func (o *ThreeDS2RequestData) SetSdkTransID(v string) {
o.SdkTransID = &v
}
// GetSdkVersion returns the SdkVersion field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetSdkVersion() string {
if o == nil || common.IsNil(o.SdkVersion) {
var ret string
return ret
}
return *o.SdkVersion
}
// GetSdkVersionOk returns a tuple with the SdkVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetSdkVersionOk() (*string, bool) {
if o == nil || common.IsNil(o.SdkVersion) {
return nil, false
}
return o.SdkVersion, true
}
// HasSdkVersion returns a boolean if a field has been set.
func (o *ThreeDS2RequestData) HasSdkVersion() bool {
if o != nil && !common.IsNil(o.SdkVersion) {
return true
}
return false
}
// SetSdkVersion gets a reference to the given string and assigns it to the SdkVersion field.
func (o *ThreeDS2RequestData) SetSdkVersion(v string) {
o.SdkVersion = &v
}
// GetThreeDSCompInd returns the ThreeDSCompInd field value if set, zero value otherwise.
func (o *ThreeDS2RequestData) GetThreeDSCompInd() string {
if o == nil || common.IsNil(o.ThreeDSCompInd) {
var ret string
return ret
}
return *o.ThreeDSCompInd
}
// GetThreeDSCompIndOk returns a tuple with the ThreeDSCompInd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ThreeDS2RequestData) GetThreeDSCompIndOk() (*string, bool) {
if o == nil || common.IsNil(o.ThreeDSCompInd) {
return nil, false
}
return o.ThreeDSCompInd, true
}