Skip to content

Commit f991daf

Browse files
committed
nov24 release spec changes
1 parent b6d5f91 commit f991daf

File tree

83 files changed

+4712
-506
lines changed

Some content is hidden

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

83 files changed

+4712
-506
lines changed

Model/CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ public partial class CommerceSolutionsProductsTokenManagementConfigurationInform
3434
/// Initializes a new instance of the <see cref="CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations" /> class.
3535
/// </summary>
3636
/// <param name="ParentProfileId">Specify the Vault ID to which transacting MID needs to be assigned.Provide Vault ID as seen on EBC Vault management page. If not provided , transacting MID will be assigned to the existing default Vault at merchant&#39;s level. If there are no Vaults at merchant level , a new Vault will be created and transacting MID will be assigned to it..</param>
37-
public CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations(string ParentProfileId = default(string))
37+
/// <param name="Vault">Vault.</param>
38+
public CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations(string ParentProfileId = default(string), CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault Vault = default(CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault))
3839
{
3940
this.ParentProfileId = ParentProfileId;
41+
this.Vault = Vault;
4042
}
4143

4244
/// <summary>
@@ -46,6 +48,12 @@ public partial class CommerceSolutionsProductsTokenManagementConfigurationInform
4648
[DataMember(Name="parentProfileId", EmitDefaultValue=false)]
4749
public string ParentProfileId { get; set; }
4850

51+
/// <summary>
52+
/// Gets or Sets Vault
53+
/// </summary>
54+
[DataMember(Name="vault", EmitDefaultValue=false)]
55+
public CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault Vault { get; set; }
56+
4957
/// <summary>
5058
/// Returns the string presentation of the object
5159
/// </summary>
@@ -55,6 +63,7 @@ public override string ToString()
5563
var sb = new StringBuilder();
5664
sb.Append("class CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations {\n");
5765
sb.Append(" ParentProfileId: ").Append(ParentProfileId).Append("\n");
66+
sb.Append(" Vault: ").Append(Vault).Append("\n");
5867
sb.Append("}\n");
5968
return sb.ToString();
6069
}
@@ -95,6 +104,11 @@ public bool Equals(CommerceSolutionsProductsTokenManagementConfigurationInformat
95104
this.ParentProfileId == other.ParentProfileId ||
96105
this.ParentProfileId != null &&
97106
this.ParentProfileId.Equals(other.ParentProfileId)
107+
) &&
108+
(
109+
this.Vault == other.Vault ||
110+
this.Vault != null &&
111+
this.Vault.Equals(other.Vault)
98112
);
99113
}
100114

