@@ -44,6 +44,7 @@ private constructor(
4444 private val updated: JsonField <OffsetDateTime >,
4545 private val version: JsonField <Long >,
4646 private val ytdTotals: JsonField <StatementTotals >,
47+ private val dayOfPeriod: JsonField <Long >,
4748 private val tier: JsonField <String >,
4849 private val eventType: JsonField <EventType >,
4950 private val additionalProperties: MutableMap <String , JsonValue >,
@@ -108,6 +109,9 @@ private constructor(
108109 @JsonProperty(" ytd_totals" )
109110 @ExcludeMissing
110111 ytdTotals: JsonField <StatementTotals > = JsonMissing .of(),
112+ @JsonProperty(" day_of_period" )
113+ @ExcludeMissing
114+ dayOfPeriod: JsonField <Long > = JsonMissing .of(),
111115 @JsonProperty(" tier" ) @ExcludeMissing tier: JsonField <String > = JsonMissing .of(),
112116 @JsonProperty(" event_type" )
113117 @ExcludeMissing
@@ -134,6 +138,7 @@ private constructor(
134138 updated,
135139 version,
136140 ytdTotals,
141+ dayOfPeriod,
137142 tier,
138143 eventType,
139144 mutableMapOf (),
@@ -162,6 +167,7 @@ private constructor(
162167 .updated(updated)
163168 .version(version)
164169 .ytdTotals(ytdTotals)
170+ .dayOfPeriod(dayOfPeriod)
165171 .tier(tier)
166172 .build()
167173
@@ -324,6 +330,14 @@ private constructor(
324330 */
325331 fun ytdTotals (): StatementTotals = ytdTotals.getRequired(" ytd_totals" )
326332
333+ /* *
334+ * Day of the billing period that this loan tape covers, starting at 1
335+ *
336+ * @throws LithicInvalidDataException if the JSON field has an unexpected type (e.g. if the
337+ * server responded with an unexpected value).
338+ */
339+ fun dayOfPeriod (): Optional <Long > = dayOfPeriod.getOptional(" day_of_period" )
340+
327341 /* *
328342 * Interest tier to which this account belongs to
329343 *
@@ -522,6 +536,13 @@ private constructor(
522536 @ExcludeMissing
523537 fun _ytdTotals (): JsonField <StatementTotals > = ytdTotals
524538
539+ /* *
540+ * Returns the raw JSON value of [dayOfPeriod].
541+ *
542+ * Unlike [dayOfPeriod], this method doesn't throw if the JSON field has an unexpected type.
543+ */
544+ @JsonProperty(" day_of_period" ) @ExcludeMissing fun _dayOfPeriod (): JsonField <Long > = dayOfPeriod
545+
525546 /* *
526547 * Returns the raw JSON value of [tier].
527548 *
@@ -606,6 +627,7 @@ private constructor(
606627 private var updated: JsonField <OffsetDateTime >? = null
607628 private var version: JsonField <Long >? = null
608629 private var ytdTotals: JsonField <StatementTotals >? = null
630+ private var dayOfPeriod: JsonField <Long > = JsonMissing .of()
609631 private var tier: JsonField <String > = JsonMissing .of()
610632 private var eventType: JsonField <EventType >? = null
611633 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
@@ -633,6 +655,7 @@ private constructor(
633655 updated = loanTapeCreatedWebhookEvent.updated
634656 version = loanTapeCreatedWebhookEvent.version
635657 ytdTotals = loanTapeCreatedWebhookEvent.ytdTotals
658+ dayOfPeriod = loanTapeCreatedWebhookEvent.dayOfPeriod
636659 tier = loanTapeCreatedWebhookEvent.tier
637660 eventType = loanTapeCreatedWebhookEvent.eventType
638661 additionalProperties = loanTapeCreatedWebhookEvent.additionalProperties.toMutableMap()
@@ -922,6 +945,28 @@ private constructor(
922945 */
923946 fun ytdTotals (ytdTotals : JsonField <StatementTotals >) = apply { this .ytdTotals = ytdTotals }
924947
948+ /* * Day of the billing period that this loan tape covers, starting at 1 */
949+ fun dayOfPeriod (dayOfPeriod : Long? ) = dayOfPeriod(JsonField .ofNullable(dayOfPeriod))
950+
951+ /* *
952+ * Alias for [Builder.dayOfPeriod].
953+ *
954+ * This unboxed primitive overload exists for backwards compatibility.
955+ */
956+ fun dayOfPeriod (dayOfPeriod : Long ) = dayOfPeriod(dayOfPeriod as Long? )
957+
958+ /* * Alias for calling [Builder.dayOfPeriod] with `dayOfPeriod.orElse(null)`. */
959+ fun dayOfPeriod (dayOfPeriod : Optional <Long >) = dayOfPeriod(dayOfPeriod.getOrNull())
960+
961+ /* *
962+ * Sets [Builder.dayOfPeriod] to an arbitrary JSON value.
963+ *
964+ * You should usually call [Builder.dayOfPeriod] with a well-typed [Long] value instead.
965+ * This method is primarily for setting the field to an undocumented or not yet supported
966+ * value.
967+ */
968+ fun dayOfPeriod (dayOfPeriod : JsonField <Long >) = apply { this .dayOfPeriod = dayOfPeriod }
969+
925970 /* * Interest tier to which this account belongs to */
926971 fun tier (tier : String? ) = tier(JsonField .ofNullable(tier))
927972
@@ -1023,6 +1068,7 @@ private constructor(
10231068 checkRequired(" updated" , updated),
10241069 checkRequired(" version" , version),
10251070 checkRequired(" ytdTotals" , ytdTotals),
1071+ dayOfPeriod,
10261072 tier,
10271073 checkRequired(" eventType" , eventType),
10281074 additionalProperties.toMutableMap(),
@@ -1065,6 +1111,7 @@ private constructor(
10651111 updated()
10661112 version()
10671113 ytdTotals().validate()
1114+ dayOfPeriod()
10681115 tier()
10691116 eventType().validate()
10701117 validated = true
@@ -1106,6 +1153,7 @@ private constructor(
11061153 (if (updated.asKnown().isPresent) 1 else 0 ) +
11071154 (if (version.asKnown().isPresent) 1 else 0 ) +
11081155 (ytdTotals.asKnown().getOrNull()?.validity() ? : 0 ) +
1156+ (if (dayOfPeriod.asKnown().isPresent) 1 else 0 ) +
11091157 (if (tier.asKnown().isPresent) 1 else 0 ) +
11101158 (eventType.asKnown().getOrNull()?.validity() ? : 0 )
11111159
@@ -1267,6 +1315,7 @@ private constructor(
12671315 updated == other.updated &&
12681316 version == other.version &&
12691317 ytdTotals == other.ytdTotals &&
1318+ dayOfPeriod == other.dayOfPeriod &&
12701319 tier == other.tier &&
12711320 eventType == other.eventType &&
12721321 additionalProperties == other.additionalProperties
@@ -1295,6 +1344,7 @@ private constructor(
12951344 updated,
12961345 version,
12971346 ytdTotals,
1347+ dayOfPeriod,
12981348 tier,
12991349 eventType,
13001350 additionalProperties,
@@ -1304,5 +1354,5 @@ private constructor(
13041354 override fun hashCode (): Int = hashCode
13051355
13061356 override fun toString () =
1307- " LoanTapeCreatedWebhookEvent{token=$token , accountStanding=$accountStanding , availableCredit=$availableCredit , balances=$balances , created=$created , creditLimit=$creditLimit , creditProductToken=$creditProductToken , date=$date , dayTotals=$dayTotals , endingBalance=$endingBalance , excessCredits=$excessCredits , financialAccountToken=$financialAccountToken , interestDetails=$interestDetails , minimumPaymentBalance=$minimumPaymentBalance , paymentAllocation=$paymentAllocation , periodTotals=$periodTotals , previousStatementBalance=$previousStatementBalance , startingBalance=$startingBalance , updated=$updated , version=$version , ytdTotals=$ytdTotals , tier=$tier , eventType=$eventType , additionalProperties=$additionalProperties }"
1357+ " LoanTapeCreatedWebhookEvent{token=$token , accountStanding=$accountStanding , availableCredit=$availableCredit , balances=$balances , created=$created , creditLimit=$creditLimit , creditProductToken=$creditProductToken , date=$date , dayTotals=$dayTotals , endingBalance=$endingBalance , excessCredits=$excessCredits , financialAccountToken=$financialAccountToken , interestDetails=$interestDetails , minimumPaymentBalance=$minimumPaymentBalance , paymentAllocation=$paymentAllocation , periodTotals=$periodTotals , previousStatementBalance=$previousStatementBalance , startingBalance=$startingBalance , updated=$updated , version=$version , ytdTotals=$ytdTotals , dayOfPeriod= $dayOfPeriod , tier=$tier , eventType=$eventType , additionalProperties=$additionalProperties }"
13081358}
0 commit comments