Skip to content

Commit 076028b

Browse files
feat(api): adds Network Programs and Account/Card Sub-statuses
- Add detailed substatus enums for Account and Card state management with fraud, risk, and lifecycle reason codes - Add Network Program endpoints for program management.
1 parent 1bf367a commit 076028b

67 files changed

Lines changed: 7823 additions & 440 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 165
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-41b87f6139d55188993492b9c042a6bc1bc0506c166334c387072b57b6c79869.yml
3-
openapi_spec_hash: 3327246caf3bcbd3504ce99c81062075
4-
config_hash: f390dcd4de9109eff9667160949feef2
1+
configured_endpoints: 167
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-b9c76d077831114f1e4c5c15ff3f1d835ef3e9361b768af8468f8eb07a09ef3e.yml
3+
openapi_spec_hash: 5f9bcf1afd68f962a870727c35628394
4+
config_hash: e9a46eb8acb9dc2c236f3e1958a1c4dd

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
@@ -27,6 +27,7 @@ import com.lithic.api.services.blocking.FinancialAccountService
2727
import com.lithic.api.services.blocking.FraudService
2828
import com.lithic.api.services.blocking.FundingEventService
2929
import com.lithic.api.services.blocking.ManagementOperationService
30+
import com.lithic.api.services.blocking.NetworkProgramService
3031
import com.lithic.api.services.blocking.PaymentService
3132
import com.lithic.api.services.blocking.ReportService
3233
import com.lithic.api.services.blocking.ResponderEndpointService
@@ -130,6 +131,8 @@ interface LithicClient {
130131

131132
fun fraud(): FraudService
132133

134+
fun networkPrograms(): NetworkProgramService
135+
133136
/** Status of api */
134137
fun apiStatus(): ApiStatus = apiStatus(ClientApiStatusParams.none())
135138

@@ -224,6 +227,8 @@ interface LithicClient {
224227

225228
fun fraud(): FraudService.WithRawResponse
226229

230+
fun networkPrograms(): NetworkProgramService.WithRawResponse
231+
227232
/**
228233
* Returns a raw HTTP response for `get /v1/status`, but is otherwise the same as
229234
* [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
@@ -26,6 +26,7 @@ import com.lithic.api.services.async.FinancialAccountServiceAsync
2626
import com.lithic.api.services.async.FraudServiceAsync
2727
import com.lithic.api.services.async.FundingEventServiceAsync
2828
import com.lithic.api.services.async.ManagementOperationServiceAsync
29+
import com.lithic.api.services.async.NetworkProgramServiceAsync
2930
import com.lithic.api.services.async.PaymentServiceAsync
3031
import com.lithic.api.services.async.ReportServiceAsync
3132
import com.lithic.api.services.async.ResponderEndpointServiceAsync
@@ -130,6 +131,8 @@ interface LithicClientAsync {
130131

131132
fun fraud(): FraudServiceAsync
132133

134+
fun networkPrograms(): NetworkProgramServiceAsync
135+
133136
/** Status of api */
134137
fun apiStatus(): CompletableFuture<ApiStatus> = apiStatus(ClientApiStatusParams.none())
135138

@@ -227,6 +230,8 @@ interface LithicClientAsync {
227230

228231
fun fraud(): FraudServiceAsync.WithRawResponse
229232

233+
fun networkPrograms(): NetworkProgramServiceAsync.WithRawResponse
234+
230235
/**
231236
* Returns a raw HTTP response for `get /v1/status`, but is otherwise the same as
232237
* [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
@@ -55,6 +55,8 @@ import com.lithic.api.services.async.FundingEventServiceAsync
5555
import com.lithic.api.services.async.FundingEventServiceAsyncImpl
5656
import com.lithic.api.services.async.ManagementOperationServiceAsync
5757
import com.lithic.api.services.async.ManagementOperationServiceAsyncImpl
58+
import com.lithic.api.services.async.NetworkProgramServiceAsync
59+
import com.lithic.api.services.async.NetworkProgramServiceAsyncImpl
5860
import com.lithic.api.services.async.PaymentServiceAsync
5961
import com.lithic.api.services.async.PaymentServiceAsyncImpl
6062
import com.lithic.api.services.async.ReportServiceAsync
@@ -201,6 +203,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
201203
FraudServiceAsyncImpl(clientOptionsWithUserAgent)
202204
}
203205

206+
private val networkPrograms: NetworkProgramServiceAsync by lazy {
207+
NetworkProgramServiceAsyncImpl(clientOptionsWithUserAgent)
208+
}
209+
204210
override fun sync(): LithicClient = sync
205211

206212
override fun withRawResponse(): LithicClientAsync.WithRawResponse = withRawResponse
@@ -265,6 +271,8 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
265271

266272
override fun fraud(): FraudServiceAsync = fraud
267273

274+
override fun networkPrograms(): NetworkProgramServiceAsync = networkPrograms
275+
268276
override fun apiStatus(
269277
params: ClientApiStatusParams,
270278
requestOptions: RequestOptions,
@@ -388,6 +396,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
388396
FraudServiceAsyncImpl.WithRawResponseImpl(clientOptions)
389397
}
390398

399+
private val networkPrograms: NetworkProgramServiceAsync.WithRawResponse by lazy {
400+
NetworkProgramServiceAsyncImpl.WithRawResponseImpl(clientOptions)
401+
}
402+
391403
override fun withOptions(
392404
modifier: Consumer<ClientOptions.Builder>
393405
): LithicClientAsync.WithRawResponse =
@@ -457,6 +469,8 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
457469

458470
override fun fraud(): FraudServiceAsync.WithRawResponse = fraud
459471

472+
override fun networkPrograms(): NetworkProgramServiceAsync.WithRawResponse = networkPrograms
473+
460474
private val apiStatusHandler: Handler<ApiStatus> =
461475
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)
462476

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
@@ -55,6 +55,8 @@ import com.lithic.api.services.blocking.FundingEventService
5555
import com.lithic.api.services.blocking.FundingEventServiceImpl
5656
import com.lithic.api.services.blocking.ManagementOperationService
5757
import com.lithic.api.services.blocking.ManagementOperationServiceImpl
58+
import com.lithic.api.services.blocking.NetworkProgramService
59+
import com.lithic.api.services.blocking.NetworkProgramServiceImpl
5860
import com.lithic.api.services.blocking.PaymentService
5961
import com.lithic.api.services.blocking.PaymentServiceImpl
6062
import com.lithic.api.services.blocking.ReportService
@@ -184,6 +186,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
184186

185187
private val fraud: FraudService by lazy { FraudServiceImpl(clientOptionsWithUserAgent) }
186188

189+
private val networkPrograms: NetworkProgramService by lazy {
190+
NetworkProgramServiceImpl(clientOptionsWithUserAgent)
191+
}
192+
187193
override fun async(): LithicClientAsync = async
188194

189195
override fun withRawResponse(): LithicClient.WithRawResponse = withRawResponse
@@ -247,6 +253,8 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
247253

248254
override fun fraud(): FraudService = fraud
249255

256+
override fun networkPrograms(): NetworkProgramService = networkPrograms
257+
250258
override fun apiStatus(
251259
params: ClientApiStatusParams,
252260
requestOptions: RequestOptions,
@@ -370,6 +378,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
370378
FraudServiceImpl.WithRawResponseImpl(clientOptions)
371379
}
372380

381+
private val networkPrograms: NetworkProgramService.WithRawResponse by lazy {
382+
NetworkProgramServiceImpl.WithRawResponseImpl(clientOptions)
383+
}
384+
373385
override fun withOptions(
374386
modifier: Consumer<ClientOptions.Builder>
375387
): LithicClient.WithRawResponse =
@@ -438,6 +450,8 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
438450

439451
override fun fraud(): FraudService.WithRawResponse = fraud
440452

453+
override fun networkPrograms(): NetworkProgramService.WithRawResponse = networkPrograms
454+
441455
private val apiStatusHandler: Handler<ApiStatus> =
442456
jsonHandler<ApiStatus>(clientOptions.jsonMapper).withErrorHandler(errorHandler)
443457

0 commit comments

Comments
 (0)