org.starhope.appius.pay
Class GiftCardRedemption
java.lang.Object
org.starhope.appius.pay.GiftCardRedemption
- All Implemented Interfaces:
- PaymentGatewayReal
public class GiftCardRedemption
- extends Object
- implements PaymentGatewayReal
- Author:
- brpocock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GiftCardRedemption
public GiftCardRedemption()
alterEnrolment
public void alterEnrolment(Payment payment,
UserEnrolment newForm)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException
- Specified by:
alterEnrolment
in interface PaymentGatewayReal
- Throws:
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
- See Also:
PaymentGatewayReal.alterEnrolment(org.starhope.appius.mb.Payment,
org.starhope.appius.mb.UserEnrolment)
endEnrolment
public void endEnrolment(Payment payment)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException
- Specified by:
endEnrolment
in interface PaymentGatewayReal
- Throws:
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
- See Also:
PaymentGatewayReal.endEnrolment(org.starhope.appius.mb.Payment)
enumerateCredentialTypes
public List<CredentialType> enumerateCredentialTypes()
- Description copied from interface:
PaymentGatewayReal
- Provides a list of all credential types supported by the given
payment gateway.
- Specified by:
enumerateCredentialTypes
in interface PaymentGatewayReal
- Returns:
- all supported
CredentialType
:s - See Also:
PaymentGatewayReal.enumerateCredentialTypes()
getPayment
public Payment getPayment(String gatewayTransactionCode)
- See Also:
org.starhope.appius.pay.util.PaymentGatewayReal#getPayment(java.lang.String)
isAvailable
public boolean isAvailable()
- Specified by:
isAvailable
in interface PaymentGatewayReal
- Returns:
- true, if the payment gateway appears to be online and
functioning (or was known to be online and functioning
recently enough)
- See Also:
PaymentGatewayReal.isAvailable()
startEnrolment
public void startEnrolment(Payment payment)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException
- Specified by:
startEnrolment
in interface PaymentGatewayReal
- Throws:
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
- See Also:
PaymentGatewayReal.startEnrolment(org.starhope.appius.mb.Payment)
transactPayment
public void transactPayment(Payment payment)
throws UnsupportedCurrencyException,
NotFoundException,
UnsupportedCredentialException,
IOException,
RetryPaymentException,
GameLogicException
- Specified by:
transactPayment
in interface PaymentGatewayReal
- Throws:
UnsupportedCurrencyException
NotFoundException
UnsupportedCredentialException
IOException
RetryPaymentException
GameLogicException
- See Also:
PaymentGatewayReal.transactPayment(org.starhope.appius.mb.Payment)