Skip to content

Commit

Permalink
Merge pull request #191 from CyberSource/nov24-release
Browse files Browse the repository at this point in the history
Nov24 release
  • Loading branch information
gnongsie authored Dec 10, 2024
2 parents b6d5f91 + a396ad7 commit 2f6c205
Show file tree
Hide file tree
Showing 85 changed files with 4,731 additions and 525 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ public partial class CommerceSolutionsProductsTokenManagementConfigurationInform
/// Initializes a new instance of the <see cref="CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations" /> class.
/// </summary>
/// <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>
public CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations(string ParentProfileId = default(string))
/// <param name="Vault">Vault.</param>
public CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations(string ParentProfileId = default(string), CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault Vault = default(CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault))
{
this.ParentProfileId = ParentProfileId;
this.Vault = Vault;
}

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

/// <summary>
/// Gets or Sets Vault
/// </summary>
[DataMember(Name="vault", EmitDefaultValue=false)]
public CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault Vault { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
Expand All @@ -55,6 +63,7 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurations {\n");
sb.Append(" ParentProfileId: ").Append(ParentProfileId).Append("\n");
sb.Append(" Vault: ").Append(Vault).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
Expand Down Expand Up @@ -95,6 +104,11 @@ public bool Equals(CommerceSolutionsProductsTokenManagementConfigurationInformat
this.ParentProfileId == other.ParentProfileId ||
this.ParentProfileId != null &&
this.ParentProfileId.Equals(other.ParentProfileId)
) &&
(
this.Vault == other.Vault ||
this.Vault != null &&
this.Vault.Equals(other.Vault)
);
}

Expand All @@ -111,6 +125,8 @@ public override int GetHashCode()
// Suitable nullity checks etc, of course :)
if (this.ParentProfileId != null)
hash = hash * 59 + this.ParentProfileId.GetHashCode();
if (this.Vault != null)
hash = hash * 59 + this.Vault.GetHashCode();
return hash;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,226 @@
/*
* CyberSource Merged Spec
*
* All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
*
* OpenAPI spec version: 0.0.1
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/

using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = CyberSource.Client.SwaggerDateConverter;

namespace CyberSource.Model
{
/// <summary>
/// CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault
/// </summary>
[DataContract]
public partial class CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault : IEquatable<CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault" /> class.
/// </summary>
/// <param name="DefaultTokenType">Default token type to be used. Possible Values: - &#39;CUSTOMER&#39; - &#39;PAYMENT_INSTRUMENT&#39; - &#39;INSTRUMENT_IDENTIFIER&#39; .</param>
/// <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>
/// <param name="TokenFormats">TokenFormats.</param>
/// <param name="TokenPermissions">TokenPermissions.</param>
/// <param name="SensitivePrivileges">SensitivePrivileges.</param>
/// <param name="Nullify">Nullify.</param>
/// <param name="NetworkTokenServices">NetworkTokenServices.</param>
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))
{
this.DefaultTokenType = DefaultTokenType;
this.Location = Location;
this.TokenFormats = TokenFormats;
this.TokenPermissions = TokenPermissions;
this.SensitivePrivileges = SensitivePrivileges;
this.Nullify = Nullify;
this.NetworkTokenServices = NetworkTokenServices;
}

/// <summary>
/// Default token type to be used. Possible Values: - &#39;CUSTOMER&#39; - &#39;PAYMENT_INSTRUMENT&#39; - &#39;INSTRUMENT_IDENTIFIER&#39;
/// </summary>
/// <value>Default token type to be used. Possible Values: - &#39;CUSTOMER&#39; - &#39;PAYMENT_INSTRUMENT&#39; - &#39;INSTRUMENT_IDENTIFIER&#39; </value>
[DataMember(Name="defaultTokenType", EmitDefaultValue=false)]
public string DefaultTokenType { get; set; }

/// <summary>
/// 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;
/// </summary>
/// <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>
[DataMember(Name="location", EmitDefaultValue=false)]
public string Location { get; set; }

/// <summary>
/// Gets or Sets TokenFormats
/// </summary>
[DataMember(Name="tokenFormats", EmitDefaultValue=false)]
public TmsTokenFormats TokenFormats { get; set; }

/// <summary>
/// Gets or Sets TokenPermissions
/// </summary>
[DataMember(Name="tokenPermissions", EmitDefaultValue=false)]
public TokenPermissions TokenPermissions { get; set; }

/// <summary>
/// Gets or Sets SensitivePrivileges
/// </summary>
[DataMember(Name="sensitivePrivileges", EmitDefaultValue=false)]
public TmsSensitivePrivileges SensitivePrivileges { get; set; }

/// <summary>
/// Gets or Sets Nullify
/// </summary>
[DataMember(Name="nullify", EmitDefaultValue=false)]
public TmsNullify Nullify { get; set; }

/// <summary>
/// Gets or Sets NetworkTokenServices
/// </summary>
[DataMember(Name="networkTokenServices", EmitDefaultValue=false)]
public TmsNetworkTokenServices NetworkTokenServices { get; set; }

/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault {\n");
sb.Append(" DefaultTokenType: ").Append(DefaultTokenType).Append("\n");
sb.Append(" Location: ").Append(Location).Append("\n");
sb.Append(" TokenFormats: ").Append(TokenFormats).Append("\n");
sb.Append(" TokenPermissions: ").Append(TokenPermissions).Append("\n");
sb.Append(" SensitivePrivileges: ").Append(SensitivePrivileges).Append("\n");
sb.Append(" Nullify: ").Append(Nullify).Append("\n");
sb.Append(" NetworkTokenServices: ").Append(NetworkTokenServices).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 string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}

/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
// credit: http://stackoverflow.com/a/10454552/677735
return this.Equals(obj as CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault);
}

/// <summary>
/// Returns true if CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault instances are equal
/// </summary>
/// <param name="other">Instance of CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault other)
{
// credit: http://stackoverflow.com/a/10454552/677735
if (other == null)
return false;

return
(
this.DefaultTokenType == other.DefaultTokenType ||
this.DefaultTokenType != null &&
this.DefaultTokenType.Equals(other.DefaultTokenType)
) &&
(
this.Location == other.Location ||
this.Location != null &&
this.Location.Equals(other.Location)
) &&
(
this.TokenFormats == other.TokenFormats ||
this.TokenFormats != null &&
this.TokenFormats.Equals(other.TokenFormats)
) &&
(
this.TokenPermissions == other.TokenPermissions ||
this.TokenPermissions != null &&
this.TokenPermissions.Equals(other.TokenPermissions)
) &&
(
this.SensitivePrivileges == other.SensitivePrivileges ||
this.SensitivePrivileges != null &&
this.SensitivePrivileges.Equals(other.SensitivePrivileges)
) &&
(
this.Nullify == other.Nullify ||
this.Nullify != null &&
this.Nullify.Equals(other.Nullify)
) &&
(
this.NetworkTokenServices == other.NetworkTokenServices ||
this.NetworkTokenServices != null &&
this.NetworkTokenServices.Equals(other.NetworkTokenServices)
);
}

/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.DefaultTokenType != null)
hash = hash * 59 + this.DefaultTokenType.GetHashCode();
if (this.Location != null)
hash = hash * 59 + this.Location.GetHashCode();
if (this.TokenFormats != null)
hash = hash * 59 + this.TokenFormats.GetHashCode();
if (this.TokenPermissions != null)
hash = hash * 59 + this.TokenPermissions.GetHashCode();
if (this.SensitivePrivileges != null)
hash = hash * 59 + this.SensitivePrivileges.GetHashCode();
if (this.Nullify != null)
hash = hash * 59 + this.Nullify.GetHashCode();
if (this.NetworkTokenServices != null)
hash = hash * 59 + this.NetworkTokenServices.GetHashCode();
return hash;
}
}

/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}

}
38 changes: 27 additions & 11 deletions Model/ECheckConfigCommonInternalOnlyProcessors.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public partial class ECheckConfigCommonInternalOnlyProcessors : IEquatable<EChe
/// <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>
/// <param name="Enable15anTransactionReferenceNumber">*NEW* This ensures the transaction reference # contains an identifier that can be viewed in CYBS (default to true).</param>
/// <param name="PortalSupportedPaytypes">*NEW* This is used by the EBC2 application (default to &quot;CHECK&quot;).</param>
/// <param name="SettlementMethod">*NEW*.</param>
/// <param name="VerificationLevel">*NEW*.</param>
/// <param name="SettlementMethod">*NEW* Possible values: - BEST_GUESS (default to &quot;BEST_GUESS&quot;).</param>
/// <param name="VerificationLevel">*NEW* Possible values: - VALIDATION (default to &quot;VALIDATION&quot;).</param>
/// <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>
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)
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)
{
this.EnableCCS = EnableCCS;
this.TerminalId = TerminalId;
Expand All @@ -62,8 +62,24 @@ public partial class ECheckConfigCommonInternalOnlyProcessors : IEquatable<EChe
{
this.PortalSupportedPaytypes = PortalSupportedPaytypes;
}
this.SettlementMethod = SettlementMethod;
this.VerificationLevel = VerificationLevel;
// use default value if no "SettlementMethod" provided
if (SettlementMethod == null)
{
this.SettlementMethod = "BEST_GUESS";
}
else
{
this.SettlementMethod = SettlementMethod;
}
// use default value if no "VerificationLevel" provided
if (VerificationLevel == null)
{
this.VerificationLevel = "VALIDATION";
}
else
{
this.VerificationLevel = VerificationLevel;
}
// use default value if no "SetCompletedState" provided
if (SetCompletedState == null)
{
Expand Down Expand Up @@ -104,18 +120,18 @@ public partial class ECheckConfigCommonInternalOnlyProcessors : IEquatable<EChe
public string PortalSupportedPaytypes { get; set; }

/// <summary>
/// *NEW*
/// *NEW* Possible values: - BEST_GUESS
/// </summary>
/// <value>*NEW*</value>
/// <value>*NEW* Possible values: - BEST_GUESS</value>
[DataMember(Name="settlementMethod", EmitDefaultValue=false)]
public Object SettlementMethod { get; set; }
public string SettlementMethod { get; set; }

/// <summary>
/// *NEW*
/// *NEW* Possible values: - VALIDATION
/// </summary>
/// <value>*NEW*</value>
/// <value>*NEW* Possible values: - VALIDATION</value>
[DataMember(Name="verificationLevel", EmitDefaultValue=false)]
public Object VerificationLevel { get; set; }
public string VerificationLevel { get; set; }

/// <summary>
/// *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.
Expand Down
Loading

0 comments on commit 2f6c205

Please sign in to comment.