Skip to content

Commit e3d53b2

Browse files
feat(api): add disputes V2 endpoints
feat(api): add unpause external_bank_accounts API method feat(api): add return payment method feat(api): extract some common schemas into models feat(api): add Tokenization and ACH Rules fix(api): mark certain optional fields as nullable fix(api): change allowed phone number length from 18 to 16
1 parent e88a58f commit e3d53b2

149 files changed

Lines changed: 23635 additions & 22997 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: 168
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-c3f6c23018d70fd1b259b21cfd377b5d905872f0d3c5ce2cdb8013f4b6daa338.yml
3-
openapi_spec_hash: b551344da9d29eb4c5374874ed84a9b0
4-
config_hash: 012f050e575d1bbfe8db56a9eeaa5fcd
1+
configured_endpoints: 172
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-e1901db484e520cc1f6aa88c8b00d0fcda30c8f9e5ea562a12b9edfc3fb3b6d6.yml
3+
openapi_spec_hash: 59c317749628f3ed4cc7911b68f6351f
4+
config_hash: aab05d0cf41f1f6b9f4d5677273c1600

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
@@ -21,6 +21,7 @@ import com.lithic.api.services.blocking.CardService
2121
import com.lithic.api.services.blocking.CreditProductService
2222
import com.lithic.api.services.blocking.DigitalCardArtService
2323
import com.lithic.api.services.blocking.DisputeService
24+
import com.lithic.api.services.blocking.DisputesV2Service
2425
import com.lithic.api.services.blocking.EventService
2526
import com.lithic.api.services.blocking.ExternalBankAccountService
2627
import com.lithic.api.services.blocking.ExternalPaymentService
@@ -96,6 +97,8 @@ interface LithicClient {
9697

9798
fun disputes(): DisputeService
9899

100+
fun disputesV2(): DisputesV2Service
101+
99102
fun events(): EventService
100103

101104
fun transfers(): TransferService
@@ -196,6 +199,8 @@ interface LithicClient {
196199

197200
fun disputes(): DisputeService.WithRawResponse
198201

202+
fun disputesV2(): DisputesV2Service.WithRawResponse
203+
199204
fun events(): EventService.WithRawResponse
200205

201206
fun transfers(): TransferService.WithRawResponse

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
@@ -20,6 +20,7 @@ import com.lithic.api.services.async.CardServiceAsync
2020
import com.lithic.api.services.async.CreditProductServiceAsync
2121
import com.lithic.api.services.async.DigitalCardArtServiceAsync
2222
import com.lithic.api.services.async.DisputeServiceAsync
23+
import com.lithic.api.services.async.DisputesV2ServiceAsync
2324
import com.lithic.api.services.async.EventServiceAsync
2425
import com.lithic.api.services.async.ExternalBankAccountServiceAsync
2526
import com.lithic.api.services.async.ExternalPaymentServiceAsync
@@ -96,6 +97,8 @@ interface LithicClientAsync {
9697

9798
fun disputes(): DisputeServiceAsync
9899

100+
fun disputesV2(): DisputesV2ServiceAsync
101+
99102
fun events(): EventServiceAsync
100103

101104
fun transfers(): TransferServiceAsync
@@ -199,6 +202,8 @@ interface LithicClientAsync {
199202

200203
fun disputes(): DisputeServiceAsync.WithRawResponse
201204

205+
fun disputesV2(): DisputesV2ServiceAsync.WithRawResponse
206+
202207
fun events(): EventServiceAsync.WithRawResponse
203208

204209
fun transfers(): TransferServiceAsync.WithRawResponse

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
@@ -43,6 +43,8 @@ import com.lithic.api.services.async.DigitalCardArtServiceAsync
4343
import com.lithic.api.services.async.DigitalCardArtServiceAsyncImpl
4444
import com.lithic.api.services.async.DisputeServiceAsync
4545
import com.lithic.api.services.async.DisputeServiceAsyncImpl
46+
import com.lithic.api.services.async.DisputesV2ServiceAsync
47+
import com.lithic.api.services.async.DisputesV2ServiceAsyncImpl
4648
import com.lithic.api.services.async.EventServiceAsync
4749
import com.lithic.api.services.async.EventServiceAsyncImpl
4850
import com.lithic.api.services.async.ExternalBankAccountServiceAsync
@@ -135,6 +137,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
135137
DisputeServiceAsyncImpl(clientOptionsWithUserAgent)
136138
}
137139

140+
private val disputesV2: DisputesV2ServiceAsync by lazy {
141+
DisputesV2ServiceAsyncImpl(clientOptionsWithUserAgent)
142+
}
143+
138144
private val events: EventServiceAsync by lazy {
139145
EventServiceAsyncImpl(clientOptionsWithUserAgent)
140146
}
@@ -241,6 +247,8 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
241247

242248
override fun disputes(): DisputeServiceAsync = disputes
243249

250+
override fun disputesV2(): DisputesV2ServiceAsync = disputesV2
251+
244252
override fun events(): EventServiceAsync = events
245253

246254
override fun transfers(): TransferServiceAsync = transfers
@@ -337,6 +345,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
337345
DisputeServiceAsyncImpl.WithRawResponseImpl(clientOptions)
338346
}
339347

348+
private val disputesV2: DisputesV2ServiceAsync.WithRawResponse by lazy {
349+
DisputesV2ServiceAsyncImpl.WithRawResponseImpl(clientOptions)
350+
}
351+
340352
private val events: EventServiceAsync.WithRawResponse by lazy {
341353
EventServiceAsyncImpl.WithRawResponseImpl(clientOptions)
342354
}
@@ -443,6 +455,8 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
443455

444456
override fun disputes(): DisputeServiceAsync.WithRawResponse = disputes
445457

458+
override fun disputesV2(): DisputesV2ServiceAsync.WithRawResponse = disputesV2
459+
446460
override fun events(): EventServiceAsync.WithRawResponse = events
447461

448462
override fun transfers(): TransferServiceAsync.WithRawResponse = transfers

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
@@ -43,6 +43,8 @@ import com.lithic.api.services.blocking.DigitalCardArtService
4343
import com.lithic.api.services.blocking.DigitalCardArtServiceImpl
4444
import com.lithic.api.services.blocking.DisputeService
4545
import com.lithic.api.services.blocking.DisputeServiceImpl
46+
import com.lithic.api.services.blocking.DisputesV2Service
47+
import com.lithic.api.services.blocking.DisputesV2ServiceImpl
4648
import com.lithic.api.services.blocking.EventService
4749
import com.lithic.api.services.blocking.EventServiceImpl
4850
import com.lithic.api.services.blocking.ExternalBankAccountService
@@ -128,6 +130,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
128130

129131
private val disputes: DisputeService by lazy { DisputeServiceImpl(clientOptionsWithUserAgent) }
130132

133+
private val disputesV2: DisputesV2Service by lazy {
134+
DisputesV2ServiceImpl(clientOptionsWithUserAgent)
135+
}
136+
131137
private val events: EventService by lazy { EventServiceImpl(clientOptionsWithUserAgent) }
132138

133139
private val transfers: TransferService by lazy {
@@ -223,6 +229,8 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
223229

224230
override fun disputes(): DisputeService = disputes
225231

232+
override fun disputesV2(): DisputesV2Service = disputesV2
233+
226234
override fun events(): EventService = events
227235

228236
override fun transfers(): TransferService = transfers
@@ -319,6 +327,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
319327
DisputeServiceImpl.WithRawResponseImpl(clientOptions)
320328
}
321329

330+
private val disputesV2: DisputesV2Service.WithRawResponse by lazy {
331+
DisputesV2ServiceImpl.WithRawResponseImpl(clientOptions)
332+
}
333+
322334
private val events: EventService.WithRawResponse by lazy {
323335
EventServiceImpl.WithRawResponseImpl(clientOptions)
324336
}
@@ -425,6 +437,8 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
425437

426438
override fun disputes(): DisputeService.WithRawResponse = disputes
427439

440+
override fun disputesV2(): DisputesV2Service.WithRawResponse = disputesV2
441+
428442
override fun events(): EventService.WithRawResponse = events
429443

430444
override fun transfers(): TransferService.WithRawResponse = transfers

0 commit comments

Comments
 (0)