@Path(value="payments/spreedly/purchase")
public class SpreedlyPurchaseResource
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private GatewayService |
gatewayService |
private SpreedlyProxy |
spreedlyProxy |
Constructor and Description |
---|
SpreedlyPurchaseResource() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createPurchase(GUID shopId,
java.lang.String gatewayName,
SpreedlyTransactionRequest purchaseData) |
@Inject private GatewayService gatewayService
@Inject private SpreedlyProxy spreedlyProxy
@POST @Produces(value="application/json") @Consumes(value="application/json") public javax.ws.rs.core.Response createPurchase(@NotNull @QueryParam(value="shopId") GUID shopId, @NotNull @QueryParam(value="gatewayName") java.lang.String gatewayName, SpreedlyTransactionRequest purchaseData)