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
To make a request to the Lithic API, you generally build an instance of the appropriate `Params` class.
181
181
182
-
In [Example: creating a resource](#example-creating-a-resource) above, we used the `CardCreateParams.builder()` to pass to the `create` method of the `cards` service.
183
-
184
-
Sometimes, the API may support other properties that are not yet supported in the Java SDK types. In that case, you can attach them using the `putAdditionalProperty` method.
See [Undocumented request params](#undocumented-request-params) for how to send arbitrary parameters.
195
183
196
184
## Responses
197
185
@@ -408,18 +396,26 @@ This library is typed for convenient access to the documented API. If you need t
408
396
409
397
### Undocumented request params
410
398
411
-
To make requests using undocumented parameters, you can provide or override parameters on the params object while building it.
399
+
In [Example: creating a resource](#example-creating-a-resource) above, we used the `CardCreateParams.builder()` to pass to the `create` method of the `cards` service.
400
+
401
+
Sometimes, the API may support other properties that are not yet supported in the Java SDK types. In that case, you can attach them using raw setters:
You can also use the `putAdditionalProperty` method on nested headers, query params, or body objects.
415
+
420
416
### Undocumented response properties
421
417
422
-
To access undocumented response properties, you can use `res._additionalProperties()` on a response object to get a map of untyped fields of type `Map<String, JsonValue>`. You can then access fields like `._additionalProperties().get("secret_prop").asString()` or use other helpers defined on the `JsonValue` class to extract it to a desired type.
418
+
To access undocumented response properties, you can use `res._additionalProperties()` on a response object to get a map of untyped fields of type `Map<String, JsonValue>`. You can then access fields like `res._additionalProperties().get("secret_prop").asString()` or use other helpers defined on the `JsonValue` class to extract it to a desired type.
0 commit comments