Interface | osid.billing.payment.PayerAdminSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session creates, updates, and deletes Create and update operations differ in their usage. To
create a For updates, The delete operations delete This session includes an | ||
Method | getBusinessId | ||
Description |
Gets the | ||
Return | osid.id.Id | the Business Id associated with this session | |
Compliance | mandatory | This method must be implemented. | |
Method | getBusiness | ||
Description |
Gets the | ||
Return | osid.billing.Business | the business | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canCreatePayers | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Payer creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreatePayerWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | payerRecordTypes | array of payer record types |
Return | boolean | true if Payer creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | payerRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getPayerFormForCreate | ||
Description |
Gets the payer form for creating new payers. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.type.Type[] | payerRecordTypes | array of payer record types | |
Return | osid.billing.payment.PayerForm | the payer form | |
Errors | NOT_FOUND | resourceId is not found | |
NULL_ARGUMENT | payerRecordTypes or resourceId is null
| ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | unable to get form for requested record types | ||
Compliance | mandatory | This method must be implemented. | |
Method | createPayer | ||
Description |
Creates a new | ||
Parameters | osid.billing.payment.PayerForm | payerForm | the form for this Payer |
Return | osid.billing.payment.Payer | the new Payer | |
Errors | ILLEGAL_STATE | payerForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | payerForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | payerForm did not originate from getPayerFormForCreate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdatePayers | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Payer modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getPayerFormForUpdate | ||
Description |
Gets the payer form for updating an existing payer. A new payer form should be requested for each update transaction. | ||
Parameters | osid.id.Id | payerId | the Id of the Payer |
Return | osid.billing.payment.PayerForm | the payer form | |
Errors | NOT_FOUND | payerId is not found | |
NULL_ARGUMENT | payerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updatePayer | ||
Description |
Updates an existing payer. | ||
Parameters | osid.billing.payment.PayerForm | payerForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | payerForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | payerForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | payerForm did not originate from getPayerFormForUpdate() | ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeletePayers | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Payer deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deletePayer | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | payerId | the Id of the Payer to remove |
Errors | NOT_FOUND | payerId not found | |
NULL_ARGUMENT | payerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManagePayerAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Payer aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasPayer | ||
Description |
Adds an | ||
Parameters | osid.id.Id | payerId | the Id of a Payer |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | payerId not found | ||
NULL_ARGUMENT | payerId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |