-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #191 from CyberSource/nov24-release
Nov24 release
- Loading branch information
Showing
85 changed files
with
4,731 additions
and
525 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
226 changes: 226 additions & 0 deletions
226
Model/CommerceSolutionsProductsTokenManagementConfigurationInformationConfigurationsVault.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: - 'CUSTOMER' - 'PAYMENT_INSTRUMENT' - 'INSTRUMENT_IDENTIFIER' .</param> | ||
/// <param name="Location">Location where the vault will be stored. Use 'IDC' (the Indian Data Centre) when merchant is storing token data in India or 'GDC' (the Global Data Centre) for all other cases. Possible Values: - 'IDC' - 'GDC' .</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: - 'CUSTOMER' - 'PAYMENT_INSTRUMENT' - 'INSTRUMENT_IDENTIFIER' | ||
/// </summary> | ||
/// <value>Default token type to be used. Possible Values: - 'CUSTOMER' - 'PAYMENT_INSTRUMENT' - 'INSTRUMENT_IDENTIFIER' </value> | ||
[DataMember(Name="defaultTokenType", EmitDefaultValue=false)] | ||
public string DefaultTokenType { get; set; } | ||
|
||
/// <summary> | ||
/// Location where the vault will be stored. Use 'IDC' (the Indian Data Centre) when merchant is storing token data in India or 'GDC' (the Global Data Centre) for all other cases. Possible Values: - 'IDC' - 'GDC' | ||
/// </summary> | ||
/// <value>Location where the vault will be stored. Use 'IDC' (the Indian Data Centre) when merchant is storing token data in India or 'GDC' (the Global Data Centre) for all other cases. Possible Values: - 'IDC' - 'GDC' </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; | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.