Class AccountancyOrderEventListener
- java.lang.Object
-
- org.salespointframework.accountancy.AccountancyOrderEventListener
-
@Component public class AccountancyOrderEventListener extends Object
- Author:
- Oliver Gierke
-
-
Constructor Summary
Constructors Constructor Description AccountancyOrderEventListener(@NonNull Accountancy accountancy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
on(Order.OrderCancelled event)
Creates a counterProductPaymentEntry
for the order that is cancelled if there's a revenue entry for the given order already, i.e. the order has been paid before.void
on(Order.OrderPaid event)
Creates a new revenueProductPaymentEntry
for the order that has been paid.
-
-
-
Constructor Detail
-
AccountancyOrderEventListener
public AccountancyOrderEventListener(@NonNull @NonNull Accountancy accountancy)
-
-
Method Detail
-
on
@EventListener public void on(Order.OrderPaid event)
Creates a new revenueProductPaymentEntry
for the order that has been paid.- Parameters:
event
- must not be null.
-
on
@EventListener public void on(Order.OrderCancelled event)
Creates a counterProductPaymentEntry
for the order that is cancelled if there's a revenue entry for the given order already, i.e. the order has been paid before.- Parameters:
event
- must not be null.- Since:
- 7.1
-
-