public interface Payer extends OsidObject, Temporal
A Payer represents the payer of the bills. A
Payer links a payment type to a paying contact Resource.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBankAccountNumber()
Gets the bank account number.
|
java.lang.String |
getBankRoutingNumber()
Gets the bank routing number.
|
java.lang.String |
getCreditCardCode()
Gets the credit card security code.
|
DateTime |
getCreditCardExpiration()
Gets the credit card expiration date.
|
java.lang.String |
getCreditCardNumber()
Gets the credit card number.
|
Customer |
getCustomer()
Gets the customer.
|
Id |
getCustomerId()
Gets the customer
Id. |
PayerRecord |
getPayerRecord(Type payerRecordType)
Gets the payer record corresponding to the given
Payer
record Type. |
Resource |
getResource()
Gets the resource.
|
Id |
getResourceId()
Gets the resource
Id representing the billing contact. |
boolean |
hasBankAccount()
Tests if this payer pays by bank account If
hasBankAccount()
is true, then usesActivity(),
usesCash(), hasCreditCard(), and
hasCreditCard() must be false. |
boolean |
hasCreditCard()
Tests if this payer pays by credit card.
|
boolean |
hasCustomer()
Tests if this payer is linked directly to a customer account.
|
boolean |
usesActivity()
Tests if this payer uses the customer financial activity for payments.
|
boolean |
usesCash()
Tests if this payer uses cash for payments.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypegetEndDate, getStartDate, isEffectiveId getResourceId()
Id representing the billing contact. Id mandatory - This method must be implemented. Resource getResource() throws OperationFailedException
OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean hasCustomer()
true if this payer is linked to a customer,
false otherwisemandatory - This method must be implemented. Id getCustomerId()
Id. Id IllegalStateException - hasCustomer() is
false mandatory - This method must be implemented. Customer getCustomer() throws OperationFailedException
IllegalStateException - hasCustomer() is
false OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean usesActivity()
usesActivity() is true, then usesCash(),
hasCreditCard(), and hasBankAccount()
must be false. true if this payer uses the customer activity,
false otherwiseIllegalStateException - hasCustomer() is
false mandatory - This method must be implemented. boolean usesCash()
true if this payer uses the cash, false
otherwisemandatory - This method must be implemented. boolean hasCreditCard()
hasCreditCard()
is true, then usesActivity(),
usesCash(), hasCreditCard(), and
hasBankAccount() must be false. true if this payer pays by credit card,
false otherwisemandatory - This method must be implemented. java.lang.String getCreditCardNumber()
IllegalStateException - hasCreditCard()
is false mandatory - This method must be implemented. DateTime getCreditCardExpiration()
IllegalStateException - hasCreditCard()
is false mandatory - This method must be implemented. java.lang.String getCreditCardCode()
IllegalStateException - hasCreditCard()
is false mandatory - This method must be implemented. boolean hasBankAccount()
hasBankAccount()
is true, then usesActivity(),
usesCash(), hasCreditCard(), and
hasCreditCard() must be false. true if this payer pays by bank account,
false otherwisemandatory - This method must be implemented. java.lang.String getBankRoutingNumber()
IllegalStateException - hasBankAccount()
is false mandatory - This method must be implemented. java.lang.String getBankAccountNumber()
IllegalStateException - hasBankAccount()
is false mandatory - This method must be implemented. PayerRecord getPayerRecord(Type payerRecordType) throws OperationFailedException
Payer
record Type. This method is used to retrieve an object
implementing the requested record. The payerRecordType
may be the Type returned in getRecordTypes()
or any of its parents in a Type hierarchy where
hasRecordType(payerRecordType) is true .payerRecordType - the type of payer record to retrieveNullArgumentException - payerRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(payerRecordType) is false mandatory - This method must be implemented.