Skip to content

Commit 295e9f3

Browse files
feat(api): add card authorization challenge webhook, rename types in authorization models
1 parent 57b5b27 commit 295e9f3

28 files changed

Lines changed: 13730 additions & 8552 deletions

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 193
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-edd62262c633378b046a4c774cb9a824e2f6bf8f6c0cec613d3fb56e96ba1a29.yml
3-
openapi_spec_hash: e90bfadcd60afbaf9e0c9ebaea4e374e
4-
config_hash: 265a2b679964f4ad5706de101ad2a942
1+
configured_endpoints: 194
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic/lithic-19240135588c2012b39cde86218a05c471b3e7831b57c736704e3fbca109e3a9.yml
3+
openapi_spec_hash: c6a5c719b89e08de52aea005b39fd5a6
4+
config_hash: 1c5c139a2aa0d1d45c063f953a9bc803

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
@@ -15,6 +15,7 @@ import com.lithic.api.services.blocking.AuthRuleService
1515
import com.lithic.api.services.blocking.AuthStreamEnrollmentService
1616
import com.lithic.api.services.blocking.BalanceService
1717
import com.lithic.api.services.blocking.BookTransferService
18+
import com.lithic.api.services.blocking.CardAuthorizationService
1819
import com.lithic.api.services.blocking.CardBulkOrderService
1920
import com.lithic.api.services.blocking.CardProgramService
2021
import com.lithic.api.services.blocking.CardService
@@ -94,6 +95,8 @@ interface LithicClient {
9495

9596
fun cards(): CardService
9697

98+
fun cardAuthorizations(): CardAuthorizationService
99+
97100
fun cardBulkOrders(): CardBulkOrderService
98101

99102
fun balances(): BalanceService
@@ -202,6 +205,8 @@ interface LithicClient {
202205

203206
fun cards(): CardService.WithRawResponse
204207

208+
fun cardAuthorizations(): CardAuthorizationService.WithRawResponse
209+
205210
fun cardBulkOrders(): CardBulkOrderService.WithRawResponse
206211

207212
fun balances(): BalanceService.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
@@ -14,6 +14,7 @@ import com.lithic.api.services.async.AuthRuleServiceAsync
1414
import com.lithic.api.services.async.AuthStreamEnrollmentServiceAsync
1515
import com.lithic.api.services.async.BalanceServiceAsync
1616
import com.lithic.api.services.async.BookTransferServiceAsync
17+
import com.lithic.api.services.async.CardAuthorizationServiceAsync
1718
import com.lithic.api.services.async.CardBulkOrderServiceAsync
1819
import com.lithic.api.services.async.CardProgramServiceAsync
1920
import com.lithic.api.services.async.CardServiceAsync
@@ -94,6 +95,8 @@ interface LithicClientAsync {
9495

9596
fun cards(): CardServiceAsync
9697

98+
fun cardAuthorizations(): CardAuthorizationServiceAsync
99+
97100
fun cardBulkOrders(): CardBulkOrderServiceAsync
98101

99102
fun balances(): BalanceServiceAsync
@@ -205,6 +208,8 @@ interface LithicClientAsync {
205208

206209
fun cards(): CardServiceAsync.WithRawResponse
207210

211+
fun cardAuthorizations(): CardAuthorizationServiceAsync.WithRawResponse
212+
208213
fun cardBulkOrders(): CardBulkOrderServiceAsync.WithRawResponse
209214

210215
fun balances(): BalanceServiceAsync.WithRawResponse

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import com.lithic.api.services.async.BalanceServiceAsync
3131
import com.lithic.api.services.async.BalanceServiceAsyncImpl
3232
import com.lithic.api.services.async.BookTransferServiceAsync
3333
import com.lithic.api.services.async.BookTransferServiceAsyncImpl
34+
import com.lithic.api.services.async.CardAuthorizationServiceAsync
35+
import com.lithic.api.services.async.CardAuthorizationServiceAsyncImpl
3436
import com.lithic.api.services.async.CardBulkOrderServiceAsync
3537
import com.lithic.api.services.async.CardBulkOrderServiceAsyncImpl
3638
import com.lithic.api.services.async.CardProgramServiceAsync
@@ -131,6 +133,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
131133

132134
private val cards: CardServiceAsync by lazy { CardServiceAsyncImpl(clientOptionsWithUserAgent) }
133135

136+
private val cardAuthorizations: CardAuthorizationServiceAsync by lazy {
137+
CardAuthorizationServiceAsyncImpl(clientOptionsWithUserAgent)
138+
}
139+
134140
private val cardBulkOrders: CardBulkOrderServiceAsync by lazy {
135141
CardBulkOrderServiceAsyncImpl(clientOptionsWithUserAgent)
136142
}
@@ -259,6 +265,8 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
259265

260266
override fun cards(): CardServiceAsync = cards
261267

268+
override fun cardAuthorizations(): CardAuthorizationServiceAsync = cardAuthorizations
269+
262270
override fun cardBulkOrders(): CardBulkOrderServiceAsync = cardBulkOrders
263271

264272
override fun balances(): BalanceServiceAsync = balances
@@ -357,6 +365,10 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
357365
CardServiceAsyncImpl.WithRawResponseImpl(clientOptions)
358366
}
359367

368+
private val cardAuthorizations: CardAuthorizationServiceAsync.WithRawResponse by lazy {
369+
CardAuthorizationServiceAsyncImpl.WithRawResponseImpl(clientOptions)
370+
}
371+
360372
private val cardBulkOrders: CardBulkOrderServiceAsync.WithRawResponse by lazy {
361373
CardBulkOrderServiceAsyncImpl.WithRawResponseImpl(clientOptions)
362374
}
@@ -488,6 +500,9 @@ class LithicClientAsyncImpl(private val clientOptions: ClientOptions) : LithicCl
488500

489501
override fun cards(): CardServiceAsync.WithRawResponse = cards
490502

503+
override fun cardAuthorizations(): CardAuthorizationServiceAsync.WithRawResponse =
504+
cardAuthorizations
505+
491506
override fun cardBulkOrders(): CardBulkOrderServiceAsync.WithRawResponse = cardBulkOrders
492507

493508
override fun balances(): BalanceServiceAsync.WithRawResponse = balances

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ import com.lithic.api.services.blocking.BalanceService
3131
import com.lithic.api.services.blocking.BalanceServiceImpl
3232
import com.lithic.api.services.blocking.BookTransferService
3333
import com.lithic.api.services.blocking.BookTransferServiceImpl
34+
import com.lithic.api.services.blocking.CardAuthorizationService
35+
import com.lithic.api.services.blocking.CardAuthorizationServiceImpl
3436
import com.lithic.api.services.blocking.CardBulkOrderService
3537
import com.lithic.api.services.blocking.CardBulkOrderServiceImpl
3638
import com.lithic.api.services.blocking.CardProgramService
@@ -128,6 +130,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
128130

129131
private val cards: CardService by lazy { CardServiceImpl(clientOptionsWithUserAgent) }
130132

133+
private val cardAuthorizations: CardAuthorizationService by lazy {
134+
CardAuthorizationServiceImpl(clientOptionsWithUserAgent)
135+
}
136+
131137
private val cardBulkOrders: CardBulkOrderService by lazy {
132138
CardBulkOrderServiceImpl(clientOptionsWithUserAgent)
133139
}
@@ -239,6 +245,8 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
239245

240246
override fun cards(): CardService = cards
241247

248+
override fun cardAuthorizations(): CardAuthorizationService = cardAuthorizations
249+
242250
override fun cardBulkOrders(): CardBulkOrderService = cardBulkOrders
243251

244252
override fun balances(): BalanceService = balances
@@ -337,6 +345,10 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
337345
CardServiceImpl.WithRawResponseImpl(clientOptions)
338346
}
339347

348+
private val cardAuthorizations: CardAuthorizationService.WithRawResponse by lazy {
349+
CardAuthorizationServiceImpl.WithRawResponseImpl(clientOptions)
350+
}
351+
340352
private val cardBulkOrders: CardBulkOrderService.WithRawResponse by lazy {
341353
CardBulkOrderServiceImpl.WithRawResponseImpl(clientOptions)
342354
}
@@ -468,6 +480,9 @@ class LithicClientImpl(private val clientOptions: ClientOptions) : LithicClient
468480

469481
override fun cards(): CardService.WithRawResponse = cards
470482

483+
override fun cardAuthorizations(): CardAuthorizationService.WithRawResponse =
484+
cardAuthorizations
485+
471486
override fun cardBulkOrders(): CardBulkOrderService.WithRawResponse = cardBulkOrders
472487

473488
override fun balances(): BalanceService.WithRawResponse = balances

0 commit comments

Comments
 (0)