Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.445.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Nov 25, 2024
1 parent d83f353 commit 07a9b79
Show file tree
Hide file tree
Showing 14 changed files with 64 additions and 28 deletions.
12 changes: 7 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 986026b6-d725-4b86-9c4d-67f6e6904a30
management:
docChecksum: d17362762d19f1f23211a71e568bf249
docChecksum: bda7f4add5fb510fe4737e3adbe45aea
docVersion: "2018-02-08"
speakeasyVersion: 1.441.0
generationVersion: 2.460.1
releaseVersion: 3.8.1
configChecksum: 7caf9a9e8acdea022dbcac299a6b3ab2
speakeasyVersion: 1.445.2
generationVersion: 2.461.4
releaseVersion: 3.8.2
configChecksum: 836007dccec8ee01ea48805faf156b00
repoURL: https://github.com/goshippo/shippo-python-sdk.git
installationURL: https://github.com/goshippo/shippo-python-sdk.git
published: true
Expand Down Expand Up @@ -275,6 +275,7 @@ generatedFiles:
- docs/models/components/transactioncreaterequest.md
- docs/models/components/transactionpaginatedlist.md
- docs/models/components/transactionrate.md
- docs/models/components/transactions.md
- docs/models/components/transactionstatusenum.md
- docs/models/components/type.md
- docs/models/components/upsconnectexistingownaccountparameters.md
Expand Down Expand Up @@ -800,6 +801,7 @@ examples:
parameters:
path:
BatchId: "<value>"
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ generation:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 3.8.1
version: 3.8.2
additionalDependencies:
dependencies: {}
extraDependencies:
Expand Down
15 changes: 8 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
speakeasyVersion: 1.441.0
speakeasyVersion: 1.445.2
sources:
openapi:
sourceNamespace: openapi
sourceRevisionDigest: sha256:62de5eafa727cb0f50ccec494bcba6a7b4d6b452c574c107d202dc91b245e955
sourceBlobDigest: sha256:481f6638b89baad7d8f2c108f74fc028b9999cc9708a00e72688330c720262e7
sourceRevisionDigest: sha256:d2b04c35b3f8e94ee5d4f7802f6ba9f1e7bb1ef13ccf68161d0580f3bd1f05b1
sourceBlobDigest: sha256:d7c076258c923e1f4b46ef44088cc063c0fb24303fd11831a44c1bf2939c684b
tags:
- latest
- speakeasy-sdk-regen-1731542695
- speakeasy-sdk-regen-1732493299
- "2018-02-08"
targets:
first-target:
source: openapi
sourceNamespace: openapi
sourceRevisionDigest: sha256:62de5eafa727cb0f50ccec494bcba6a7b4d6b452c574c107d202dc91b245e955
sourceBlobDigest: sha256:481f6638b89baad7d8f2c108f74fc028b9999cc9708a00e72688330c720262e7
sourceRevisionDigest: sha256:d2b04c35b3f8e94ee5d4f7802f6ba9f1e7bb1ef13ccf68161d0580f3bd1f05b1
sourceBlobDigest: sha256:d7c076258c923e1f4b46ef44088cc063c0fb24303fd11831a44c1bf2939c684b
codeSamplesNamespace: openapi-code-samples
codeSamplesRevisionDigest: sha256:d1cce0262c44335b7a5d490a1845a0b65c0ccc79d225d2d55a1b080c4a0db614
codeSamplesRevisionDigest: sha256:f59bab80e89b87efa7b637c1fd9f9d88071d742a4bb5b09c0e08c97ee775bf55
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -388,4 +388,14 @@ Based on:
### Generated
- [python v3.8.1] .
### Releases
- [PyPI v3.8.1] https://pypi.org/project/shippo/3.8.1 - .
- [PyPI v3.8.1] https://pypi.org/project/shippo/3.8.1 - .

