/// <summary> /// Initializes a new instance of the <see cref="GetTokenResponseSchema" /> class. /// </summary> /// <param name="responseId">Unique identifier for the response. .</param> /// <param name="token">token.</param> /// <param name="tokenDetail">tokenDetail.</param> /// <param name="errorCode">__CONDITIONAL__<br> Returned in the event of and error and contains the reason the operation failed. Only use if errors object is not present.<br> __Max Length: 32__ .</param> /// <param name="errorDescription">__CONDITIONAL__<br> Returned in the event of and error and contains a description of why the operation failed. Only use if errors object is not present.<br> __Max Length: 32__ .</param> /// <param name="errors">errors.</param> public GetTokenResponseSchema(string responseId = default(string), Token token = default(Token), TokenDetail tokenDetail = default(TokenDetail), string errorCode = default(string), string errorDescription = default(string), Error errors = default(Error)) { this.ResponseId = responseId; this.Token = token; this.TokenDetail = tokenDetail; this.ErrorCode = errorCode; this.ErrorDescription = errorDescription; this.Errors = errors; }
/// <summary> /// Initializes a new instance of the <see cref="GetTokenResponseSchema" /> class. /// </summary> /// <param name="responseId">Unique identifier for the response. .</param> /// <param name="token">token.</param> /// <param name="tokenDetail">tokenDetail.</param> /// <param name="errors">errors.</param> public GetTokenResponseSchema(string responseId = default(string), Token token = default(Token), TokenDetail tokenDetail = default(TokenDetail), List <Error> errors = default(List <Error>)) { this.ResponseId = responseId; this.Token = token; this.TokenDetail = tokenDetail; this.Errors = errors; }
/// <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> /// <param name="errorCode">__CONDITIONAL__<br> Returned in the event of an error and contains the reason the operation failed. Only use if errors object is not present.<br> __Max Length: 32__ .</param> /// <param name="errorDescription">__CONDITIONAL__<br> Returned in the event of an error and contains a description of why the operation failed. Only use if errors object is not present.<br> __Max Length: 32__ .</param> /// <param name="errors">errors.</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), string errorCode = default(string), string errorDescription = default(string), List <Error> errors = default(List <Error>)) { 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; this.ErrorCode = errorCode; this.ErrorDescription = errorDescription; this.Errors = errors; }