| Interface | osid.billing.Customer | ||
|---|---|---|---|
| Implements | osid.OsidObject | ||
osid.Temporal | |||
| Description | 
                 A   | ||
| Method | getResourceId | ||
| Description | 
                     Gets the resource   | ||
| Return | osid.id.Id | the resource  Id   | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getResource | ||
| Description | 
                     Gets the resource.  | ||
| Return | osid.resource.Resource | the resource | |
| Errors | OPERATION_FAILED | unable to complete request | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getCustomerNumber | ||
| Description | 
                     Gets the customer account number.  | ||
| Return | string | the customer number | |
| Compliance | mandatory | This method must be implemented. | |
| Method | hasActivity | ||
| Description | 
                     Tests if this customer is linked to a financial activity,  | ||
| Return | boolean |  true  if this customer has an activity,  false  
otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getActivityId | ||
| Description | 
                     Gets the activity   | ||
| Return | osid.id.Id | the activity  Id   | |
| Errors | ILLEGAL_STATE |  hasActivity()  is  false   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getActivity | ||
| Description | 
                     Gets the activity.  | ||
| Return | osid.financials.Activity | the activity | |
| Errors | ILLEGAL_STATE |  hasActivity()  is  false   |                 |
| OPERATION_FAILED | unable to complete request | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | getCustomerRecord | ||
| Description | 
                     Gets the customer record corresponding to the given 
                      | ||
| Parameters | osid.type.Type | customerRecordType | the type of customer record to retrieve | 
| Return | osid.billing.records.CustomerRecord | the customer record | |
| Errors | NULL_ARGUMENT |  customerRecordType  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| UNSUPPORTED |  hasRecordType(customerRecordType)  is  false   |                 ||
| Compliance | mandatory | This method must be implemented. | |