@Path(value="payments/spreedly/gateways")
public class SpreedlyGatewaysResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GatewayFactory |
gatewayFactory |
private GatewayService |
gatewayService |
Constructor and Description |
---|
SpreedlyGatewaysResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createGateway(GatewayEntry gatewayEntry) |
javax.ws.rs.core.Response |
getGatewayByShopIdAndGatewayName(GUID shopId,
java.lang.String gatewayName) |
@Inject private GatewayService gatewayService
@Inject private GatewayFactory gatewayFactory
@GET @Produces(value="application/json") public javax.ws.rs.core.Response getGatewayByShopIdAndGatewayName(@NotNull @QueryParam(value="shopId") GUID shopId, @NotNull @QueryParam(value="gatewayName") java.lang.String gatewayName)
@PUT @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createGateway(GatewayEntry gatewayEntry)