Class AccountancyOrderEventListener

    • Constructor Detail

      • AccountancyOrderEventListener

        public AccountancyOrderEventListener​(@NonNull
                                             @NonNull Accountancy accountancy)
    • Method Detail

      • on

        @EventListener
        public void on​(Order.OrderPaid event)
        Creates a new revenue ProductPaymentEntry for the order that has been paid.
        Parameters:
        event - must not be null.
      • on

        @EventListener
        public void on​(Order.OrderCancelled event)
        Creates a counter ProductPaymentEntry 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