Exemplo n.º 1
0
        public async Task <Result <RetrieveIncomeResponseData, OkraError> > RetrieveIncomeAsync(PaginatedRequest request)
        {
            var url = "products/income/get";

            var response = await _okraApi.Post <RetrieveIncomeResponse, PaginatedRequest>(url, request);

            return(response.ToResult());
        }
Exemplo n.º 2
0
        public async Task<Result<RetrieveTransactionResponseData, OkraError>> RetrieveTransactionsAsync(PaginatedRequest request)
        {
            var url = "products/transactions";

            var response = await _okraApi.Post<RetrieveTransactionsResponse, PaginatedRequest>(url, request);

            return response.ToResult();
        }