From 33613a85afc4b1481367fbe92a17ee59c240250b Mon Sep 17 00:00:00 2001 From: Sven Eisenhauer Date: Fri, 10 Nov 2023 15:11:48 +0100 Subject: add new repo --- .../library/accounting/usecase/Accounting.html | 253 +++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 Master/Reference Architectures and Patterns/doc/de/h_da/library/accounting/usecase/Accounting.html (limited to 'Master/Reference Architectures and Patterns/doc/de/h_da/library/accounting/usecase/Accounting.html') diff --git a/Master/Reference Architectures and Patterns/doc/de/h_da/library/accounting/usecase/Accounting.html b/Master/Reference Architectures and Patterns/doc/de/h_da/library/accounting/usecase/Accounting.html new file mode 100644 index 0000000..555b503 --- /dev/null +++ b/Master/Reference Architectures and Patterns/doc/de/h_da/library/accounting/usecase/Accounting.html @@ -0,0 +1,253 @@ + + + + + + +Accounting + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ +

+ +de.h_da.library.accounting.usecase +
+Interface Accounting

+
+
+
public interface Accounting
+ + +

+[usecase] This use case comprises the functionality of the accounting + component. +

+ +

+


+ +

+ + + + + + + + + + + + + + + + +
+Method Summary
+ voidreceiveMoney(int invoiceId) + +
+          Notifies the accounting component that the money corresponding to an + invoice has been received and, hence, the invoice can be closed
+ intsendInvoice(java.lang.String subject, + java.lang.String name, + java.lang.String address, + int amount) + +
+          Generates a new Invoice object.
+  +

+ + + + + + + + +
+Method Detail
+ +

+receiveMoney

+
+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 +

+

+
Parameters:
invoiceId - [in] the id of the invoice to be closed + +
+     [post Invoice i (i.id == invoiceID): i.invoiceStatus == InvoiceStatus.PAID
+ 
+
+
+
+ +

+sendInvoice

+
+int sendInvoice(java.lang.String subject,
+                java.lang.String name,
+                java.lang.String address,
+                int amount)
+
+
Generates a new Invoice object. +

+

+
Parameters:
subject - [in] invoice subject
name - [in] name of the invoice's recipient
address - [in] address where the invoice is to be sent to
amount - [in] invoice amount in Euro cents +
Returns:
[out] id of the generated 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
+       ]
+ 
+
+
+ +
+ + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + + -- cgit v1.2.3