Skip to content

Commit 3ccd785

Browse files
committed
fix(tests): fix jackson attributes
1 parent 775392d commit 3ccd785

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientAsyncImpl.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -178,20 +178,20 @@ class FinchClientAsyncImpl(private val clientOptions: ClientOptions) : FinchClie
178178
}
179179

180180
private data class GetAccessTokenParams(
181-
@JsonProperty("client_id") val clientId: String,
182-
@JsonProperty("client_secret") val clientSecret: String,
183-
@JsonProperty("code") val code: String,
184-
@JsonProperty("redirect_uri") val redirectUri: String?,
181+
@get:JsonProperty("client_id") val clientId: String,
182+
@get:JsonProperty("client_secret") val clientSecret: String,
183+
@get:JsonProperty("code") val code: String,
184+
@get:JsonProperty("redirect_uri") val redirectUri: String?,
185185
)
186186

187187
private data class GetAccessTokenResponse(
188-
@JsonProperty("access_token") val accessToken: String,
189-
@JsonProperty("account_id") val accountId: String,
190-
@JsonProperty("client_type") val clientType: String,
191-
@JsonProperty("company_id") val companyId: String,
192-
@JsonProperty("connection_type") val connectionType: String,
193-
@JsonProperty("products") val products: List<String>,
194-
@JsonProperty("provider_id") val providerId: String,
188+
@get:JsonProperty("access_token") val accessToken: String,
189+
@get:JsonProperty("account_id") val accountId: String,
190+
@get:JsonProperty("client_type") val clientType: String,
191+
@get:JsonProperty("company_id") val companyId: String,
192+
@get:JsonProperty("connection_type") val connectionType: String,
193+
@get:JsonProperty("products") val products: List<String>,
194+
@get:JsonProperty("provider_id") val providerId: String,
195195
)
196196

197197
override fun close() = clientOptions.httpClient.close()

finch-java-core/src/main/kotlin/com/tryfinch/api/client/FinchClientImpl.kt

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -167,20 +167,20 @@ class FinchClientImpl(private val clientOptions: ClientOptions) : FinchClient {
167167
}
168168

169169
private data class GetAccessTokenParams(
170-
@JsonProperty("client_id") val clientId: String,
171-
@JsonProperty("client_secret") val clientSecret: String,
172-
@JsonProperty("code") val code: String,
173-
@JsonProperty("redirect_uri") val redirectUri: String?,
170+
@get:JsonProperty("client_id") val clientId: String,
171+
@get:JsonProperty("client_secret") val clientSecret: String,
172+
@get:JsonProperty("code") val code: String,
173+
@get:JsonProperty("redirect_uri") val redirectUri: String?,
174174
)
175175

176176
private data class GetAccessTokenResponse(
177-
@JsonProperty("access_token") val accessToken: String,
178-
@JsonProperty("account_id") val accountId: String,
179-
@JsonProperty("client_type") val clientType: String,
180-
@JsonProperty("company_id") val companyId: String,
181-
@JsonProperty("connection_type") val connectionType: String,
182-
@JsonProperty("products") val products: List<String>,
183-
@JsonProperty("provider_id") val providerId: String,
177+
@get:JsonProperty("access_token") val accessToken: String,
178+
@get:JsonProperty("account_id") val accountId: String,
179+
@get:JsonProperty("client_type") val clientType: String,
180+
@get:JsonProperty("company_id") val companyId: String,
181+
@get:JsonProperty("connection_type") val connectionType: String,
182+
@get:JsonProperty("products") val products: List<String>,
183+
@get:JsonProperty("provider_id") val providerId: String,
184184
)
185185

186186
override fun close() = clientOptions.httpClient.close()

0 commit comments

Comments
 (0)