public async Task CallSettlementWithParamsVanillaTest() { var settlementParams = new SettlementQueryFilter { StartSettlementDate = DateTime.Parse("2020-01-19"), EndSettlementDate = DateTime.Now, PaymentScheme = ("VCC"), AssetHolder = ("51914361000184") }; var pag = new Pagination { Page = 1, Limit = 100 }; var result = await _settlementService.GetSettlementWithParams(settlementParams, pag); Print(result); }
public async Task <SettlementPaginatedQueryResponse> GetSettlementWithParams(SettlementQueryFilter settlementParams, Pagination pagination) { var pathRequest = $"{Options.BaseUrl}/{_path}"; var queryParams = new CustomQueryParams().ReturnQueryParams(settlementParams, pagination); if (!string.IsNullOrEmpty(queryParams)) { pathRequest = $"{pathRequest}/{queryParams}"; } var request = new RestRequest(pathRequest, DataFormat.Json); return(await GetPipeline <SettlementPaginatedQueryResponse>().Execute(new Commands.RequestCommand <SettlementPaginatedQueryResponse>() { RestRequest = request, Profile = _baseProfile }).MapResponse()); }