В случае N-Layer архитектура
TransactionService
должен быть в слое Application
, тогда ваш GatewayService
может быть частью Business Layer
.
![enter image description here](https://i.stack.imgur.com/Q320N.jpg)
В случае Чистая архитектура
GatewayService
должен быть частью слоя Presistence
или Infrastracture
, поэтому он не является слоем business
(здесь domain
и application
).
![enter image description here](https://i.stack.imgur.com/eJ2d6.png)