You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: src/main/java/com/starkbank/Invoice.java
+29-4
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ public final class Invoice extends Resource {
30
30
* interest [number, default 0.0]: Invoice monthly interest for overdue payment in %. ex: 5.2
31
31
* discounts [list of maps, default null]: list of maps with "percentage":number and "due":string pairs
32
32
* rules [list of Invoice.Rules, default []]: list of Invoice.Rule objects for modifying invoice behavior. ex: [Invoice.Rule(key="allowedTaxIds", value=[ "012.345.678-90", "45.059.493/0001-73" ])]
33
+
* splits [list of Splits, default []]: list of Splits objects to indicate payment receivers. ex: [Split(amount=141, receiverId="5706627130851328")]
33
34
* tags [list of strings, default null]: list of strings for tagging
34
35
* descriptions [list of maps, default null]: list of maps with "key":string and (optional) "value":string pairs
35
36
* pdf [string]: public Invoice PDF URL. ex: "https://invoice.starkbank.com/pdf/d454fa4e524441c1b0c1a729457ed9d8"
@@ -59,6 +60,7 @@ public final class Invoice extends Resource {
59
60
publicList<Invoice.Description> descriptions;
60
61
publicList<Invoice.Discount> discounts;
61
62
publicList<Invoice.Rule> rules;
63
+
publicList<Split> splits;
62
64
publicString[] tags;
63
65
publicStringpdf;
64
66
publicStringlink;
@@ -92,6 +94,7 @@ public final class Invoice extends Resource {
92
94
* @param interest [number, default 0.0]: Invoice monthly interest for overdue payment in %. ex: 5.2
93
95
* @param discounts [list of maps, default null]: list of maps with "percentage":number and "due":string or string pairs
94
96
* @param rules [list of Invoice.Rules, default []]: list of Invoice.Rule objects for modifying invoice behavior. ex: [Invoice.Rule(key="allowedTaxIds", value=[ "012.345.678-90", "45.059.493/0001-73" ])]
97
+
* @param splits [list of Splits, default []]: list of Splits objects to indicate payment receivers. ex: [Split(amount=141, receiverId="5706627130851328")]
95
98
* @param tags [list of strings, default null]: list of strings for tagging
96
99
* @param descriptions [list of maps, default null]: list of maps with "key":string and (optional) "value":string pairs
97
100
* @param pdf [string]: public Invoice PDF URL. ex: "https://invoice.starkbank.com/pdf/d454fa4e524441c1b0c1a729457ed9d8"
@@ -109,10 +112,10 @@ public final class Invoice extends Resource {
109
112
* @param updated [string]: creation datetime for the Invoice. ex: "2020-03-10 10:30:00.000000+00:00"
0 commit comments