@@ -28,9 +28,9 @@ private constructor(
2828 private val lastTransactionEventToken: JsonField <String >,
2929 private val lastTransactionToken: JsonField <String >,
3030 private val pendingAmount: JsonField <Long >,
31- private val token : JsonField <String >,
31+ private val financialAccountToken : JsonField <String >,
3232 private val totalAmount: JsonField <Long >,
33- private val type : JsonField <Type >,
33+ private val financialAccountType : JsonField <FinancialAccountType >,
3434 private val updated: JsonField <OffsetDateTime >,
3535 private val additionalProperties: Map <String , JsonValue >,
3636) {
@@ -65,7 +65,8 @@ private constructor(
6565 fun pendingAmount (): Long = pendingAmount.getRequired(" pending_amount" )
6666
6767 /* * Globally unique identifier for the financial account that holds this balance. */
68- fun token (): String = token.getRequired(" token" )
68+ fun financialAccountToken (): String =
69+ financialAccountToken.getRequired(" financial_account_token" )
6970
7071 /* *
7172 * The sum of available and pending balance in the currency's smallest unit (e.g., cents for
@@ -74,7 +75,8 @@ private constructor(
7475 fun totalAmount (): Long = totalAmount.getRequired(" total_amount" )
7576
7677 /* * Type of financial account. */
77- fun type (): Type = type.getRequired(" type" )
78+ fun financialAccountType (): FinancialAccountType =
79+ financialAccountType.getRequired(" financial_account_type" )
7880
7981 /* * Date and time for when the balance was last updated. */
8082 fun updated (): OffsetDateTime = updated.getRequired(" updated" )
@@ -108,7 +110,9 @@ private constructor(
108110 @JsonProperty(" pending_amount" ) @ExcludeMissing fun _pendingAmount () = pendingAmount
109111
110112 /* * Globally unique identifier for the financial account that holds this balance. */
111- @JsonProperty(" token" ) @ExcludeMissing fun _token () = token
113+ @JsonProperty(" financial_account_token" )
114+ @ExcludeMissing
115+ fun _financialAccountToken () = financialAccountToken
112116
113117 /* *
114118 * The sum of available and pending balance in the currency's smallest unit (e.g., cents for
@@ -117,7 +121,9 @@ private constructor(
117121 @JsonProperty(" total_amount" ) @ExcludeMissing fun _totalAmount () = totalAmount
118122
119123 /* * Type of financial account. */
120- @JsonProperty(" type" ) @ExcludeMissing fun _type () = type
124+ @JsonProperty(" financial_account_type" )
125+ @ExcludeMissing
126+ fun _financialAccountType () = financialAccountType
121127
122128 /* * Date and time for when the balance was last updated. */
123129 @JsonProperty(" updated" ) @ExcludeMissing fun _updated () = updated
@@ -134,9 +140,9 @@ private constructor(
134140 lastTransactionEventToken()
135141 lastTransactionToken()
136142 pendingAmount()
137- token ()
143+ financialAccountToken ()
138144 totalAmount()
139- type ()
145+ financialAccountType ()
140146 updated()
141147 validated = true
142148 }
@@ -156,9 +162,9 @@ private constructor(
156162 this .lastTransactionEventToken == other.lastTransactionEventToken &&
157163 this .lastTransactionToken == other.lastTransactionToken &&
158164 this .pendingAmount == other.pendingAmount &&
159- this .token == other.token &&
165+ this .financialAccountToken == other.financialAccountToken &&
160166 this .totalAmount == other.totalAmount &&
161- this .type == other.type &&
167+ this .financialAccountType == other.financialAccountType &&
162168 this .updated == other.updated &&
163169 this .additionalProperties == other.additionalProperties
164170 }
@@ -173,9 +179,9 @@ private constructor(
173179 lastTransactionEventToken,
174180 lastTransactionToken,
175181 pendingAmount,
176- token ,
182+ financialAccountToken ,
177183 totalAmount,
178- type ,
184+ financialAccountType ,
179185 updated,
180186 additionalProperties,
181187 )
@@ -184,7 +190,7 @@ private constructor(
184190 }
185191
186192 override fun toString () =
187- " Balance{availableAmount=$availableAmount , created=$created , currency=$currency , lastTransactionEventToken=$lastTransactionEventToken , lastTransactionToken=$lastTransactionToken , pendingAmount=$pendingAmount , token= $token , totalAmount=$totalAmount , type= $type , updated=$updated , additionalProperties=$additionalProperties }"
193+ " Balance{availableAmount=$availableAmount , created=$created , currency=$currency , lastTransactionEventToken=$lastTransactionEventToken , lastTransactionToken=$lastTransactionToken , pendingAmount=$pendingAmount , financialAccountToken= $financialAccountToken , totalAmount=$totalAmount , financialAccountType= $financialAccountType , updated=$updated , additionalProperties=$additionalProperties }"
188194
189195 companion object {
190196
@@ -199,9 +205,9 @@ private constructor(
199205 private var lastTransactionEventToken: JsonField <String > = JsonMissing .of()
200206 private var lastTransactionToken: JsonField <String > = JsonMissing .of()
201207 private var pendingAmount: JsonField <Long > = JsonMissing .of()
202- private var token : JsonField <String > = JsonMissing .of()
208+ private var financialAccountToken : JsonField <String > = JsonMissing .of()
203209 private var totalAmount: JsonField <Long > = JsonMissing .of()
204- private var type : JsonField <Type > = JsonMissing .of()
210+ private var financialAccountType : JsonField <FinancialAccountType > = JsonMissing .of()
205211 private var updated: JsonField <OffsetDateTime > = JsonMissing .of()
206212 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
207213
@@ -213,9 +219,9 @@ private constructor(
213219 this .lastTransactionEventToken = balance.lastTransactionEventToken
214220 this .lastTransactionToken = balance.lastTransactionToken
215221 this .pendingAmount = balance.pendingAmount
216- this .token = balance.token
222+ this .financialAccountToken = balance.financialAccountToken
217223 this .totalAmount = balance.totalAmount
218- this .type = balance.type
224+ this .financialAccountType = balance.financialAccountType
219225 this .updated = balance.updated
220226 additionalProperties(balance.additionalProperties)
221227 }
@@ -295,12 +301,15 @@ private constructor(
295301 }
296302
297303 /* * Globally unique identifier for the financial account that holds this balance. */
298- fun token (token : String ) = token(JsonField .of(token))
304+ fun financialAccountToken (financialAccountToken : String ) =
305+ financialAccountToken(JsonField .of(financialAccountToken))
299306
300307 /* * Globally unique identifier for the financial account that holds this balance. */
301- @JsonProperty(" token " )
308+ @JsonProperty(" financial_account_token " )
302309 @ExcludeMissing
303- fun token (token : JsonField <String >) = apply { this .token = token }
310+ fun financialAccountToken (financialAccountToken : JsonField <String >) = apply {
311+ this .financialAccountToken = financialAccountToken
312+ }
304313
305314 /* *
306315 * The sum of available and pending balance in the currency's smallest unit (e.g., cents for
@@ -317,12 +326,15 @@ private constructor(
317326 fun totalAmount (totalAmount : JsonField <Long >) = apply { this .totalAmount = totalAmount }
318327
319328 /* * Type of financial account. */
320- fun type (type : Type ) = type(JsonField .of(type))
329+ fun financialAccountType (financialAccountType : FinancialAccountType ) =
330+ financialAccountType(JsonField .of(financialAccountType))
321331
322332 /* * Type of financial account. */
323- @JsonProperty(" type " )
333+ @JsonProperty(" financial_account_type " )
324334 @ExcludeMissing
325- fun type (type : JsonField <Type >) = apply { this .type = type }
335+ fun financialAccountType (financialAccountType : JsonField <FinancialAccountType >) = apply {
336+ this .financialAccountType = financialAccountType
337+ }
326338
327339 /* * Date and time for when the balance was last updated. */
328340 fun updated (updated : OffsetDateTime ) = updated(JsonField .of(updated))
@@ -354,15 +366,15 @@ private constructor(
354366 lastTransactionEventToken,
355367 lastTransactionToken,
356368 pendingAmount,
357- token ,
369+ financialAccountToken ,
358370 totalAmount,
359- type ,
371+ financialAccountType ,
360372 updated,
361373 additionalProperties.toUnmodifiable(),
362374 )
363375 }
364376
365- class Type
377+ class FinancialAccountType
366378 @JsonCreator
367379 private constructor (
368380 private val value: JsonField <String >,
@@ -375,7 +387,7 @@ private constructor(
375387 return true
376388 }
377389
378- return other is Type && this .value == other.value
390+ return other is FinancialAccountType && this .value == other.value
379391 }
380392
381393 override fun hashCode () = value.hashCode()
@@ -384,11 +396,11 @@ private constructor(
384396
385397 companion object {
386398
387- @JvmField val ISSUING = Type (JsonField .of(" ISSUING" ))
399+ @JvmField val ISSUING = FinancialAccountType (JsonField .of(" ISSUING" ))
388400
389- @JvmField val RESERVE = Type (JsonField .of(" RESERVE" ))
401+ @JvmField val RESERVE = FinancialAccountType (JsonField .of(" RESERVE" ))
390402
391- @JvmStatic fun of (value : String ) = Type (JsonField .of(value))
403+ @JvmStatic fun of (value : String ) = FinancialAccountType (JsonField .of(value))
392404 }
393405
394406 enum class Known {
@@ -413,7 +425,7 @@ private constructor(
413425 when (this ) {
414426 ISSUING -> Known .ISSUING
415427 RESERVE -> Known .RESERVE
416- else -> throw LithicInvalidDataException (" Unknown Type : $value " )
428+ else -> throw LithicInvalidDataException (" Unknown FinancialAccountType : $value " )
417429 }
418430
419431 fun asString (): String = _value ().asStringOrThrow()
0 commit comments