Class PaymentProviderActionResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.action.spi.AbstractActionResource
ch.tocco.nice2.rest.action.spi.AbstractCustomActionResource
ch.tocco.nice2.optional.onlinepayment.impl.actions.PaymentProviderActionResource
- All Implemented Interfaces:
RestResource
@Path("/actions/paymentProvider")
public class PaymentProviderActionResource
extends AbstractCustomActionResource
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final record
static final record
static final record
static final record
static class
static final record
static final record
static final record
Nested classes/interfaces inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
AbstractActionResource.AbstractActionJob, AbstractActionResource.AbstractInterruptableActionJob, AbstractActionResource.ActionMessageConfig, AbstractActionResource.ActionResultBean, AbstractActionResource.ActionResultBeanBuilder, AbstractActionResource.ActionResultFlags, AbstractActionResource.GetFormEntityTask, AbstractActionResource.SelectionType
-
Field Summary
Fields inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
businessUnitManager, commandExecutor, context, defaultDisplayService, defaultValueService, entityBeanRebinder, formBeanService, l10n, log, notificationService, securityManager, taskSchedulingService, textResources
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo
-
Constructor Summary
ModifierConstructorDescriptionprotected
PaymentProviderActionResource
(QueryBuilderFactory queryBuilderFactory, PersistenceService persistenceService, PayrexxGatewayService payrexxGatewayService, List<PaymentProviderActionConfiguration> configurations) -
Method Summary
Modifier and TypeMethodDescriptionloadPaymentProviderActionBean
(long orderKey) this endpoint must always be secured, since uuid can be used to obtain privileged information about the OrderMethods inherited from class ch.tocco.nice2.rest.action.spi.AbstractCustomActionResource
actionName, doPerformAction, getJobClass, performAction
Methods inherited from class ch.tocco.nice2.rest.action.spi.AbstractActionResource
formEntityMissing, getCallableType, getCurrentUsername, getInitialFormValueResponseBean, getParentEntity, getSelectedEntities, getSelectedEntity, getTaskData, ignoreMissingEntities, loadInitialForm, preAction, recoveryEnabled, setBusinessUnitManager, setCommandExecutor, setContext, setDefaultDisplayService, setDefaultValueService, setEntityBeanRebinder, setFormBeanService, setL10n, setLog, setNotificationService, setSecurityManager, setSelectionService, setTaskSchedulingService, setTextResources, taskCancelledMessage, taskFailedMessage, taskFailedTitle, taskFinishedMessage, taskSchedulingMessage, taskStartedMessage, verifyFormEntityBean
Methods inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
PaymentProviderActionResource
protected PaymentProviderActionResource(QueryBuilderFactory queryBuilderFactory, PersistenceService persistenceService, PayrexxGatewayService payrexxGatewayService, List<PaymentProviderActionConfiguration> configurations)
-
-
Method Details
-
loadPaymentProviderActionBean
@GET @Path("/{orderKey}/uuid") @Produces("application/json") @Consumes("application/json") public PaymentProviderActionResource.OrderUuidBean loadPaymentProviderActionBean(@PathParam("orderKey") long orderKey) this endpoint must always be secured, since uuid can be used to obtain privileged information about the Order -
loadPaymentProviderActionBean
@GET @Path("/{orderUuid}/data") @Produces("application/json") @Consumes("application/json") public PaymentProviderActionResource.PaymentProviderActionBean loadPaymentProviderActionBean(@PathParam("orderUuid") String uuid) -
createPayment
@POST @Path("/{orderUuid}/payLink") @Produces("application/json") @Consumes("application/json") public PaymentProviderActionResource.PayLinkBean createPayment(@PathParam("orderUuid") String uuid, PaymentProviderActionResource.PaymentRequest req)
-