Distributed Transaction, Saga Pattern, Axon Framework, Spring Boot, Microservices.
public PaymentAggregate(CompletePaymentCommand command) { CompletePaymentEvent event = CompletePaymentEvent.builder() .orderId(command.getOrderId()) .paymentId(command.getPaymentId()) .paymentStatus(command.getPaymentStatus()) .userId(command.getUserId()) .price(command.getPrice()) .build();