@@ -30,7 +30,7 @@ private constructor(
3030
3131 fun response (): Response = response
3232
33- fun data (): List <LineItemListResponse > = response().data()
33+ fun data (): List <StatementLineItems . StatementLineItemResponse > = response().data()
3434
3535 fun hasMore (): Boolean = response().hasMore()
3636
@@ -101,18 +101,21 @@ private constructor(
101101 @JsonCreator
102102 constructor (
103103 @JsonProperty(" data" )
104- private val data: JsonField <List <LineItemListResponse >> = JsonMissing .of(),
104+ private val data: JsonField <List <StatementLineItems .StatementLineItemResponse >> =
105+ JsonMissing .of(),
105106 @JsonProperty(" has_more" ) private val hasMore: JsonField <Boolean > = JsonMissing .of(),
106107 @JsonAnySetter
107108 private val additionalProperties: Map <String , JsonValue > = immutableEmptyMap(),
108109 ) {
109110
110- fun data (): List <LineItemListResponse > = data.getNullable(" data" ) ? : listOf ()
111+ fun data (): List <StatementLineItems .StatementLineItemResponse > =
112+ data.getNullable(" data" ) ? : listOf ()
111113
112114 fun hasMore (): Boolean = hasMore.getRequired(" has_more" )
113115
114116 @JsonProperty(" data" )
115- fun _data (): Optional <JsonField <List <LineItemListResponse >>> = Optional .ofNullable(data)
117+ fun _data (): Optional <JsonField <List <StatementLineItems .StatementLineItemResponse >>> =
118+ Optional .ofNullable(data)
116119
117120 @JsonProperty(" has_more" )
118121 fun _hasMore (): Optional <JsonField <Boolean >> = Optional .ofNullable(hasMore)
@@ -155,7 +158,8 @@ private constructor(
155158
156159 class Builder {
157160
158- private var data: JsonField <List <LineItemListResponse >> = JsonMissing .of()
161+ private var data: JsonField <List <StatementLineItems .StatementLineItemResponse >> =
162+ JsonMissing .of()
159163 private var hasMore: JsonField <Boolean > = JsonMissing .of()
160164 private var additionalProperties: MutableMap <String , JsonValue > = mutableMapOf ()
161165
@@ -166,9 +170,12 @@ private constructor(
166170 this .additionalProperties.putAll(page.additionalProperties)
167171 }
168172
169- fun data (data : List <LineItemListResponse >) = data(JsonField .of(data))
173+ fun data (data : List <StatementLineItems .StatementLineItemResponse >) =
174+ data(JsonField .of(data))
170175
171- fun data (data : JsonField <List <LineItemListResponse >>) = apply { this .data = data }
176+ fun data (data : JsonField <List <StatementLineItems .StatementLineItemResponse >>) = apply {
177+ this .data = data
178+ }
172179
173180 fun hasMore (hasMore : Boolean ) = hasMore(JsonField .of(hasMore))
174181
@@ -193,11 +200,11 @@ private constructor(
193200 ) {
194201
195202 fun forEach (
196- action : Predicate <LineItemListResponse >,
203+ action : Predicate <StatementLineItems . StatementLineItemResponse >,
197204 executor : Executor
198205 ): CompletableFuture <Void > {
199206 fun CompletableFuture<Optional<FinancialAccountStatementLineItemListPageAsync>>.forEach (
200- action : (LineItemListResponse ) -> Boolean ,
207+ action : (StatementLineItems . StatementLineItemResponse ) -> Boolean ,
201208 executor : Executor
202209 ): CompletableFuture <Void > =
203210 thenComposeAsync(
@@ -213,8 +220,10 @@ private constructor(
213220 .forEach(action::test, executor)
214221 }
215222
216- fun toList (executor : Executor ): CompletableFuture <List <LineItemListResponse >> {
217- val values = mutableListOf<LineItemListResponse >()
223+ fun toList (
224+ executor : Executor
225+ ): CompletableFuture <List <StatementLineItems .StatementLineItemResponse >> {
226+ val values = mutableListOf<StatementLineItems .StatementLineItemResponse >()
218227 return forEach(values::add, executor).thenApply { values }
219228 }
220229 }
0 commit comments