コード例 #1
0
    public InquiryResponse DuitkuInquiryStatusRequest(InquiryStatusRequest inquiryRequest)
    {
        InquiryResponse result = new InquiryResponse();

        try
        {
            string data = JsonConvert.SerializeObject(inquiryRequest);

            string response = request("https://passport.duitku.com/webapi/api/disbursement/inquirystatus", data);

            if (String.IsNullOrEmpty(response))
            {
                return(new InquiryResponse());
            }
            else
            {
                result = JsonConvert.DeserializeObject <InquiryResponse>(response);
            }
        }
        catch (Exception ex)
        {
            Log.WriteErrorLog("HttpHelper::DuitkuInquiryStatusRequest", ex.Message);
        }
        return(result);
    }
コード例 #2
0
    public bool CheckTransferStatus(string disburseId)
    {
        HttpHelper http = new HttpHelper();

        InquiryStatusRequest request = new InquiryStatusRequest();

        request.disburseId = disburseId;
        request.InitSingature();

        InquiryResponse response = http.DuitkuInquiryStatusRequest(request);

        Log.WriteDebugLog("LoanBank::CheckTransferStatus", "{0}", JsonConvert.SerializeObject(response));
        if (response.responseCode == "00")
        {
            return(true);
        }
        else
        {
            return(false);
        }
    }