Skip to content

Commit e78b569

Browse files
committed
chore(internal): update formatter
chore(internal): optimize build and test perf
1 parent 90326d4 commit e78b569

File tree

12 files changed

+27
-64
lines changed

12 files changed

+27
-64
lines changed

lithic-java-core/src/main/kotlin/com/lithic/api/models/CardGetEmbedHtmlParams.kt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ constructor(
3636

3737
@JvmSynthetic
3838
internal fun getBody(): CardGetEmbedHtmlBody {
39-
return CardGetEmbedHtmlBody(
40-
token,
41-
css,
42-
expiration,
43-
targetOrigin,
44-
additionalBodyProperties,
45-
)
39+
return CardGetEmbedHtmlBody(token, css, expiration, targetOrigin, additionalBodyProperties)
4640
}
4741

4842
@JvmSynthetic internal fun getQueryParams(): Map<String, List<String>> = additionalQueryParams
@@ -113,14 +107,7 @@ constructor(
113107

114108
override fun hashCode(): Int {
115109
if (hashCode == 0) {
116-
hashCode =
117-
Objects.hash(
118-
token,
119-
css,
120-
expiration,
121-
targetOrigin,
122-
additionalProperties,
123-
)
110+
hashCode = Objects.hash(token, css, expiration, targetOrigin, additionalProperties)
124111
}
125112
return hashCode
126113
}

lithic-java-core/src/main/kotlin/com/lithic/api/models/CardGetEmbedUrlParams.kt

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,7 @@ constructor(
3636

3737
@JvmSynthetic
3838
internal fun getBody(): CardGetEmbedUrlBody {
39-
return CardGetEmbedUrlBody(
40-
token,
41-
css,
42-
expiration,
43-
targetOrigin,
44-
additionalBodyProperties,
45-
)
39+
return CardGetEmbedUrlBody(token, css, expiration, targetOrigin, additionalBodyProperties)
4640
}
4741

4842
@JvmSynthetic internal fun getQueryParams(): Map<String, List<String>> = additionalQueryParams
@@ -113,14 +107,7 @@ constructor(
113107

114108
override fun hashCode(): Int {
115109
if (hashCode == 0) {
116-
hashCode =
117-
Objects.hash(
118-
token,
119-
css,
120-
expiration,
121-
targetOrigin,
122-
additionalProperties,
123-
)
110+
hashCode = Objects.hash(token, css, expiration, targetOrigin, additionalProperties)
124111
}
125112
return hashCode
126113
}

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsync.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,11 +183,11 @@ interface CardServiceAsync {
183183

184184
fun getEmbedHtml(
185185
params: CardGetEmbedHtmlParams,
186-
requestOptions: RequestOptions = RequestOptions.none()
186+
requestOptions: RequestOptions = RequestOptions.none(),
187187
): CompletableFuture<String>
188188

189189
fun getEmbedUrl(
190190
params: CardGetEmbedUrlParams,
191-
requestOptions: RequestOptions = RequestOptions.none()
191+
requestOptions: RequestOptions = RequestOptions.none(),
192192
): String
193193
}

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/CardServiceAsyncImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien
433433

434434
override fun getEmbedHtml(
435435
params: CardGetEmbedHtmlParams,
436-
requestOptions: RequestOptions
436+
requestOptions: RequestOptions,
437437
): CompletableFuture<String> {
438438
val embed_request =
439439
Base64.getEncoder()
@@ -462,7 +462,7 @@ class CardServiceAsyncImpl internal constructor(private val clientOptions: Clien
462462

463463
override fun getEmbedUrl(
464464
params: CardGetEmbedUrlParams,
465-
requestOptions: RequestOptions
465+
requestOptions: RequestOptions,
466466
): String {
467467
val embed_request =
468468
Base64.getEncoder()

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/EventServiceAsync.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ interface EventServiceAsync {
4343
fun resend(
4444
eventToken: String,
4545
eventSubscriptionToken: String,
46-
body: JsonValue
46+
body: JsonValue,
4747
): CompletableFuture<Void>
4848
}

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/EventServiceAsyncImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class EventServiceAsyncImpl internal constructor(private val clientOptions: Clie
124124
override fun resend(
125125
eventToken: String,
126126
eventSubscriptionToken: String,
127-
body: JsonValue
127+
body: JsonValue,
128128
): CompletableFuture<Void> {
129129
val request =
130130
HttpRequest.builder()
@@ -134,7 +134,7 @@ class EventServiceAsyncImpl internal constructor(private val clientOptions: Clie
134134
eventToken,
135135
"event_subscriptions",
136136
eventSubscriptionToken,
137-
"resend"
137+
"resend",
138138
)
139139
.body(json(clientOptions.jsonMapper, body))
140140
.build()

lithic-java-core/src/main/kotlin/com/lithic/api/services/async/WebhookServiceAsyncImpl.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,8 @@ import java.util.Base64
1818
import javax.crypto.Mac
1919
import javax.crypto.spec.SecretKeySpec
2020

21-
class WebhookServiceAsyncImpl
22-
constructor(
23-
private val clientOptions: ClientOptions,
24-
) : WebhookServiceAsync {
21+
class WebhookServiceAsyncImpl constructor(private val clientOptions: ClientOptions) :
22+
WebhookServiceAsync {
2523

2624
private val errorHandler: Handler<LithicError> = errorHandler(clientOptions.jsonMapper)
2725

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ interface CardService {
179179

180180
fun getEmbedHtml(
181181
params: CardGetEmbedHtmlParams,
182-
requestOptions: RequestOptions = RequestOptions.none()
182+
requestOptions: RequestOptions = RequestOptions.none(),
183183
): String
184184

185185
fun getEmbedUrl(
186186
params: CardGetEmbedUrlParams,
187-
requestOptions: RequestOptions = RequestOptions.none()
187+
requestOptions: RequestOptions = RequestOptions.none(),
188188
): String
189189
}

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/CardServiceImpl.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti
375375

376376
override fun getEmbedHtml(
377377
params: CardGetEmbedHtmlParams,
378-
requestOptions: RequestOptions
378+
requestOptions: RequestOptions,
379379
): String {
380380
val embed_request =
381381
Base64.getEncoder()
@@ -403,7 +403,7 @@ class CardServiceImpl internal constructor(private val clientOptions: ClientOpti
403403

404404
override fun getEmbedUrl(
405405
params: CardGetEmbedUrlParams,
406-
requestOptions: RequestOptions
406+
requestOptions: RequestOptions,
407407
): String {
408408
val embed_request =
409409
Base64.getEncoder()

lithic-java-core/src/main/kotlin/com/lithic/api/services/blocking/EventServiceImpl.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class EventServiceImpl internal constructor(private val clientOptions: ClientOpt
113113
eventToken,
114114
"event_subscriptions",
115115
eventSubscriptionToken,
116-
"resend"
116+
"resend",
117117
)
118118
.body(json(clientOptions.jsonMapper, body))
119119
.build()

0 commit comments

Comments
 (0)