Class EventPaymentProviderActionConfiguration
java.lang.Object
ch.tocco.nice2.optional.eventonlinepayment.impl.contributions.EventPaymentProviderActionConfiguration
- All Implemented Interfaces:
PaymentProviderActionConfiguration
@Component
public class EventPaymentProviderActionConfiguration
extends Object
implements PaymentProviderActionConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.onlinepayment.api.actions.PaymentProviderActionConfiguration
PaymentProviderActionConfiguration.OverviewEntityBean
-
Constructor Summary
ConstructorDescriptionEventPaymentProviderActionConfiguration
(QueryBuilderFactory queryBuilderFactory, PersistenceService persistenceService) -
Method Summary
Modifier and TypeMethodDescriptiongetOverviewEntityBean
(Entity order) returns model, form and key of the entity to be shown on payment summarygetPaymentMethodCondition
(Entity order) @Nullable Entity
getPayrexxAccount
(Entity order) boolean
isApplicable
(Entity order) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.onlinepayment.api.actions.PaymentProviderActionConfiguration
buildOverviewEntityBean
-
Constructor Details
-
EventPaymentProviderActionConfiguration
public EventPaymentProviderActionConfiguration(QueryBuilderFactory queryBuilderFactory, PersistenceService persistenceService)
-
-
Method Details
-
isApplicable
- Specified by:
isApplicable
in interfacePaymentProviderActionConfiguration
- Returns:
- true if this configuration should be used for the given Order
-
getOverviewEntityBean
@Nullable public @Nullable PaymentProviderActionConfiguration.OverviewEntityBean getOverviewEntityBean(Entity order) Description copied from interface:PaymentProviderActionConfiguration
returns model, form and key of the entity to be shown on payment summary- Specified by:
getOverviewEntityBean
in interfacePaymentProviderActionConfiguration
- Parameters:
order
- the Order to be displayed- Returns:
- a bean containing the overview entity data, null if none should be shown
-
getPaymentMethodCondition
- Specified by:
getPaymentMethodCondition
in interfacePaymentProviderActionConfiguration
- Returns:
- a condition for Payment_method entities to be used for the given Order
-
getPayrexxAccount
- Specified by:
getPayrexxAccount
in interfacePaymentProviderActionConfiguration
- Returns:
- the Payrexx_account to use for the given Order, null if default account should be used
-