Skip to content

Commit 8e16aa3

Browse files
authored
Merge pull request #140 from CyberSource/oct-22-release
oct release
2 parents 90cfa64 + 88c1fd3 commit 8e16aa3

File tree

86 files changed

+9435
-105
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+9435
-105
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,3 +183,10 @@ $RECYCLE.BIN/
183183

184184
# Visual Studio 2014 CTP
185185
**/*.sln.ide
186+
187+
.swagger-codegen-ignore
188+
.swagger-codegen\VERSION
189+
.travis.yml
190+
build.bat
191+
git_push.sh
192+
mono_nunit_test.sh

Api/EMVTagDetailsApi.cs

Lines changed: 610 additions & 0 deletions
Large diffs are not rendered by default.

Api/TransientTokenDataApi.cs

Lines changed: 397 additions & 0 deletions
Large diffs are not rendered by default.

Api/UnifiedCheckoutCaptureContextApi.cs

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

Model/Body.cs

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
/*
2+
* CyberSource Merged Spec
3+
*
4+
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5+
*
6+
* OpenAPI spec version: 0.0.1
7+
*
8+
* Generated by: https://github.com/swagger-api/swagger-codegen.git
9+
*/
10+
11+
using System;
12+
using System.Linq;
13+
using System.IO;
14+
using System.Text;
15+
using System.Text.RegularExpressions;
16+
using System.Collections;
17+
using System.Collections.Generic;
18+
using System.Collections.ObjectModel;
19+
using System.Runtime.Serialization;
20+
using Newtonsoft.Json;
21+
using Newtonsoft.Json.Converters;
22+
using System.ComponentModel.DataAnnotations;
23+
using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter;
24+
25+
namespace CyberSource.Model
26+
{
27+
/// <summary>
28+
/// Body
29+
/// </summary>
30+
[DataContract]
31+
public partial class Body : IEquatable<Body>, IValidatableObject
32+
{
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="Body" /> class.
35+
/// </summary>
36+
[JsonConstructorAttribute]
37+
protected Body() { }
38+
/// <summary>
39+
/// Initializes a new instance of the <see cref="Body" /> class.
40+
/// </summary>
41+
/// <param name="Requestor">Identifies the service requesting parsing (required).</param>
42+
/// <param name="ParsedTagLimit">Number of tags to parse for each EMV tag string provided. .</param>
43+
/// <param name="EmvDetailsList">An array of objects, each containing a requestId and the corresponding emvRequestCombinedTags (required).</param>
44+
public Body(string Requestor = default(string), int? ParsedTagLimit = default(int?), List<Tssv2transactionsemvTagDetailsEmvDetailsList> EmvDetailsList = default(List<Tssv2transactionsemvTagDetailsEmvDetailsList>))
45+
{
46+
// to ensure "Requestor" is required (not null)
47+
if (Requestor == null)
48+
{
49+
throw new InvalidDataException("Requestor is a required property for Body and cannot be null");
50+
}
51+
else
52+
{
53+
this.Requestor = Requestor;
54+
}
55+
// to ensure "EmvDetailsList" is required (not null)
56+
if (EmvDetailsList == null)
57+
{
58+
throw new InvalidDataException("EmvDetailsList is a required property for Body and cannot be null");
59+
}
60+
else
61+
{
62+
this.EmvDetailsList = EmvDetailsList;
63+
}
64+
this.ParsedTagLimit = ParsedTagLimit;
65+
}
66+
67+
/// <summary>
68+
/// Identifies the service requesting parsing
69+
/// </summary>
70+
/// <value>Identifies the service requesting parsing </value>
71+
[DataMember(Name="requestor", EmitDefaultValue=false)]
72+
public string Requestor { get; set; }
73+
74+
/// <summary>
75+
/// Number of tags to parse for each EMV tag string provided.
76+
/// </summary>
77+
/// <value>Number of tags to parse for each EMV tag string provided. </value>
78+
[DataMember(Name="parsedTagLimit", EmitDefaultValue=false)]
79+
public int? ParsedTagLimit { get; set; }
80+
81+
/// <summary>
82+
/// An array of objects, each containing a requestId and the corresponding emvRequestCombinedTags
83+
/// </summary>
84+
/// <value>An array of objects, each containing a requestId and the corresponding emvRequestCombinedTags </value>
85+
[DataMember(Name="emvDetailsList", EmitDefaultValue=false)]
86+
public List<Tssv2transactionsemvTagDetailsEmvDetailsList> EmvDetailsList { get; set; }
87+
88+
/// <summary>
89+
/// Returns the string presentation of the object
90+
/// </summary>
91+
/// <returns>String presentation of the object</returns>
92+
public override string ToString()
93+
{
94+
var sb = new StringBuilder();
95+
sb.Append("class Body {\n");
96+
sb.Append(" Requestor: ").Append(Requestor).Append("\n");
97+
sb.Append(" ParsedTagLimit: ").Append(ParsedTagLimit).Append("\n");
98+
sb.Append(" EmvDetailsList: ").Append(EmvDetailsList).Append("\n");
99+
sb.Append("}\n");
100+
return sb.ToString();
101+
}
102+
103+
/// <summary>
104+
/// Returns the JSON string presentation of the object
105+
/// </summary>
106+
/// <returns>JSON string presentation of the object</returns>
107+
public string ToJson()
108+
{
109+
return JsonConvert.SerializeObject(this, Formatting.Indented);
110+
}
111+
112+
/// <summary>
113+
/// Returns true if objects are equal
114+
/// </summary>
115+
/// <param name="obj">Object to be compared</param>
116+
/// <returns>Boolean</returns>
117+
public override bool Equals(object obj)
118+
{
119+
// credit: http://stackoverflow.com/a/10454552/677735
120+
return this.Equals(obj as Body);
121+
}
122+
123+
/// <summary>
124+
/// Returns true if Body instances are equal
125+
/// </summary>
126+
/// <param name="other">Instance of Body to be compared</param>
127+
/// <returns>Boolean</returns>
128+
public bool Equals(Body other)
129+
{
130+
// credit: http://stackoverflow.com/a/10454552/677735
131+
if (other == null)
132+
return false;
133+
134+
return
135+
(
136+
this.Requestor == other.Requestor ||
137+
this.Requestor != null &&
138+
this.Requestor.Equals(other.Requestor)
139+
) &&
140+
(
141+
this.ParsedTagLimit == other.ParsedTagLimit ||
142+
this.ParsedTagLimit != null &&
143+
this.ParsedTagLimit.Equals(other.ParsedTagLimit)
144+
) &&
145+
(
146+
this.EmvDetailsList == other.EmvDetailsList ||
147+
this.EmvDetailsList != null &&
148+
this.EmvDetailsList.SequenceEqual(other.EmvDetailsList)
149+
);
150+
}
151+
152+
/// <summary>
153+
/// Gets the hash code
154+
/// </summary>
155+
/// <returns>Hash code</returns>
156+
public override int GetHashCode()
157+
{
158+
// credit: http://stackoverflow.com/a/263416/677735
159+
unchecked // Overflow is fine, just wrap
160+
{
161+
int hash = 41;
162+
// Suitable nullity checks etc, of course :)
163+
if (this.Requestor != null)
164+
hash = hash * 59 + this.Requestor.GetHashCode();
165+
if (this.ParsedTagLimit != null)
166+
hash = hash * 59 + this.ParsedTagLimit.GetHashCode();
167+
if (this.EmvDetailsList != null)
168+
hash = hash * 59 + this.EmvDetailsList.GetHashCode();
169+
return hash;
170+
}
171+
}
172+
173+
/// <summary>
174+
/// To validate all properties of the instance
175+
/// </summary>
176+
/// <param name="validationContext">Validation context</param>
177+
/// <returns>Validation Result</returns>
178+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
179+
{
180+
yield break;
181+
}
182+
}
183+
184+
}

0 commit comments

Comments
 (0)