Created
February 8, 2026 22:33
-
-
Save trikitrok/bfee46074f81b60d84ba96b3fae6f6a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class Invoice { | |
| private final ShippingPricer shippingPricer; | |
| // ... | |
| public Invoice( | |
| OurDate billingDate, | |
| OurDate openingDate, | |
| Originator originator | |
| // ... | |
| ) { | |
| // ... | |
| this.shippingPricer = new ShippingPricer(billingDate, openingDate, originator); | |
| } | |
| // ... | |
| public Money getValue() { | |
| Money total = this.itemsSum(); | |
| total.add(this.shippingPricer.getPrice()); | |
| total.add(this.getTax()); | |
| return total; | |
| } | |
| private Money itemsSum() { | |
| throw new RuntimeException("Not implemented"); | |
| } | |
| // ... | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment