Class PaymentService
java.lang.Object
com.dmasone.identity.payment.application.PaymentService
Payment use-case service. It reacts to order placement events, records a
simulated authorization result, and keeps the operation idempotent per order.
-
Constructor Summary
ConstructorsConstructorDescriptionPaymentService(PaymentRepository paymentRepository, SimulatedPaymentGateway paymentGateway, Clock clock) -
Method Summary
-
Constructor Details
-
PaymentService
public PaymentService(PaymentRepository paymentRepository, SimulatedPaymentGateway paymentGateway, Clock clock)
-
-
Method Details
-
authorize
-
findByOrderId
-