Skip to content

Commit

Permalink
added some javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaerk committed May 22, 2024
1 parent a92ecb0 commit abb4ccd
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
11 changes: 10 additions & 1 deletion library/src/main/java/org/mustangproject/CashDiscount.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@

import java.math.BigDecimal;

/***
* A class to represent discounts for early payments ("Skonto")
*/
public class CashDiscount implements IZUGFeRDCashDiscount {

/***
* the reduction percent allowed in the period
*/
protected BigDecimal percent;
/***
* the period (usually days) count how long the percent apply
*/
protected Integer days=null;

/***
Expand All @@ -15,7 +24,7 @@ public class CashDiscount implements IZUGFeRDCashDiscount {
* is be space for a (optional) third parameter
*
* @param percent max 3 decimals "behind the dot", more precision is currently ignored
* @param days
* @param days the count of the periods (usually days) the percentage applies
*/
public CashDiscount(BigDecimal percent, int days) {
this.percent = percent;
Expand Down
2 changes: 1 addition & 1 deletion library/src/main/java/org/mustangproject/Invoice.java
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ public Invoice setDeliveryAddress(TradeParty deliveryAddress) {
}
/***
* Adds a cash discount (skonto)
* @param CashDiscount the percent/period combination
* @param c the CashDiscount percent/period combination
* @return fluent setter
*/
public Invoice addCashDiscount(CashDiscount c) {
Expand Down
5 changes: 3 additions & 2 deletions library/src/main/java/org/mustangproject/TradeParty.java
Original file line number Diff line number Diff line change
Expand Up @@ -423,8 +423,9 @@ public String getUriUniversalCommunicationIDScheme() {


/***
* sets the email of the organization (not the one of the contact person)
* (while setEmail has to be defined here getEmail comes from IZUGFeRDExportableTradeParty)
* sets the email of the organization (not the one of the contact person)
* (while setEmail has to be defined here getEmail comes from IZUGFeRDExportableTradeParty)
* @param eMail address of institution (not contact)
* @return fluent setter
*/
public TradeParty setEmail(String eMail) {
Expand Down

0 comments on commit abb4ccd

Please sign in to comment.