forked from Adyen/adyen-dotnet-api-library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAuthenticationInfo.cs
810 lines (716 loc) · 38.2 KB
/
AuthenticationInfo.cs
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
/*
* Authentication webhooks
*
*
* The version of the OpenAPI document: 1
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
using System;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Text.RegularExpressions;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
using System.ComponentModel.DataAnnotations;
using OpenAPIDateConverter = Adyen.ApiSerialization.OpenAPIDateConverter;
namespace Adyen.Model.AcsWebhooks
{
/// <summary>
/// AuthenticationInfo
/// </summary>
[DataContract(Name = "AuthenticationInfo")]
public partial class AuthenticationInfo : IEquatable<AuthenticationInfo>, IValidatableObject
{
/// <summary>
/// Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa)
/// </summary>
/// <value>Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) </value>
[JsonConverter(typeof(StringEnumConverter))]
public enum ChallengeIndicatorEnum
{
/// <summary>
/// Enum _01 for value: 01
/// </summary>
[EnumMember(Value = "01")]
_01 = 1,
/// <summary>
/// Enum _02 for value: 02
/// </summary>
[EnumMember(Value = "02")]
_02 = 2,
/// <summary>
/// Enum _03 for value: 03
/// </summary>
[EnumMember(Value = "03")]
_03 = 3,
/// <summary>
/// Enum _04 for value: 04
/// </summary>
[EnumMember(Value = "04")]
_04 = 4,
/// <summary>
/// Enum _05 for value: 05
/// </summary>
[EnumMember(Value = "05")]
_05 = 5,
/// <summary>
/// Enum _07 for value: 07
/// </summary>
[EnumMember(Value = "07")]
_07 = 6,
/// <summary>
/// Enum _08 for value: 08
/// </summary>
[EnumMember(Value = "08")]
_08 = 7,
/// <summary>
/// Enum _09 for value: 09
/// </summary>
[EnumMember(Value = "09")]
_09 = 8,
/// <summary>
/// Enum _80 for value: 80
/// </summary>
[EnumMember(Value = "80")]
_80 = 9,
/// <summary>
/// Enum _82 for value: 82
/// </summary>
[EnumMember(Value = "82")]
_82 = 10
}
/// <summary>
/// Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa)
/// </summary>
/// <value>Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) </value>
[DataMember(Name = "challengeIndicator", IsRequired = false, EmitDefaultValue = false)]
public ChallengeIndicatorEnum ChallengeIndicator { get; set; }
/// <summary>
/// Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available)
/// </summary>
/// <value>Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available)</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum DeviceChannelEnum
{
/// <summary>
/// Enum App for value: app
/// </summary>
[EnumMember(Value = "app")]
App = 1,
/// <summary>
/// Enum Browser for value: browser
/// </summary>
[EnumMember(Value = "browser")]
Browser = 2,
/// <summary>
/// Enum ThreeDSRequestorInitiated for value: ThreeDSRequestorInitiated
/// </summary>
[EnumMember(Value = "ThreeDSRequestorInitiated")]
ThreeDSRequestorInitiated = 3
}
/// <summary>
/// Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available)
/// </summary>
/// <value>Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available)</value>
[DataMember(Name = "deviceChannel", IsRequired = false, EmitDefaultValue = false)]
public DeviceChannelEnum DeviceChannel { get; set; }
/// <summary>
/// Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption**
/// </summary>
/// <value>Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** </value>
[JsonConverter(typeof(StringEnumConverter))]
public enum ExemptionIndicatorEnum
{
/// <summary>
/// Enum LowValue for value: lowValue
/// </summary>
[EnumMember(Value = "lowValue")]
LowValue = 1,
/// <summary>
/// Enum SecureCorporate for value: secureCorporate
/// </summary>
[EnumMember(Value = "secureCorporate")]
SecureCorporate = 2,
/// <summary>
/// Enum TrustedBeneficiary for value: trustedBeneficiary
/// </summary>
[EnumMember(Value = "trustedBeneficiary")]
TrustedBeneficiary = 3,
/// <summary>
/// Enum TransactionRiskAnalysis for value: transactionRiskAnalysis
/// </summary>
[EnumMember(Value = "transactionRiskAnalysis")]
TransactionRiskAnalysis = 4,
/// <summary>
/// Enum AcquirerExemption for value: acquirerExemption
/// </summary>
[EnumMember(Value = "acquirerExemption")]
AcquirerExemption = 5,
/// <summary>
/// Enum NoExemptionApplied for value: noExemptionApplied
/// </summary>
[EnumMember(Value = "noExemptionApplied")]
NoExemptionApplied = 6,
/// <summary>
/// Enum VisaDAFExemption for value: visaDAFExemption
/// </summary>
[EnumMember(Value = "visaDAFExemption")]
VisaDAFExemption = 7
}
/// <summary>
/// Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption**
/// </summary>
/// <value>Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** </value>
[DataMember(Name = "exemptionIndicator", EmitDefaultValue = false)]
public ExemptionIndicatorEnum? ExemptionIndicator { get; set; }
/// <summary>
/// Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment**
/// </summary>
/// <value>Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment**</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum MessageCategoryEnum
{
/// <summary>
/// Enum Payment for value: payment
/// </summary>
[EnumMember(Value = "payment")]
Payment = 1,
/// <summary>
/// Enum NonPayment for value: nonPayment
/// </summary>
[EnumMember(Value = "nonPayment")]
NonPayment = 2
}
/// <summary>
/// Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment**
/// </summary>
/// <value>Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment**</value>
[DataMember(Name = "messageCategory", IsRequired = false, EmitDefaultValue = false)]
public MessageCategoryEnum MessageCategory { get; set; }
/// <summary>
/// The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer.
/// </summary>
/// <value>The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. </value>
[JsonConverter(typeof(StringEnumConverter))]
public enum TransStatusEnum
{
/// <summary>
/// Enum Y for value: Y
/// </summary>
[EnumMember(Value = "Y")]
Y = 1,
/// <summary>
/// Enum N for value: N
/// </summary>
[EnumMember(Value = "N")]
N = 2,
/// <summary>
/// Enum R for value: R
/// </summary>
[EnumMember(Value = "R")]
R = 3,
/// <summary>
/// Enum I for value: I
/// </summary>
[EnumMember(Value = "I")]
I = 4,
/// <summary>
/// Enum U for value: U
/// </summary>
[EnumMember(Value = "U")]
U = 5
}
/// <summary>
/// The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer.
/// </summary>
/// <value>The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. </value>
[DataMember(Name = "transStatus", IsRequired = false, EmitDefaultValue = false)]
public TransStatusEnum TransStatus { get; set; }
/// <summary>
/// Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).
/// </summary>
/// <value>Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum TransStatusReasonEnum
{
/// <summary>
/// Enum _01 for value: 01
/// </summary>
[EnumMember(Value = "01")]
_01 = 1,
/// <summary>
/// Enum _02 for value: 02
/// </summary>
[EnumMember(Value = "02")]
_02 = 2,
/// <summary>
/// Enum _03 for value: 03
/// </summary>
[EnumMember(Value = "03")]
_03 = 3,
/// <summary>
/// Enum _04 for value: 04
/// </summary>
[EnumMember(Value = "04")]
_04 = 4,
/// <summary>
/// Enum _05 for value: 05
/// </summary>
[EnumMember(Value = "05")]
_05 = 5,
/// <summary>
/// Enum _06 for value: 06
/// </summary>
[EnumMember(Value = "06")]
_06 = 6,
/// <summary>
/// Enum _07 for value: 07
/// </summary>
[EnumMember(Value = "07")]
_07 = 7,
/// <summary>
/// Enum _08 for value: 08
/// </summary>
[EnumMember(Value = "08")]
_08 = 8,
/// <summary>
/// Enum _09 for value: 09
/// </summary>
[EnumMember(Value = "09")]
_09 = 9,
/// <summary>
/// Enum _10 for value: 10
/// </summary>
[EnumMember(Value = "10")]
_10 = 10,
/// <summary>
/// Enum _11 for value: 11
/// </summary>
[EnumMember(Value = "11")]
_11 = 11,
/// <summary>
/// Enum _12 for value: 12
/// </summary>
[EnumMember(Value = "12")]
_12 = 12,
/// <summary>
/// Enum _13 for value: 13
/// </summary>
[EnumMember(Value = "13")]
_13 = 13,
/// <summary>
/// Enum _14 for value: 14
/// </summary>
[EnumMember(Value = "14")]
_14 = 14,
/// <summary>
/// Enum _15 for value: 15
/// </summary>
[EnumMember(Value = "15")]
_15 = 15,
/// <summary>
/// Enum _16 for value: 16
/// </summary>
[EnumMember(Value = "16")]
_16 = 16,
/// <summary>
/// Enum _17 for value: 17
/// </summary>
[EnumMember(Value = "17")]
_17 = 17,
/// <summary>
/// Enum _18 for value: 18
/// </summary>
[EnumMember(Value = "18")]
_18 = 18,
/// <summary>
/// Enum _19 for value: 19
/// </summary>
[EnumMember(Value = "19")]
_19 = 19,
/// <summary>
/// Enum _20 for value: 20
/// </summary>
[EnumMember(Value = "20")]
_20 = 20,
/// <summary>
/// Enum _21 for value: 21
/// </summary>
[EnumMember(Value = "21")]
_21 = 21,
/// <summary>
/// Enum _22 for value: 22
/// </summary>
[EnumMember(Value = "22")]
_22 = 22,
/// <summary>
/// Enum _23 for value: 23
/// </summary>
[EnumMember(Value = "23")]
_23 = 23,
/// <summary>
/// Enum _24 for value: 24
/// </summary>
[EnumMember(Value = "24")]
_24 = 24,
/// <summary>
/// Enum _25 for value: 25
/// </summary>
[EnumMember(Value = "25")]
_25 = 25,
/// <summary>
/// Enum _26 for value: 26
/// </summary>
[EnumMember(Value = "26")]
_26 = 26,
/// <summary>
/// Enum _80 for value: 80
/// </summary>
[EnumMember(Value = "80")]
_80 = 27,
/// <summary>
/// Enum _81 for value: 81
/// </summary>
[EnumMember(Value = "81")]
_81 = 28,
/// <summary>
/// Enum _82 for value: 82
/// </summary>
[EnumMember(Value = "82")]
_82 = 29,
/// <summary>
/// Enum _83 for value: 83
/// </summary>
[EnumMember(Value = "83")]
_83 = 30,
/// <summary>
/// Enum _84 for value: 84
/// </summary>
[EnumMember(Value = "84")]
_84 = 31,
/// <summary>
/// Enum _85 for value: 85
/// </summary>
[EnumMember(Value = "85")]
_85 = 32,
/// <summary>
/// Enum _86 for value: 86
/// </summary>
[EnumMember(Value = "86")]
_86 = 33,
/// <summary>
/// Enum _87 for value: 87
/// </summary>
[EnumMember(Value = "87")]
_87 = 34,
/// <summary>
/// Enum _88 for value: 88
/// </summary>
[EnumMember(Value = "88")]
_88 = 35
}
/// <summary>
/// Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).
/// </summary>
/// <value>Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values).</value>
[DataMember(Name = "transStatusReason", EmitDefaultValue = false)]
public TransStatusReasonEnum? TransStatusReason { get; set; }
/// <summary>
/// The type of authentication performed. Possible values: * **frictionless** * **challenge**
/// </summary>
/// <value>The type of authentication performed. Possible values: * **frictionless** * **challenge**</value>
[JsonConverter(typeof(StringEnumConverter))]
public enum TypeEnum
{
/// <summary>
/// Enum Frictionless for value: frictionless
/// </summary>
[EnumMember(Value = "frictionless")]
Frictionless = 1,
/// <summary>
/// Enum Challenge for value: challenge
/// </summary>
[EnumMember(Value = "challenge")]
Challenge = 2
}
/// <summary>
/// The type of authentication performed. Possible values: * **frictionless** * **challenge**
/// </summary>
/// <value>The type of authentication performed. Possible values: * **frictionless** * **challenge**</value>
[DataMember(Name = "type", IsRequired = false, EmitDefaultValue = false)]
public TypeEnum Type { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticationInfo" /> class.
/// </summary>
[JsonConstructorAttribute]
protected AuthenticationInfo() { }
/// <summary>
/// Initializes a new instance of the <see cref="AuthenticationInfo" /> class.
/// </summary>
/// <param name="acsTransId">Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction. (required).</param>
/// <param name="challenge">challenge.</param>
/// <param name="challengeIndicator">Specifies a preference for receiving a challenge. Possible values: * **01**: No preference * **02**: No challenge requested * **03**: Challenge requested (preference) * **04**: Challenge requested (mandate) * **05**: No challenge requested (transactional risk analysis is already performed) * **07**: No challenge requested (SCA is already performed) * **08**: No challenge requested (trusted beneficiaries exemption of no challenge required) * **09**: Challenge requested (trusted beneficiaries prompt requested if challenge required) * **80**: No challenge requested (secure corporate payment with Mastercard) * **82**: No challenge requested (secure corporate payment with Visa) (required).</param>
/// <param name="createdAt">Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**. (required).</param>
/// <param name="deviceChannel">Indicates the type of channel interface being used to initiate the transaction. Possible values: * **app** * **browser** * **3DSRequestorInitiated** (initiated by a merchant when the cardholder is not available) (required).</param>
/// <param name="dsTransID">Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction. (required).</param>
/// <param name="exemptionIndicator">Indicates the exemption type that was applied to the authentication by the issuer, if exemption applied. Possible values: * **lowValue** * **secureCorporate** * **trustedBeneficiary** * **transactionRiskAnalysis** * **acquirerExemption** * **noExemptionApplied** * **visaDAFExemption** .</param>
/// <param name="inPSD2Scope">Indicates if the purchase was in the PSD2 scope. (required).</param>
/// <param name="messageCategory">Identifies the category of the message for a specific use case. Possible values: * **payment** * **nonPayment** (required).</param>
/// <param name="messageVersion">The `messageVersion` value as defined in the 3D Secure 2 specification. (required).</param>
/// <param name="riskScore">Risk score calculated from the transaction rules..</param>
/// <param name="threeDSServerTransID">The `threeDSServerTransID` value as defined in the 3D Secure 2 specification. (required).</param>
/// <param name="transStatus">The `transStatus` value as defined in the 3D Secure 2 specification. Possible values: * **Y**: Authentication / Account verification successful. * **N**: Not Authenticated / Account not verified. Transaction denied. * **U**: Authentication / Account verification could not be performed. * **I**: Informational Only / 3D Secure Requestor challenge preference acknowledged. * **R**: Authentication / Account verification rejected by the Issuer. (required).</param>
/// <param name="transStatusReason">Provides information on why the `transStatus` field has the specified value. For possible values, refer to [our docs](https://docs.adyen.com/online-payments/3d-secure/api-reference#possible-transstatusreason-values)..</param>
/// <param name="type">The type of authentication performed. Possible values: * **frictionless** * **challenge** (required).</param>
public AuthenticationInfo(string acsTransId = default(string), ChallengeInfo challenge = default(ChallengeInfo), ChallengeIndicatorEnum challengeIndicator = default(ChallengeIndicatorEnum), DateTime createdAt = default(DateTime), DeviceChannelEnum deviceChannel = default(DeviceChannelEnum), string dsTransID = default(string), ExemptionIndicatorEnum? exemptionIndicator = default(ExemptionIndicatorEnum?), bool? inPSD2Scope = default(bool?), MessageCategoryEnum messageCategory = default(MessageCategoryEnum), string messageVersion = default(string), int? riskScore = default(int?), string threeDSServerTransID = default(string), TransStatusEnum transStatus = default(TransStatusEnum), TransStatusReasonEnum? transStatusReason = default(TransStatusReasonEnum?), TypeEnum type = default(TypeEnum))
{
this.AcsTransId = acsTransId;
this.ChallengeIndicator = challengeIndicator;
this.CreatedAt = createdAt;
this.DeviceChannel = deviceChannel;
this.DsTransID = dsTransID;
this.InPSD2Scope = inPSD2Scope;
this.MessageCategory = messageCategory;
this.MessageVersion = messageVersion;
this.ThreeDSServerTransID = threeDSServerTransID;
this.TransStatus = transStatus;
this.Type = type;
this.Challenge = challenge;
this.ExemptionIndicator = exemptionIndicator;
this.RiskScore = riskScore;
this.TransStatusReason = transStatusReason;
}
/// <summary>
/// Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction.
/// </summary>
/// <value>Universally unique transaction identifier assigned by the Access Control Server (ACS) to identify a single transaction.</value>
[DataMember(Name = "acsTransId", IsRequired = false, EmitDefaultValue = false)]
public string AcsTransId { get; set; }
/// <summary>
/// Gets or Sets Challenge
/// </summary>
[DataMember(Name = "challenge", EmitDefaultValue = false)]
public ChallengeInfo Challenge { get; set; }
/// <summary>
/// Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.
/// </summary>
/// <value>Date and time in UTC of the cardholder authentication. [ISO 8601](https://www.w3.org/TR/NOTE-datetime) format: YYYY-MM-DDThh:mm:ss+TZD, for example, **2020-12-18T10:15:30+01:00**.</value>
[DataMember(Name = "createdAt", IsRequired = false, EmitDefaultValue = false)]
public DateTime CreatedAt { get; set; }
/// <summary>
/// Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction.
/// </summary>
/// <value>Universally unique transaction identifier assigned by the DS (card scheme) to identify a single transaction.</value>
[DataMember(Name = "dsTransID", IsRequired = false, EmitDefaultValue = false)]
public string DsTransID { get; set; }
/// <summary>
/// Indicates if the purchase was in the PSD2 scope.
/// </summary>
/// <value>Indicates if the purchase was in the PSD2 scope.</value>
[DataMember(Name = "inPSD2Scope", IsRequired = false, EmitDefaultValue = false)]
public bool? InPSD2Scope { get; set; }
/// <summary>
/// The `messageVersion` value as defined in the 3D Secure 2 specification.
/// </summary>
/// <value>The `messageVersion` value as defined in the 3D Secure 2 specification.</value>
[DataMember(Name = "messageVersion", IsRequired = false, EmitDefaultValue = false)]
public string MessageVersion { get; set; }
/// <summary>
/// Risk score calculated from the transaction rules.
/// </summary>
/// <value>Risk score calculated from the transaction rules.</value>
[DataMember(Name = "riskScore", EmitDefaultValue = false)]
public int? RiskScore { get; set; }
/// <summary>
/// The `threeDSServerTransID` value as defined in the 3D Secure 2 specification.
/// </summary>
/// <value>The `threeDSServerTransID` value as defined in the 3D Secure 2 specification.</value>
[DataMember(Name = "threeDSServerTransID", IsRequired = false, EmitDefaultValue = false)]
public string ThreeDSServerTransID { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append("class AuthenticationInfo {\n");
sb.Append(" AcsTransId: ").Append(AcsTransId).Append("\n");
sb.Append(" Challenge: ").Append(Challenge).Append("\n");
sb.Append(" ChallengeIndicator: ").Append(ChallengeIndicator).Append("\n");
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
sb.Append(" DeviceChannel: ").Append(DeviceChannel).Append("\n");
sb.Append(" DsTransID: ").Append(DsTransID).Append("\n");
sb.Append(" ExemptionIndicator: ").Append(ExemptionIndicator).Append("\n");
sb.Append(" InPSD2Scope: ").Append(InPSD2Scope).Append("\n");
sb.Append(" MessageCategory: ").Append(MessageCategory).Append("\n");
sb.Append(" MessageVersion: ").Append(MessageVersion).Append("\n");
sb.Append(" RiskScore: ").Append(RiskScore).Append("\n");
sb.Append(" ThreeDSServerTransID: ").Append(ThreeDSServerTransID).Append("\n");
sb.Append(" TransStatus: ").Append(TransStatus).Append("\n");
sb.Append(" TransStatusReason: ").Append(TransStatusReason).Append("\n");
sb.Append(" Type: ").Append(Type).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public virtual string ToJson()
{
return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as AuthenticationInfo);
}
/// <summary>
/// Returns true if AuthenticationInfo instances are equal
/// </summary>
/// <param name="input">Instance of AuthenticationInfo to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(AuthenticationInfo input)
{
if (input == null)
{
return false;
}
return
(
this.AcsTransId == input.AcsTransId ||
(this.AcsTransId != null &&
this.AcsTransId.Equals(input.AcsTransId))
) &&
(
this.Challenge == input.Challenge ||
(this.Challenge != null &&
this.Challenge.Equals(input.Challenge))
) &&
(
this.ChallengeIndicator == input.ChallengeIndicator ||
this.ChallengeIndicator.Equals(input.ChallengeIndicator)
) &&
(
this.CreatedAt == input.CreatedAt ||
(this.CreatedAt != null &&
this.CreatedAt.Equals(input.CreatedAt))
) &&
(
this.DeviceChannel == input.DeviceChannel ||
this.DeviceChannel.Equals(input.DeviceChannel)
) &&
(
this.DsTransID == input.DsTransID ||
(this.DsTransID != null &&
this.DsTransID.Equals(input.DsTransID))
) &&
(
this.ExemptionIndicator == input.ExemptionIndicator ||
this.ExemptionIndicator.Equals(input.ExemptionIndicator)
) &&
(
this.InPSD2Scope == input.InPSD2Scope ||
this.InPSD2Scope.Equals(input.InPSD2Scope)
) &&
(
this.MessageCategory == input.MessageCategory ||
this.MessageCategory.Equals(input.MessageCategory)
) &&
(
this.MessageVersion == input.MessageVersion ||
(this.MessageVersion != null &&
this.MessageVersion.Equals(input.MessageVersion))
) &&
(
this.RiskScore == input.RiskScore ||
this.RiskScore.Equals(input.RiskScore)
) &&
(
this.ThreeDSServerTransID == input.ThreeDSServerTransID ||
(this.ThreeDSServerTransID != null &&
this.ThreeDSServerTransID.Equals(input.ThreeDSServerTransID))
) &&
(
this.TransStatus == input.TransStatus ||
this.TransStatus.Equals(input.TransStatus)
) &&
(
this.TransStatusReason == input.TransStatusReason ||
this.TransStatusReason.Equals(input.TransStatusReason)
) &&
(
this.Type == input.Type ||
this.Type.Equals(input.Type)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AcsTransId != null)
{
hashCode = (hashCode * 59) + this.AcsTransId.GetHashCode();
}
if (this.Challenge != null)
{
hashCode = (hashCode * 59) + this.Challenge.GetHashCode();
}
hashCode = (hashCode * 59) + this.ChallengeIndicator.GetHashCode();
if (this.CreatedAt != null)
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
hashCode = (hashCode * 59) + this.DeviceChannel.GetHashCode();
if (this.DsTransID != null)
{
hashCode = (hashCode * 59) + this.DsTransID.GetHashCode();
}
hashCode = (hashCode * 59) + this.ExemptionIndicator.GetHashCode();
hashCode = (hashCode * 59) + this.InPSD2Scope.GetHashCode();
hashCode = (hashCode * 59) + this.MessageCategory.GetHashCode();
if (this.MessageVersion != null)
{
hashCode = (hashCode * 59) + this.MessageVersion.GetHashCode();
}
hashCode = (hashCode * 59) + this.RiskScore.GetHashCode();
if (this.ThreeDSServerTransID != null)
{
hashCode = (hashCode * 59) + this.ThreeDSServerTransID.GetHashCode();
}
hashCode = (hashCode * 59) + this.TransStatus.GetHashCode();
hashCode = (hashCode * 59) + this.TransStatusReason.GetHashCode();
hashCode = (hashCode * 59) + this.Type.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
public IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Validate(ValidationContext validationContext)
{
yield break;
}
}
}