You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@@ -208,7 +201,6 @@ Sometimes, the server response may include additional properties that are not ye
@@ -266,7 +258,6 @@ You can use `lithic.webhooks().verifySignature(body, headers, secret?)` or `lith
266
258
267
259
---
268
260
269
-
270
261
## Error handling
271
262
272
263
This library throws exceptions in a single hierarchy for easy handling:
@@ -293,27 +284,35 @@ This library throws exceptions in a single hierarchy for easy handling:
293
284
## Network options
294
285
295
286
### Retries
287
+
296
288
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.
297
289
You can provide a `maxRetries` on the client builder to configure this:
290
+
298
291
```java
299
292
LithicClient client =LithicOkHttpClient.builder()
300
293
.fromEnv()
301
294
.maxRetries(4)
302
295
.build();
303
296
```
297
+
304
298
### Timeouts
299
+
305
300
Requests time out after 60 seconds by default. You can configure this on the client builder:
301
+
306
302
```java
307
303
LithicClient client =LithicOkHttpClient.builder()
308
304
.fromEnv()
309
305
.timeout(Duration.ofSeconds(30))
310
306
.build();
311
307
```
308
+
312
309
### Environments
310
+
313
311
Requests are made to the production environment by default. You can connect to other environments, like `sandbox`, via the client builder:
0 commit comments