|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Accounting
[usecase] This use case comprises the functionality of the accounting component.
| Method Summary | |
|---|---|
void |
receiveMoney(int invoiceId)
Notifies the accounting component that the money corresponding to an invoice has been received and, hence, the invoice can be closed |
int |
sendInvoice(java.lang.String subject,
java.lang.String name,
java.lang.String address,
int amount)
Generates a new Invoice object. |
| Method Detail |
|---|
void receiveMoney(int invoiceId)
invoiceId - [in] the id of the invoice to be closed
[post Invoice i (i.id == invoiceID): i.invoiceStatus == InvoiceStatus.PAID
int sendInvoice(java.lang.String subject,
java.lang.String name,
java.lang.String address,
int amount)
Invoice object.
subject - [in] invoice subjectname - [in] name of the invoice's recipientaddress - [in] address where the invoice is to be sent toamount - [in] invoice amount in Euro cents
Invoice object
[post exists new Invoice i: i.id == result
post i.date is current date
post i.subject == subject
post i.name == name
post i.address == address
post i.amount == amount
post i.status == InvoiceStatus.SENT
]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||