diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f4f555a..7cc8570 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 986026b6-d725-4b86-9c4d-67f6e6904a30 management: - docChecksum: 256e7d68eaf807fc9ef86f8311e8a13f + docChecksum: f5fb49c650f0b24e378f83b41c734d6d docVersion: "2018-02-08" - speakeasyVersion: 1.447.0 - generationVersion: 2.463.0 - releaseVersion: 3.9.0 - configChecksum: d5580dbd92c617bc4ccb971b84ab7996 + speakeasyVersion: 1.455.3 + generationVersion: 2.479.3 + releaseVersion: 3.9.1 + configChecksum: c2084958ec0a2e63f6f6bb2892d4aaa2 repoURL: https://github.com/goshippo/shippo-python-sdk.git installationURL: https://github.com/goshippo/shippo-python-sdk.git published: true @@ -14,7 +14,7 @@ features: python: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.4 - core: 4.8.17 + core: 4.8.18 flattening: 2.81.1 globalSecurity: 2.83.7 globalSecurityCallbacks: 0.1.0 @@ -1429,4 +1429,13 @@ examples: parameters: path: webhookId: "" + batch: {} + track: + speakeasy-default-track: + requestBody: + application/json: {"data": {"address_from": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "address_to": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "carrier": "usps", "messages": [""], "metadata": "Order 000123", "original_eta": "2021-07-23T00:00:00Z", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "tracking_history": [{"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2023-07-25T17:47:12.180Z", "object_id": "", "object_updated": "2023-02-21T22:35:19.645Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}], "tracking_number": "9205590164917312751089", "tracking_status": {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2024-05-20T11:37:56.914Z", "object_id": "", "object_updated": "2023-06-07T16:48:30.895Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": true}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}}} + transaction: + speakeasy-default-transaction: + requestBody: + application/json: {"data": {"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "shippotle@shippo.com"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "shippotle@shippo.com", "parcel": "e94c7fdfdc7b495dbb390a28d929d90a", "qr_code_url": "https://shippo-delivery.s3.amazonaws.com/96_qr_code.pdf?Signature=PEdWrp0mFWAGwJp7FW3b%2FeA2eyY%3D&Expires=1385930652&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "rate": {"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "provider": "USPS", "carrier_account": "078870331023437cb917f5187429b093", "servicelevel_name": "Priority Mail", "servicelevel_token": "fedex_ground"}, "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}} generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index f72395a..b206799 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false python: - version: 3.9.0 + version: 3.9.1 additionalDependencies: dependencies: {} extraDependencies: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 7be7ba6..f56f174 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.447.0 +speakeasyVersion: 1.455.3 sources: openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:e8ab98342833888dbc4dd20f683ee5fb7791107d8574b8dfabce743bc3675cd0 - sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5 + sourceRevisionDigest: sha256:4a4cb73b1d5185692575f94dab94ab88b1045f38ef44b0e57542f5f533be8ae0 + sourceBlobDigest: sha256:1b88a763bf9a88c705175433cac246f726297ba1d331abf5d03334a6e25e9b89 tags: - latest - - speakeasy-sdk-regen-1732493299 + - speakeasy-sdk-regen-1733098125 - "2018-02-08" targets: first-target: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:e8ab98342833888dbc4dd20f683ee5fb7791107d8574b8dfabce743bc3675cd0 - sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5 - codeSamplesNamespace: openapi-code-samples - codeSamplesRevisionDigest: sha256:4d98db29bd18b7b3669055823e761d8c64c5c63c3c282521be4a1c6f56ca69bb + sourceRevisionDigest: sha256:4a4cb73b1d5185692575f94dab94ab88b1045f38ef44b0e57542f5f533be8ae0 + sourceBlobDigest: sha256:1b88a763bf9a88c705175433cac246f726297ba1d331abf5d03334a6e25e9b89 + codeSamplesNamespace: openapi-python-code-samples + codeSamplesRevisionDigest: sha256:edee88f948386cecb6d17debfca44852b3b957eb10feaeab4bc7d92703d1a5aa workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -34,5 +34,5 @@ workflow: token: $pypi_token codeSamples: registry: - location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples + location: registry.speakeasyapi.dev/shippo/shippo/openapi-python-code-samples blocking: false diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 12cc89a..116cd57 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -15,5 +15,5 @@ targets: token: $pypi_token codeSamples: registry: - location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples + location: registry.speakeasyapi.dev/shippo/shippo/openapi-python-code-samples blocking: false diff --git a/README.md b/README.md index ced167b..485bd00 100644 --- a/README.md +++ b/README.md @@ -20,14 +20,19 @@ Shippo external API.: Use this API to integrate with the Shippo service ## Table of Contents + +* [Shippo logo Shippo Python SDK](#img-srchttpsdocsgoshippocomimageslogopng-width30-altshippo-logo-shippo-python-sdk) + * [SDK Installation](#sdk-installation) + * [SDK Reinstallation to a specific version](#sdk-reinstallation-to-a-specific-version) + * [SDK Example Usage](#sdk-example-usage) + * [Custom HTTP Client](#custom-http-client) + * [Debug HTTP Client](#debug-http-client) + * [Documentation](#documentation) + * [Available Resources and Operations](#available-resources-and-operations) + * [Maturity](#maturity) + * [Contributions](#contributions) + * [About Shippo](#about-shippo) -* [SDK Installation](#sdk-installation) -* [SDK Example Usage](#sdk-example-usage) -* [Available Resources and Operations](#available-resources-and-operations) -* [Error Handling](#error-handling) -* [Server Selection](#server-selection) -* [Custom HTTP Client](#custom-http-client) -* [Authentication](#authentication) diff --git a/RELEASES.md b/RELEASES.md index 677ad9d..285f06e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -398,4 +398,14 @@ Based on: ### Generated - [python v3.9.0] . ### Releases -- [PyPI v3.9.0] https://pypi.org/project/shippo/3.9.0 - . \ No newline at end of file +- [PyPI v3.9.0] https://pypi.org/project/shippo/3.9.0 - . + +## 2024-12-16 00:08:43 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.455.3 (2.479.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v3.9.1] . +### Releases +- [PyPI v3.9.1] https://pypi.org/project/shippo/3.9.1 - . \ No newline at end of file diff --git a/docs/models/components/carriersenum.md b/docs/models/components/carriersenum.md index 9932515..752e876 100644 --- a/docs/models/components/carriersenum.md +++ b/docs/models/components/carriersenum.md @@ -45,7 +45,6 @@ | new_zealand_post | New Zealand Post (also used for Pace and CourierPost)| | nippon_express | Nippon Express| | ontrac | OnTrac| -| orangeds | OrangeDS| | parcelforce | Parcelforce| | passport | Passport| | pcf | PCF| @@ -113,7 +112,6 @@ | `NEW_ZEALAND_POST` | new_zealand_post | | `NIPPON_EXPRESS` | nippon_express | | `ONTRAC` | ontrac | -| `ORANGEDS` | orangeds | | `PARCELFORCE` | parcelforce | | `PASSPORT` | passport | | `PCF` | pcf | diff --git a/setup.py b/setup.py index 202d5ec..2aa0644 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setuptools.setup( name='shippo', - version='3.9.0', + version='3.9.1', author='Shippo', description='Shipping API Python library (USPS, FedEx, UPS and more)', license = 'MIT License', diff --git a/src/shippo/models/components/carriersenum.py b/src/shippo/models/components/carriersenum.py index 96a8d6d..c557bf2 100644 --- a/src/shippo/models/components/carriersenum.py +++ b/src/shippo/models/components/carriersenum.py @@ -50,7 +50,6 @@ class CarriersEnum(str, Enum): | new_zealand_post | New Zealand Post (also used for Pace and CourierPost)| | nippon_express | Nippon Express| | ontrac | OnTrac| - | orangeds | OrangeDS| | parcelforce | Parcelforce| | passport | Passport| | pcf | PCF| @@ -112,7 +111,6 @@ class CarriersEnum(str, Enum): NEW_ZEALAND_POST = 'new_zealand_post' NIPPON_EXPRESS = 'nippon_express' ONTRAC = 'ontrac' - ORANGEDS = 'orangeds' PARCELFORCE = 'parcelforce' PASSPORT = 'passport' PCF = 'pcf' diff --git a/src/shippo/sdkconfiguration.py b/src/shippo/sdkconfiguration.py index 674b7ca..749e355 100644 --- a/src/shippo/sdkconfiguration.py +++ b/src/shippo/sdkconfiguration.py @@ -24,9 +24,9 @@ class SDKConfiguration: server_idx: Optional[int] = 0 language: str = 'python' openapi_doc_version: str = '2018-02-08' - sdk_version: str = '3.9.0' - gen_version: str = '2.463.0' - user_agent: str = 'speakeasy-sdk/python 3.9.0 2.463.0 2018-02-08 shippo' + sdk_version: str = '3.9.1' + gen_version: str = '2.479.3' + user_agent: str = 'speakeasy-sdk/python 3.9.1 2.479.3 2018-02-08 shippo' retry_config: Optional[RetryConfig] = None def __post_init__(self):