Class PaymentAttempt
java.lang.Object
com.dmasone.identity.payment.domain.PaymentAttempt
Payment module record of an authorization attempt for an order. The module
owns the attempt history and treats the order event as an input fact.
-
Method Details
-
create
public static PaymentAttempt create(UUID id, UUID orderId, Long productId, int quantity, PaymentStatus status, Instant requestedAt) -
id
-
orderId
-
productId
-
quantity
public int quantity() -
status
-
requestedAt
-