Interface | osid.billing.CustomerAdminSession | ||
---|---|---|---|
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 | canCreateCustomers | ||
Description |
Tests if this user can create | ||
Return | boolean | false if Customer creation is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | canCreateCustomerWithRecordTypes | ||
Description |
Tests if this user can create a single | ||
Parameters | osid.type.Type[] | customerRecordTypes | array of customer record types |
Return | boolean | true if Customer creation using the specified
record Types is supported, false otherwise | |
Errors | NULL_ARGUMENT | customerRecordTypes is null | |
Compliance | mandatory | This method must be implemented. | |
Method | getCustomerFormForCreate | ||
Description |
Gets the customer form for creating new customers. A new form should be requested for each create transaction. | ||
Parameters | osid.id.Id | resourceId | a resource Id |
osid.type.Type[] | customerRecordTypes | array of customer record types | |
Return | osid.billing.CustomerForm | the customer form | |
Errors | NOT_FOUND | resourceId is not found | |
NULL_ARGUMENT | customerRecordTypes 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 | createCustomer | ||
Description |
Creates a new | ||
Parameters | osid.billing.CustomerForm | customerForm | the form for this Customer |
Return | osid.billing.Customer | the new Customer | |
Errors | ILLEGAL_STATE | customerForm already used in a create transaction | |
INVALID_ARGUMENT | one or more of the form elements is invalid | ||
NULL_ARGUMENT | customerForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | customerForm did not originate from getCustomerFormForCreate()
| ||
Compliance | mandatory | This method must be implemented. | |
Method | canUpdateCustomers | ||
Description |
Tests if this user can update | ||
Return | boolean | false if Customer modification is not
authorized, true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | getCustomerFormForUpdate | ||
Description |
Gets the customer form for updating an existing customer. A new customer form should be requested for each update transaction. | ||
Parameters | osid.id.Id | customerId | the Id of the Customer |
Return | osid.billing.CustomerForm | the customer form | |
Errors | NOT_FOUND | customerId is not found | |
NULL_ARGUMENT | customerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | updateCustomer | ||
Description |
Updates an existing customer. | ||
Parameters | osid.billing.CustomerForm | customerForm | the form containing the elements to be updated |
Errors | ILLEGAL_STATE | customerForm already used in an update transaction | |
INVALID_ARGUMENT | the form contains an invalid value | ||
NULL_ARGUMENT | customerForm is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
UNSUPPORTED | customerForm did not originate from getCustomerFormForUpdate()
| ||
Compliance | mandatory | This method must be implemented. | |
Method | canDeleteCustomers | ||
Description |
Tests if this user can delete | ||
Return | boolean | false if Customer deletion is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | deleteCustomer | ||
Description |
Deletes a | ||
Parameters | osid.id.Id | customerId | the Id of the Customer to remove |
Errors | NOT_FOUND | customerId not found | |
NULL_ARGUMENT | customerId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | canManageCustomerAliases | ||
Description |
Tests if this user can manage | ||
Return | boolean | false if Customer aliasing is not authorized,
true otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | aliasCustomer | ||
Description |
Adds an | ||
Parameters | osid.id.Id | customerId | the Id of a Customer |
osid.id.Id | aliasId | the alias Id | |
Errors | ALREADY_EXISTS | aliasId is in use as a primary Id | |
NOT_FOUND | customerId not found | ||
NULL_ARGUMENT | customerId or aliasId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |