/// <summary>
 /// Initializes a new instance of the <see cref="Token" /> class.
 /// </summary>
 /// <param name="tokenUniqueReference">The unique reference allocated to the Token which is always present even if an error occurs. &lt;br&gt;      __Max Length:64__ .</param>
 /// <param name="status">The current status of Token. Must be either:    * &#39;INACTIVE&#39; (Token has not yet been activated)  * &#39;ACTIVE&#39; (Token is active and ready to transact)  * &#39;SUSPENDED&#39; (Token is suspended and unable to transact)  * &#39;DEACTIVATED&#39; (Token has been permanently deactivated).&lt;br&gt;      __Max Length:32__ .</param>
 /// <param name="suspendedBy">(CONDITIONAL only supplied if status is SUSPENDED) Who or what caused the Token to be suspended One or more values of:     * ISSUER - Suspended by the Issuer.    * TOKEN_REQUESTOR - Suspended by the Token Requestor     * MOBILE_PIN_LOCKED - Suspended due to the Mobile PIN being locked    * CARDHOLDER - Suspended by the Cardholder &lt;br&gt;          __Max Length__: N/A     .</param>
 /// <param name="statusTimestamp">The date and time the token status was last updated. Expressed in ISO 8601 extended format as one of the following:     * YYYY-MM-DDThh:mm:ss[.sss]Z    * YYYY-MM-DDThh:mm:ss[.sss]±hh:mm    * Where [.sss] is optional and can be 1 to 3 digits. &lt;br&gt;  __Max Length:29__   .</param>
 /// <param name="productConfig">productConfig.</param>
 /// <param name="tokenInfo">tokenInfo.</param>
 public Token(string tokenUniqueReference = default(string), string status = default(string), List <string> suspendedBy = default(List <string>), string statusTimestamp = default(string), ProductConfig productConfig = default(ProductConfig), TokenInfo tokenInfo = default(TokenInfo))
 {
     this.TokenUniqueReference = tokenUniqueReference;
     this.Status          = status;
     this.SuspendedBy     = suspendedBy;
     this.StatusTimestamp = statusTimestamp;
     this.ProductConfig   = productConfig;
     this.TokenInfo       = tokenInfo;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TokenizeResponseSchema" /> class.
 /// </summary>
 /// <param name="responseHost">The MasterCard host that originated the request. Future calls in the same conversation may be routed to this host.  .</param>
 /// <param name="responseId">Unique identifier for the response. .</param>
 /// <param name="decision">The tokenization decision for this digitization request. Must be either APPROVED (Digitization request was approved), DECLINED (Digitization request was declined) OR REQUIRE_ADDITIONAL_AUTHENTICATION Digitization request was approved but optionally requires additional authentication. One or more Authentication methods may be provided). .</param>
 /// <param name="authenticationMethods">authenticationMethods.</param>
 /// <param name="tokenUniqueReference">The unique reference allocated to the new Token. Serves as a unique identifier for all subsequent queries or management functions relating to this Token. Provided if the decision was APPROVED or REQUIRE_ADDITIONAL_AUTHENTICATION.    __Max Length:64__ .</param>
 /// <param name="panUniqueReference">The unique reference allocated to the Account Primary Account Number. Provided if the decision was APPROVED or REQUIRE_ADDITIONAL_AUTHENTICATION.  __Max Length:64__ .</param>
 /// <param name="productConfig">productConfig.</param>
 /// <param name="tokenInfo">tokenInfo.</param>
 /// <param name="tokenDetail">tokenDetail.</param>
 public TokenizeResponseSchema(string responseHost = default(string), string responseId = default(string), string decision = default(string), List <AuthenticationMethods> authenticationMethods = default(List <AuthenticationMethods>), string tokenUniqueReference = default(string), string panUniqueReference = default(string), ProductConfig productConfig = default(ProductConfig), TokenInfo tokenInfo = default(TokenInfo), TokenDetail tokenDetail = default(TokenDetail))
 {
     this.ResponseHost          = responseHost;
     this.ResponseId            = responseId;
     this.Decision              = decision;
     this.AuthenticationMethods = authenticationMethods;
     this.TokenUniqueReference  = tokenUniqueReference;
     this.PanUniqueReference    = panUniqueReference;
     this.ProductConfig         = productConfig;
     this.TokenInfo             = tokenInfo;
     this.TokenDetail           = tokenDetail;
 }