Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable region specific clearinghouse #1200

Open
7 tasks
Phil91 opened this issue Dec 9, 2024 · 1 comment
Open
7 tasks

Enable region specific clearinghouse #1200

Phil91 opened this issue Dec 9, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Phil91
Copy link
Member

Phil91 commented Dec 9, 2024

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 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
@Phil91 Phil91 added the enhancement New feature or request label Dec 9, 2024
@github-project-automation github-project-automation bot moved this to NEW USER REQUEST in Portal Dec 9, 2024
@Phil91
Copy link
Member Author

Phil91 commented Dec 9, 2024

@MaximilianHauer fyi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: NEW USER REQUEST
Development

No branches or pull requests

1 participant