示例#1
0
        public async Task<Result<TransactionCallbackResponseData, OkraError>> TransactionCallBackAsync(string record)
        {
            var url = "callback";

            var request = new TransactionsCallBackRequest { Record = record };

            var response =
                await _okraApi.Get<TransactionCallbackResponse, TransactionsCallBackRequest>(url, request);

            return response.ToResult();
        }
示例#2
0
        public async Task <Result <IncomeCallbackResponseData, OkraError> > IncomeCallBackAsync(string record)
        {
            var url = "callback";

            var request = new IncomeCallBackRequest {
                Record = record
            };

            var response = await _okraApi.Get <IncomeCallbackResponse, IncomeCallBackRequest>(url, request);

            return(response.ToResult());
        }