## 2024-11-25 16:27:45
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.445.2 (2.461.4) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v3.8.2] .
### Releases
- [PyPI v3.8.2] https://pypi.org/project/shippo/3.8.2 - .
2 changes: 1 addition & 1 deletion docs/models/components/order.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@
| `object_id` | *Optional[str]* | :heavy_minus_sign: | Unique identifier of the order object. | adcfdddf8ec64b84ad22772bce3ea37a |
| `object_owner` | *Optional[str]* | :heavy_minus_sign: | Username of the user who created the object. | [email protected] |
| `shop_app` | [Optional[components.OrderShopAppEnum]](../../models/components/ordershopappenum.md) | :heavy_minus_sign: | Platform the order was created on and, if applicable, imported from. <br/>Orders created via the Shippo API or dashboard will have the value "Shippo". | Shippo |
| `transactions` | List[*str*] | :heavy_minus_sign: | Array of <a href="#tag/Transactions">transaction</a> objects representing all shipping labels purchased for this order.<br/>All objects are returned expanded with a limited number of fields by default. | |
| `transactions` | List[[components.Transactions](../../models/components/transactions.md)] | :heavy_minus_sign: | Array of <a href="#tag/Transactions">transaction</a> objects representing all shipping labels purchased for this order.<br/>All objects are returned expanded with a limited number of fields by default. | |
7 changes: 7 additions & 0 deletions docs/models/components/transactions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Transactions


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
8 changes: 5 additions & 3 deletions docs/models/operations/getbatchrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ---------------------- | ---------------------- | ---------------------- | ---------------------- |
| `batch_id` | *str* | :heavy_check_mark: | Object ID of the batch |
| Field | Type | Required | Description |
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
| `batch_id` | *str* | :heavy_check_mark: | Object ID of the batch |
| `page` | *Optional[int]* | :heavy_minus_sign: | The page number you want to select |
| `results` | *Optional[int]* | :heavy_minus_sign: | The number of results to return per page (max 100, default 5) |
8 changes: 5 additions & 3 deletions docs/sdks/batches/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,11 @@ if res is not None:

### Parameters

| Parameter | Type | Required | Description |
| ---------------------- | ---------------------- | ---------------------- | ---------------------- |
| `batch_id` | *str* | :heavy_check_mark: | Object ID of the batch |
| Parameter | Type | Required | Description |
| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- |
| `batch_id` | *str* | :heavy_check_mark: | Object ID of the batch |
| `page` | *Optional[int]* | :heavy_minus_sign: | The page number you want to select |
| `results` | *Optional[int]* | :heavy_minus_sign: | The number of results to return per page (max 100, default 5) |

### Response

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setuptools.setup(
name='shippo',
version='3.8.1',
version='3.8.2',
author='Shippo',
description='Shipping API Python library (USPS, FedEx, UPS and more)',
license = 'MIT License',
Expand Down
5 changes: 4 additions & 1 deletion src/shippo/batches.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def create(self, request: components.BatchCreateRequest) -> components.Batch:



def get(self, batch_id: str) -> components.Batch:
def get(self, batch_id: str, page: Optional[int] = None, results: Optional[int] = None) -> components.Batch:
r"""Retrieve a batch
Returns a batch using an object ID. <br> Batch shipments are displayed 100 at a time. You can iterate
through each `page` using the `?page= query` parameter. You can also filter based on batch shipment
Expand All @@ -100,6 +100,8 @@ def get(self, batch_id: str) -> components.Batch:
hook_ctx = HookContext(operation_id='GetBatch', oauth2_scopes=[], security_source=self.sdk_configuration.security)
request = operations.GetBatchRequest(
batch_id=batch_id,
page=page,
results=results,
)

_globals = operations.GetBatchGlobals(
Expand All @@ -116,6 +118,7 @@ def get(self, batch_id: str) -> components.Batch:
headers, query_params = utils.get_security(self.sdk_configuration.security)

headers = { **utils.get_headers(request, _globals), **headers }
query_params = { **utils.get_query_params(request, _globals), **query_params }
headers['Accept'] = 'application/json'
headers['user-agent'] = self.sdk_configuration.user_agent
client = self.sdk_configuration.client
Expand Down
Loading

0 comments on commit 07a9b79

Please sign in to comment.