예제 #1
0
                /// <summary>
                /// This function makes API call to Get Transaction Status
                /// </summary>
                /// <param name="idType">idType</param>
                /// <param name="id">id</param>
                public TransactionStatusResponseObj.RootObject getTransactionStatus(string idType, string id)
                {
                    APIRequest apiRequest = new APIRequest("Transactions/" + idType + "/" + id);

                    if (apiService.get(apiRequest))
                    {
                        TransactionStatusResponseObj responseObj = new TransactionStatusResponseObj();
                        return(responseObj.deserializeTransactionStatusResponse(apiService.apiResponse.getResponseData()));
                    }

                    throw new Exception(apiService.errorResponse);
                }
예제 #2
0
                /// <summary>
                /// This function makes API call to Get Transaction Status
                /// </summary>
                /// <param name="idType">idType</param>
                /// <param name="id">id</param>
                public TransactionStatusResponseObj.RootObject getTransactionStatus(string idType, string id)
                {
                    APIRequest apiRequest = new APIRequest("Transactions/" + idType + "/" + id);

                    if (apiService.get(apiRequest))
                    {
                        TransactionStatusResponseObj responseObj = new TransactionStatusResponseObj();
                        return responseObj.deserializeTransactionStatusResponse(apiService.apiResponse.getResponseData());
                    }

                    throw new Exception(apiService.errorResponse);
                }