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