| Interface | osid.acknowledgement.BillingAdminSession | ||
|---|---|---|---|
| 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 | canCreateBillings | ||
| Description | 
                     Tests if this user can create   | ||
| Return | boolean |  false  if  Billing  creation is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | canCreateBillingWithRecordTypes | ||
| Description | 
                     Tests if this user can create a single   | ||
| Parameters | osid.type.Type[] | billingRecordTypes | array of types | 
| Return | boolean |  true  if  Billing  creation using the specified 
record  Types  is supported,  false  otherwise  | |
| Errors | NULL_ARGUMENT |  billingRecordTypes  is  null   |                 |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBillingFormForCreate | ||
| Description | 
                     Gets the billing form for creating new billings. A new form should be requested for each create transaction.  | ||
| Parameters | osid.type.Type[] | billingRecordTypes | array of types | 
| Return | osid.acknowledgement.BillingForm | the billing form | |
| Errors | NULL_ARGUMENT |  billingRecordTypes  is  null   |                 |
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED | cannot get form for requested record types | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | createBilling | ||
| Description | 
                     Creates a new   | ||
| Parameters | osid.acknowledgement.BillingForm | billingForm | the form for this  Billing   | 
| Return | osid.acknowledgement.Billing | the new  Billing   | |
| Errors | ILLEGAL_STATE |  billingForm  already used in a create transaction  |                 |
| INVALID_ARGUMENT | one or more of the form elements is invalid | ||
| NULL_ARGUMENT |  billingForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  billingForm  did not originate from  
getBillingFormForCreate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canUpdateBillings | ||
| Description | 
                     Tests if this user can update   | ||
| Return | boolean |  false  if  Billing  modification is not 
authorized,  true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | getBillingFormForUpdate | ||
| Description | 
                     Gets the billing form for updating an existing billing. A new billing form should be requested for each update transaction.  | ||
| Parameters | osid.id.Id | billingId | the  Id  of the  Billing   | 
| Return | osid.acknowledgement.BillingForm | the billing form | |
| Errors | NOT_FOUND |  billingId  is not found  |                 |
| NULL_ARGUMENT |  billingId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | updateBilling | ||
| Description | 
                     Updates an existing billing.  | ||
| Parameters | osid.acknowledgement.BillingForm | billingForm | the form containing the elements to be updated | 
| Errors | ILLEGAL_STATE |  billingForm  already used in an update transaction  |                 |
| INVALID_ARGUMENT | the form contains an invalid value | ||
| NULL_ARGUMENT |  billingForm  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| UNSUPPORTED |  billingForm did not originate from getBillingFormForUpdate()   |                 ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canDeleteBillings | ||
| Description | 
                     Tests if this user can delete   | ||
| Return | boolean |  false  if  Billing  deletion is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | deleteBilling | ||
| Description | 
                     Deletes a   | ||
| Parameters | osid.id.Id | billingId | the  Id  of the  Billing  to remove  | 
| Errors | NOT_FOUND |  billingId  not found  |                 |
| NULL_ARGUMENT |  billingId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |
| Method | canManageBillingAliases | ||
| Description | 
                     Tests if this user can manage   | ||
| Return | boolean |  false  if  Billing  aliasing is not authorized, 
 true  otherwise  | |
| Compliance | mandatory | This method must be implemented. | |
| Method | aliasBilling | ||
| Description | 
                     Adds an   | ||
| Parameters | osid.id.Id | billingId | the  Id  of a  Billing   | 
osid.id.Id | aliasId | the alias  Id   | |
| Errors | ALREADY_EXISTS |  aliasId  is in use as a primary  Id   |                 |
| NOT_FOUND |  billingId  not found  |                 ||
| NULL_ARGUMENT |  billingId  or  aliasId  is  null   |                 ||
| OPERATION_FAILED | unable to complete request | ||
| PERMISSION_DENIED | authorization failure | ||
| Compliance | mandatory | This method must be implemented. | |