Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing - CET-393 Python SDK - Label purchase error #96

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/sdk_validation.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
name: Validate

on:
workflow_call:
pull_request:
types: [ opened, reopened, synchronize ]
branches:
- main
types:
- opened
- reopened
- synchronize

jobs:
check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.11' ]
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ]
name: Python ${{ matrix.python-version }}
timeout-minutes: 10
env:
SHIPPO_TOKEN: ${{ secrets.SHIPPO_TOKEN }}
concurrency:
shippo-beth marked this conversation as resolved.
Show resolved Hide resolved
group: python-sdk-check
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down
27 changes: 18 additions & 9 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
lockVersion: 2.0.0
id: 986026b6-d725-4b86-9c4d-67f6e6904a30
management:
docChecksum: 2edac3552b0c3728ec7bf25184e0a6c1
docChecksum: 42b42bf2fe502c9e9e2415f189917846
docVersion: "2018-02-08"
speakeasyVersion: 1.401.2
generationVersion: 2.421.3
releaseVersion: 3.7.1
configChecksum: 749a4f6a4afb8aae74a7ccadfe5aabb1
speakeasyVersion: 1.434.2
generationVersion: 2.452.0
releaseVersion: 3.8.0
configChecksum: 55c3f4fd3a9b85e1e763424de3c5b972
repoURL: https://github.com/goshippo/shippo-python-sdk.git
installationURL: https://github.com/goshippo/shippo-python-sdk.git
published: true
features:
python:
additionalDependencies: 0.1.0
constsAndDefaults: 0.1.4
core: 4.8.10
core: 4.8.15
flattening: 2.81.1
globalSecurity: 2.83.7
globalSecurityCallbacks: 0.1.0
Expand All @@ -27,7 +27,8 @@ features:
nullables: 0.1.0
responseFormat: 0.1.0
sdkHooks: 0.1.0
unions: 2.82.9
tests: 0.4.0
unions: 2.82.10
webhooks: 1.0.0
generatedFiles:
- .gitattributes
Expand Down Expand Up @@ -748,6 +749,7 @@ examples:
ListAddresses:
speakeasy-default-list-addresses:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down Expand Up @@ -840,6 +842,7 @@ examples:
ListCarrierAccounts:
speakeasy-default-list-carrier-accounts:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down Expand Up @@ -899,7 +902,7 @@ examples:
header:
SHIPPO-API-VERSION: "2018-02-08"
requestBody:
application/json: {"carrier": "correos"}
application/json: {"carrier": "ups", "parameters": {"billing_address_city": "San Francisco", "billing_address_country_iso2": "US", "billing_address_state": "CA", "billing_address_street1": "731 Market St", "billing_address_street2": "STE 200", "billing_address_zip": "94103", "company": "Shippo", "email": "[email protected]", "full_name": "Shippo Meister", "phone": "1112223333", "pickup_address_city": "San Francisco", "pickup_address_country_iso2": "US", "pickup_address_same_as_billing_address": false, "pickup_address_state": "CA", "pickup_address_street1": "731 Market St", "pickup_address_street2": "STE 200", "pickup_address_zip": "94103", "ups_agreements": true}}
responses:
"201":
application/json: {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Marlene", "last_name": "Kilback", "phone_number": "(569) 519-5316", "from_address_st": "<value>", "from_address_city": "<value>", "from_address_state": "<value>", "from_address_zip": "<value>", "from_address_country_iso2": "<value>"}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "[email protected]", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}
Expand All @@ -916,6 +919,7 @@ examples:
ListCustomsDeclarations:
speakeasy-default-list-customs-declarations:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down Expand Up @@ -945,6 +949,7 @@ examples:
ListCustomsItems:
speakeasy-default-list-customs-items:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down Expand Up @@ -1007,6 +1012,7 @@ examples:
ListManifests:
speakeasy-default-list-manifests:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down Expand Up @@ -1086,6 +1092,7 @@ examples:
ListParcels:
speakeasy-default-list-parcels:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down Expand Up @@ -1220,6 +1227,7 @@ examples:
ListShipments:
speakeasy-default-list-shipments:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down Expand Up @@ -1283,7 +1291,7 @@ examples:
header:
SHIPPO-API-VERSION: "2018-02-08"
requestBody:
application/json: {"async": false, "label_file_type": "PDF_4x6", "metadata": "Order ID #12345", "rate": "ec9f0d3adc9441449c85d315f0997fd5"}
application/json: {"async": false, "label_file_type": "PDF_4x6", "metadata": "Order ID #12345", "rate": "ec9f0d3adc9441449c85d315f0997fd5", "order": "adcfdddf8ec64b84ad22772bce3ea37a"}
responses:
"201":
application/json: {"created_by": {"first_name": "Shwan", "last_name": "Ippotle", "username": "[email protected]"}, "label_file_type": "PDF_4x6", "label_url": "https://shippo-delivery.s3.amazonaws.com/70ae8117ee1749e393f249d5b77c45e0.pdf?Signature=vDw1ltcyGveVR1OQoUDdzC43BY8%3D&Expires=1437093830&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_id": "915d94940ea54c3a80cbfa328722f5a1", "object_owner": "[email protected]", "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"}
Expand Down Expand Up @@ -1347,6 +1355,7 @@ examples:
ListShippoAccounts:
speakeasy-default-list-shippo-accounts:
parameters:
query: {}
header:
SHIPPO-API-VERSION: "2018-02-08"
responses:
Expand Down
3 changes: 2 additions & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ generation:
requestResponseComponentNamesFeb2024: true
auth:
oAuth2ClientCredentialsEnabled: true
oAuth2PasswordEnabled: false
python:
version: 3.7.1
version: 3.8.0
additionalDependencies:
dependencies: {}
extraDependencies:
Expand Down
3 changes: 2 additions & 1 deletion docs/models/components/instanttransactioncreaterequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@
| `shipment` | [components.ShipmentCreateRequest](../../models/components/shipmentcreaterequest.md) | :heavy_check_mark: | N/A | |
| `async_` | *Optional[bool]* | :heavy_minus_sign: | N/A | false |
| `label_file_type` | [Optional[components.LabelFileType]](../../models/components/labelfiletype.md) | :heavy_minus_sign: | N/A | PDF |
| `metadata` | *Optional[str]* | :heavy_minus_sign: | N/A | Order ID #12345 |
| `metadata` | *Optional[str]* | :heavy_minus_sign: | N/A | Order ID #12345 |
| `order` | *Optional[str]* | :heavy_minus_sign: | N/A | adcfdddf8ec64b84ad22772bce3ea37a |
3 changes: 2 additions & 1 deletion docs/models/components/transactioncreaterequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
| `rate` | *str* | :heavy_check_mark: | N/A | ec9f0d3adc9441449c85d315f0997fd5 |
| `async_` | *Optional[bool]* | :heavy_minus_sign: | N/A | false |
| `label_file_type` | [Optional[components.LabelFileTypeEnum]](../../models/components/labelfiletypeenum.md) | :heavy_minus_sign: | Print format of the <a href="https://docs.goshippo.com/docs/shipments/shippinglabelsizes/">label</a>. If empty, will use the default format set from <br/><a href="https://apps.goshippo.com/settings/labels">the Shippo dashboard.</a> | PDF_4x6 |
| `metadata` | *Optional[str]* | :heavy_minus_sign: | N/A | Order ID #12345 |
| `metadata` | *Optional[str]* | :heavy_minus_sign: | N/A | Order ID #12345 |
| `order` | *Optional[str]* | :heavy_minus_sign: | N/A | adcfdddf8ec64b84ad22772bce3ea37a |
6 changes: 3 additions & 3 deletions docs/models/internal/globals.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

## Fields

| Field | Type | Required | Description | Example |
| ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- | ---------------------------------------------------- |
| `shippo_api_version` | *Optional[str]* | :heavy_minus_sign: | String used to pick a non-default API version to use | 2018-02-08 |
| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `shippo_api_version` | *Optional[str]* | :heavy_minus_sign: | Optional string used to pick a non-default API version to use. See our <a href="https://docs.goshippo.com/docs/api_concepts/apiversioning/">API version</a> guide. | 2018-02-08 |
Loading