Skip to content

Commit

Permalink
feat(api): updates (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Jun 12, 2024
1 parent dadb4e3 commit e37f7c1
Show file tree
Hide file tree
Showing 37 changed files with 4,192 additions and 68 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
configured_endpoints: 110
configured_endpoints: 113
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ interface LithicClient {

fun digitalCardArt(): DigitalCardArtService

fun bookTransfers(): BookTransferService

/** Status of api */
@JvmOverloads
fun apiStatus(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ interface LithicClientAsync {

fun digitalCardArt(): DigitalCardArtServiceAsync

fun bookTransfers(): BookTransferServiceAsync

/** Status of api */
@JvmOverloads
fun apiStatus(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ constructor(
DigitalCardArtServiceAsyncImpl(clientOptions)
}

private val bookTransfers: BookTransferServiceAsync by lazy {
BookTransferServiceAsyncImpl(clientOptions)
}

override fun sync(): LithicClient = sync

override fun accounts(): AccountServiceAsync = accounts
Expand Down Expand Up @@ -137,6 +141,8 @@ constructor(

override fun digitalCardArt(): DigitalCardArtServiceAsync = digitalCardArt

override fun bookTransfers(): BookTransferServiceAsync = bookTransfers

private val apiStatusHandler: Handler<ApiStatus> =
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ constructor(
DigitalCardArtServiceImpl(clientOptions)
}

private val bookTransfers: BookTransferService by lazy {
BookTransferServiceImpl(clientOptions)
}

override fun async(): LithicClientAsync = async

override fun accounts(): AccountService = accounts
Expand Down Expand Up @@ -131,6 +135,8 @@ constructor(

override fun digitalCardArt(): DigitalCardArtService = digitalCardArt

override fun bookTransfers(): BookTransferService = bookTransfers

private val apiStatusHandler: Handler<ApiStatus> =
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)

Expand Down
Loading

0 comments on commit e37f7c1

Please sign in to comment.