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(); }
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()); }