Skip to content

Commit 4161558

Browse files
feat(api): new Funding Events and Card Web Provision API's
- Card Web Provisioning API allows your cardholders to directly add payment cards to the device's digital wallet from a browser on the web. Currently only supported for Apple Pay. - new Funding Events API and Webhooks
1 parent 5f162a3 commit 4161558

37 files changed

Lines changed: 6100 additions & 4 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 157
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-9580d7ed7ee603cba3dd0db9bb1ee48094dfe2a90c1ca13a7f10ab8deaa73e2c.yml
3-
openapi_spec_hash: 6f707e3df699aec761f20db720fb3a32
4-
config_hash: dc221a354631e360e545ebb7435ecd35
1+
configured_endpoints: 161
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-025f40c854a9485cf316c9058f9cc5fa37f069add30e409d49ab93f2e166f4fb.yml
3+
openapi_spec_hash: a9391f3a54b8db5d5df40169de8c645c
4+
config_hash: fa3481d1d8505e4157f6cebe93211bd0

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import com.lithic.api.services.blocking.EventService
2323
import com.lithic.api.services.blocking.ExternalBankAccountService
2424
import com.lithic.api.services.blocking.ExternalPaymentService
2525
import com.lithic.api.services.blocking.FinancialAccountService
26+
import com.lithic.api.services.blocking.FundingEventService
2627
import com.lithic.api.services.blocking.ManagementOperationService
2728
import com.lithic.api.services.blocking.PaymentService
2829
import com.lithic.api.services.blocking.ReportService
@@ -115,6 +116,8 @@ interface LithicClient {
115116

116117
fun managementOperations(): ManagementOperationService
117118

119+
fun fundingEvents(): FundingEventService
120+
118121
/** Status of api */
119122
fun apiStatus(): ApiStatus = apiStatus(ClientApiStatusParams.none())
120123

@@ -198,6 +201,8 @@ interface LithicClient {
198201

199202
fun managementOperations(): ManagementOperationService.WithRawResponse
200203

204+
fun fundingEvents(): FundingEventService.WithRawResponse
205+
201206
/**
202207
* Returns a raw HTTP response for `get /v1/status`, but is otherwise the same as
203208
* [LithicClient.apiStatus].

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import com.lithic.api.services.async.EventServiceAsync
2323
import com.lithic.api.services.async.ExternalBankAccountServiceAsync
2424
import com.lithic.api.services.async.ExternalPaymentServiceAsync
2525
import com.lithic.api.services.async.FinancialAccountServiceAsync
26+
import com.lithic.api.services.async.FundingEventServiceAsync
2627
import com.lithic.api.services.async.ManagementOperationServiceAsync
2728
import com.lithic.api.services.async.PaymentServiceAsync
2829
import com.lithic.api.services.async.ReportServiceAsync
@@ -116,6 +117,8 @@ interface LithicClientAsync {
116117

117118
fun managementOperations(): ManagementOperationServiceAsync
118119

120+
fun fundingEvents(): FundingEventServiceAsync
121+
119122
/** Status of api */
120123
fun apiStatus(): CompletableFuture<ApiStatus> = apiStatus(ClientApiStatusParams.none())
121124

@@ -200,6 +203,8 @@ interface LithicClientAsync {
200203

201204
fun managementOperations(): ManagementOperationServiceAsync.WithRawResponse
202205

206+
fun fundingEvents(): FundingEventServiceAsync.WithRawResponse
207+
203208
/**
204209
* Returns a raw HTTP response for `get /v1/status`, but is otherwise the same as
205210
* [LithicClientAsync.apiStatus].

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ import com.lithic.api.services.async.ExternalPaymentServiceAsync
4949
import com.lithic.api.services.async.ExternalPaymentServiceAsyncImpl
5050
import com.lithic.api.services.async.FinancialAccountServiceAsync
5151
import com.lithic.api.services.async.FinancialAccountServiceAsyncImpl
52+
import com.lithic.api.services.async.FundingEventServiceAsync
53+
import com.lithic.api.services.async.FundingEventServiceAsyncImpl
5254
import com.lithic.api.services.async.ManagementOperationServiceAsync
5355
import com.lithic.api.services.async.ManagementOperationServiceAsyncImpl
5456
import com.lithic.api.services.async.PaymentServiceAsync
@@ -188,6 +190,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
188190
ManagementOperationServiceAsyncImpl(clientOptionsWithUserAgent)
189191
}
190192

193+
private val fundingEvents: FundingEventServiceAsync by lazy {
194+
FundingEventServiceAsyncImpl(clientOptionsWithUserAgent)
195+
}
196+
191197
override fun sync(): LithicClient = sync
192198

193199
override fun withRawResponse(): LithicClientAsync.WithRawResponse = withRawResponse
@@ -245,6 +251,8 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
245251

246252
override fun managementOperations(): ManagementOperationServiceAsync = managementOperations
247253

254+
override fun fundingEvents(): FundingEventServiceAsync = fundingEvents
255+
248256
override fun apiStatus(
249257
params: ClientApiStatusParams,
250258
requestOptions: RequestOptions,
@@ -360,6 +368,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
360368
ManagementOperationServiceAsyncImpl.WithRawResponseImpl(clientOptions)
361369
}
362370

371+
private val fundingEvents: FundingEventServiceAsync.WithRawResponse by lazy {
372+
FundingEventServiceAsyncImpl.WithRawResponseImpl(clientOptions)
373+
}
374+
363375
override fun accounts(): AccountServiceAsync.WithRawResponse = accounts
364376

365377
override fun accountHolders(): AccountHolderServiceAsync.WithRawResponse = accountHolders
@@ -418,6 +430,8 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
418430
override fun managementOperations(): ManagementOperationServiceAsync.WithRawResponse =
419431
managementOperations
420432

433+
override fun fundingEvents(): FundingEventServiceAsync.WithRawResponse = fundingEvents
434+
421435
private val apiStatusHandler: Handler<ApiStatus> =
422436
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)
423437

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ import com.lithic.api.services.blocking.ExternalPaymentService
4949
import com.lithic.api.services.blocking.ExternalPaymentServiceImpl
5050
import com.lithic.api.services.blocking.FinancialAccountService
5151
import com.lithic.api.services.blocking.FinancialAccountServiceImpl
52+
import com.lithic.api.services.blocking.FundingEventService
53+
import com.lithic.api.services.blocking.FundingEventServiceImpl
5254
import com.lithic.api.services.blocking.ManagementOperationService
5355
import com.lithic.api.services.blocking.ManagementOperationServiceImpl
5456
import com.lithic.api.services.blocking.PaymentService
@@ -173,6 +175,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
173175
ManagementOperationServiceImpl(clientOptionsWithUserAgent)
174176
}
175177

178+
private val fundingEvents: FundingEventService by lazy {
179+
FundingEventServiceImpl(clientOptionsWithUserAgent)
180+
}
181+
176182
override fun async(): LithicClientAsync = async
177183

178184
override fun withRawResponse(): LithicClient.WithRawResponse = withRawResponse
@@ -229,6 +235,8 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
229235

230236
override fun managementOperations(): ManagementOperationService = managementOperations
231237

238+
override fun fundingEvents(): FundingEventService = fundingEvents
239+
232240
override fun apiStatus(
233241
params: ClientApiStatusParams,
234242
requestOptions: RequestOptions,
@@ -344,6 +352,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
344352
ManagementOperationServiceImpl.WithRawResponseImpl(clientOptions)
345353
}
346354

355+
private val fundingEvents: FundingEventService.WithRawResponse by lazy {
356+
FundingEventServiceImpl.WithRawResponseImpl(clientOptions)
357+
}
358+
347359
override fun accounts(): AccountService.WithRawResponse = accounts
348360

349361
override fun accountHolders(): AccountHolderService.WithRawResponse = accountHolders
@@ -401,6 +413,8 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
401413
override fun managementOperations(): ManagementOperationService.WithRawResponse =
402414
managementOperations
403415

416+
override fun fundingEvents(): FundingEventService.WithRawResponse = fundingEvents
417+
404418
private val apiStatusHandler: Handler<ApiStatus> =
405419
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)
406420

0 commit comments

Comments
 (0)