-
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 #97 from CyberSource/dec2020
December 2020 Release
- Loading branch information
Showing
18 changed files
with
2,086 additions
and
58 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,304 @@ | ||
/* | ||
* 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> | ||
/// PostInstrumentIdentifierEnrollmentRequest | ||
/// </summary> | ||
[DataContract] | ||
public partial class PostInstrumentIdentifierEnrollmentRequest : IEquatable<PostInstrumentIdentifierEnrollmentRequest>, IValidatableObject | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PostInstrumentIdentifierEnrollmentRequest" /> class. | ||
/// </summary> | ||
/// <param name="Links">Links.</param> | ||
/// <param name="Id">The id of the Instrument Identifier Token. .</param> | ||
/// <param name="Type">The type of Instrument Identifier. Valid values: - enrollable card .</param> | ||
/// <param name="Card">Card.</param> | ||
/// <param name="BankAccount">BankAccount.</param> | ||
/// <param name="TokenizedCard">TokenizedCard.</param> | ||
/// <param name="Issuer">Issuer.</param> | ||
/// <param name="ProcessingInformation">ProcessingInformation.</param> | ||
/// <param name="BillTo">BillTo.</param> | ||
/// <param name="Metadata">Metadata.</param> | ||
public PostInstrumentIdentifierEnrollmentRequest(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinks Links = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinks), string Id = default(string), string Type = default(string), Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard Card = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard), Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount BankAccount = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount), Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard TokenizedCard = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard), Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer Issuer = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer), Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformation ProcessingInformation = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformation), Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo BillTo = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo), Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierMetadata Metadata = default(Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierMetadata)) | ||
{ | ||
this.Links = Links; | ||
this.Id = Id; | ||
this.Type = Type; | ||
this.Card = Card; | ||
this.BankAccount = BankAccount; | ||
this.TokenizedCard = TokenizedCard; | ||
this.Issuer = Issuer; | ||
this.ProcessingInformation = ProcessingInformation; | ||
this.BillTo = BillTo; | ||
this.Metadata = Metadata; | ||
} | ||
|
||
/// <summary> | ||
/// Gets or Sets Links | ||
/// </summary> | ||
[DataMember(Name="_links", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierLinks Links { get; set; } | ||
|
||
/// <summary> | ||
/// The id of the Instrument Identifier Token. | ||
/// </summary> | ||
/// <value>The id of the Instrument Identifier Token. </value> | ||
[DataMember(Name="id", EmitDefaultValue=false)] | ||
public string Id { get; set; } | ||
|
||
/// <summary> | ||
/// The type of token. Valid values: - instrumentIdentifier | ||
/// </summary> | ||
/// <value>The type of token. Valid values: - instrumentIdentifier </value> | ||
[DataMember(Name="object", EmitDefaultValue=false)] | ||
public string _Object { get; private set; } | ||
|
||
/// <summary> | ||
/// Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed. | ||
/// </summary> | ||
/// <value>Issuers state for the card number. Valid values: - ACTIVE - CLOSED : The account has been closed. </value> | ||
[DataMember(Name="state", EmitDefaultValue=false)] | ||
public string State { get; private set; } | ||
|
||
/// <summary> | ||
/// The type of Instrument Identifier. Valid values: - enrollable card | ||
/// </summary> | ||
/// <value>The type of Instrument Identifier. Valid values: - enrollable card </value> | ||
[DataMember(Name="type", EmitDefaultValue=false)] | ||
public string Type { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets Card | ||
/// </summary> | ||
[DataMember(Name="card", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierCard Card { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets BankAccount | ||
/// </summary> | ||
[DataMember(Name="bankAccount", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBankAccount BankAccount { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets TokenizedCard | ||
/// </summary> | ||
[DataMember(Name="tokenizedCard", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierTokenizedCard TokenizedCard { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets Issuer | ||
/// </summary> | ||
[DataMember(Name="issuer", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierIssuer Issuer { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets ProcessingInformation | ||
/// </summary> | ||
[DataMember(Name="processingInformation", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierProcessingInformation ProcessingInformation { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets BillTo | ||
/// </summary> | ||
[DataMember(Name="billTo", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierBillTo BillTo { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or Sets Metadata | ||
/// </summary> | ||
[DataMember(Name="metadata", EmitDefaultValue=false)] | ||
public Tmsv2customersEmbeddedDefaultPaymentInstrumentEmbeddedInstrumentIdentifierMetadata Metadata { 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 PostInstrumentIdentifierEnrollmentRequest {\n"); | ||
sb.Append(" Links: ").Append(Links).Append("\n"); | ||
sb.Append(" Id: ").Append(Id).Append("\n"); | ||
sb.Append(" _Object: ").Append(_Object).Append("\n"); | ||
sb.Append(" State: ").Append(State).Append("\n"); | ||
sb.Append(" Type: ").Append(Type).Append("\n"); | ||
sb.Append(" Card: ").Append(Card).Append("\n"); | ||
sb.Append(" BankAccount: ").Append(BankAccount).Append("\n"); | ||
sb.Append(" TokenizedCard: ").Append(TokenizedCard).Append("\n"); | ||
sb.Append(" Issuer: ").Append(Issuer).Append("\n"); | ||
sb.Append(" ProcessingInformation: ").Append(ProcessingInformation).Append("\n"); | ||
sb.Append(" BillTo: ").Append(BillTo).Append("\n"); | ||
sb.Append(" Metadata: ").Append(Metadata).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 PostInstrumentIdentifierEnrollmentRequest); | ||
} | ||
|
||
/// <summary> | ||
/// Returns true if PostInstrumentIdentifierEnrollmentRequest instances are equal | ||
/// </summary> | ||
/// <param name="other">Instance of PostInstrumentIdentifierEnrollmentRequest to be compared</param> | ||
/// <returns>Boolean</returns> | ||
public bool Equals(PostInstrumentIdentifierEnrollmentRequest other) | ||
{ | ||
// credit: http://stackoverflow.com/a/10454552/677735 | ||
if (other == null) | ||
return false; | ||
|
||
return | ||
( | ||
this.Links == other.Links || | ||
this.Links != null && | ||
this.Links.Equals(other.Links) | ||
) && | ||
( | ||
this.Id == other.Id || | ||
this.Id != null && | ||
this.Id.Equals(other.Id) | ||
) && | ||
( | ||
this._Object == other._Object || | ||
this._Object != null && | ||
this._Object.Equals(other._Object) | ||
) && | ||
( | ||
this.State == other.State || | ||
this.State != null && | ||
this.State.Equals(other.State) | ||
) && | ||
( | ||
this.Type == other.Type || | ||
this.Type != null && | ||
this.Type.Equals(other.Type) | ||
) && | ||
( | ||
this.Card == other.Card || | ||
this.Card != null && | ||
this.Card.Equals(other.Card) | ||
) && | ||
( | ||
this.BankAccount == other.BankAccount || | ||
this.BankAccount != null && | ||
this.BankAccount.Equals(other.BankAccount) | ||
) && | ||
( | ||
this.TokenizedCard == other.TokenizedCard || | ||
this.TokenizedCard != null && | ||
this.TokenizedCard.Equals(other.TokenizedCard) | ||
) && | ||
( | ||
this.Issuer == other.Issuer || | ||
this.Issuer != null && | ||
this.Issuer.Equals(other.Issuer) | ||
) && | ||
( | ||
this.ProcessingInformation == other.ProcessingInformation || | ||
this.ProcessingInformation != null && | ||
this.ProcessingInformation.Equals(other.ProcessingInformation) | ||
) && | ||
( | ||
this.BillTo == other.BillTo || | ||
this.BillTo != null && | ||
this.BillTo.Equals(other.BillTo) | ||
) && | ||
( | ||
this.Metadata == other.Metadata || | ||
this.Metadata != null && | ||
this.Metadata.Equals(other.Metadata) | ||
); | ||
} | ||
|
||
/// <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.Links != null) | ||
hash = hash * 59 + this.Links.GetHashCode(); | ||
if (this.Id != null) | ||
hash = hash * 59 + this.Id.GetHashCode(); | ||
if (this._Object != null) | ||
hash = hash * 59 + this._Object.GetHashCode(); | ||
if (this.State != null) | ||
hash = hash * 59 + this.State.GetHashCode(); | ||
if (this.Type != null) | ||
hash = hash * 59 + this.Type.GetHashCode(); | ||
if (this.Card != null) | ||
hash = hash * 59 + this.Card.GetHashCode(); | ||
if (this.BankAccount != null) | ||
hash = hash * 59 + this.BankAccount.GetHashCode(); | ||
if (this.TokenizedCard != null) | ||
hash = hash * 59 + this.TokenizedCard.GetHashCode(); | ||
if (this.Issuer != null) | ||
hash = hash * 59 + this.Issuer.GetHashCode(); | ||
if (this.ProcessingInformation != null) | ||
hash = hash * 59 + this.ProcessingInformation.GetHashCode(); | ||
if (this.BillTo != null) | ||
hash = hash * 59 + this.BillTo.GetHashCode(); | ||
if (this.Metadata != null) | ||
hash = hash * 59 + this.Metadata.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.