union array

This commit is contained in:
Mike Lueders
2024-03-21 16:38:48 -05:00
parent 90a646d891
commit ce42d22be9
20 changed files with 218 additions and 156 deletions

View File

@@ -0,0 +1,8 @@
# ExampleWithOneOfArray
## Fields
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `one_of_array` | List[*int*] | :heavy_check_mark: | N/A |

View File

@@ -1,8 +0,0 @@
# ExampleRequest
## Fields
| Field | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `results_per_page` | *Optional[int]* | :heavy_minus_sign: | The number of results to return per page (max 100) |

View File

@@ -13,22 +13,29 @@
```python
import shippo
from shippo.models import components
s = shippo.Shippo()
req = components.ExampleWithOneOfArray(
one_of_array=[
904965,
],
)
res = s.example(results_per_page=904965)
res = s.example(req)
if res.status_code == 200:
if res is not None:
# handle response
pass
```
### Parameters
| Parameter | Type | Required | Description |
| -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- | -------------------------------------------------- |
| `results_per_page` | *Optional[int]* | :heavy_minus_sign: | The number of results to return per page (max 100) |
| Parameter | Type | Required | Description |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ |
| `request` | [components.ExampleWithOneOfArray](../../models/components/examplewithoneofarray.md) | :heavy_check_mark: | The request object to use for the request. |
### Response