/// <summary>
 /// Initializes a new instance of the <see cref="TokenizeRequest" /> class.
 /// </summary>
 /// <param name="KeyId">Unique identifier for the generated token. This is obtained from the Generate Key request. See the [Java Script and Java examples](http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_Flex/Key/html) on how to import the key and encrypt using the imported key. (required).</param>
 /// <param name="CardInfo">CardInfo.</param>
 public TokenizeRequest(string KeyId = default(string), Flexv1tokensCardInfo CardInfo = default(Flexv1tokensCardInfo))
 {
     // to ensure "KeyId" is required (not null)
     if (KeyId == null)
     {
         throw new InvalidDataException("KeyId is a required property for TokenizeRequest and cannot be null");
     }
     else
     {
         this.KeyId = KeyId;
     }
     this.CardInfo = CardInfo;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="TokenizeRequest" /> class.
 /// </summary>
 /// <param name="KeyId">Unique identifier for the generated token. This is obtained from the Generate Key request. See the [Java Script and Java examples] (http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_Flex/Key/html) on how to import the key and encrypt using the imported key..</param>
 /// <param name="CardInfo">CardInfo.</param>
 public TokenizeRequest(string KeyId = default(string), Flexv1tokensCardInfo CardInfo = default(Flexv1tokensCardInfo))
 {
     this.KeyId    = KeyId;
     this.CardInfo = CardInfo;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TokenizeParameters" /> class.
 /// </summary>
 /// <param name="KeyId">Unique identifier for the generated token. This is obtained from the Generate Key request. See the [Java Script and Java examples] (http://apps.cybersource.com/library/documentation/dev_guides/Secure_Acceptance_Flex/Key/html) on how to import the key and encrypt using the imported key..</param>
 /// <param name="CardInfo">CardInfo.</param>
 public TokenizeParameters(string KeyId = default(string), Flexv1tokensCardInfo CardInfo = default(Flexv1tokensCardInfo))
 {
     this.KeyId    = KeyId;
     this.CardInfo = CardInfo;
 }