Class PaymentProviderActionResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.optional.onlinepayment.impl.actions.PaymentProviderActionResource
- All Implemented Interfaces:
RestResource
@Path("/actions/paymentProvider")
public class PaymentProviderActionResource
extends AbstractRestResource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic classstatic final recordstatic final recordstatic final record -
Field Summary
Fields inherited from class ch.tocco.nice2.rest.core.spi.AbstractRestResource
uriInfo -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPaymentProviderActionResource(QueryBuilderFactory queryBuilderFactory, PersistenceService persistenceService, PayrexxGatewayService payrexxGatewayService, SecurityManager securityManager, Context context, 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.core.spi.AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
PaymentProviderActionResource
protected PaymentProviderActionResource(QueryBuilderFactory queryBuilderFactory, PersistenceService persistenceService, PayrexxGatewayService payrexxGatewayService, SecurityManager securityManager, Context context, 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)
-