private static PubCalculationParametersRoot GetPubCalculationParameters() { var pubAccountIdentifier = new PubIdentifier(PubAccountId); var pubDates = new PubDateParameters(StartDate, EndDate); var pubCalculation = new PubCalculationParameters(PubDocument, pubAccountIdentifier, pubDates); var calculationParameters = new PubCalculationParametersRoot { Data = new Dictionary <string, PubCalculationParameters> { { "1", pubCalculation }, { "2", pubCalculation } } }; return(calculationParameters); }
private ApiResponse <object> RunCalculation() { var pubAccountIdentifier = new PubIdentifier(CommonParameters.PubAccountName); var pubDates = new PubDateParameters(CommonParameters.PubStartDate, CommonParameters.PubEndDate); var pubCalculation = new PubCalculationParameters(CommonParameters.PubDocumentName, pubAccountIdentifier, pubDates); var calculationParameters = new PubCalculationParametersRoot { Data = new Dictionary <string, PubCalculationParameters> { { "1", pubCalculation }, { "2", pubCalculation } } }; var response = calculationsApi.PostAndCalculateWithHttpInfo(null, "max-stale=0", calculationParameters); return(response); }