Skip to content

Commit 4f59c32

Browse files
committed
v0.5.0
1 parent 5e1e7b0 commit 4f59c32

File tree

2 files changed

+17
-16
lines changed

2 files changed

+17
-16
lines changed

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The API documentation can be found [here](https://docs.lithic.com).
1919
#### Gradle
2020

2121
```kotlin
22-
implementation("com.lithic.api:lithic-java:0.4.0")
22+
implementation("com.lithic.api:lithic-java:0.5.0")
2323
```
2424

2525
#### Maven
@@ -28,7 +28,7 @@ implementation("com.lithic.api:lithic-java:0.4.0")
2828
<dependency>
2929
<groupId>com.lithic.api</groupId>
3030
<artifactId>lithic-java</artifactId>
31-
<version>0.4.0</version>
31+
<version>0.5.0</version>
3232
</dependency>
3333
```
3434

@@ -57,10 +57,10 @@ LithicClient client = LithicOkHttpClient.builder()
5757
.build();
5858
```
5959

60-
| Property | Environment variable | Required | Default value |
61-
| ------------- | ----------------------- | -------- | ------------- |
62-
| apiKey | `LITHIC_API_KEY` | true | |
63-
| webhookSecret | `LITHIC_WEBHOOK_SECRET` | false | |
60+
| Property | Environment variable | Required | Default value |
61+
| -------- | ------------------------- | -------- | ------------- |
62+
| apiKey | `LITHIC_API_KEY` | true ||
63+
| webhookSecret | `LITHIC_WEBHOOK_SECRET` | false ||
6464

6565
Read the documentation for more configuration options.
6666

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

140+
141+
142+
143+
144+
145+
140146
## Requests
141147

142148
### Parameters and bodies
@@ -193,6 +199,7 @@ if (state().isMissing()) {
193199
}
194200
```
195201

202+
196203
### Additional model properties
197204

198205
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:
@@ -201,6 +208,7 @@ Sometimes, the server response may include additional properties that are not ye
201208
String secret = card._additionalProperties().get("secret_field");
202209
```
203210

211+
204212
---
205213

206214
## Pagination
@@ -258,6 +266,7 @@ You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lith
258266

259267
---
260268

269+
261270
## Error handling
262271

263272
This library throws exceptions in a single hierarchy for easy handling:
@@ -284,35 +293,27 @@ This library throws exceptions in a single hierarchy for easy handling:
284293
## Network options
285294

286295
### Retries
287-
288296
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.
289297
You can provide a `maxRetries` on the client builder to configure this:
290-
291298
```java
292299
LithicClient client = LithicOkHttpClient.builder()
293300
.fromEnv()
294301
.maxRetries(4)
295302
.build();
296303
```
297-
298304
### Timeouts
299-
300305
Requests time out after 60 seconds by default. You can configure this on the client builder:
301-
302306
```java
303307
LithicClient client = LithicOkHttpClient.builder()
304308
.fromEnv()
305309
.timeout(Duration.ofSeconds(30))
306310
.build();
307311
```
308-
309312
### Environments
310-
311313
Requests are made to the production environment by default. You can connect to other environments, like `sandbox`, via the client builder:
312-
313314
```java
314315
LithicClient client = LithicOkHttpClient.builder()
315316
.fromEnv()
316317
.sandbox()
317318
.build();
318-
```
319+
```

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.4.0"
7+
version = "0.5.0"
88
}
99

1010
nexusPublishing {

0 commit comments

Comments
 (0)