Interface | osid.billing.payment.PaymentLookupSession | ||
---|---|---|---|
Implements | osid.OsidSession | ||
Description |
This session defines methods for retrieving payments. This lookup session defines several views:
The methods Payments may have an additional records indicated by their
respective record types. The record may not be accessed
through a cast of the | ||
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 | canLookupPayments | ||
Description |
Tests if this user can perform | ||
Return | boolean | false if lookup methods are not authorized, true
otherwise | |
Compliance | mandatory | This method must be implemented. | |
Method | useComparativePaymentView | ||
Description |
The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | usePlenaryPaymentView | ||
Description |
A complete view of the | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useFederatedBusinessView | ||
Description |
Federates the view for methods in this session. A federated view will include payments in catalogs which are children of this catalog in the business hierarchy. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | useIsolatedBusinessView | ||
Description |
Isolates the view for methods in this session. An isolated view restricts retrievals to this business only. | ||
Compliance | mandatory | This method is must be implemented. | |
Method | getPayment | ||
Description |
Gets the | ||
Parameters | osid.id.Id | paymentId | the Id of the Payment to retrieve |
Return | osid.billing.payment.Payment | the returned Payment | |
Errors | NOT_FOUND | no Payment found with the given Id | |
NULL_ARGUMENT | paymentId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByIds | ||
Description |
Gets a | ||
Parameters | osid.id.IdList | paymentIds | the list of Ids to retrieve |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NOT_FOUND | an Id was not found | |
NULL_ARGUMENT | paymentIds is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | paymentGenusType | a payment genus type |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | paymentGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByParentGenusType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | paymentGenusType | a payment genus type |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | paymentGenusType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByRecordType | ||
Description |
Gets a | ||
Parameters | osid.type.Type | paymentRecordType | a payment record type |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | paymentRecordType is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByPeriod | ||
Description |
Gets a | ||
Parameters | osid.id.Id | periodId | a period Id |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | periodId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsForPayer | ||
Description |
Gets a | ||
Parameters | osid.id.Id | payerId | a payer Id |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | payerId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByPeriodForPayer | ||
Description |
Gets a | ||
Parameters | osid.id.Id | payerId | a payer Id |
osid.id.Id | periodId | a period Id | |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | payerId or periodId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsForPayerOnDate | ||
Description |
Gets a | ||
Parameters | osid.id.Id | payerId | a payer Id |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | payerId or periodId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsForCustomer | ||
Description |
Gets a | ||
Parameters | osid.id.Id | customerId | a customer Id |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | customerId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByPeriodForCustomer | ||
Description |
Gets a | ||
Parameters | osid.id.Id | customerId | a customer Id |
osid.id.Id | periodId | a period Id | |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | customerId or periodId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsForCustomerOnDate | ||
Description |
Gets a | ||
Parameters | osid.id.Id | customerId | a customer Id |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | customerId or periodId is null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsForPayerAndCustomer | ||
Description |
Gets a | ||
Parameters | osid.id.Id | payerId | a payer Id |
osid.id.Id | customerId | a customerId Id | |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | payerId or customerId is null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsByPeriodForPayerAndCustomer | ||
Description |
Gets a | ||
Parameters | osid.id.Id | payerId | a payer Id |
osid.id.Id | customerId | a customerId Id | |
osid.id.Id | periodId | a period Id | |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | NULL_ARGUMENT | payerId, customerId, or periodId is
null | |
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPaymentsForPayerAndCustomerOnDate | ||
Description |
Gets a | ||
Parameters | osid.id.Id | payerId | a payer Id |
osid.id.Id | customerId | a customerId Id | |
osid.calendaring.DateTime | from | start of date range | |
osid.calendaring.DateTime | to | end of date range | |
Return | osid.billing.payment.PaymentList | the returned Payment list | |
Errors | INVALID_ARGUMENT | from is greater than to | |
NULL_ARGUMENT | payerId, customerId, or periodId is
null | ||
OPERATION_FAILED | unable to complete request | ||
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. | |
Method | getPayments | ||
Description |
Gets all | ||
Return | osid.billing.payment.PaymentList | a list of Payments | |
Errors | OPERATION_FAILED | unable to complete request | |
PERMISSION_DENIED | authorization failure | ||
Compliance | mandatory | This method must be implemented. |