Skip to content

Commit ecd7c1e

Browse files
feat(api): updates (#237)
1 parent dadb4e3 commit ecd7c1e

37 files changed

Lines changed: 4192 additions & 68 deletions

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 110
1+
configured_endpoints: 113

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClient.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ interface LithicClient {
5656

5757
fun digitalCardArt(): DigitalCardArtService
5858

59+
fun bookTransfers(): BookTransferService
60+
5961
/** Status of api */
6062
@JvmOverloads
6163
fun apiStatus(

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientAsync.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ interface LithicClientAsync {
5757

5858
fun digitalCardArt(): DigitalCardArtServiceAsync
5959

60+
fun bookTransfers(): BookTransferServiceAsync
61+
6062
/** Status of api */
6163
@JvmOverloads
6264
fun apiStatus(

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientAsyncImpl.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ constructor(
9090
DigitalCardArtServiceAsyncImpl(clientOptions)
9191
}
9292

93+
private val bookTransfers: BookTransferServiceAsync by lazy {
94+
BookTransferServiceAsyncImpl(clientOptions)
95+
}
96+
9397
override fun sync(): LithicClient = sync
9498

9599
override fun accounts(): AccountServiceAsync = accounts
@@ -137,6 +141,8 @@ constructor(
137141

138142
override fun digitalCardArt(): DigitalCardArtServiceAsync = digitalCardArt
139143

144+
override fun bookTransfers(): BookTransferServiceAsync = bookTransfers
145+
140146
private val apiStatusHandler: Handler<ApiStatus> =
141147
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)
142148

lithic-java-core/src/main/kotlin/com/lithic/api/client/LithicClientImpl.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ constructor(
8585
DigitalCardArtServiceImpl(clientOptions)
8686
}
8787

88+
private val bookTransfers: BookTransferService by lazy {
89+
BookTransferServiceImpl(clientOptions)
90+
}
91+
8892
override fun async(): LithicClientAsync = async
8993

9094
override fun accounts(): AccountService = accounts
@@ -131,6 +135,8 @@ constructor(
131135

132136
override fun digitalCardArt(): DigitalCardArtService = digitalCardArt
133137

138+
override fun bookTransfers(): BookTransferService = bookTransfers
139+
134140
private val apiStatusHandler: Handler<ApiStatus> =
135141
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)
136142

0 commit comments

Comments
 (0)