@@ -111,6 +125,8 @@ public override int GetHashCode()
111125
// Suitable nullity checks etc, of course :)
112126
if (this.ParentProfileId != null)
113127
hash = hash * 59 + this.ParentProfileId.GetHashCode();
128+
if (this.Vault != null)
129+
hash = hash * 59 + this.Vault.GetHashCode();
114130
return hash;
115131
}
116132
}
Lines changed: 226 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,226 @@
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+
/// CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault
29+
/// </summary>
30+
[DataContract]
31+
public partial class CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault : IEquatable<CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault>, IValidatableObject
32+
{
33+
/// <summary>
34+
/// Initializes a new instance of the <see cref="CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault" /> class.
35+
/// </summary>
36+
/// <param name="DefaultTokenType">Default token type to be used. Possible Values: - &#39;CUSTOMER&#39; - &#39;PAYMENT_INSTRUMENT&#39; - &#39;INSTRUMENT_IDENTIFIER&#39; .</param>
37+
/// <param name="Location">Location where the vault will be stored. Use &#39;IDC&#39; (the Indian Data Centre) when merchant is storing token data in India or &#39;GDC&#39; (the Global Data Centre) for all other cases. Possible Values: - &#39;IDC&#39; - &#39;GDC&#39; .</param>
38+
/// <param name="TokenFormats">TokenFormats.</param>
39+
/// <param name="TokenPermissions">TokenPermissions.</param>
40+
/// <param name="SensitivePrivileges">SensitivePrivileges.</param>
41+
/// <param name="Nullify">Nullify.</param>
42+
/// <param name="NetworkTokenServices">NetworkTokenServices.</param>
43+
public CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault(string DefaultTokenType = default(string), string Location = default(string), TmsTokenFormats TokenFormats = default(TmsTokenFormats), TokenPermissions TokenPermissions = default(TokenPermissions), TmsSensitivePrivileges SensitivePrivileges = default(TmsSensitivePrivileges), TmsNullify Nullify = default(TmsNullify), TmsNetworkTokenServices NetworkTokenServices = default(TmsNetworkTokenServices))
44+
{
45+
this.DefaultTokenType = DefaultTokenType;
46+
this.Location = Location;
47+
this.TokenFormats = TokenFormats;
48+
this.TokenPermissions = TokenPermissions;
49+
this.SensitivePrivileges = SensitivePrivileges;
50+
this.Nullify = Nullify;
51+
this.NetworkTokenServices = NetworkTokenServices;
52+
}
53+
54+
/// <summary>
55+
/// Default token type to be used. Possible Values: - &#39;CUSTOMER&#39; - &#39;PAYMENT_INSTRUMENT&#39; - &#39;INSTRUMENT_IDENTIFIER&#39;
56+
/// </summary>
57+
/// <value>Default token type to be used. Possible Values: - &#39;CUSTOMER&#39; - &#39;PAYMENT_INSTRUMENT&#39; - &#39;INSTRUMENT_IDENTIFIER&#39; </value>
58+
[DataMember(Name="defaultTokenType", EmitDefaultValue=false)]
59+
public string DefaultTokenType { get; set; }
60+
61+
/// <summary>
62+
/// Location where the vault will be stored. Use &#39;IDC&#39; (the Indian Data Centre) when merchant is storing token data in India or &#39;GDC&#39; (the Global Data Centre) for all other cases. Possible Values: - &#39;IDC&#39; - &#39;GDC&#39;
63+
/// </summary>
64+
/// <value>Location where the vault will be stored. Use &#39;IDC&#39; (the Indian Data Centre) when merchant is storing token data in India or &#39;GDC&#39; (the Global Data Centre) for all other cases. Possible Values: - &#39;IDC&#39; - &#39;GDC&#39; </value>
65+
[DataMember(Name="location", EmitDefaultValue=false)]
66+
public string Location { get; set; }
67+
68+
/// <summary>
69+
/// Gets or Sets TokenFormats
70+
/// </summary>
71+
[DataMember(Name="tokenFormats", EmitDefaultValue=false)]
72+
public TmsTokenFormats TokenFormats { get; set; }
73+
74+
/// <summary>
75+
/// Gets or Sets TokenPermissions
76+
/// </summary>
77+
[DataMember(Name="tokenPermissions", EmitDefaultValue=false)]
78+
public TokenPermissions TokenPermissions { get; set; }
79+
80+
/// <summary>
81+
/// Gets or Sets SensitivePrivileges
82+
/// </summary>
83+
[DataMember(Name="sensitivePrivileges", EmitDefaultValue=false)]
84+
public TmsSensitivePrivileges SensitivePrivileges { get; set; }
85+
86+
/// <summary>
87+
/// Gets or Sets Nullify
88+
/// </summary>
89+
[DataMember(Name="nullify", EmitDefaultValue=false)]
90+
public TmsNullify Nullify { get; set; }
91+
92+
/// <summary>
93+
/// Gets or Sets NetworkTokenServices
94+
/// </summary>
95+
[DataMember(Name="networkTokenServices", EmitDefaultValue=false)]
96+
public TmsNetworkTokenServices NetworkTokenServices { get; set; }
97+
98+
/// <summary>
99+
/// Returns the string presentation of the object
100+
/// </summary>
101+
/// <returns>String presentation of the object</returns>
102+
public override string ToString()
103+
{
104+
var sb = new StringBuilder();
105+
sb.Append("class CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault {\n");
106+
sb.Append(" DefaultTokenType: ").Append(DefaultTokenType).Append("\n");
107+
sb.Append(" Location: ").Append(Location).Append("\n");
108+
sb.Append(" TokenFormats: ").Append(TokenFormats).Append("\n");
109+
sb.Append(" TokenPermissions: ").Append(TokenPermissions).Append("\n");
110+
sb.Append(" SensitivePrivileges: ").Append(SensitivePrivileges).Append("\n");
111+
sb.Append(" Nullify: ").Append(Nullify).Append("\n");
112+
sb.Append(" NetworkTokenServices: ").Append(NetworkTokenServices).Append("\n");
113+
sb.Append("}\n");
114+
return sb.ToString();
115+
}
116+
117+
/// <summary>
118+
/// Returns the JSON string presentation of the object
119+
/// </summary>
120+
/// <returns>JSON string presentation of the object</returns>
121+
public string ToJson()
122+
{
123+
return JsonConvert.SerializeObject(this, Formatting.Indented);
124+
}
125+
126+
/// <summary>
127+
/// Returns true if objects are equal
128+
/// </summary>
129+
/// <param name="obj">Object to be compared</param>
130+
/// <returns>Boolean</returns>
131+
public override bool Equals(object obj)
132+
{
133+
// credit: http://stackoverflow.com/a/10454552/677735
134+
return this.Equals(obj as CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault);
135+
}
136+
137+
/// <summary>
138+
/// Returns true if CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault instances are equal
139+
/// </summary>
140+
/// <param name="other">Instance of CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault to be compared</param>
141+
/// <returns>Boolean</returns>
142+
public bool Equals(CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault other)
143+
{
144+
// credit: http://stackoverflow.com/a/10454552/677735
145+
if (other == null)
146+
return false;
147+
148+
return
149+
(
150+
this.DefaultTokenType == other.DefaultTokenType ||
151+
this.DefaultTokenType != null &&
152+
this.DefaultTokenType.Equals(other.DefaultTokenType)
153+
) &&
154+
(
155+
this.Location == other.Location ||
156+
this.Location != null &&
157+
this.Location.Equals(other.Location)
158+
) &&
159+
(
160+
this.TokenFormats == other.TokenFormats ||
161+
this.TokenFormats != null &&
162+
this.TokenFormats.Equals(other.TokenFormats)
163+
) &&
164+
(
165+
this.TokenPermissions == other.TokenPermissions ||
166+
this.TokenPermissions != null &&
167+
this.TokenPermissions.Equals(other.TokenPermissions)
168+
) &&
169+
(
170+
this.SensitivePrivileges == other.SensitivePrivileges ||
171+
this.SensitivePrivileges != null &&
172+
this.SensitivePrivileges.Equals(other.SensitivePrivileges)
173+
) &&
174+
(
175+
this.Nullify == other.Nullify ||
176+
this.Nullify != null &&
177+
this.Nullify.Equals(other.Nullify)
178+
) &&
179+
(
180+
this.NetworkTokenServices == other.NetworkTokenServices ||
181+
this.NetworkTokenServices != null &&
182+
this.NetworkTokenServices.Equals(other.NetworkTokenServices)
183+
);
184+
}
185+
186+
/// <summary>
187+
/// Gets the hash code
188+
/// </summary>
189+
/// <returns>Hash code</returns>
190+
public override int GetHashCode()
191+
{
192+
// credit: http://stackoverflow.com/a/263416/677735
193+
unchecked // Overflow is fine, just wrap
194+
{
195+
int hash = 41;
196+
// Suitable nullity checks etc, of course :)
197+
if (this.DefaultTokenType != null)
198+
hash = hash * 59 + this.DefaultTokenType.GetHashCode();
199+
if (this.Location != null)
200+
hash = hash * 59 + this.Location.GetHashCode();
201+
if (this.TokenFormats != null)
202+
hash = hash * 59 + this.TokenFormats.GetHashCode();
203+
if (this.TokenPermissions != null)
204+
hash = hash * 59 + this.TokenPermissions.GetHashCode();
205+
if (this.SensitivePrivileges != null)
206+
hash = hash * 59 + this.SensitivePrivileges.GetHashCode();
207+
if (this.Nullify != null)
208+
hash = hash * 59 + this.Nullify.GetHashCode();
209+
if (this.NetworkTokenServices != null)
210+
hash = hash * 59 + this.NetworkTokenServices.GetHashCode();
211+
return hash;
212+
}
213+
}
214+
215+
/// <summary>
216+
/// To validate all properties of the instance
217+
/// </summary>
218+
/// <param name="validationContext">Validation context</param>
219+
/// <returns>Validation Result</returns>
220+
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
221+
{
222+
yield break;
223+
}
224+
}
225+
226+
}

