|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.davesag.generica.core.AbstractCreditCardAuthoriser
All Credit Card authorisation providers should provide a class that extends
CreditCardAuthoriser and must be able to authorise a credit
card payment and return a response code.
| Field Summary | |
protected Boolean |
isTesting
are we testing or is this a real transaction |
protected List |
theBanks
list of banks this authoriser can authorise for. |
protected Currency |
theCurrency
the base currency this authoriser charges in. |
protected Long |
theId
authoriser's id used as a key by hibernate |
protected String |
theName
the authoriser's name |
protected String |
theUrl
The Url of this Link |
| Constructor Summary | |
AbstractCreditCardAuthoriser()
|
|
| Method Summary | |
void |
addBank(String bankname)
Add a bank to the authoriser's bank list. |
boolean |
equals(Object o)
Tests if the supplied object is equal to this
AbstractCreditCardAuthoriser. |
List |
getBanks()
get the banks that this authoriser can authorise for. |
Currency |
getCurrency()
get the currency. |
String |
getCurrencyCode()
get the currency. |
Long |
getId()
Get the AbstractCreditCardAuthoriser's ID number. |
String |
getName()
get the name. |
Boolean |
getTesting()
returns True if we are testing. |
String |
getUrl()
retusn a url for the link. |
abstract int |
hashcode()
Override this to provide sepcific data. |
boolean |
isTesting()
Returns true if we are testing. |
void |
removeBank(String bankname)
Remove a bank from the authoriser's bank list. |
void |
setBanks(List banks)
set the banks that this authoriser can authorise for. |
void |
setCurrency(Currency currency)
set the currency |
void |
setCurrencyCode(String currency)
set the currency |
protected void |
setId(Long id)
Sets the The AbstractCreditCardAuthoriser's ID number. |
void |
setName(String name)
set the name of authoriser. |
void |
setTemplateId(Long id)
Sets the The AbstractCreditCardAuthoriser's ID number
directly. |
void |
setTesting(Boolean testing)
sets the testing flag. |
void |
setUrl(String url)
Set an associated url for this Link. |
String |
toString()
Override this to provide sepcific data. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.davesag.generica.core.CreditCardAuthoriser |
authorisePayment, responseIsAuthorised |
| Field Detail |
protected Long theId
protected String theUrl
protected String theName
protected List theBanks
protected Currency theCurrency
protected Boolean isTesting
| Constructor Detail |
public AbstractCreditCardAuthoriser()
| Method Detail |
public void setTesting(Boolean testing)
testing - Is this a test?public Boolean getTesting()
public boolean isTesting()
public String getUrl()
public void setUrl(String url)
url - A url for this Link.public String getName()
public void setName(String name)
name - the authoriser's name.public List getBanks()
public void setBanks(List banks)
banks - The List of bank names.public void addBank(String bankname)
bankname - The name of the bank to add.public void removeBank(String bankname)
bankname - The name of the bank to remove.public Currency getCurrency()
public void setCurrency(Currency currency)
currency - The currency.public String getCurrencyCode()
public void setCurrencyCode(String currency)
currency - The currency.public Long getId()
AbstractCreditCardAuthoriser's ID number.
getId in interface PersistableCreditCardAuthoriser's ID number.protected void setId(Long id)
AbstractCreditCardAuthoriser's ID number.
id - The ID number to set.public void setTemplateId(Long id)
AbstractCreditCardAuthoriser's ID number
directly. This is only to be used when creating a template object, and
is not to be used when creating actual objects that will be persisted.
setTemplateId in interface Persistableid - The ID number to set.public boolean equals(Object o)
AbstractCreditCardAuthoriser.
o - The object to test against this
AbstractCreditCardAuthoriser. Must also be a
AbstractCreditCardAuthoriser to make sense.
AbstractCreditCardAuthoriser s
have the same id.public abstract int hashcode()
public String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||