Exemplo n.º 1
0
        /// <summary>
        ///  Used to request that the Mobile PIN for a Mastercard Cloud-Based Payment token in a single issuer wallet is reset. The request is passed to the Credential Management System for processing. When the Mobile PIN is a token-level PIN (as opposed to a wallet-level PIN), the cardholder must choose a new PIN within 10 minutes of a Reset Mobile PIN action. Otherwise, the reset will need to be re-requested.
        /// </summary>
        /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tokenResetMobilePinRequestSchema">Contains the details of the request message. (optional)</param>
        /// <returns>Task of ApiResponse (TokenResetMobilePinResponseSchema)</returns>
        public async System.Threading.Tasks.Task <ApiResponse <TokenResetMobilePinResponseSchema> > TokenResetmobilepinPostAsyncWithHttpInfo(TokenResetMobilePinRequestSchema tokenResetMobilePinRequestSchema = null)
        {
            var    localVarPath         = "/token/resetmobilepin";
            var    localVarPathParams   = new Dictionary <String, String>();
            var    localVarQueryParams  = new List <KeyValuePair <String, String> >();
            var    localVarHeaderParams = new Dictionary <String, String>(this.Configuration.DefaultHeader);
            var    localVarFormParams   = new Dictionary <String, String>();
            var    localVarFileParams   = new Dictionary <String, FileParameter>();
            Object localVarPostBody     = null;

            // to determine the Content-Type header
            String[] localVarHttpContentTypes = new String[] {
                "application/json"
            };
            String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);

            // to determine the Accept header
            String[] localVarHttpHeaderAccepts = new String[] {
                "application/json"
            };
            String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);

            if (localVarHttpHeaderAccept != null)
            {
                localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
            }

            if (tokenResetMobilePinRequestSchema != null && tokenResetMobilePinRequestSchema.GetType() != typeof(byte[]))
            {
                localVarPostBody = this.Configuration.ApiClient.Serialize(tokenResetMobilePinRequestSchema); // http body (model) parameter
            }
            else
            {
                localVarPostBody = tokenResetMobilePinRequestSchema; // byte array
            }


            // make the HTTP request
            IRestResponse localVarResponse = (IRestResponse)await this.Configuration.ApiClient.CallApiAsync(localVarPath,
                                                                                                            Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
                                                                                                            localVarPathParams, localVarHttpContentType);

            int localVarStatusCode = (int)localVarResponse.StatusCode;

            if (ExceptionFactory != null)
            {
                Exception exception = ExceptionFactory("TokenResetmobilepinPost", localVarResponse);
                if (exception != null)
                {
                    throw exception;
                }
            }

            return(new ApiResponse <TokenResetMobilePinResponseSchema>(localVarStatusCode,
                                                                       localVarResponse.Headers.ToDictionary(x => x.Name, x => x.Value.ToString()),
                                                                       (TokenResetMobilePinResponseSchema)this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(TokenResetMobilePinResponseSchema))));
        }
Exemplo n.º 2
0
        /// <summary>
        ///  Used to request that the Mobile PIN for a Mastercard Cloud-Based Payment token in a single issuer wallet is reset. The request is passed to the Credential Management System for processing. When the Mobile PIN is a token-level PIN (as opposed to a wallet-level PIN), the cardholder must choose a new PIN within 10 minutes of a Reset Mobile PIN action. Otherwise, the reset will need to be re-requested.
        /// </summary>
        /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tokenResetMobilePinRequestSchema">Contains the details of the request message. (optional)</param>
        /// <returns>Task of TokenResetMobilePinResponseSchema</returns>
        public async System.Threading.Tasks.Task <TokenResetMobilePinResponseSchema> TokenResetmobilepinPostAsync(TokenResetMobilePinRequestSchema tokenResetMobilePinRequestSchema = null)
        {
            ApiResponse <TokenResetMobilePinResponseSchema> localVarResponse = await TokenResetmobilepinPostAsyncWithHttpInfo(tokenResetMobilePinRequestSchema);

            return(localVarResponse.Data);
        }
Exemplo n.º 3
0
        /// <summary>
        ///  Used to request that the Mobile PIN for a Mastercard Cloud-Based Payment token in a single issuer wallet is reset. The request is passed to the Credential Management System for processing. When the Mobile PIN is a token-level PIN (as opposed to a wallet-level PIN), the cardholder must choose a new PIN within 10 minutes of a Reset Mobile PIN action. Otherwise, the reset will need to be re-requested.
        /// </summary>
        /// <exception cref="YourApp.MdesCustomerClient.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="tokenResetMobilePinRequestSchema">Contains the details of the request message. (optional)</param>
        /// <returns>TokenResetMobilePinResponseSchema</returns>
        public TokenResetMobilePinResponseSchema TokenResetmobilepinPost(TokenResetMobilePinRequestSchema tokenResetMobilePinRequestSchema = null)
        {
            ApiResponse <TokenResetMobilePinResponseSchema> localVarResponse = TokenResetmobilepinPostWithHttpInfo(tokenResetMobilePinRequestSchema);

            return(localVarResponse.Data);
        }