For configuration code samples, see our Configuration Code for SDKs article.
Availability: >= SDK V9.0.25
To access the history of your token updates in the .NET SDK, you may use the TokenUpdaterHistory() public method.
You may access this method in the ReportingService class, using the following portico configuration details:
var porticoConfig = new PorticoConfig {
SecretApiKey = " ",
IsSafDataSupported = true,
RequestLogger = new RequestConsoleLogger(),
ServiceUrl = ServiceEndpoints.PORTICO_TEST
};In order to access this functionality you will need a valid SecretApiKey and ServiceUrl.
While IsSafDataSupported is not mandatory, it is a part of the test configuration class.
Below are the request parameters with the methods that will set the value in the request:
ReportStartDateReportEndDateLimitOffsetTokenValueActionBelow are the response parameters that will be returned from the SDK. They will map to the the TokenUpdaterHistoryResponse class:
CountAccountsClosedCountContactCardholderCountUpdateExpirationDateCountUpdateCardNumberLimitOffsetReportEndDateReportStartDateTotalMatchingRecordsResults
NewCardNumberNewExpirationDatePreviousCardNumberPreviousExpirationDateTokenValueUpdateActionUpdateDateThe PorticoReportingTests file within the test project contains the following test cases for the Report Token Updater History functionality.
ReportTokenUpdaterHistory_WithStartDateAndResultTypeDetails_ReturnsValidResultsReportTokenUpdaterHistory_WithAllCriteria_ReturnsExpectedDetailsReportTokenUpdaterHistory_WithStartDateAndEndDateAndResultTypeDetailsReportTokenUpdaterHistory_WithStartDateAndCountsResultType_ReturnsValidCountsReportTokenUpdaterHistory_WithStartAndEndDate_TokenValue_LimitOffset_CountsType_ReturnsResponseReportTokenUpdaterHistory_WithStartDateAndEndDateAndResultTypeCountsThese tests validate the token updater history reporting feature, ensuring that reports can be generated using various filters. They ensure that all expected fields and counts are present in the response.