You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To enable multiple clearinghouses the configuration and the clearinghouse service have to be adjusted.
Configuration enhancement
The current ClearinghouseSettings need to get an IEnumerable of region specific clearinghouse settings. Those should include CountryCode, BaseAddress and all KeyVaultAuthSetting properties (even better inherit from KeyVaultAuthSettings)
The AddCustomHttpClientWithAuthentication needs to get enhanced to be able to pass the name of the client to register the token service foreach regional setting, the name should than be sett to ${typeof(ClearinghouseService).Name}{countryCode}
The registration of the settings in the AddClearinghouseService method in ClearinghouseServiceCollectionExtension needs to get enhanced to register the tokenService for each regional clearinghouse setting.
Business Logic enhancements
The method HandleClearinghouse needs to get enhanced by receiving the country code from the address of the company. (country_alpha2code in the portal.addresses table). The countryCode should than be passed to the ClearinghouseService.
Token Service enhancement
The token service needs to be enhanced. A new method should be implemented to be able to pass a name to get the registered authorizedClient.
Clearinghouse Service enhancement
The httpClient creation needs to be adjusted to receive the region specific httpClient from the tokenService. If no region is set for the country code the default configuration should be taken.
Acceptance Criteria
Enhance the configuration of the clearinghouse
Enhance the business logic of the clearinghouse
Enhance the clearinghouse service
Enhance the token service
Enhance HttpClientExtensions
Bump framework version
Provide unit tests
The text was updated successfully, but these errors were encountered:
Description
To enable multiple clearinghouses the configuration and the clearinghouse service have to be adjusted.
Configuration enhancement
The current
ClearinghouseSettings
need to get an IEnumerable of region specific clearinghouse settings. Those should includeCountryCode
,BaseAddress
and all KeyVaultAuthSetting properties (even better inherit fromKeyVaultAuthSettings
)The
AddCustomHttpClientWithAuthentication
needs to get enhanced to be able to pass the name of the client to register the token service foreach regional setting, the name should than be sett to${typeof(ClearinghouseService).Name}{countryCode}
The registration of the settings in the
AddClearinghouseService
method inClearinghouseServiceCollectionExtension
needs to get enhanced to register the tokenService for each regional clearinghouse setting.Business Logic enhancements
The method
HandleClearinghouse
needs to get enhanced by receiving the country code from the address of the company. (country_alpha2code
in theportal.addresses
table). The countryCode should than be passed to the ClearinghouseService.Token Service enhancement
The token service needs to be enhanced. A new method should be implemented to be able to pass a name to get the registered authorizedClient.
Clearinghouse Service enhancement
The httpClient creation needs to be adjusted to receive the region specific httpClient from the tokenService. If no region is set for the country code the default configuration should be taken.
Acceptance Criteria
The text was updated successfully, but these errors were encountered: