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
Copy file name to clipboardExpand all lines: README.md
+14-18Lines changed: 14 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -140,19 +140,7 @@ See [Pagination](#pagination) below for more information on transparently workin
140
140
141
141
To make a request to the Orb API, you generally build an instance of the appropriate `Params` class.
142
142
143
-
In [Example: creating a resource](#example-creating-a-resource) above, we used the `CustomerCreateParams.builder()` to pass to the `create` method of the `customers` service.
144
-
145
-
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.
156
144
157
145
## Responses
158
146
@@ -344,18 +332,26 @@ This library is typed for convenient access to the documented API. If you need t
344
332
345
333
### Undocumented request params
346
334
347
-
To make requests using undocumented parameters, you can provide or override parameters on the params object while building it.
335
+
In [Example: creating a resource](#example-creating-a-resource) above, we used the `CustomerCreateParams.builder()` to pass to the `create` method of the `customers` service.
336
+
337
+
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.
351
+
356
352
### Undocumented response properties
357
353
358
-
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.
354
+
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