Check out Gateway Pattern by Martin Fowler. Here is an excerpt:
We often need to access APIs from foreign codebases, and these foreign
codebases usually have different vocabularies to ours. I’ve found it
useful to encapsulate this interaction…
The full article is available here.