/// <summary>
        /// Initializes a new instance of the <see cref="SearchTokensRequestSchema" /> class.
        /// </summary>
        /// <param name="requestId">Unique identifier for the request.  (required).</param>
        /// <param name="responseHost">The host that originated the request. Future calls in the same conversation may be routed to this host. .</param>
        /// <param name="fundingAccountInfo">fundingAccountInfo.</param>
        /// <param name="tokenRequestorId">Identifies the Token Requestor. Only tokens associated with the token requestor will be returned. Length - 11.  .</param>
        public SearchTokensRequestSchema(string requestId = default(string), string responseHost = default(string), FundingAccountInfo fundingAccountInfo = default(FundingAccountInfo), string tokenRequestorId = default(string))
        {
            // to ensure "requestId" is required (not null)
            if (requestId == null)
            {
                throw new InvalidDataException("requestId is a required property for SearchTokensRequestSchema and cannot be null");
            }
            else
            {
                this.RequestId = requestId;
            }

            this.ResponseHost       = responseHost;
            this.FundingAccountInfo = fundingAccountInfo;
            this.TokenRequestorId   = tokenRequestorId;
        }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TokenizeRequestSchema" /> class.
        /// </summary>
        /// <param name="responseHost">\&quot;The host that originated the request. Future calls in the same conversation may be routed to this host. Must be provided as: host[:port][/contextRoot] Where port and contextRoot are optional. If contextRoot is not provided, the default (per the URL Scheme) is assumed and must be used.\&quot; .</param>
        /// <param name="requestId">Unique identifier for the request. .</param>
        /// <param name="tokenType">The type of Token requested. Must be CLOUD       __Max Length:32__     (required).</param>
        /// <param name="tokenRequestorId">11-digit numeric ID provided by Mastercard that identifies the Token Requestor.   (required).</param>
        /// <param name="taskId">Identifier for this task as assigned by the Token Requestor, unique across a given Token Requestor Identifier. May be used in the Get Task Status API to query the status of this task.      __Max Length:64__  (required).</param>
        /// <param name="fundingAccountInfo">fundingAccountInfo (required).</param>
        /// <param name="consumerLanguage">Language preference selected by the consumer. Formatted as an ISO- 639-1 two-letter language code.    __Max Length:2__ .</param>
        /// <param name="tokenizationAuthenticationValue">The Tokenization Authentication Value (TAV) as cryptographically signed by the Issuer to authorize this digitization request.      __Max Length:2048__ .</param>
        /// <param name="decisioningData">decisioningData.</param>
        public TokenizeRequestSchema(string responseHost = default(string), string requestId = default(string), string tokenType = default(string), string tokenRequestorId = default(string), string taskId = default(string), FundingAccountInfo fundingAccountInfo = default(FundingAccountInfo), string consumerLanguage = default(string), string tokenizationAuthenticationValue = default(string), DecisioningData decisioningData = default(DecisioningData))
        {
            // to ensure "tokenType" is required (not null)
            if (tokenType == null)
            {
                throw new InvalidDataException("tokenType is a required property for TokenizeRequestSchema and cannot be null");
            }
            else
            {
                this.TokenType = tokenType;
            }

            // to ensure "tokenRequestorId" is required (not null)
            if (tokenRequestorId == null)
            {
                throw new InvalidDataException("tokenRequestorId is a required property for TokenizeRequestSchema and cannot be null");
            }
            else
            {
                this.TokenRequestorId = tokenRequestorId;
            }

            // to ensure "taskId" is required (not null)
            if (taskId == null)
            {
                throw new InvalidDataException("taskId is a required property for TokenizeRequestSchema and cannot be null");
            }
            else
            {
                this.TaskId = taskId;
            }

            // to ensure "fundingAccountInfo" is required (not null)
            if (fundingAccountInfo == null)
            {
                throw new InvalidDataException("fundingAccountInfo is a required property for TokenizeRequestSchema and cannot be null");
            }
            else
            {
                this.FundingAccountInfo = fundingAccountInfo;
            }

            this.ResponseHost     = responseHost;
            this.RequestId        = requestId;
            this.ConsumerLanguage = consumerLanguage;
            this.TokenizationAuthenticationValue = tokenizationAuthenticationValue;
            this.DecisioningData = decisioningData;
        }