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
ConstructorsConstructorDescriptionEventPaymentProviderActionConfiguration(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 EntitygetPayrexxAccount(Entity order) booleanisApplicable(Entity order) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
isApplicablein 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:PaymentProviderActionConfigurationreturns model, form and key of the entity to be shown on payment summary- Specified by:
getOverviewEntityBeanin 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:
getPaymentMethodConditionin interfacePaymentProviderActionConfiguration- Returns:
- a condition for Payment_method entities to be used for the given Order
-
getPayrexxAccount
- Specified by:
getPayrexxAccountin interfacePaymentProviderActionConfiguration- Returns:
- the Payrexx_account to use for the given Order, null if default account should be used
-