Skip to content

Commit 4f866e1

Browse files
committed
v0.6.0
1 parent 6242df8 commit 4f866e1

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Lithic Java API Library
22

3-
[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.5.0)
3+
[![Maven Central](https://img.shields.io/maven-central/v/com.lithic.api/lithic-java)](https://central.sonatype.com/artifact/com.lithic.api/lithic-java/0.6.0)
44

55
The Lithic Java SDK provides convenient access to the Lithic REST API from applications written in Java. It includes helper classes with helpful types and documentation for every request and response property.
66

@@ -21,7 +21,7 @@ The API documentation can be found [here](https://docs.lithic.com).
2121
#### Gradle
2222

2323
```kotlin
24-
implementation("com.lithic.api:lithic-java:0.5.0")
24+
implementation("com.lithic.api:lithic-java:0.6.0")
2525
```
2626

2727
#### Maven
@@ -30,7 +30,7 @@ implementation("com.lithic.api:lithic-java:0.5.0")
3030
<dependency>
3131
<groupId>com.lithic.api</groupId>
3232
<artifactId>lithic-java</artifactId>
33-
<version>0.5.0</version>
33+
<version>0.6.0</version>
3434
</dependency>
3535
```
3636

@@ -59,10 +59,10 @@ LithicClient client = LithicOkHttpClient.builder()
5959
.build();
6060
```
6161

62-
| Property | Environment variable | Required | Default value |
63-
| ------------- | ----------------------- | -------- | ------------- |
64-
| apiKey | `LITHIC_API_KEY` | true | |
65-
| webhookSecret | `LITHIC_WEBHOOK_SECRET` | false | |
62+
| Property | Environment variable | Required | Default value |
63+
| -------- | ------------------------- | -------- | ------------- |
64+
| apiKey | `LITHIC_API_KEY` | true ||
65+
| webhookSecret | `LITHIC_WEBHOOK_SECRET` | false ||
6666

6767
Read the documentation for more configuration options.
6868

@@ -139,6 +139,12 @@ To write an unrecognized enum value, pass a string to the wrapper class's `of` c
139139
Card.builder().state(State.of("NEW_STATE")).build()
140140
```
141141

142+
143+
144+
145+
146+
147+
142148
## Requests
143149

144150
### Parameters and bodies
@@ -195,6 +201,7 @@ if (state().isMissing()) {
195201
}
196202
```
197203

204+
198205
### Additional model properties
199206

200207
Sometimes, the server response may include additional properties that are not yet available in this library's types. You can access them using the model's `_additionalProperties` method:
@@ -203,6 +210,7 @@ Sometimes, the server response may include additional properties that are not ye
203210
String secret = card._additionalProperties().get("secret_field");
204211
```
205212

213+
206214
---
207215

208216
## Pagination
@@ -260,6 +268,7 @@ You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lith
260268

261269
---
262270

271+
263272
## Error handling
264273

265274
This library throws exceptions in a single hierarchy for easy handling:
@@ -286,35 +295,27 @@ This library throws exceptions in a single hierarchy for easy handling:
286295
## Network options
287296

288297
### Retries
289-
290298
Requests that experience certain errors are automatically retried 2 times by default, with a short exponential backoff. Connection errors (for example, due to a network connectivity problem), 409 Conflict, 429 Rate Limit, and >=500 Internal errors will all be retried by default.
291299
You can provide a `maxRetries` on the client builder to configure this:
292-
293300
```java
294301
LithicClient client = LithicOkHttpClient.builder()
295302
.fromEnv()
296303
.maxRetries(4)
297304
.build();
298305
```
299-
300306
### Timeouts
301-
302307
Requests time out after 60 seconds by default. You can configure this on the client builder:
303-
304308
```java
305309
LithicClient client = LithicOkHttpClient.builder()
306310
.fromEnv()
307311
.timeout(Duration.ofSeconds(30))
308312
.build();
309313
```
310-
311314
### Environments
312-
313315
Requests are made to the production environment by default. You can connect to other environments, like `sandbox`, via the client builder:
314-
315316
```java
316317
LithicClient client = LithicOkHttpClient.builder()
317318
.fromEnv()
318319
.sandbox()
319320
.build();
320-
```
321+
```

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
allprojects {
66
group = "com.lithic.api"
7-
version = "0.5.0"
7+
version = "0.6.0"
88
}
99

1010
nexusPublishing {

0 commit comments

Comments
 (0)