public async Task <GetRMAInformationResponse> GetRMAInformation(GetRMAInformationRequest reqModel, int?Version = null, ConnectSetting connectSetting = null, LoggingConfiguration logSetting = null)
        {
            var request = CreateRequest <GetRMAInformationRequest>(reqModel);

            request.URI = "servicemgmt/rma/rmainfo";
            if (Version != null)
            {
                request.QueryParams.Add("version", Version.ToString());
            }

            var response = await client.PutAsync(request, connectSetting);

            var result = await ProcessResponse <GetRMAInformationResponse>(response);

            return(result);
        }
        public async Task GetRMAInformation_Json()
        {
            var rmainfo = new GetRMAInformationRequest()
            {
                RequestBody = new GetRMAInformationRequestBody()
                {
                    KeywordsType  = GetRMAInfoKeywordsType.RMANumber,
                    KeywordsValue = "21821229",
                    Status        = RMAStatus.All,
                    RMADateFrom   = "2018-01-11",
                    RMADateTo     = "2019-12-30",
                    RMAType       = RMAType.All,
                    ProcessedBy   = RMAProcessedBy.All
                }
            };

            CheckRequestString <GetRMAInformationRequest>(rmainfo);
            var result = await fakeapi_json.GetRMAInformation(rmainfo);

            Assert.IsType <GetRMAInformationResponse>(result);
            Assert.True(result.IsSuccess);
            Assert.True(result.ResponseBody.RMAInfoList.Count > 0);
        }
        /// <summary>
        /// Get RMA infomation by keyword
        /// </summary>
        public void GetRMAInfo()
        {
            Console.WriteLine("GetRMAInfo");
            // Create Request
            var rmainfo = new GetRMAInformationRequest()
            {
                RequestBody = new GetRMAInformationRequestBody()
                {
                    KeywordsType  = GetRMAInfoKeywordsType.RMANumber,
                    KeywordsValue = "21821229",
                    Status        = RMAStatus.All,
                    RMADateFrom   = "2018-01-11",
                    RMADateTo     = "2019-12-30",
                    RMAType       = RMAType.All,
                    ProcessedBy   = RMAProcessedBy.All
                }
            };
            // Send your request and get response
            var result = rmaCall.GetRMAInformation(rmainfo).Result;

            // Use the data pre you business
            Console.WriteLine(string.Format("There are {0} RMA Infos.",
                                            result.GetResponseBody().RMAInfoList.Count));
        }