@@ -36,7 +36,9 @@ private constructor(
3636 private val balancePastDue: JsonField <CategoryBalances >,
3737 private val balanceDue: JsonField <CategoryBalances >,
3838 private val balanceNextDue: JsonField <CategoryBalances >,
39+ private val endingBalance: JsonField <Long >,
3940 private val creditLimit: JsonField <Long >,
41+ private val availableCredit: JsonField <Long >,
4042 private val excessCredits: JsonField <Long >,
4143 private val accountStanding: JsonField <AccountStanding >,
4244 private val creditProductToken: JsonField <String >,
@@ -89,12 +91,18 @@ private constructor(
8991 */
9092 fun balanceNextDue (): CategoryBalances = balanceNextDue.getRequired(" balance_next_due" )
9193
94+ /* * Balance at the end of the day */
95+ fun endingBalance (): Long = endingBalance.getRequired(" ending_balance" )
96+
9297 /* *
9398 * For prepay accounts, this is the minimum prepay balance that must be maintained. For charge
9499 * card accounts, this is the maximum credit balance extended by a lender
95100 */
96101 fun creditLimit (): Long = creditLimit.getRequired(" credit_limit" )
97102
103+ /* * Amount of credit available to spend in cents */
104+ fun availableCredit (): Long = availableCredit.getRequired(" available_credit" )
105+
98106 /* *
99107 * Excess credits in the form of provisional credits, payments, or purchase refunds. If
100108 * positive, the account is in net credit state with no outstanding balances. An overpayment
@@ -159,12 +167,18 @@ private constructor(
159167 */
160168 @JsonProperty(" balance_next_due" ) @ExcludeMissing fun _balanceNextDue () = balanceNextDue
161169
170+ /* * Balance at the end of the day */
171+ @JsonProperty(" ending_balance" ) @ExcludeMissing fun _endingBalance () = endingBalance
172+
162173 /* *
163174 * For prepay accounts, this is the minimum prepay balance that must be maintained. For charge
164175 * card accounts, this is the maximum credit balance extended by a lender
165176 */
166177 @JsonProperty(" credit_limit" ) @ExcludeMissing fun _creditLimit () = creditLimit
167178
179+ /* * Amount of credit available to spend in cents */
180+ @JsonProperty(" available_credit" ) @ExcludeMissing fun _availableCredit () = availableCredit
181+
168182 /* *
169183 * Excess credits in the form of provisional credits, payments, or purchase refunds. If
170184 * positive, the account is in net credit state with no outstanding balances. An overpayment
@@ -210,7 +224,9 @@ private constructor(
210224 balancePastDue().validate()
211225 balanceDue().validate()
212226 balanceNextDue().validate()
227+ endingBalance()
213228 creditLimit()
229+ availableCredit()
214230 excessCredits()
215231 accountStanding().validate()
216232 creditProductToken()
@@ -243,7 +259,9 @@ private constructor(
243259 private var balancePastDue: JsonField <CategoryBalances > = JsonMissing .of()
244260 private var balanceDue: JsonField <CategoryBalances > = JsonMissing .of()
245261 private var balanceNextDue: JsonField <CategoryBalances > = JsonMissing .of()
262+ private var endingBalance: JsonField <Long > = JsonMissing .of()
246263 private var creditLimit: JsonField <Long > = JsonMissing .of()
264+ private var availableCredit: JsonField <Long > = JsonMissing .of()
247265 private var excessCredits: JsonField <Long > = JsonMissing .of()
248266 private var accountStanding: JsonField <AccountStanding > = JsonMissing .of()
249267 private var creditProductToken: JsonField <String > = JsonMissing .of()
@@ -267,7 +285,9 @@ private constructor(
267285 this .balancePastDue = loanTape.balancePastDue
268286 this .balanceDue = loanTape.balanceDue
269287 this .balanceNextDue = loanTape.balanceNextDue
288+ this .endingBalance = loanTape.endingBalance
270289 this .creditLimit = loanTape.creditLimit
290+ this .availableCredit = loanTape.availableCredit
271291 this .excessCredits = loanTape.excessCredits
272292 this .accountStanding = loanTape.accountStanding
273293 this .creditProductToken = loanTape.creditProductToken
@@ -393,6 +413,16 @@ private constructor(
393413 this .balanceNextDue = balanceNextDue
394414 }
395415
416+ /* * Balance at the end of the day */
417+ fun endingBalance (endingBalance : Long ) = endingBalance(JsonField .of(endingBalance))
418+
419+ /* * Balance at the end of the day */
420+ @JsonProperty(" ending_balance" )
421+ @ExcludeMissing
422+ fun endingBalance (endingBalance : JsonField <Long >) = apply {
423+ this .endingBalance = endingBalance
424+ }
425+
396426 /* *
397427 * For prepay accounts, this is the minimum prepay balance that must be maintained. For
398428 * charge card accounts, this is the maximum credit balance extended by a lender
@@ -407,6 +437,16 @@ private constructor(
407437 @ExcludeMissing
408438 fun creditLimit (creditLimit : JsonField <Long >) = apply { this .creditLimit = creditLimit }
409439
440+ /* * Amount of credit available to spend in cents */
441+ fun availableCredit (availableCredit : Long ) = availableCredit(JsonField .of(availableCredit))
442+
443+ /* * Amount of credit available to spend in cents */
444+ @JsonProperty(" available_credit" )
445+ @ExcludeMissing
446+ fun availableCredit (availableCredit : JsonField <Long >) = apply {
447+ this .availableCredit = availableCredit
448+ }
449+
410450 /* *
411451 * Excess credits in the form of provisional credits, payments, or purchase refunds. If
412452 * positive, the account is in net credit state with no outstanding balances. An overpayment
@@ -508,7 +548,9 @@ private constructor(
508548 balancePastDue,
509549 balanceDue,
510550 balanceNextDue,
551+ endingBalance,
511552 creditLimit,
553+ availableCredit,
512554 excessCredits,
513555 accountStanding,
514556 creditProductToken,
@@ -1341,7 +1383,9 @@ private constructor(
13411383 this .balancePastDue == other.balancePastDue &&
13421384 this .balanceDue == other.balanceDue &&
13431385 this .balanceNextDue == other.balanceNextDue &&
1386+ this .endingBalance == other.endingBalance &&
13441387 this .creditLimit == other.creditLimit &&
1388+ this .availableCredit == other.availableCredit &&
13451389 this .excessCredits == other.excessCredits &&
13461390 this .accountStanding == other.accountStanding &&
13471391 this .creditProductToken == other.creditProductToken &&
@@ -1370,7 +1414,9 @@ private constructor(
13701414 balancePastDue,
13711415 balanceDue,
13721416 balanceNextDue,
1417+ endingBalance,
13731418 creditLimit,
1419+ availableCredit,
13741420 excessCredits,
13751421 accountStanding,
13761422 creditProductToken,
@@ -1385,5 +1431,5 @@ private constructor(
13851431 }
13861432
13871433 override fun toString () =
1388- " LoanTape{token=$token , financialAccountToken=$financialAccountToken , date=$date , created=$created , updated=$updated , version=$version , ytdTotals=$ytdTotals , periodTotals=$periodTotals , dayTotals=$dayTotals , balancePastDue=$balancePastDue , balanceDue=$balanceDue , balanceNextDue=$balanceNextDue , creditLimit=$creditLimit , excessCredits=$excessCredits , accountStanding=$accountStanding , creditProductToken=$creditProductToken , tier=$tier , paymentAllocation=$paymentAllocation , minimumPaymentBalance=$minimumPaymentBalance , previousStatementBalance=$previousStatementBalance , additionalProperties=$additionalProperties }"
1434+ " LoanTape{token=$token , financialAccountToken=$financialAccountToken , date=$date , created=$created , updated=$updated , version=$version , ytdTotals=$ytdTotals , periodTotals=$periodTotals , dayTotals=$dayTotals , balancePastDue=$balancePastDue , balanceDue=$balanceDue , balanceNextDue=$balanceNextDue , endingBalance= $endingBalance , creditLimit=$creditLimit , availableCredit= $availableCredit , excessCredits=$excessCredits , accountStanding=$accountStanding , creditProductToken=$creditProductToken , tier=$tier , paymentAllocation=$paymentAllocation , minimumPaymentBalance=$minimumPaymentBalance , previousStatementBalance=$previousStatementBalance , additionalProperties=$additionalProperties }"
13891435}
0 commit comments