Model/ECheckConfigCommonInternalOnlyProcessors.cs

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ public partial class ECheckConfigCommonInternalOnlyProcessors : IEquatable<EChe
3737
/// <param name="TerminalId">*NEW* The &#39;Terminal Id&#39; aka TID, is an identifier used for with your payments processor. Depending on the processor and payment acceptance type this may also be the default Terminal ID used for Card Present and Virtual Terminal transactions. Applicable for VPC processors. .</param>
3838
/// <param name="Enable15anTransactionReferenceNumber">*NEW* This ensures the transaction reference # contains an identifier that can be viewed in CYBS (default to true).</param>
3939
/// <param name="PortalSupportedPaytypes">*NEW* This is used by the EBC2 application (default to &quot;CHECK&quot;).</param>
40-
/// <param name="SettlementMethod">*NEW*.</param>
41-
/// <param name="VerificationLevel">*NEW*.</param>
40+
/// <param name="SettlementMethod">*NEW* Possible values: - BEST_GUESS (default to &quot;BEST_GUESS&quot;).</param>
41+
/// <param name="VerificationLevel">*NEW* Possible values: - VALIDATION (default to &quot;VALIDATION&quot;).</param>
4242
/// <param name="SetCompletedState">*Moved* When set to Yes we will automatically update transactions to a completed status X-number of days after the transaction comes through; if no failure notification is received. When set to No means we will not update transaction status in this manner. For BAMS/Bank of America merchants, they should be set to No unless we are explicitly asked to set a merchant to YES. (default to false).</param>
43-
public ECheckConfigCommonInternalOnlyProcessors(bool? EnableCCS = default(bool?), string TerminalId = default(string), bool? Enable15anTransactionReferenceNumber = true, string PortalSupportedPaytypes = "CHECK", Object SettlementMethod = default(Object), Object VerificationLevel = default(Object), bool? SetCompletedState = false)
43+
public ECheckConfigCommonInternalOnlyProcessors(bool? EnableCCS = default(bool?), string TerminalId = default(string), bool? Enable15anTransactionReferenceNumber = true, string PortalSupportedPaytypes = "CHECK", string SettlementMethod = "BEST_GUESS", string VerificationLevel = "VALIDATION", bool? SetCompletedState = false)
4444
{
4545
this.EnableCCS = EnableCCS;
4646
this.TerminalId = TerminalId;
@@ -62,8 +62,24 @@ public partial class ECheckConfigCommonInternalOnlyProcessors : IEquatable<EChe
6262
{
6363
this.PortalSupportedPaytypes = PortalSupportedPaytypes;
6464
}
65-
this.SettlementMethod = SettlementMethod;
66-
this.VerificationLevel = VerificationLevel;
65+
// use default value if no "SettlementMethod" provided
66+
if (SettlementMethod == null)
67+
{
68+
this.SettlementMethod = "BEST_GUESS";
69+
}
70+
else
71+
{
72+
this.SettlementMethod = SettlementMethod;
73+
}
74+
// use default value if no "VerificationLevel" provided
75+
if (VerificationLevel == null)
76+
{
77+
this.VerificationLevel = "VALIDATION";
78+
}
79+
else
80+
{
81+
this.VerificationLevel = VerificationLevel;
82+
}
6783
// use default value if no "SetCompletedState" provided
6884
if (SetCompletedState == null)
6985
{
@@ -104,18 +120,18 @@ public partial class ECheckConfigCommonInternalOnlyProcessors : IEquatable<EChe
104120
public string PortalSupportedPaytypes { get; set; }
105121

106122
/// <summary>
107-
/// *NEW*
123+
/// *NEW* Possible values: - BEST_GUESS
108124
/// </summary>
109-
/// <value>*NEW*</value>
125+
/// <value>*NEW* Possible values: - BEST_GUESS</value>
110126
[DataMember(Name="settlementMethod", EmitDefaultValue=false)]
111-
public Object SettlementMethod { get; set; }
127+
public string SettlementMethod { get; set; }
112128

113129
/// <summary>
114-
/// *NEW*
130+
/// *NEW* Possible values: - VALIDATION
115131
/// </summary>
116-
/// <value>*NEW*</value>
132+
/// <value>*NEW* Possible values: - VALIDATION</value>
117133
[DataMember(Name="verificationLevel", EmitDefaultValue=false)]
118-
public Object VerificationLevel { get; set; }
134+
public string VerificationLevel { get; set; }
119135

120136
/// <summary>
121137
/// *Moved* When set to Yes we will automatically update transactions to a completed status X-number of days after the transaction comes through; if no failure notification is received. When set to No means we will not update transaction status in this manner. For BAMS/Bank of America merchants, they should be set to No unless we are explicitly asked to set a merchant to YES.

0 commit comments

Comments
 (0)