@@ -27,6 +27,7 @@ private constructor(
2727 private val authenticationType: JsonField <AuthenticationType >,
2828 private val companyId: JsonField <String >,
2929 private val connectionId: JsonField <String >,
30+ private val entityId: JsonField <String >,
3031 private val products: JsonField <List <String >>,
3132 private val providerId: JsonField <String >,
3233 private val additionalProperties: MutableMap <String , JsonValue >,
@@ -45,6 +46,7 @@ private constructor(
4546 @JsonProperty(" connection_id" )
4647 @ExcludeMissing
4748 connectionId: JsonField <String > = JsonMissing .of(),
49+ @JsonProperty(" entity_id" ) @ExcludeMissing entityId: JsonField <String > = JsonMissing .of(),
4850 @JsonProperty(" products" )
4951 @ExcludeMissing
5052 products: JsonField <List <String >> = JsonMissing .of(),
@@ -57,6 +59,7 @@ private constructor(
5759 authenticationType,
5860 companyId,
5961 connectionId,
62+ entityId,
6063 products,
6164 providerId,
6265 mutableMapOf (),
@@ -99,6 +102,14 @@ private constructor(
99102 */
100103 fun connectionId (): String = connectionId.getRequired(" connection_id" )
101104
105+ /* *
106+ * The ID of the entity for this connection
107+ *
108+ * @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
109+ * missing or null (e.g. if the server responded with an unexpected value).
110+ */
111+ fun entityId (): String = entityId.getRequired(" entity_id" )
112+
102113 /* *
103114 * @throws FinchInvalidDataException if the JSON field has an unexpected type or is unexpectedly
104115 * missing or null (e.g. if the server responded with an unexpected value).
@@ -161,6 +172,13 @@ private constructor(
161172 @ExcludeMissing
162173 fun _connectionId (): JsonField <String > = connectionId
163174
175+ /* *
176+ * Returns the raw JSON value of [entityId].
177+ *
178+ * Unlike [entityId], this method doesn't throw if the JSON field has an unexpected type.
179+ */
180+ @JsonProperty(" entity_id" ) @ExcludeMissing fun _entityId (): JsonField <String > = entityId
181+
164182 /* *
165183 * Returns the raw JSON value of [products].
166184 *
@@ -199,6 +217,7 @@ private constructor(
199217 * .authenticationType()
200218 * .companyId()
201219 * .connectionId()
220+ * .entityId()
202221 * .products()
203222 * .providerId()
204223 * ```
@@ -214,6 +233,7 @@ private constructor(
214233 private var authenticationType: JsonField <AuthenticationType >? = null
215234 private var companyId: JsonField <String >? = null
216235 private var connectionId: JsonField <String >? = null
236+ private var entityId: JsonField <String >? = null
217237 private var products: JsonField <MutableList <String >>? = null
218238 private var providerId: JsonField <String >? = null
219239 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
@@ -225,6 +245,7 @@ private constructor(
225245 authenticationType = accountCreateResponse.authenticationType
226246 companyId = accountCreateResponse.companyId
227247 connectionId = accountCreateResponse.connectionId
248+ entityId = accountCreateResponse.entityId
228249 products = accountCreateResponse.products.map { it.toMutableList() }
229250 providerId = accountCreateResponse.providerId
230251 additionalProperties = accountCreateResponse.additionalProperties.toMutableMap()
@@ -297,6 +318,17 @@ private constructor(
297318 this .connectionId = connectionId
298319 }
299320
321+ /* * The ID of the entity for this connection */
322+ fun entityId (entityId : String ) = entityId(JsonField .of(entityId))
323+
324+ /* *
325+ * Sets [Builder.entityId] to an arbitrary JSON value.
326+ *
327+ * You should usually call [Builder.entityId] with a well-typed [String] value instead. This
328+ * method is primarily for setting the field to an undocumented or not yet supported value.
329+ */
330+ fun entityId (entityId : JsonField <String >) = apply { this .entityId = entityId }
331+
300332 fun products (products : List <String >) = products(JsonField .of(products))
301333
302334 /* *
@@ -365,6 +397,7 @@ private constructor(
365397 * .authenticationType()
366398 * .companyId()
367399 * .connectionId()
400+ * .entityId()
368401 * .products()
369402 * .providerId()
370403 * ```
@@ -378,6 +411,7 @@ private constructor(
378411 checkRequired(" authenticationType" , authenticationType),
379412 checkRequired(" companyId" , companyId),
380413 checkRequired(" connectionId" , connectionId),
414+ checkRequired(" entityId" , entityId),
381415 checkRequired(" products" , products).map { it.toImmutable() },
382416 checkRequired(" providerId" , providerId),
383417 additionalProperties.toMutableMap(),
@@ -396,6 +430,7 @@ private constructor(
396430 authenticationType().validate()
397431 companyId()
398432 connectionId()
433+ entityId()
399434 products()
400435 providerId()
401436 validated = true
@@ -421,6 +456,7 @@ private constructor(
421456 (authenticationType.asKnown().getOrNull()?.validity() ? : 0 ) +
422457 (if (companyId.asKnown().isPresent) 1 else 0 ) +
423458 (if (connectionId.asKnown().isPresent) 1 else 0 ) +
459+ (if (entityId.asKnown().isPresent) 1 else 0 ) +
424460 (products.asKnown().getOrNull()?.size ? : 0 ) +
425461 (if (providerId.asKnown().isPresent) 1 else 0 )
426462
@@ -576,6 +612,7 @@ private constructor(
576612 authenticationType == other.authenticationType &&
577613 companyId == other.companyId &&
578614 connectionId == other.connectionId &&
615+ entityId == other.entityId &&
579616 products == other.products &&
580617 providerId == other.providerId &&
581618 additionalProperties == other.additionalProperties
@@ -588,6 +625,7 @@ private constructor(
588625 authenticationType,
589626 companyId,
590627 connectionId,
628+ entityId,
591629 products,
592630 providerId,
593631 additionalProperties,
@@ -597,5 +635,5 @@ private constructor(
597635 override fun hashCode (): Int = hashCode
598636
599637 override fun toString () =
600- " AccountCreateResponse{accessToken=$accessToken , accountId=$accountId , authenticationType=$authenticationType , companyId=$companyId , connectionId=$connectionId , products=$products , providerId=$providerId , additionalProperties=$additionalProperties }"
638+ " AccountCreateResponse{accessToken=$accessToken , accountId=$accountId , authenticationType=$authenticationType , companyId=$companyId , connectionId=$connectionId , entityId= $entityId , products=$products , providerId=$providerId , additionalProperties=$additionalProperties }"
601639}
0 commit comments