From 33212fbfbc239cfe586d9f663ce38b0860f68348 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 24 Feb 2025 00:19:55 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.501.0 --- .speakeasy/gen.lock | 215 ++++--- .speakeasy/gen.yaml | 4 +- .speakeasy/workflow.lock | 18 +- .speakeasy/workflow.yaml | 2 +- NUGET.md | 21 +- README.md | 30 +- RELEASES.md | 12 +- Shippo/Addresses.cs | 40 +- Shippo/Batches.cs | 42 +- Shippo/CarrierAccounts.cs | 54 +- Shippo/CarrierParcelTemplates.cs | 24 +- Shippo/CustomsDeclarations.cs | 38 +- Shippo/CustomsItems.cs | 38 +- Shippo/Manifests.cs | 34 +- Shippo/Models/Components/AddressFrom.cs | 4 +- Shippo/Models/Components/AddressReturn.cs | 4 +- Shippo/Models/Components/AddressTo.cs | 4 +- .../CarrierAccountBaseParameters.cs | 4 +- .../CarrierAccountCanadaPostCreateRequest.cs | 2 +- .../CarrierAccountChronopostCreateRequest.cs | 2 +- .../CarrierAccountColissimoCreateRequest.cs | 2 +- .../CarrierAccountCorreosCreateRequest.cs | 2 +- .../CarrierAccountDHLExpressCreateRequest.cs | 2 +- .../CarrierAccountDPDUKCreateRequest.cs | 2 +- ...CarrierAccountDeutschePostCreateRequest.cs | 2 +- .../CarrierAccountDpdDeCreateRequest.cs | 2 +- .../CarrierAccountFedExCreateRequest.cs | 2 +- .../CarrierAccountHermesUKCreateRequest.cs | 2 +- ...CarrierAccountMondialRelayCreateRequest.cs | 2 +- .../Components/CarrierAccountParameters.cs | 4 +- ...arrierAccountPosteItalianeCreateRequest.cs | 2 +- .../CarrierAccountSendleCreateRequest.cs | 2 +- .../CarrierAccountUPSCreateRequest.cs | 2 +- .../CarrierAccountUSPSCreateRequest.cs | 2 +- Shippo/Models/Components/CarriersEnum.cs | 6 - ...nectExistingOwnAccountRequestParameters.cs | 4 +- .../Models/Components/CustomsDeclaration.cs | 2 +- Shippo/Models/Components/Latitude.cs | 4 +- .../LiveRateCreateRequestAddressFrom.cs | 4 +- .../LiveRateCreateRequestAddressTo.cs | 4 +- .../Components/LiveRateCreateRequestParcel.cs | 4 +- Shippo/Models/Components/Longitude.cs | 4 +- Shippo/Models/Components/Manifest.cs | 2 +- .../ManifestCreateRequestAddressFrom.cs | 4 +- Shippo/Models/Components/Parameters.cs | 4 +- .../ParcelTemplateCouriersPleaseEnum.cs | 73 --- .../Components/ParcelTemplateEnumSet.cs | 43 +- Shippo/Models/Components/Parcels.cs | 4 +- Shippo/Models/Components/Pickup.cs | 2 +- Shippo/Models/Components/PickupBase.cs | 2 +- Shippo/Models/Components/Rate.cs | 2 +- Shippo/Models/Components/ReturnServiceType.cs | 4 +- .../ServiceLevelCouriersPleaseEnum.cs | 94 --- .../Models/Components/ServiceLevelEnumSet.cs | 43 +- Shippo/Models/Components/Shipment.cs | 2 +- ...ShipmentCreateRequestCustomsDeclaration.cs | 4 +- Shippo/Models/Components/Track.cs | 2 +- Shippo/Models/Components/Transaction.cs | 2 +- Shippo/Models/Components/TransactionRate.cs | 4 +- .../UserParcelTemplateCreateRequest.cs | 4 +- Shippo/Models/Components/WebhookPayload.cs | 4 +- .../Requests/CreateParcelRequestBody.cs | 4 +- .../Requests/CreateTransactionRequestBody.cs | 4 +- .../Requests/RegisterCarrierAccountRequest.cs | 77 ++- .../RegisterCarrierAccountRequestBody.cs | 559 +++++------------- Shippo/Orders.cs | 30 +- Shippo/Parcels.cs | 34 +- Shippo/Pickups.cs | 18 +- Shippo/Rates.cs | 30 +- Shippo/RatesAtCheckout.cs | 36 +- Shippo/Refunds.cs | 30 +- Shippo/ServiceGroups.cs | 36 +- Shippo/Shipments.cs | 30 +- Shippo/Shippo.csproj | 4 +- Shippo/ShippoAccounts.cs | 40 +- Shippo/ShippoSDK.cs | 10 +- Shippo/TrackingStatus.cs | 24 +- Shippo/Transactions.cs | 30 +- Shippo/UserParcelTemplates.cs | 42 +- Shippo/Utils/RequestBodySerializer.cs | 5 +- Shippo/Webhooks.cs | 42 +- ShippoTests/Integration/TestShipments.cs | 4 +- USAGE.md | 1 - .../CarrierAccountCanadaPostCreateRequest.md | 8 +- .../CarrierAccountChronopostCreateRequest.md | 8 +- .../CarrierAccountColissimoCreateRequest.md | 8 +- .../CarrierAccountCorreosCreateRequest.md | 8 +- .../CarrierAccountDHLExpressCreateRequest.md | 8 +- .../CarrierAccountDPDUKCreateRequest.md | 8 +- ...CarrierAccountDeutschePostCreateRequest.md | 8 +- .../CarrierAccountDpdDeCreateRequest.md | 8 +- .../CarrierAccountFedExCreateRequest.md | 8 +- .../CarrierAccountHermesUKCreateRequest.md | 8 +- ...CarrierAccountMondialRelayCreateRequest.md | 8 +- ...arrierAccountPosteItalianeCreateRequest.md | 8 +- .../CarrierAccountSendleCreateRequest.md | 8 +- .../CarrierAccountUPSCreateRequest.md | 8 +- .../CarrierAccountUSPSCreateRequest.md | 8 +- docs/Models/Components/CarriersEnum.md | 4 - .../ParcelTemplateCouriersPleaseEnum.md | 19 - .../Components/ParcelTemplateEnumSet.md | 6 - .../ServiceLevelCouriersPleaseEnum.md | 33 -- docs/Models/Components/ServiceLevelEnumSet.md | 6 - .../Requests/RegisterCarrierAccountRequest.md | 2 +- .../RegisterCarrierAccountRequestBody.md | 62 +- docs/sdks/addresses/README.md | 4 - docs/sdks/batches/README.md | 40 +- docs/sdks/carrieraccounts/README.md | 19 +- docs/sdks/carrierparceltemplates/README.md | 5 +- docs/sdks/customsdeclarations/README.md | 19 +- docs/sdks/customsitems/README.md | 5 +- docs/sdks/manifests/README.md | 3 - docs/sdks/orders/README.md | 15 +- docs/sdks/parcels/README.md | 11 +- docs/sdks/pickups/README.md | 10 +- docs/sdks/rates/README.md | 5 +- docs/sdks/ratesatcheckout/README.md | 7 +- docs/sdks/refunds/README.md | 3 - docs/sdks/servicegroups/README.md | 8 +- docs/sdks/shipments/README.md | 30 +- docs/sdks/shippoaccounts/README.md | 4 - docs/sdks/trackingstatus/README.md | 2 - docs/sdks/transactions/README.md | 12 +- docs/sdks/userparceltemplates/README.md | 11 +- docs/sdks/webhooks/README.md | 7 +- 125 files changed, 1122 insertions(+), 1393 deletions(-) delete mode 100644 Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs delete mode 100644 Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs delete mode 100644 docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md delete mode 100644 docs/Models/Components/ServiceLevelCouriersPleaseEnum.md diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 07435dd..c2e4959 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,37 +1,36 @@ lockVersion: 2.0.0 id: 24fc7546-e445-46cb-91d2-49cbb44a86ac management: - docChecksum: 256e7d68eaf807fc9ef86f8311e8a13f + docChecksum: 79a38fe084c30b7c60d476f55da0fda1 docVersion: "2018-02-08" - speakeasyVersion: 1.447.0 - generationVersion: 2.463.0 - releaseVersion: 5.0.0-beta.9 - configChecksum: 3671fecd164d670575a5fadc76984fa8 + speakeasyVersion: 1.501.0 + generationVersion: 2.522.1 + releaseVersion: 5.0.0-beta.10 + configChecksum: 981449a1fdde961be4497f4d857394a0 repoURL: https://github.com/goshippo/shippo-csharp-sdk.git published: true features: csharp: additionalDependencies: 0.1.0 constsAndDefaults: 0.0.1 - core: 3.10.6 + core: 3.10.14 flattening: 2.81.3 - globalSecurity: 2.83.6 + globalSecurity: 2.83.7 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.3 globals: 2.82.1 includes: 2.81.1 intellisenseMarkdownSupport: 0.1.0 - methodArguments: 0.1.0 + methodArguments: 0.2.0 nameOverrides: 2.81.2 - nullables: 0.1.0 + nullables: 0.1.1 responseFormat: 0.0.4 sdkHooks: 0.1.0 unions: 0.2.2 webhooks: 1.0.0 generatedFiles: - .gitattributes - - CONTRIBUTING.md - NUGET.md - Shippo/Addresses.cs - Shippo/Batches.cs @@ -186,7 +185,6 @@ generatedFiles: - Shippo/Models/Components/ParcelInsuranceProvider.cs - Shippo/Models/Components/ParcelPaginatedList.cs - Shippo/Models/Components/ParcelTemplateAramexAustraliaEnum.cs - - Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs - Shippo/Models/Components/ParcelTemplateDHLeCommerceEnum.cs - Shippo/Models/Components/ParcelTemplateDPDUKEnum.cs - Shippo/Models/Components/ParcelTemplateEnumSet.cs @@ -230,7 +228,6 @@ generatedFiles: - Shippo/Models/Components/ServiceLevelChronopostEnum.cs - Shippo/Models/Components/ServiceLevelColissimoEnum.cs - Shippo/Models/Components/ServiceLevelCorreosEspanaEnum.cs - - Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs - Shippo/Models/Components/ServiceLevelDHLExpressEnum.cs - Shippo/Models/Components/ServiceLevelDHLGermanyEnum.cs - Shippo/Models/Components/ServiceLevelDHLeCommerceEnum.cs @@ -558,7 +555,6 @@ generatedFiles: - docs/Models/Components/ParcelInsuranceProvider.md - docs/Models/Components/ParcelPaginatedList.md - docs/Models/Components/ParcelTemplateAramexAustraliaEnum.md - - docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md - docs/Models/Components/ParcelTemplateDHLeCommerceEnum.md - docs/Models/Components/ParcelTemplateDPDUKEnum.md - docs/Models/Components/ParcelTemplateEnumSet.md @@ -602,7 +598,6 @@ generatedFiles: - docs/Models/Components/ServiceLevelChronopostEnum.md - docs/Models/Components/ServiceLevelColissimoEnum.md - docs/Models/Components/ServiceLevelCorreosEspanaEnum.md - - docs/Models/Components/ServiceLevelCouriersPleaseEnum.md - docs/Models/Components/ServiceLevelDHLExpressEnum.md - docs/Models/Components/ServiceLevelDHLGermanyEnum.md - docs/Models/Components/ServiceLevelDHLeCommerceEnum.md @@ -775,15 +770,26 @@ generatedFiles: - docs/sdks/webhooks/README.md - global.json examples: + 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": "2024-07-24T17:47:12.180Z", "object_id": "", "object_updated": "2024-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": "2025-05-20T11:37:56.914Z", "object_id": "", "object_updated": "2024-06-06T16: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": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "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"}} ListAddresses: speakeasy-default-list-addresses: parameters: - query: {} + query: + page: 1 + results: 5 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}]} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}]} CreateAddress: speakeasy-default-create-address: parameters: @@ -793,27 +799,27 @@ examples: application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true} responses: "201": - application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} + application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} GetAddress: speakeasy-default-get-address: parameters: path: - AddressId: "" + AddressId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} + application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} ValidateAddress: speakeasy-default-validate-address: parameters: path: - AddressId: "" + AddressId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} + application/json: {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false} CreateBatch: speakeasy-default-create-batch: parameters: @@ -823,35 +829,37 @@ examples: application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": "d799c2679e644279b59fe661ac8fa488", "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [{"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}]}}]} responses: "201": - application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": ["", "", ""], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": ["https://sleepy-vein.info", "https://agile-defendant.biz/", "https://glorious-convection.com/"], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} GetBatch: speakeasy-default-get-batch: parameters: path: - BatchId: "" - query: {} + BatchId: "" + query: + page: 1 + results: 5 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": ["", ""], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": ["https://misguided-violin.info", "https://fatal-custom.org/"], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} AddShipmentsToBatch: speakeasy-default-add-shipments-to-batch: parameters: path: - BatchId: "" + BatchId: "" header: SHIPPO-API-VERSION: "2018-02-08" requestBody: - application/json: [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": "d799c2679e644279b59fe661ac8fa489", "customs_declaration": "adcfdddf8ec64b84ad22772bce3ea37a", "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": ["", "", {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "USPS_SmallFlatRateEnvelope"}]}}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "couriersplease_1kg_satchel"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "DHLeC_SM_Flats"}]}}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": "d799c2679e644279b59fe661ac8fa488", "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": "d799c2679e644279b59fe661ac8fa489", "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [{"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}, {"description": "T-Shirt", "mass_unit": "lb", "metadata": "Order ID \"123454\"", "net_weight": "5", "origin_country": "", "quantity": 20, "sku_code": "HM-123", "hs_code": "0901.21", "value_amount": "200", "value_currency": "USD"}], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": ["", "", ""]}}] + application/json: [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": "d799c2679e644279b59fe661ac8fa489", "customs_declaration": "adcfdddf8ec64b84ad22772bce3ea37a", "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": ["", "", {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "USPS_SmallFlatRateEnvelope"}]}}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": [{"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "DPD_UK_Express_Pak"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "template": "DHLeC_Irregular"}]}}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "shipment": {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": "d799c2679e644279b59fe661ac8fa488", "address_return": "d799c2679e644279b59fe661ac8fa488", "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": "adcfdddf8ec64b84ad22772bce3ea37a", "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": []}}] responses: "200": - application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": []}, "label_url": ["", ""], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": ["https://sad-submitter.com", "https://gracious-perp.net", "https://far-off-integer.org"], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} PurchaseBatch: speakeasy-default-purchase-batch: parameters: path: - BatchId: "" + BatchId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -861,23 +869,25 @@ examples: speakeasy-default-remove-shipments-from-batch: parameters: path: - BatchId: "" + BatchId: "" header: SHIPPO-API-VERSION: "2018-02-08" requestBody: application/json: ["", "", ""] responses: "200": - application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": [], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} + application/json: {"default_carrier_account": "078870331023437cb917f5187429b093", "default_servicelevel_token": "usps_priority", "label_filetype": "PDF_4x6", "metadata": "BATCH #1", "batch_shipments": {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}, {"carrier_account": "a4391cd4ab974f478f55dc08b5c8e3b3", "metadata": "SHIPMENT #1", "servicelevel_token": "fedex_ground", "object_id": "e11c95a6788d4ddcaa22f03175838740", "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "status": "INVALID", "transaction": "4c33736a67e2450da88b38c42deef6b7"}]}, "label_url": [], "object_created": "2016-01-04T00:15:44.394Z", "object_id": "5ef63c54f5bf45d3b1f8fb37dcb1c5f4", "object_owner": "shippo@shippo.com", "object_results": {"creation_failed": 3, "creation_succeeded": 5, "purchase_failed": 0, "purchase_succeeded": 0}, "object_updated": "2016-01-04T00:48:13.841Z", "status": "VALID", "test": false} ListCarrierAccounts: speakeasy-default-list-carrier-accounts: parameters: - query: {} + query: + page: 1 + results: 5 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Marie", "last_name": "Fay", "phone_number": "1-760-700-6560", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [], "test": false}, {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Jeanette", "last_name": "Waters", "phone_number": "(940) 480-8491 x0814", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}, {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Jayde", "last_name": "Ledner", "phone_number": "(583) 511-9069 x90658", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}]} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Marie", "last_name": "Fay", "phone_number": "1-760-700-6560", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}, {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Jeanette", "last_name": "Waters", "phone_number": "(940) 480-8491 x0814", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}, {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Jayde", "last_name": "Ledner", "phone_number": "(583) 511-9069 x90658", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false}]} CreateCarrierAccount: speakeasy-default-create-carrier-account: parameters: @@ -887,12 +897,12 @@ examples: application/json: {"account_id": "321123", "carrier": "fedex", "metadata": "FEDEX Account", "parameters": {"first_name": "Loyal", "last_name": "Collier", "phone_number": "(890) 307-8579", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "test": false} responses: "201": - application/json: {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Destiny", "last_name": "Fay", "phone_number": "231.216.3066", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [], "test": false} + application/json: {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Destiny", "last_name": "Fay", "phone_number": "231.216.3066", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false} GetCarrierAccount: speakeasy-default-get-carrier-account: parameters: path: - CarrierAccountId: "" + CarrierAccountId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -902,7 +912,7 @@ examples: speakeasy-default-update-carrier-account: parameters: path: - CarrierAccountId: "" + CarrierAccountId: "" header: SHIPPO-API-VERSION: "2018-02-08" requestBody: @@ -914,7 +924,7 @@ examples: speakeasy-default-initiate-oauth2-signin: parameters: path: - CarrierAccountObjectId: "" + CarrierAccountObjectId: "" query: redirect_uri: "https://enlightened-mortise.com/" header: @@ -932,10 +942,10 @@ examples: header: SHIPPO-API-VERSION: "2018-02-08" requestBody: - 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": "hippo@shippo.com", "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}} + application/json: {"parameters": {}} responses: "201": - application/json: {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Marlene", "last_name": "Kilback", "phone_number": "(569) 519-5316", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false} + application/json: {"account_id": "****", "carrier": "usps", "parameters": {"first_name": "Marlene", "last_name": "Kilback", "phone_number": "(569) 519-5316", "from_address_st": "", "from_address_city": "", "from_address_state": "", "from_address_zip": "", "from_address_country_iso2": ""}, "carrier_name": "USPS", "is_shippo_account": false, "object_id": "6aa34d5f6865448fbb1ee93636e98999", "object_owner": "bob+22@gmail.com", "service_levels": [{"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}, {"name": "Priority Mail Express", "token": "usps_priority_express", "supports_return_labels": true}], "test": false} GetCarrierRegistrationStatus: speakeasy-default-get-carrier-registration-status: parameters: @@ -949,7 +959,9 @@ examples: ListCustomsDeclarations: speakeasy-default-list-customs-declarations: parameters: - query: {} + query: + page: 1 + results: 5 header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -969,8 +981,9 @@ examples: speakeasy-default-get-customs-declaration: parameters: path: - CustomsDeclarationId: "" - query: {} + CustomsDeclarationId: "" + query: + page: 1 header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -979,7 +992,9 @@ examples: ListCustomsItems: speakeasy-default-list-customs-items: parameters: - query: {} + query: + page: 1 + results: 25 header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -999,8 +1014,9 @@ examples: speakeasy-default-get-customs-item: parameters: path: - CustomsItemId: "" - query: {} + CustomsItemId: "" + query: + page: 1 header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -1015,7 +1031,7 @@ examples: application/json: {"address_from": "", "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "parcel": "5df144dca289442cv7a06"} responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "count": 123, "results": []} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "count": 123, "results": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "estimated_days": 2, "title": "Shipping Option 1"}]} GetDefaultParcelTemplate: speakeasy-default-get-default-parcel-template: parameters: @@ -1042,12 +1058,14 @@ examples: ListManifests: speakeasy-default-list-manifests: parameters: - query: {} + query: + page: 1 + results: 5 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2023-08-23T19:26:20.850Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2024-01-14T10:26:00.433Z", "status": "SUCCESS"}, {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2022-07-14T18:23:27.528Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2022-09-09T18:28:08.953Z", "status": "SUCCESS"}, {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2022-06-17T12:14:27.999Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2023-11-28T13:02:27.296Z", "status": "SUCCESS"}]} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2024-08-22T19:26:20.850Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2025-01-13T10:26:00.433Z", "status": "SUCCESS"}, {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2023-07-14T18:23:27.528Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2023-09-09T18:28:08.953Z", "status": "SUCCESS"}, {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2023-06-17T12:14:27.999Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2024-11-27T13:02:27.296Z", "status": "SUCCESS"}]} CreateManifest: speakeasy-default-create-manifest: parameters: @@ -1057,48 +1075,50 @@ examples: application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}} responses: "201": - application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2023-12-01T17:06:07.804Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2023-04-03T12:48:32.253Z", "status": "SUCCESS"} + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2024-11-30T17:06:07.804Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2024-04-02T12:48:32.253Z", "status": "SUCCESS"} GetManifest: speakeasy-default-get-manifest: parameters: path: - ManifestId: "" + ManifestId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2024-02-07T13:54:48.821Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2023-09-05T11:33:52.011Z", "status": "SUCCESS"} + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "shipment_date": "2014-05-16T23:59:59Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "address_from": "d799c2679e644279b59fe661ac8fa488", "documents": ["https://shippo-delivery.s3.amazonaws.com/0fadebf6f60c4aca95fa01bcc59c79ae.pdf?Signature=tlQU3RECwdHUQJQadwqg5bAzGFQ%3D&Expires=1402803835&AWSAccessKeyId=AKIAJTHP3LLFMYAWALIA"], "object_created": "2025-02-06T13:54:48.821Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_updated": "2024-09-04T11:33:52.011Z", "status": "SUCCESS"} ListOrders: speakeasy-default-list-orders: parameters: query: + page: 1 + results: 25 order_status[]: ["PAID"] shop_app: "Shippo" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}, {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}, {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}]} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}, {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}, {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"}]} CreateOrder: speakeasy-default-create-order: parameters: header: SHIPPO-API-VERSION: "2018-02-08" requestBody: - application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb"}]} + application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb"}]} responses: "201": - application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"} + application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"} GetOrder: speakeasy-default-get-order: parameters: path: - OrderId: "" + OrderId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"} + application/json: {"currency": "USD", "notes": "This customer is a VIP", "order_number": "#1068", "order_status": "PAID", "placed_at": "2016-09-23T01:28:12Z", "shipping_cost": "12.83", "shipping_cost_currency": "USD", "shipping_method": "USPS First Class Package", "subtotal_price": "12.1", "total_price": "24.93", "total_tax": "0.0", "weight": "0.4", "weight_unit": "lb", "from_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "to_address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "line_items": [{"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}, {"currency": "USD", "manufacture_country": "US", "max_delivery_time": "2016-07-23T00:00:00Z", "max_ship_time": "2016-07-23T00:00:00Z", "quantity": 20, "sku": "HM-123", "title": "Hippo Magazines", "total_price": "12.1", "variant_title": "June Edition", "weight": "0.4", "weight_unit": "lb", "object_id": "abf7d5675d744b6ea9fdb6f796b28f28"}], "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "shop_app": "Shippo"} ListCarrierParcelTemplates: "": parameters: @@ -1122,7 +1142,9 @@ examples: ListParcels: speakeasy-default-list-parcels: parameters: - query: {} + query: + page: 1 + results: 25 header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -1137,60 +1159,64 @@ examples: application/json: {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"} responses: "201": - application/json: {"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"} + application/json: {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"} GetParcel: speakeasy-default-get-parcel: parameters: path: - ParcelId: "" + ParcelId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"} + application/json: {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1", "object_created": "2014-07-09T02:19:13.174Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "shippotle@shippo.com", "object_state": "VALID", "object_updated": "2014-07-09T02:19:13.174Z"} CreatePickup: speakeasy-default-create-pickup: parameters: header: SHIPPO-API-VERSION: "2018-02-08" requestBody: - application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "location": {"address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "building_location_type": "Front Door", "building_type": "apartment", "instructions": "Behind screen door"}, "requested_end_time": "2023-06-18T07:14:55.338Z", "requested_start_time": "2023-12-01T17:06:07.804Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"]} + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "location": {"address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "building_location_type": "Front Door", "building_type": "apartment", "instructions": "Behind screen door"}, "requested_end_time": "2024-06-17T07:14:55.338Z", "requested_start_time": "2024-11-30T17:06:07.804Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"]} responses: "201": - application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "location": {"address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "building_location_type": "Front Door", "building_type": "apartment", "instructions": "Behind screen door"}, "requested_end_time": "2023-04-03T12:48:32.253Z", "requested_start_time": "2022-05-28T06:20:22.766Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "confirmed_start_time": "2020-05-09T12:00:00Z", "confirmed_end_time": "2020-05-09T23:59:59.999Z", "cancel_by_time": "2020-05-09T08:00:00Z", "status": "CONFIRMED", "confirmation_code": "WTC310058750", "timezone": "US/Pacific", "messages": []} + application/json: {"carrier_account": "adcfdddf8ec64b84ad22772bce3ea37a", "location": {"address": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "building_location_type": "Front Door", "building_type": "apartment", "instructions": "Behind screen door"}, "requested_end_time": "2024-04-02T12:48:32.253Z", "requested_start_time": "2023-05-28T06:20:22.766Z", "transactions": ["adcfdddf8ec64b84ad22772bce3ea37a"], "confirmed_start_time": "2020-05-09T12:00:00Z", "confirmed_end_time": "2020-05-09T23:59:59.999Z", "cancel_by_time": "2020-05-09T08:00:00Z", "status": "CONFIRMED", "confirmation_code": "WTC310058750", "timezone": "US/Pacific", "messages": []} GetRate: speakeasy-default-get-rate: parameters: path: - RateId: "" + RateId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": ["CHEAPEST", "CHEAPEST"], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "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_created": "2024-11-29T01:50:48.954Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"} + application/json: {"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": ["CHEAPEST", "CHEAPEST"], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "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_created": "2025-11-29T01:50:48.954Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"} ListShipmentRates: speakeasy-default-list-shipment-rates: parameters: path: - ShipmentId: "" - query: {} + ShipmentId: "" + query: + page: 1 + results: 25 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": ["FASTEST"], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "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_created": "2022-10-17T00:25:08.850Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}]} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": ["FASTEST"], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-10-17T00:25:08.850Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}]} ListShipmentRatesByCurrencyCode: speakeasy-default-list-shipment-rates-by-currency-code: parameters: path: - ShipmentId: "" + ShipmentId: "" CurrencyCode: "USD" - query: {} + query: + page: 1 + results: 25 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": []} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": ["BESTVALUE", "BESTVALUE", "BESTVALUE"], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-10-02T15:07:56.573Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}]} CreateRefund: speakeasy-default-create-refund: parameters: @@ -1213,7 +1239,7 @@ examples: speakeasy-default-get-refund: parameters: path: - RefundId: "" + RefundId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -1251,18 +1277,20 @@ examples: speakeasy-default-delete-service-group: parameters: path: - ServiceGroupId: "" + ServiceGroupId: "" header: SHIPPO-API-VERSION: "2018-02-08" ListShipments: speakeasy-default-list-shipments: parameters: - query: {} + query: + page: 1 + results: 25 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "carrier_accounts": [], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "messages": [], "object_created": "2023-11-28T13:02:27.296Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-12-02T18:25:37.169Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [], "status": "QUEUED"}, {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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_created": "2023-11-26T18:23:24.264Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2022-01-09T04:26:27.312Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [], "status": "QUEUED"}, {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "carrier_accounts": ["", "", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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_created": "2024-08-18T13:00:42.665Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-06-22T03:00:04.393Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [], "status": "QUEUED"}]} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": [], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "messages": [], "object_created": "2024-11-27T13:02:27.296Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2024-12-01T18:25:37.169Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [], "status": "QUEUED"}, {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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_created": "2024-11-25T18:23:24.264Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-01-09T04:26:27.312Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [], "status": "QUEUED"}, {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", "", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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_created": "2025-08-18T13:00:42.665Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2024-06-21T03:00:04.393Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [], "status": "QUEUED"}]} CreateShipment: speakeasy-default-create-shipment: parameters: @@ -1272,17 +1300,17 @@ examples: application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "address_return": "d799c2679e644279b59fe661ac8fa488", "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "validate": true}, "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "Blumenstraße", "street3": "", "street_no": "22", "city": "München", "state": "CA", "zip": "80331", "country": "DE", "phone": "80331", "email": "shippotle@shippo.com", "is_residential": true}, "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": [], "non_delivery_option": "RETURN", "test": true}, "carrier_accounts": ["065a4a8c10d24a34ab932163a1b87f52", "73f706f4bdb94b54a337563840ce52b0"], "parcels": ["", {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}, {"extra": {"COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "insurance": {"amount": "5.5", "content": "Laptop", "currency": "USD", "provider": "UPS"}}, "metadata": "Customer ID 123456", "mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}]} responses: "201": - application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": []}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2024-11-15T07:40:19.243Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-01-27T07:05:06.005Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": [], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "messages": [], "object_created": "2022-08-20T15:01:30.899Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}], "status": "QUEUED"} + application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2025-11-15T07:40:19.243Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2024-01-27T07:05:06.005Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": [], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "messages": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-08-20T15:01:30.899Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}], "status": "QUEUED"} GetShipment: speakeasy-default-get-shipment: parameters: path: - ShipmentId: "" + ShipmentId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-05-18T00:32:02.244Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2023-05-10T02:28:23.533Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": [], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2023-04-26T04:53:50.189Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}], "status": "QUEUED"} + application/json: {"extra": {"accounts_receivable_customer_account": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "appropriation_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "bill_of_lading_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "COD": {"amount": "5.5", "currency": "USD", "payment_method": "CASH"}, "cod_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "customer_reference": {"ref_sort": 1}, "dealer_order_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "dept_number": {"ref_sort": 3}, "fda_product_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "insurance": {"amount": "5.5", "currency": "USD"}, "invoice_number": {"ref_sort": 2}, "manifest_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "model_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "part_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "po_number": {"ref_sort": 2}, "production_code": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "purchase_request_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "rma_number": {"ref_sort": 1}, "salesperson_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "serial_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "store_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}, "transaction_reference_number": {"prefix": "ABC", "value": "value", "ref_sort": 1}}, "metadata": "Customer ID 123456", "shipment_date": "2021-03-22T12:00:00Z", "address_from": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_return": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "address_to": {"name": "Shwan Ippotle", "company": "Shippo", "street1": "215 Clayton St.", "street3": "", "street_no": "", "city": "San Francisco", "state": "CA", "zip": "94117", "country": "US", "phone": "+1 555 341 9393", "email": "shippotle@shippo.com", "is_residential": true, "metadata": "Customer ID 123456", "is_complete": true, "object_created": "2014-07-09T02:19:13.174Z", "object_id": "d799c2679e644279b59fe661ac8fa488", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-09T02:19:13.174Z", "validation_results": {"is_valid": false, "messages": [{"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}, {"code": "Unknown Street", "source": "Shippo Address Validator", "text": "City, State and ZIP Code are valid, but street address is not a match.", "type": "address_warning"}]}, "test": false}, "carrier_accounts": ["", ""], "customs_declaration": {"b13a_filing_option": "FILED_ELECTRONICALLY", "certify": true, "certify_signer": "Shawn Ippotle", "contents_explanation": "T-Shirt purchase", "duties_payor": {"account": "2323434543", "type": "THIRD_PARTY", "address": {"name": "Patrick Kavanagh", "zip": "80331", "country": "DE"}}, "exporter_identification": {"eori_number": "PL123456790ABCDE", "tax_id": {"number": "123456789", "type": "EIN"}}, "invoice": "#123123", "metadata": "Order ID #123123", "address_importer": "257ba08436604d2aaf069caafe7acb2a", "contents_type": "MERCHANDISE", "eel_pfc": "NOEEI_30_37_a", "incoterm": "DDP", "items": ["5087f181d1dc4b14b73fdbf636498886"], "non_delivery_option": "RETURN", "object_created": "2014-07-17T01:01:08.306Z", "object_id": "e2197a54da9d470480f4f8796cc419cb", "object_owner": "shippotle@shippo.com", "object_updated": "2014-07-17T01:01:08.306Z", "test": true}, "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2024-05-17T00:32:02.244Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "object_updated": "2024-05-09T02:28:23.533Z", "parcels": [{"mass_unit": "lb", "weight": "1", "distance_unit": "in", "height": "1", "length": "1", "width": "1"}], "rates": [{"amount": "5.5", "amount_local": "5.5", "currency": "USD", "currency_local": "USD", "arrives_by": "08:30:00", "attributes": [], "carrier_account": "078870331023437cb917f5187429b093", "duration_terms": "Delivery in 1 to 3 business days", "estimated_days": 2, "included_insurance_price": "1.05", "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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "object_created": "2024-04-25T04:53:50.189Z", "object_id": "adcfdddf8ec64b84ad22772bce3ea37a", "object_owner": "pp@gmail.com", "provider": "USPS", "provider_image_75": "https://cdn2.goshippo.com/providers/75/USPS.png", "provider_image_200": "https://cdn2.goshippo.com/providers/200/USPS.png", "servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express", "parent_servicelevel": {"name": "Priority Mail Express", "token": "usps_priority_express"}}, "shipment": "adcfdddf8ec64b84ad22772bce3ea37a", "zone": "1"}], "status": "QUEUED"} CreateTrack: speakeasy-default-create-track: parameters: @@ -1292,7 +1320,7 @@ examples: application/json: {"carrier": "usps", "metadata": "Order 000123", "tracking_number": "9205590164917312751089"} responses: "200": - application/json: {"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-04-03T12:48:32.253Z", "object_id": "", "object_updated": "2022-05-28T06:20:22.766Z", "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."}, {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2024-05-22T22:27:14.379Z", "object_id": "", "object_updated": "2024-11-08T08:43:39.394Z", "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": "2022-07-06T00:30:20.403Z", "object_id": "", "object_updated": "2022-04-09T14:25:29.356Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": false}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}} + application/json: {"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": "2024-04-02T12:48:32.253Z", "object_id": "", "object_updated": "2023-05-28T06:20:22.766Z", "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."}, {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2025-05-22T22:27:14.379Z", "object_id": "", "object_updated": "2025-11-08T08:43:39.394Z", "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": "2023-07-06T00:30:20.403Z", "object_id": "", "object_updated": "2023-04-09T14:25:29.356Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": false}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}} GetTrack: speakeasy-default-get-track: parameters: @@ -1303,18 +1331,20 @@ examples: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"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-08-20T11:11:04.610Z", "object_id": "", "object_updated": "2023-07-26T06:33:15.810Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": false}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}, {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2023-05-18T00:32:02.244Z", "object_id": "", "object_updated": "2023-05-10T02:28:23.533Z", "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": "2022-08-22T22:47:10.166Z", "object_id": "", "object_updated": "2024-10-24T02:41:21.259Z", "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."}} + application/json: {"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": "2024-08-19T11:11:04.610Z", "object_id": "", "object_updated": "2024-07-25T06:33:15.810Z", "status": "DELIVERED", "substatus": {"code": "information_received", "text": "Information about the package received.", "action_required": false}, "status_date": "2016-07-23T00:00:00Z", "status_details": "Your shipment has been delivered at the destination mailbox."}, {"location": {"city": "Las Vegas", "country": "US", "state": "NV", "zip": "89101"}, "object_created": "2024-05-17T00:32:02.244Z", "object_id": "", "object_updated": "2024-05-09T02:28:23.533Z", "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": "2023-08-22T22:47:10.166Z", "object_id": "", "object_updated": "2025-10-24T02:41:21.259Z", "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."}} ListTransactions: speakeasy-default-list-transactions: parameters: query: object_status: "SUCCESS" tracking_status: "DELIVERED" + page: 1 + results: 25 header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"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": [{"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": "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": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}, {"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"}, {"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": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}]} + application/json: {"next": "baseurl?page=3&results=10", "previous": "baseurl?page=1&results=10", "results": [{"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": [{"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": "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": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}, {"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": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "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"}, {"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": [{"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "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": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"}]} CreateTransaction: speakeasy-default-create-transaction: parameters: @@ -1329,12 +1359,12 @@ examples: speakeasy-default-get-transaction: parameters: path: - TransactionId: "" + TransactionId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: "200": - application/json: {"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": [{"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": "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": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"} + application/json: {"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": [{"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."}, {"source": "UPS", "code": "carrier_timeout", "text": "UPS API did not respond. Please try again in a few minutes."}], "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": "ec9f0d3adc9441449c85d315f0997fd5", "status": "SUCCESS", "tracking_number": "9499907123456123456781", "tracking_status": "DELIVERED", "tracking_url_provider": "https://tools.usps.com/go/TrackConfirmAction_input?origTrackNum=9499907123456123456781"} ListUserParcelTemplates: speakeasy-default-list-user-parcel-templates: parameters: @@ -1357,14 +1387,14 @@ examples: speakeasy-default-delete-user-parcel-template: parameters: path: - UserParcelTemplateObjectId: "" + UserParcelTemplateObjectId: "" header: SHIPPO-API-VERSION: "2018-02-08" GetUserParcelTemplate: speakeasy-default-get-user-parcel-template: parameters: path: - UserParcelTemplateObjectId: "" + UserParcelTemplateObjectId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -1374,7 +1404,7 @@ examples: speakeasy-default-update-user-parcel-template: parameters: path: - UserParcelTemplateObjectId: "" + UserParcelTemplateObjectId: "" header: SHIPPO-API-VERSION: "2018-02-08" requestBody: @@ -1385,7 +1415,9 @@ examples: ListShippoAccounts: speakeasy-default-list-shippo-accounts: parameters: - query: {} + query: + page: 1 + results: 25 header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -1405,7 +1437,7 @@ examples: speakeasy-default-get-shippo-account: parameters: path: - ShippoAccountId: "" + ShippoAccountId: "" header: SHIPPO-API-VERSION: "2018-02-08" responses: @@ -1415,7 +1447,7 @@ examples: speakeasy-default-update-shippo-account: parameters: path: - ShippoAccountId: "" + ShippoAccountId: "" header: SHIPPO-API-VERSION: "2018-02-08" requestBody: @@ -1439,7 +1471,7 @@ examples: speakeasy-default-get-webhook: parameters: path: - webhookId: "" + webhookId: "" responses: "200": application/json: {"event": "track_updated", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false} @@ -1447,7 +1479,7 @@ examples: speakeasy-default-update-webhook: parameters: path: - webhookId: "" + webhookId: "" requestBody: application/json: {"event": "batch_created", "url": "https://example.com/shippo-webhook", "active": true, "is_test": false} responses: @@ -1457,5 +1489,6 @@ examples: speakeasy-default-delete-webhook: parameters: path: - webhookId: "" + webhookId: "" +examplesVersion: 1.0.0 generatedTests: {} diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a954293..ba8bf4f 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -7,13 +7,15 @@ generation: useClassNamesForArrayFields: true fixes: nameResolutionDec2023: true + nameResolutionFeb2025: false parameterOrderingFeb2024: true requestResponseComponentNamesFeb2024: true + securityFeb2025: false auth: oAuth2ClientCredentialsEnabled: true oAuth2PasswordEnabled: false csharp: - version: 5.0.0-beta.9 + version: 5.0.0-beta.10 additionalDependencies: [] author: Shippo clientServerStatusCodesAsErrors: true diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 2ef0d2d..ad3695f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.447.0 +speakeasyVersion: 1.501.0 sources: openapi: sourceNamespace: openapi - sourceRevisionDigest: sha256:33370e133d3ed110a28d8f54ab74952099de562bdc22dc5386cb760f0fe01b2d - sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5 + sourceRevisionDigest: sha256:663e412956f56c8132a280ecd531312f7c5829f225eadc130b815e8241b2c45c + sourceBlobDigest: sha256:75b0171742763422c056e7e3f421f9453b761cb4fd207c33c526bd560870f380 tags: - latest - - speakeasy-sdk-regen-1732636811 + - speakeasy-sdk-regen-1733098817 - "2018-02-08" targets: csharp: source: openapi sourceNamespace: openapi - sourceRevisionDigest: sha256:33370e133d3ed110a28d8f54ab74952099de562bdc22dc5386cb760f0fe01b2d - sourceBlobDigest: sha256:8c66d55b10c00886e8fd1f2b6ea6b233bccf17f622fed046dcf302d5da3f91f5 - codeSamplesNamespace: openapi-code-samples - codeSamplesRevisionDigest: sha256:647654e9271aa56042482d39883ea26ee4daadfc87152727f13dfbf47db42237 + sourceRevisionDigest: sha256:663e412956f56c8132a280ecd531312f7c5829f225eadc130b815e8241b2c45c + sourceBlobDigest: sha256:75b0171742763422c056e7e3f421f9453b761cb4fd207c33c526bd560870f380 + codeSamplesNamespace: openapi-csharp-code-samples + codeSamplesRevisionDigest: sha256:e192b02685069dce67c18c3979c797fc2e247626f32d4f6bb747f8973e229d26 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -34,5 +34,5 @@ workflow: apiKey: $nuget_api_key codeSamples: registry: - location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples + location: registry.speakeasyapi.dev/shippo/shippo/openapi-csharp-code-samples blocking: false diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 52cd929..1721ab9 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -15,5 +15,5 @@ targets: apiKey: $nuget_api_key codeSamples: registry: - location: registry.speakeasyapi.dev/shippo/shippo/openapi-code-samples + location: registry.speakeasyapi.dev/shippo/shippo/openapi-csharp-code-samples blocking: false diff --git a/NUGET.md b/NUGET.md index 38bdfc8..cf6aaaa 100644 --- a/NUGET.md +++ b/NUGET.md @@ -8,19 +8,13 @@ ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; -var sdk = new ShippoSDK( - apiKeyHeader: "", - shippoApiVersion: "2018-02-08" -); +var sdk = new ShippoSDK(shippoApiVersion: "2018-02-08"); -var res = await sdk.Addresses.ListAsync( - page: 1, - results: 5, - shippoApiVersion: "2018-02-08" -); +WebhookPayloadBatch req = new WebhookPayloadBatch() {}; + +await sdk.BatchAsync(req); // handle response ``` @@ -53,10 +47,9 @@ When custom error responses are specified for an operation, the SDK may also thr ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; -using System; using Shippo.Models.Errors; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -105,10 +98,9 @@ catch (Exception ex) ### Override Server URL Per-Client -The default server can also be overridden globally by passing a URL to the `serverUrl: string` optional parameter when initializing the SDK client instance. For example: +The default server can be overridden globally by passing a URL to the `serverUrl: string` optional parameter when initializing the SDK client instance. For example: ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -141,7 +133,6 @@ This SDK supports the following security scheme globally: To authenticate with the API the `APIKeyHeader` parameter must be set when initializing the SDK client instance. For example: ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/README.md b/README.md index e8ea2b3..59556df 100644 --- a/README.md +++ b/README.md @@ -21,13 +21,17 @@ Shippo external API.: Use this API to integrate with the Shippo service ## Table of Contents + +* [Shippo logo Shippo C# SDK](#img-srchttpsdocsgoshippocomimageslogopng-width30-altshippo-logo-shippo-c-sdk) + * [SDK Installation](#sdk-installation) + * [SDK Example Usage](#sdk-example-usage) + * [Custom HTTP Client](#custom-http-client) + * [Documentation](#documentation) + * [Available Resources and Operations](#available-resources-and-operations) +* [Development](#development) + * [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) -* [Authentication](#authentication) @@ -55,19 +59,13 @@ dotnet add reference Shippo/Shippo.csproj ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; -var sdk = new ShippoSDK( - apiKeyHeader: "", - shippoApiVersion: "2018-02-08" -); +var sdk = new ShippoSDK(shippoApiVersion: "2018-02-08"); -var res = await sdk.Addresses.ListAsync( - page: 1, - results: 5, - shippoApiVersion: "2018-02-08" -); +WebhookPayloadBatch req = new WebhookPayloadBatch() {}; + +await sdk.BatchAsync(req); // handle response ``` diff --git a/RELEASES.md b/RELEASES.md index 0e39aac..0a3c34a 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -108,4 +108,14 @@ Based on: ### Generated - [csharp v5.0.0-beta.9] . ### Releases -- [NuGet v5.0.0-beta.9] https://www.nuget.org/packages/Shippo/5.0.0-beta.9 - . \ No newline at end of file +- [NuGet v5.0.0-beta.9] https://www.nuget.org/packages/Shippo/5.0.0-beta.9 - . + +## 2025-02-24 00:18:46 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.501.0 (2.522.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [csharp v5.0.0-beta.10] . +### Releases +- [NuGet v5.0.0-beta.10] https://www.nuget.org/packages/Shippo/5.0.0-beta.10 - . \ No newline at end of file diff --git a/Shippo/Addresses.cs b/Shippo/Addresses.cs index 4683c83..7cc3ddc 100644 --- a/Shippo/Addresses.cs +++ b/Shippo/Addresses.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Addresses are the locations a parcel is being shipped **from** and **to**. They represent company and residential places. Among other things, you can use address objects to create shipments, calculate shipping rates, and purchase shipping labels.
@@ -39,7 +39,7 @@ public interface IAddresses /// Returns a list of all address objects that have been created in this account. /// ///
- Task ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null); + Task ListAsync(long? page = 1, long? results = 5, string? shippoApiVersion = null); /// /// Create a new address @@ -80,10 +80,10 @@ public class Addresses: IAddresses { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -96,7 +96,7 @@ public Addresses(ISpeakeasyHttpClient client, Func ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null) + public async Task ListAsync(long? page = 1, long? results = 5, string? shippoApiVersion = null) { var request = new ListAddressesRequest() { @@ -164,7 +164,11 @@ public async Task ListAsync(long? page = null, long? resul throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -246,7 +250,11 @@ public async Task
CreateAsync(AddressCreateRequest addressCreateRequest throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -321,7 +329,11 @@ public async Task
GetAsync(string addressId, string? shippoApiVersion = throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -396,7 +408,11 @@ public async Task
ValidateAsync(string addressId, string? shippoApiVers throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Batches.cs b/Shippo/Batches.cs index 62ddd0c..8fba8ae 100644 --- a/Shippo/Batches.cs +++ b/Shippo/Batches.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A batch is a technique for creating multiple labels at once. Use the batch object to create and purchase many shipments in two API calls. After creating the batch, retrieve the batch to verify that all shipments are valid. You can add and remove shipments after you have created the batch. When all shipments are valid you can purchase the batch and retrieve all the shipping labels.
@@ -111,10 +111,10 @@ public class Batches: IBatches { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -201,7 +201,11 @@ public async Task CreateAsync(BatchCreateRequest batchCreateRequest, stri throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -275,7 +279,11 @@ public async Task GetAsync(GetBatchRequest request) throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -357,7 +365,11 @@ public async Task AddShipmentsAsync(string batchId, List= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -432,7 +444,11 @@ public async Task PurchaseAsync(string batchId, string? shippoApiVersion throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -514,7 +530,11 @@ public async Task RemoveShipmentsAsync(string batchId, List reque throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/CarrierAccounts.cs b/Shippo/CarrierAccounts.cs index c90f8ca..89c7dce 100644 --- a/Shippo/CarrierAccounts.cs +++ b/Shippo/CarrierAccounts.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Carriers are the companies who deliver your package. Shippo uses Carrier account objects as credentials to retrieve shipping rates and purchase labels from shipping Carriers.
@@ -113,10 +113,10 @@ public class CarrierAccounts: ICarrierAccounts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -191,7 +191,11 @@ public async Task ListAsync(ListCarrierAccountsRequ throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -273,7 +277,11 @@ public async Task CreateAsync(ConnectExistingOwnAccountRequest c throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -348,7 +356,11 @@ public async Task GetAsync(string carrierAccountId, string? ship throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -430,7 +442,11 @@ public async Task UpdateAsync(string carrierAccountId, string? s throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -528,7 +544,11 @@ public async Task InitiateOauth2SigninAsync(Initia throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -610,7 +630,11 @@ public async Task RegisterAsync(RegisterCarrierAccountRequestBod throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -685,7 +709,11 @@ public async Task GetRegistrationStatusAsync(C throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/CarrierParcelTemplates.cs b/Shippo/CarrierParcelTemplates.cs index ff60796..e66bd3d 100644 --- a/Shippo/CarrierParcelTemplates.cs +++ b/Shippo/CarrierParcelTemplates.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A carrier parcel template represents a package used for shipping that has preset dimensions defined by a carrier. Some examples of a carrier parcel template include USPS Flat Rate Box and Fedex Small Pak. When using a carrier parcel template, the rates returned may be limited to the carrier that provides the box. You can create user parcel templates using a carrier parcel template. Shippo takes the dimensions of the carrier parcel template but you must configure the weight.
@@ -70,10 +70,10 @@ public class CarrierParcelTemplates: ICarrierParcelTemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -154,7 +154,11 @@ public async Task ListAsync(Include? include = null, throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -229,7 +233,11 @@ public async Task GetAsync(string carrierParcelTemplateTo throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/CustomsDeclarations.cs b/Shippo/CustomsDeclarations.cs index 35f3899..5c13c57 100644 --- a/Shippo/CustomsDeclarations.cs +++ b/Shippo/CustomsDeclarations.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Customs declarations are relevant information, including one or multiple customs items, you need to provide for
@@ -40,7 +40,7 @@ public interface ICustomsDeclarations /// Returns a a list of all customs declaration objects /// ///
- Task ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null); + Task ListAsync(long? page = 1, long? results = 5, string? shippoApiVersion = null); /// /// Create a new customs declaration @@ -58,7 +58,7 @@ public interface ICustomsDeclarations /// Returns an existing customs declaration using an object ID /// /// - Task GetAsync(string customsDeclarationId, long? page = null, string? shippoApiVersion = null); + Task GetAsync(string customsDeclarationId, long? page = 1, string? shippoApiVersion = null); } /// @@ -73,10 +73,10 @@ public class CustomsDeclarations: ICustomsDeclarations { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -89,7 +89,7 @@ public CustomsDeclarations(ISpeakeasyHttpClient client, Func ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null) + public async Task ListAsync(long? page = 1, long? results = 5, string? shippoApiVersion = null) { var request = new ListCustomsDeclarationsRequest() { @@ -157,7 +157,11 @@ public async Task ListAsync(long? page = null, throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -239,7 +243,11 @@ public async Task CreateAsync(CustomsDeclarationCreateReques throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -247,7 +255,7 @@ public async Task CreateAsync(CustomsDeclarationCreateReques throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - public async Task GetAsync(string customsDeclarationId, long? page = null, string? shippoApiVersion = null) + public async Task GetAsync(string customsDeclarationId, long? page = 1, string? shippoApiVersion = null) { var request = new GetCustomsDeclarationRequest() { @@ -315,7 +323,11 @@ public async Task GetAsync(string customsDeclarationId, long throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/CustomsItems.cs b/Shippo/CustomsItems.cs index 772cd59..22dc309 100644 --- a/Shippo/CustomsItems.cs +++ b/Shippo/CustomsItems.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Customs declarations are relevant information, including one or multiple customs items, you need to provide for customs clearance for your international shipments.
@@ -39,7 +39,7 @@ public interface ICustomsItems /// Returns a list all customs items objects. /// ///
- Task ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null); + Task ListAsync(long? page = 1, long? results = 25, string? shippoApiVersion = null); /// /// Create a new customs item @@ -57,7 +57,7 @@ public interface ICustomsItems /// Returns an existing customs item using an object ID /// /// - Task GetAsync(string customsItemId, long? page = null, string? shippoApiVersion = null); + Task GetAsync(string customsItemId, long? page = 1, string? shippoApiVersion = null); } /// @@ -71,10 +71,10 @@ public class CustomsItems: ICustomsItems { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -87,7 +87,7 @@ public CustomsItems(ISpeakeasyHttpClient client, Func ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null) + public async Task ListAsync(long? page = 1, long? results = 25, string? shippoApiVersion = null) { var request = new ListCustomsItemsRequest() { @@ -155,7 +155,11 @@ public async Task ListAsync(long? page = null, long? r throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -237,7 +241,11 @@ public async Task CreateAsync(CustomsItemCreateRequest customsItemC throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -245,7 +253,7 @@ public async Task CreateAsync(CustomsItemCreateRequest customsItemC throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - public async Task GetAsync(string customsItemId, long? page = null, string? shippoApiVersion = null) + public async Task GetAsync(string customsItemId, long? page = 1, string? shippoApiVersion = null) { var request = new GetCustomsItemRequest() { @@ -313,7 +321,11 @@ public async Task GetAsync(string customsItemId, long? page = null, throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Manifests.cs b/Shippo/Manifests.cs index 687ff5e..e804b71 100644 --- a/Shippo/Manifests.cs +++ b/Shippo/Manifests.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A manifest is a single-page document with a barcode that carriers can scan to accept all packages into transit without the need to scan each item individually.
@@ -45,7 +45,7 @@ public interface IManifests /// Returns a list of all manifest objects. /// ///
- Task ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null); + Task ListAsync(long? page = 1, long? results = 5, string? shippoApiVersion = null); /// /// Create a new manifest @@ -83,10 +83,10 @@ public class Manifests: IManifests { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -99,7 +99,7 @@ public Manifests(ISpeakeasyHttpClient client, Func ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null) + public async Task ListAsync(long? page = 1, long? results = 5, string? shippoApiVersion = null) { var request = new ListManifestsRequest() { @@ -167,7 +167,11 @@ public async Task ListAsync(long? page = null, long? resu throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -249,7 +253,11 @@ public async Task CreateAsync(ManifestCreateRequest manifestCreateRequ throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -324,7 +332,11 @@ public async Task GetAsync(string manifestId, string? shippoApiVersion throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Models/Components/AddressFrom.cs b/Shippo/Models/Components/AddressFrom.cs index 91fdfdb..a6edcf5 100644 --- a/Shippo/Models/Components/AddressFrom.cs +++ b/Shippo/Models/Components/AddressFrom.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class AddressFromType diff --git a/Shippo/Models/Components/AddressReturn.cs b/Shippo/Models/Components/AddressReturn.cs index aa5232c..4342ee3 100644 --- a/Shippo/Models/Components/AddressReturn.cs +++ b/Shippo/Models/Components/AddressReturn.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class AddressReturnType diff --git a/Shippo/Models/Components/AddressTo.cs b/Shippo/Models/Components/AddressTo.cs index 31d59f4..e2fbfa1 100644 --- a/Shippo/Models/Components/AddressTo.cs +++ b/Shippo/Models/Components/AddressTo.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class AddressToType diff --git a/Shippo/Models/Components/CarrierAccountBaseParameters.cs b/Shippo/Models/Components/CarrierAccountBaseParameters.cs index 545ebd3..000005a 100644 --- a/Shippo/Models/Components/CarrierAccountBaseParameters.cs +++ b/Shippo/Models/Components/CarrierAccountBaseParameters.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class CarrierAccountBaseParametersType diff --git a/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs b/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs index 5331408..b0db356 100644 --- a/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountCanadaPostCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountCanadaPostCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "canada_post"; [JsonProperty("parameters")] public CarrierAccountCanadaPostCreateParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs b/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs index ef61c43..b6e6ea1 100644 --- a/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountChronopostCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountChronopostCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "chronopost"; [JsonProperty("parameters")] public CarrierAccountChronopostCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs b/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs index 1d7a9f0..cc7274c 100644 --- a/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountColissimoCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountColissimoCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "colissimo"; [JsonProperty("parameters")] public CarrierAccountColissimoCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs b/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs index bed6878..7d1744c 100644 --- a/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountCorreosCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountCorreosCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "correos"; [JsonProperty("parameters")] public CarrierAccountCorreosCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs index e7f9c77..bacd53f 100644 --- a/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDHLExpressCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountDHLExpressCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "dhl_express"; [JsonProperty("parameters")] public CarrierAccountDHLExpressCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs index 4c54959..0ad138b 100644 --- a/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDPDUKCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountDPDUKCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "dpd_uk"; [JsonProperty("parameters")] public CarrierAccountDPDUKCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs index be0c8cb..57c1e2f 100644 --- a/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDeutschePostCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountDeutschePostCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "deutsche_post"; [JsonProperty("parameters")] public CarrierAccountDeutschePostCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs b/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs index 7484088..a0773cc 100644 --- a/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountDpdDeCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountDpdDeCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "dpd_de"; [JsonProperty("parameters")] public CarrierAccountDpdDeCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs b/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs index a3293ca..02d5af3 100644 --- a/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountFedExCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountFedExCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "fedex"; [JsonProperty("parameters")] public CarrierAccountFedExCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs b/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs index afe4e02..9a31f5a 100644 --- a/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountHermesUKCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountHermesUKCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "hermes_uk"; [JsonProperty("parameters")] public CarrierAccountHermesUKCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs b/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs index 978f2eb..31c1422 100644 --- a/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountMondialRelayCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountMondialRelayCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "mondial_relay"; [JsonProperty("parameters")] public CarrierAccountMondialRelayCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountParameters.cs b/Shippo/Models/Components/CarrierAccountParameters.cs index 8647aef..db119b4 100644 --- a/Shippo/Models/Components/CarrierAccountParameters.cs +++ b/Shippo/Models/Components/CarrierAccountParameters.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class CarrierAccountParametersType diff --git a/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs b/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs index b7a90e5..c45317d 100644 --- a/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountPosteItalianeCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountPosteItalianeCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "poste_italiane"; [JsonProperty("parameters")] public CarrierAccountPosteItalianeCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs b/Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs index 557646e..83e4344 100644 --- a/Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountSendleCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountSendleCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "sendle"; [JsonProperty("parameters")] public CarrierAccountSendleCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs b/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs index 9b5c95d..b32b576 100644 --- a/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountUPSCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountUPSCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "ups"; [JsonProperty("parameters")] public CarrierAccountUPSCreateRequestParameters? Parameters { get; set; } diff --git a/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs b/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs index b5eff7e..404553a 100644 --- a/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs +++ b/Shippo/Models/Components/CarrierAccountUSPSCreateRequest.cs @@ -17,7 +17,7 @@ public class CarrierAccountUSPSCreateRequest { [JsonProperty("carrier")] - public string Carrier { get; set; } = default!; + public string Carrier { get; } = "usps"; [JsonProperty("parameters")] public CarrierAccountUSPSCreateRequestParameters Parameters { get; set; } = default!; diff --git a/Shippo/Models/Components/CarriersEnum.cs b/Shippo/Models/Components/CarriersEnum.cs index e902fd5..a240634 100644 --- a/Shippo/Models/Components/CarriersEnum.cs +++ b/Shippo/Models/Components/CarriersEnum.cs @@ -35,7 +35,6 @@ namespace Shippo.Models.Components /// | collect_plus | CollectPlus|
/// | correios_br | CorreiosBR|
/// | correos_espana | Correos España |
- /// | couriersplease | Couriers Please|
/// | colissimo | Colissimo|
/// | deutsche_post | Deutsche Post|
/// | dhl_benelux | DHL Benelux|
@@ -61,7 +60,6 @@ namespace Shippo.Models.Components /// | 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|
@@ -118,8 +116,6 @@ public enum CarriersEnum CorreiosBr, [JsonProperty("correos_espana")] CorreosEspana, - [JsonProperty("couriersplease")] - Couriersplease, [JsonProperty("colissimo")] Colissimo, [JsonProperty("deutsche_post")] @@ -170,8 +166,6 @@ public enum CarriersEnum NipponExpress, [JsonProperty("ontrac")] Ontrac, - [JsonProperty("orangeds")] - Orangeds, [JsonProperty("parcelforce")] Parcelforce, [JsonProperty("passport")] diff --git a/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs b/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs index 6ce9505..5b1b97c 100644 --- a/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs +++ b/Shippo/Models/Components/ConnectExistingOwnAccountRequestParameters.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ConnectExistingOwnAccountRequestParametersType diff --git a/Shippo/Models/Components/CustomsDeclaration.cs b/Shippo/Models/Components/CustomsDeclaration.cs index 100cc5f..4f73f9d 100644 --- a/Shippo/Models/Components/CustomsDeclaration.cs +++ b/Shippo/Models/Components/CustomsDeclaration.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; public class CustomsDeclaration { diff --git a/Shippo/Models/Components/Latitude.cs b/Shippo/Models/Components/Latitude.cs index 5198192..6f18299 100644 --- a/Shippo/Models/Components/Latitude.cs +++ b/Shippo/Models/Components/Latitude.cs @@ -9,13 +9,13 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class LatitudeType diff --git a/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs b/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs index 3b9da6e..8a0c44f 100644 --- a/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs +++ b/Shippo/Models/Components/LiveRateCreateRequestAddressFrom.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class LiveRateCreateRequestAddressFromType diff --git a/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs b/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs index 26e6ca1..a6ffb88 100644 --- a/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs +++ b/Shippo/Models/Components/LiveRateCreateRequestAddressTo.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class LiveRateCreateRequestAddressToType diff --git a/Shippo/Models/Components/LiveRateCreateRequestParcel.cs b/Shippo/Models/Components/LiveRateCreateRequestParcel.cs index aa6eb23..0c0d3e8 100644 --- a/Shippo/Models/Components/LiveRateCreateRequestParcel.cs +++ b/Shippo/Models/Components/LiveRateCreateRequestParcel.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class LiveRateCreateRequestParcelType diff --git a/Shippo/Models/Components/Longitude.cs b/Shippo/Models/Components/Longitude.cs index cd24376..e5e6cc1 100644 --- a/Shippo/Models/Components/Longitude.cs +++ b/Shippo/Models/Components/Longitude.cs @@ -9,13 +9,13 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class LongitudeType diff --git a/Shippo/Models/Components/Manifest.cs b/Shippo/Models/Components/Manifest.cs index 270735d..28056aa 100644 --- a/Shippo/Models/Components/Manifest.cs +++ b/Shippo/Models/Components/Manifest.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; public class Manifest { diff --git a/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs b/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs index 3535d8e..679c630 100644 --- a/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs +++ b/Shippo/Models/Components/ManifestCreateRequestAddressFrom.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ManifestCreateRequestAddressFromType diff --git a/Shippo/Models/Components/Parameters.cs b/Shippo/Models/Components/Parameters.cs index 3c2201e..01f5a72 100644 --- a/Shippo/Models/Components/Parameters.cs +++ b/Shippo/Models/Components/Parameters.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ParametersType diff --git a/Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs b/Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs deleted file mode 100644 index e2079d6..0000000 --- a/Shippo/Models/Components/ParcelTemplateCouriersPleaseEnum.cs +++ /dev/null @@ -1,73 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Shippo.Models.Components -{ - using Newtonsoft.Json; - using Shippo.Utils; - using System; - - /// - /// |Token | Name | Dimensions|
- /// - /// - /// |:---|:---|:---|
- /// | couriersplease_500g_satchel | 500g Satchel | 22.00 x 33.50 x 0.10 cm|
- /// | couriersplease_1kg_satchel | 1kg Satchel | 28.00 x 35.00 x 0.10 cm|
- /// | couriersplease_3kg_satchel | 3kg Satchel | 34.00 x 42.00 x 0.10 cm|
- /// | couriersplease_5kg_satchel | 5kg Satchel | 43.70 x 59.70 x 0.10 cm|
- /// - ///
- ///
- public enum ParcelTemplateCouriersPleaseEnum - { - [JsonProperty("couriersplease_500g_satchel")] - Couriersplease500gSatchel, - [JsonProperty("couriersplease_1kg_satchel")] - Couriersplease1kgSatchel, - [JsonProperty("couriersplease_3kg_satchel")] - Couriersplease3kgSatchel, - [JsonProperty("couriersplease_5kg_satchel")] - Couriersplease5kgSatchel, - } - - public static class ParcelTemplateCouriersPleaseEnumExtension - { - public static string Value(this ParcelTemplateCouriersPleaseEnum value) - { - return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); - } - - public static ParcelTemplateCouriersPleaseEnum ToEnum(this string value) - { - foreach(var field in typeof(ParcelTemplateCouriersPleaseEnum).GetFields()) - { - var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); - if (attributes.Length == 0) - { - continue; - } - - var attribute = attributes[0] as JsonPropertyAttribute; - if (attribute != null && attribute.PropertyName == value) - { - var enumVal = field.GetValue(null); - - if (enumVal is ParcelTemplateCouriersPleaseEnum) - { - return (ParcelTemplateCouriersPleaseEnum)enumVal; - } - } - } - - throw new Exception($"Unknown value {value} for enum ParcelTemplateCouriersPleaseEnum"); - } - } - -} \ No newline at end of file diff --git a/Shippo/Models/Components/ParcelTemplateEnumSet.cs b/Shippo/Models/Components/ParcelTemplateEnumSet.cs index 64e6e36..941717c 100644 --- a/Shippo/Models/Components/ParcelTemplateEnumSet.cs +++ b/Shippo/Models/Components/ParcelTemplateEnumSet.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ParcelTemplateEnumSetType @@ -34,8 +34,6 @@ public class ParcelTemplateEnumSetType public static ParcelTemplateEnumSetType ParcelTemplateDPDUKEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateDPDUKEnum"); } } - public static ParcelTemplateEnumSetType ParcelTemplateCouriersPleaseEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateCouriersPleaseEnum"); } } - public static ParcelTemplateEnumSetType ParcelTemplateAramexAustraliaEnum { get { return new ParcelTemplateEnumSetType("ParcelTemplateAramexAustraliaEnum"); } } public static ParcelTemplateEnumSetType Null { get { return new ParcelTemplateEnumSetType("null"); } } @@ -49,7 +47,6 @@ public static ParcelTemplateEnumSetType FromString(string v) { case "ParcelTemplateUSPSEnum": return ParcelTemplateUSPSEnum; case "ParcelTemplateDHLeCommerceEnum": return ParcelTemplateDHLeCommerceEnum; case "ParcelTemplateDPDUKEnum": return ParcelTemplateDPDUKEnum; - case "ParcelTemplateCouriersPleaseEnum": return ParcelTemplateCouriersPleaseEnum; case "ParcelTemplateAramexAustraliaEnum": return ParcelTemplateAramexAustraliaEnum; case "null": return Null; default: throw new ArgumentException("Invalid value for ParcelTemplateEnumSetType"); @@ -95,9 +92,6 @@ public ParcelTemplateEnumSet(ParcelTemplateEnumSetType type) { [SpeakeasyMetadata("form:explode=true")] public ParcelTemplateDPDUKEnum? ParcelTemplateDPDUKEnum { get; set; } - [SpeakeasyMetadata("form:explode=true")] - public ParcelTemplateCouriersPleaseEnum? ParcelTemplateCouriersPleaseEnum { get; set; } - [SpeakeasyMetadata("form:explode=true")] public ParcelTemplateAramexAustraliaEnum? ParcelTemplateAramexAustraliaEnum { get; set; } @@ -144,14 +138,6 @@ public static ParcelTemplateEnumSet CreateParcelTemplateDPDUKEnum(ParcelTemplate return res; } - public static ParcelTemplateEnumSet CreateParcelTemplateCouriersPleaseEnum(ParcelTemplateCouriersPleaseEnum parcelTemplateCouriersPleaseEnum) { - ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateCouriersPleaseEnum; - - ParcelTemplateEnumSet res = new ParcelTemplateEnumSet(typ); - res.ParcelTemplateCouriersPleaseEnum = parcelTemplateCouriersPleaseEnum; - return res; - } - public static ParcelTemplateEnumSet CreateParcelTemplateAramexAustraliaEnum(ParcelTemplateAramexAustraliaEnum parcelTemplateAramexAustraliaEnum) { ParcelTemplateEnumSetType typ = ParcelTemplateEnumSetType.ParcelTemplateAramexAustraliaEnum; @@ -282,26 +268,6 @@ public class ParcelTemplateEnumSetConverter : JsonConverter throw; } - try - { - return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateCouriersPleaseEnum) - { - ParcelTemplateCouriersPleaseEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(ParcelTemplateCouriersPleaseEnum), new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateCouriersPleaseEnum), "ParcelTemplateCouriersPleaseEnum")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - try { return new ParcelTemplateEnumSet(ParcelTemplateEnumSetType.ParcelTemplateAramexAustraliaEnum) @@ -382,11 +348,6 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateDPDUKEnum)); return; } - if (res.ParcelTemplateCouriersPleaseEnum != null) - { - writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateCouriersPleaseEnum)); - return; - } if (res.ParcelTemplateAramexAustraliaEnum != null) { writer.WriteRawValue(Utilities.SerializeJSON(res.ParcelTemplateAramexAustraliaEnum)); diff --git a/Shippo/Models/Components/Parcels.cs b/Shippo/Models/Components/Parcels.cs index 40a117d..2ea874b 100644 --- a/Shippo/Models/Components/Parcels.cs +++ b/Shippo/Models/Components/Parcels.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ParcelsType diff --git a/Shippo/Models/Components/Pickup.cs b/Shippo/Models/Components/Pickup.cs index d74fe6a..1dcb9f2 100644 --- a/Shippo/Models/Components/Pickup.cs +++ b/Shippo/Models/Components/Pickup.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; public class Pickup { diff --git a/Shippo/Models/Components/PickupBase.cs b/Shippo/Models/Components/PickupBase.cs index c0b3097..6991631 100644 --- a/Shippo/Models/Components/PickupBase.cs +++ b/Shippo/Models/Components/PickupBase.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; public class PickupBase { diff --git a/Shippo/Models/Components/Rate.cs b/Shippo/Models/Components/Rate.cs index f7e9dae..d7ee7d1 100644 --- a/Shippo/Models/Components/Rate.cs +++ b/Shippo/Models/Components/Rate.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; public class Rate { diff --git a/Shippo/Models/Components/ReturnServiceType.cs b/Shippo/Models/Components/ReturnServiceType.cs index 93726f7..968d5a9 100644 --- a/Shippo/Models/Components/ReturnServiceType.cs +++ b/Shippo/Models/Components/ReturnServiceType.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ReturnServiceTypeType diff --git a/Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs b/Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs deleted file mode 100644 index 904d5c0..0000000 --- a/Shippo/Models/Components/ServiceLevelCouriersPleaseEnum.cs +++ /dev/null @@ -1,94 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace Shippo.Models.Components -{ - using Newtonsoft.Json; - using Shippo.Utils; - using System; - - /// - /// |Token | Service name|
- /// - /// - /// |:---|:---|
- /// | couriersplease_domestic_priority_auth_to_leave | Domestic Priority - Authority To Leave/POPPoints|
- /// | couriersplease_domestic_priority_sign_required | Domestic Priority - Signature Required|
- /// | couriersplease_gold_domestic_auth_to_leave | Gold Domestic - Authority To Leave/POPPoints|
- /// | couriersplease_gold_domestic_sign_required | Gold Domestic - Signature Required|
- /// | couriersplease_off_peak_auth_to_leave | Off Peak - Authority To Leave/POPPoints|
- /// | couriersplease_off_peak_sign_required | Off Peak - Signature Required|
- /// | couriersplease_parcel_auth_to_leave | Parcel - Authority To Leave|
- /// | couriersplease_parcel_sign_required | Parcel - Signature Required|
- /// | couriersplease_road_express | Road Express|
- /// | couriersplease_satchel_auth_to_leave | Satchel - Authority To Leave|
- /// | couriersplease_satchel_sign_required | Satchel - Signature Required|
- /// - ///
- ///
- public enum ServiceLevelCouriersPleaseEnum - { - [JsonProperty("couriersplease_domestic_priority_auth_to_leave")] - CourierspleaseDomesticPriorityAuthToLeave, - [JsonProperty("couriersplease_domestic_priority_sign_required")] - CourierspleaseDomesticPrioritySignRequired, - [JsonProperty("couriersplease_gold_domestic_auth_to_leave")] - CourierspleaseGoldDomesticAuthToLeave, - [JsonProperty("couriersplease_gold_domestic_sign_required")] - CourierspleaseGoldDomesticSignRequired, - [JsonProperty("couriersplease_off_peak_auth_to_leave")] - CourierspleaseOffPeakAuthToLeave, - [JsonProperty("couriersplease_off_peak_sign_required")] - CourierspleaseOffPeakSignRequired, - [JsonProperty("couriersplease_parcel_auth_to_leave")] - CourierspleaseParcelAuthToLeave, - [JsonProperty("couriersplease_parcel_sign_required")] - CourierspleaseParcelSignRequired, - [JsonProperty("couriersplease_road_express")] - CourierspleaseRoadExpress, - [JsonProperty("couriersplease_satchel_auth_to_leave")] - CourierspleaseSatchelAuthToLeave, - [JsonProperty("couriersplease_satchel_sign_required")] - CourierspleaseSatchelSignRequired, - } - - public static class ServiceLevelCouriersPleaseEnumExtension - { - public static string Value(this ServiceLevelCouriersPleaseEnum value) - { - return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); - } - - public static ServiceLevelCouriersPleaseEnum ToEnum(this string value) - { - foreach(var field in typeof(ServiceLevelCouriersPleaseEnum).GetFields()) - { - var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); - if (attributes.Length == 0) - { - continue; - } - - var attribute = attributes[0] as JsonPropertyAttribute; - if (attribute != null && attribute.PropertyName == value) - { - var enumVal = field.GetValue(null); - - if (enumVal is ServiceLevelCouriersPleaseEnum) - { - return (ServiceLevelCouriersPleaseEnum)enumVal; - } - } - } - - throw new Exception($"Unknown value {value} for enum ServiceLevelCouriersPleaseEnum"); - } - } - -} \ No newline at end of file diff --git a/Shippo/Models/Components/ServiceLevelEnumSet.cs b/Shippo/Models/Components/ServiceLevelEnumSet.cs index ec0d0e9..e27c5c5 100644 --- a/Shippo/Models/Components/ServiceLevelEnumSet.cs +++ b/Shippo/Models/Components/ServiceLevelEnumSet.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ServiceLevelEnumSetType @@ -48,8 +48,6 @@ public class ServiceLevelEnumSetType public static ServiceLevelEnumSetType ServiceLevelChronopostEnum { get { return new ServiceLevelEnumSetType("ServiceLevelChronopostEnum"); } } - public static ServiceLevelEnumSetType ServiceLevelCouriersPleaseEnum { get { return new ServiceLevelEnumSetType("ServiceLevelCouriersPleaseEnum"); } } - public static ServiceLevelEnumSetType ServiceLevelCorreosEspanaEnum { get { return new ServiceLevelEnumSetType("ServiceLevelCorreosEspanaEnum"); } } public static ServiceLevelEnumSetType ServiceLevelColissimoEnum { get { return new ServiceLevelEnumSetType("ServiceLevelColissimoEnum"); } } @@ -120,7 +118,6 @@ public static ServiceLevelEnumSetType FromString(string v) { case "ServiceLevelCanadaPostEnum": return ServiceLevelCanadaPostEnum; case "ServiceLevelCDLEnum": return ServiceLevelCDLEnum; case "ServiceLevelChronopostEnum": return ServiceLevelChronopostEnum; - case "ServiceLevelCouriersPleaseEnum": return ServiceLevelCouriersPleaseEnum; case "ServiceLevelCorreosEspanaEnum": return ServiceLevelCorreosEspanaEnum; case "ServiceLevelColissimoEnum": return ServiceLevelColissimoEnum; case "ServiceLevelPurolatorEnum": return ServiceLevelPurolatorEnum; @@ -209,9 +206,6 @@ public ServiceLevelEnumSet(ServiceLevelEnumSetType type) { [SpeakeasyMetadata("form:explode=true")] public ServiceLevelChronopostEnum? ServiceLevelChronopostEnum { get; set; } - [SpeakeasyMetadata("form:explode=true")] - public ServiceLevelCouriersPleaseEnum? ServiceLevelCouriersPleaseEnum { get; set; } - [SpeakeasyMetadata("form:explode=true")] public ServiceLevelCorreosEspanaEnum? ServiceLevelCorreosEspanaEnum { get; set; } @@ -389,14 +383,6 @@ public static ServiceLevelEnumSet CreateServiceLevelChronopostEnum(ServiceLevelC return res; } - public static ServiceLevelEnumSet CreateServiceLevelCouriersPleaseEnum(ServiceLevelCouriersPleaseEnum serviceLevelCouriersPleaseEnum) { - ServiceLevelEnumSetType typ = ServiceLevelEnumSetType.ServiceLevelCouriersPleaseEnum; - - ServiceLevelEnumSet res = new ServiceLevelEnumSet(typ); - res.ServiceLevelCouriersPleaseEnum = serviceLevelCouriersPleaseEnum; - return res; - } - public static ServiceLevelEnumSet CreateServiceLevelCorreosEspanaEnum(ServiceLevelCorreosEspanaEnum serviceLevelCorreosEspanaEnum) { ServiceLevelEnumSetType typ = ServiceLevelEnumSetType.ServiceLevelCorreosEspanaEnum; @@ -867,26 +853,6 @@ public class ServiceLevelEnumSetConverter : JsonConverter throw; } - try - { - return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelCouriersPleaseEnum) - { - ServiceLevelCouriersPleaseEnum = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(ServiceLevelCouriersPleaseEnum), new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelCouriersPleaseEnum), "ServiceLevelCouriersPleaseEnum")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - try { return new ServiceLevelEnumSet(ServiceLevelEnumSetType.ServiceLevelCorreosEspanaEnum) @@ -1502,11 +1468,6 @@ public override void WriteJson(JsonWriter writer, object? value, JsonSerializer writer.WriteRawValue(Utilities.SerializeJSON(res.ServiceLevelChronopostEnum)); return; } - if (res.ServiceLevelCouriersPleaseEnum != null) - { - writer.WriteRawValue(Utilities.SerializeJSON(res.ServiceLevelCouriersPleaseEnum)); - return; - } if (res.ServiceLevelCorreosEspanaEnum != null) { writer.WriteRawValue(Utilities.SerializeJSON(res.ServiceLevelCorreosEspanaEnum)); diff --git a/Shippo/Models/Components/Shipment.cs b/Shippo/Models/Components/Shipment.cs index f37b994..8eeb405 100644 --- a/Shippo/Models/Components/Shipment.cs +++ b/Shippo/Models/Components/Shipment.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; /// /// Shipment represents the parcel as retrieved from the database diff --git a/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs b/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs index aab8dae..a40da06 100644 --- a/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs +++ b/Shippo/Models/Components/ShipmentCreateRequestCustomsDeclaration.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class ShipmentCreateRequestCustomsDeclarationType diff --git a/Shippo/Models/Components/Track.cs b/Shippo/Models/Components/Track.cs index 92df871..13da519 100644 --- a/Shippo/Models/Components/Track.cs +++ b/Shippo/Models/Components/Track.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; public class Track { diff --git a/Shippo/Models/Components/Transaction.cs b/Shippo/Models/Components/Transaction.cs index 9d2b813..c49ce1f 100644 --- a/Shippo/Models/Components/Transaction.cs +++ b/Shippo/Models/Components/Transaction.cs @@ -12,8 +12,8 @@ namespace Shippo.Models.Components using Newtonsoft.Json; using Shippo.Models.Components; using Shippo.Utils; - using System.Collections.Generic; using System; + using System.Collections.Generic; public class Transaction { diff --git a/Shippo/Models/Components/TransactionRate.cs b/Shippo/Models/Components/TransactionRate.cs index 2c1e89e..6ce9a62 100644 --- a/Shippo/Models/Components/TransactionRate.cs +++ b/Shippo/Models/Components/TransactionRate.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class TransactionRateType diff --git a/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs b/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs index af93332..d9fac87 100644 --- a/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs +++ b/Shippo/Models/Components/UserParcelTemplateCreateRequest.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class UserParcelTemplateCreateRequestType diff --git a/Shippo/Models/Components/WebhookPayload.cs b/Shippo/Models/Components/WebhookPayload.cs index f1b167c..57df3c4 100644 --- a/Shippo/Models/Components/WebhookPayload.cs +++ b/Shippo/Models/Components/WebhookPayload.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Components { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class WebhookPayloadType diff --git a/Shippo/Models/Requests/CreateParcelRequestBody.cs b/Shippo/Models/Requests/CreateParcelRequestBody.cs index f33246e..fa170cc 100644 --- a/Shippo/Models/Requests/CreateParcelRequestBody.cs +++ b/Shippo/Models/Requests/CreateParcelRequestBody.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Requests { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class CreateParcelRequestBodyType diff --git a/Shippo/Models/Requests/CreateTransactionRequestBody.cs b/Shippo/Models/Requests/CreateTransactionRequestBody.cs index 9c4cfed..19f63e2 100644 --- a/Shippo/Models/Requests/CreateTransactionRequestBody.cs +++ b/Shippo/Models/Requests/CreateTransactionRequestBody.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Requests { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class CreateTransactionRequestBodyType diff --git a/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs b/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs index 1ffce10..3da91b1 100644 --- a/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs +++ b/Shippo/Models/Requests/RegisterCarrierAccountRequest.cs @@ -17,11 +17,86 @@ public class RegisterCarrierAccountRequest { /// - /// Examples. + /// The body of the request. /// [SpeakeasyMetadata("request:mediaType=application/json")] public RegisterCarrierAccountRequestBody RequestBody { get; set; } = default!; + public CarrierAccountCanadaPostCreateRequest? GetRequestBodyCanadaPost() + { + return RequestBody.CarrierAccountCanadaPostCreateRequest; + } + + public CarrierAccountChronopostCreateRequest? GetRequestBodyChronopost() + { + return RequestBody.CarrierAccountChronopostCreateRequest; + } + + public CarrierAccountColissimoCreateRequest? GetRequestBodyColissimo() + { + return RequestBody.CarrierAccountColissimoCreateRequest; + } + + public CarrierAccountCorreosCreateRequest? GetRequestBodyCorreos() + { + return RequestBody.CarrierAccountCorreosCreateRequest; + } + + public CarrierAccountDeutschePostCreateRequest? GetRequestBodyDeutschePost() + { + return RequestBody.CarrierAccountDeutschePostCreateRequest; + } + + public CarrierAccountDHLExpressCreateRequest? GetRequestBodyDhlExpress() + { + return RequestBody.CarrierAccountDHLExpressCreateRequest; + } + + public CarrierAccountDpdDeCreateRequest? GetRequestBodyDpdDe() + { + return RequestBody.CarrierAccountDpdDeCreateRequest; + } + + public CarrierAccountDPDUKCreateRequest? GetRequestBodyDpdUk() + { + return RequestBody.CarrierAccountDPDUKCreateRequest; + } + + public CarrierAccountFedExCreateRequest? GetRequestBodyFedex() + { + return RequestBody.CarrierAccountFedExCreateRequest; + } + + public CarrierAccountHermesUKCreateRequest? GetRequestBodyHermesUk() + { + return RequestBody.CarrierAccountHermesUKCreateRequest; + } + + public CarrierAccountMondialRelayCreateRequest? GetRequestBodyMondialRelay() + { + return RequestBody.CarrierAccountMondialRelayCreateRequest; + } + + public CarrierAccountPosteItalianeCreateRequest? GetRequestBodyPosteItaliane() + { + return RequestBody.CarrierAccountPosteItalianeCreateRequest; + } + + public CarrierAccountUPSCreateRequest? GetRequestBodyUps() + { + return RequestBody.CarrierAccountUPSCreateRequest; + } + + public CarrierAccountUSPSCreateRequest? GetRequestBodyUsps() + { + return RequestBody.CarrierAccountUSPSCreateRequest; + } + + public CarrierAccountSendleCreateRequest? GetRequestBodySendle() + { + return RequestBody.CarrierAccountSendleCreateRequest; + } + /// /// 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. /// diff --git a/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs b/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs index e84cdea..1052766 100644 --- a/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs +++ b/Shippo/Models/Requests/RegisterCarrierAccountRequestBody.cs @@ -9,14 +9,14 @@ #nullable enable namespace Shippo.Models.Requests { - using Newtonsoft.Json.Linq; using Newtonsoft.Json; + using Newtonsoft.Json.Linq; using Shippo.Models.Components; using Shippo.Utils; + using System; using System.Collections.Generic; using System.Numerics; using System.Reflection; - using System; public class RegisterCarrierAccountRequestBodyType @@ -24,57 +24,43 @@ public class RegisterCarrierAccountRequestBodyType private RegisterCarrierAccountRequestBodyType(string value) { Value = value; } public string Value { get; private set; } - public static RegisterCarrierAccountRequestBodyType CarrierAccountCanadaPostCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountCanadaPostCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountChronopostCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountChronopostCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountColissimoCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountColissimoCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountCorreosCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountCorreosCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountDeutschePostCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountDeutschePostCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountDHLExpressCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountDHLExpressCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountDpdDeCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountDpdDeCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountDPDUKCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountDPDUKCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountFedExCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountFedExCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountHermesUKCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountHermesUKCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountMondialRelayCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountMondialRelayCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountPosteItalianeCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountPosteItalianeCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountUPSCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountUPSCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountUSPSCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountUSPSCreateRequest"); } } - - public static RegisterCarrierAccountRequestBodyType CarrierAccountSendleCreateRequest { get { return new RegisterCarrierAccountRequestBodyType("CarrierAccountSendleCreateRequest"); } } + public static RegisterCarrierAccountRequestBodyType CanadaPost { get { return new RegisterCarrierAccountRequestBodyType("canada_post"); } } + public static RegisterCarrierAccountRequestBodyType Chronopost { get { return new RegisterCarrierAccountRequestBodyType("chronopost"); } } + public static RegisterCarrierAccountRequestBodyType Colissimo { get { return new RegisterCarrierAccountRequestBodyType("colissimo"); } } + public static RegisterCarrierAccountRequestBodyType Correos { get { return new RegisterCarrierAccountRequestBodyType("correos"); } } + public static RegisterCarrierAccountRequestBodyType DeutschePost { get { return new RegisterCarrierAccountRequestBodyType("deutsche_post"); } } + public static RegisterCarrierAccountRequestBodyType DhlExpress { get { return new RegisterCarrierAccountRequestBodyType("dhl_express"); } } + public static RegisterCarrierAccountRequestBodyType DpdDe { get { return new RegisterCarrierAccountRequestBodyType("dpd_de"); } } + public static RegisterCarrierAccountRequestBodyType DpdUk { get { return new RegisterCarrierAccountRequestBodyType("dpd_uk"); } } + public static RegisterCarrierAccountRequestBodyType Fedex { get { return new RegisterCarrierAccountRequestBodyType("fedex"); } } + public static RegisterCarrierAccountRequestBodyType HermesUk { get { return new RegisterCarrierAccountRequestBodyType("hermes_uk"); } } + public static RegisterCarrierAccountRequestBodyType MondialRelay { get { return new RegisterCarrierAccountRequestBodyType("mondial_relay"); } } + public static RegisterCarrierAccountRequestBodyType PosteItaliane { get { return new RegisterCarrierAccountRequestBodyType("poste_italiane"); } } + public static RegisterCarrierAccountRequestBodyType Ups { get { return new RegisterCarrierAccountRequestBodyType("ups"); } } + public static RegisterCarrierAccountRequestBodyType Usps { get { return new RegisterCarrierAccountRequestBodyType("usps"); } } + public static RegisterCarrierAccountRequestBodyType Sendle { get { return new RegisterCarrierAccountRequestBodyType("sendle"); } } public static RegisterCarrierAccountRequestBodyType Null { get { return new RegisterCarrierAccountRequestBodyType("null"); } } public override string ToString() { return Value; } public static implicit operator String(RegisterCarrierAccountRequestBodyType v) { return v.Value; } public static RegisterCarrierAccountRequestBodyType FromString(string v) { switch(v) { - case "CarrierAccountCanadaPostCreateRequest": return CarrierAccountCanadaPostCreateRequest; - case "CarrierAccountChronopostCreateRequest": return CarrierAccountChronopostCreateRequest; - case "CarrierAccountColissimoCreateRequest": return CarrierAccountColissimoCreateRequest; - case "CarrierAccountCorreosCreateRequest": return CarrierAccountCorreosCreateRequest; - case "CarrierAccountDeutschePostCreateRequest": return CarrierAccountDeutschePostCreateRequest; - case "CarrierAccountDHLExpressCreateRequest": return CarrierAccountDHLExpressCreateRequest; - case "CarrierAccountDpdDeCreateRequest": return CarrierAccountDpdDeCreateRequest; - case "CarrierAccountDPDUKCreateRequest": return CarrierAccountDPDUKCreateRequest; - case "CarrierAccountFedExCreateRequest": return CarrierAccountFedExCreateRequest; - case "CarrierAccountHermesUKCreateRequest": return CarrierAccountHermesUKCreateRequest; - case "CarrierAccountMondialRelayCreateRequest": return CarrierAccountMondialRelayCreateRequest; - case "CarrierAccountPosteItalianeCreateRequest": return CarrierAccountPosteItalianeCreateRequest; - case "CarrierAccountUPSCreateRequest": return CarrierAccountUPSCreateRequest; - case "CarrierAccountUSPSCreateRequest": return CarrierAccountUSPSCreateRequest; - case "CarrierAccountSendleCreateRequest": return CarrierAccountSendleCreateRequest; + case "canada_post": return CanadaPost; + case "chronopost": return Chronopost; + case "colissimo": return Colissimo; + case "correos": return Correos; + case "deutsche_post": return DeutschePost; + case "dhl_express": return DhlExpress; + case "dpd_de": return DpdDe; + case "dpd_uk": return DpdUk; + case "fedex": return Fedex; + case "hermes_uk": return HermesUk; + case "mondial_relay": return MondialRelay; + case "poste_italiane": return PosteItaliane; + case "ups": return Ups; + case "usps": return Usps; + case "sendle": return Sendle; case "null": return Null; default: throw new ArgumentException("Invalid value for RegisterCarrierAccountRequestBodyType"); } @@ -96,7 +82,7 @@ public override int GetHashCode() /// - /// Examples. + /// The body of the request. /// [JsonConverter(typeof(RegisterCarrierAccountRequestBody.RegisterCarrierAccountRequestBodyConverter))] public class RegisterCarrierAccountRequestBody { @@ -152,126 +138,111 @@ public RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType t public RegisterCarrierAccountRequestBodyType Type { get; set; } - public static RegisterCarrierAccountRequestBody CreateCarrierAccountCanadaPostCreateRequest(CarrierAccountCanadaPostCreateRequest carrierAccountCanadaPostCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountCanadaPostCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateCanadaPost(CarrierAccountCanadaPostCreateRequest canadaPost) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CanadaPost; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountCanadaPostCreateRequest = carrierAccountCanadaPostCreateRequest; + res.CarrierAccountCanadaPostCreateRequest = canadaPost; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountChronopostCreateRequest(CarrierAccountChronopostCreateRequest carrierAccountChronopostCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountChronopostCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateChronopost(CarrierAccountChronopostCreateRequest chronopost) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Chronopost; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountChronopostCreateRequest = carrierAccountChronopostCreateRequest; + res.CarrierAccountChronopostCreateRequest = chronopost; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountColissimoCreateRequest(CarrierAccountColissimoCreateRequest carrierAccountColissimoCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountColissimoCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateColissimo(CarrierAccountColissimoCreateRequest colissimo) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Colissimo; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountColissimoCreateRequest = carrierAccountColissimoCreateRequest; + res.CarrierAccountColissimoCreateRequest = colissimo; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountCorreosCreateRequest(CarrierAccountCorreosCreateRequest carrierAccountCorreosCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountCorreosCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateCorreos(CarrierAccountCorreosCreateRequest correos) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Correos; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountCorreosCreateRequest = carrierAccountCorreosCreateRequest; + res.CarrierAccountCorreosCreateRequest = correos; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountDeutschePostCreateRequest(CarrierAccountDeutschePostCreateRequest carrierAccountDeutschePostCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountDeutschePostCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateDeutschePost(CarrierAccountDeutschePostCreateRequest deutschePost) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.DeutschePost; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountDeutschePostCreateRequest = carrierAccountDeutschePostCreateRequest; + res.CarrierAccountDeutschePostCreateRequest = deutschePost; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountDHLExpressCreateRequest(CarrierAccountDHLExpressCreateRequest carrierAccountDHLExpressCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountDHLExpressCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateDhlExpress(CarrierAccountDHLExpressCreateRequest dhlExpress) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.DhlExpress; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountDHLExpressCreateRequest = carrierAccountDHLExpressCreateRequest; + res.CarrierAccountDHLExpressCreateRequest = dhlExpress; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountDpdDeCreateRequest(CarrierAccountDpdDeCreateRequest carrierAccountDpdDeCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountDpdDeCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateDpdDe(CarrierAccountDpdDeCreateRequest dpdDe) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.DpdDe; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountDpdDeCreateRequest = carrierAccountDpdDeCreateRequest; + res.CarrierAccountDpdDeCreateRequest = dpdDe; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountDPDUKCreateRequest(CarrierAccountDPDUKCreateRequest carrierAccountDPDUKCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountDPDUKCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateDpdUk(CarrierAccountDPDUKCreateRequest dpdUk) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.DpdUk; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountDPDUKCreateRequest = carrierAccountDPDUKCreateRequest; + res.CarrierAccountDPDUKCreateRequest = dpdUk; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountFedExCreateRequest(CarrierAccountFedExCreateRequest carrierAccountFedExCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountFedExCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateFedex(CarrierAccountFedExCreateRequest fedex) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Fedex; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountFedExCreateRequest = carrierAccountFedExCreateRequest; + res.CarrierAccountFedExCreateRequest = fedex; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountHermesUKCreateRequest(CarrierAccountHermesUKCreateRequest carrierAccountHermesUKCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountHermesUKCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateHermesUk(CarrierAccountHermesUKCreateRequest hermesUk) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.HermesUk; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountHermesUKCreateRequest = carrierAccountHermesUKCreateRequest; + res.CarrierAccountHermesUKCreateRequest = hermesUk; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountMondialRelayCreateRequest(CarrierAccountMondialRelayCreateRequest carrierAccountMondialRelayCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountMondialRelayCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateMondialRelay(CarrierAccountMondialRelayCreateRequest mondialRelay) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.MondialRelay; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountMondialRelayCreateRequest = carrierAccountMondialRelayCreateRequest; + res.CarrierAccountMondialRelayCreateRequest = mondialRelay; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountPosteItalianeCreateRequest(CarrierAccountPosteItalianeCreateRequest carrierAccountPosteItalianeCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountPosteItalianeCreateRequest; - + public static RegisterCarrierAccountRequestBody CreatePosteItaliane(CarrierAccountPosteItalianeCreateRequest posteItaliane) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.PosteItaliane; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountPosteItalianeCreateRequest = carrierAccountPosteItalianeCreateRequest; + res.CarrierAccountPosteItalianeCreateRequest = posteItaliane; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountUPSCreateRequest(CarrierAccountUPSCreateRequest carrierAccountUPSCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountUPSCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateUps(CarrierAccountUPSCreateRequest ups) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Ups; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountUPSCreateRequest = carrierAccountUPSCreateRequest; + res.CarrierAccountUPSCreateRequest = ups; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountUSPSCreateRequest(CarrierAccountUSPSCreateRequest carrierAccountUSPSCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountUSPSCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateUsps(CarrierAccountUSPSCreateRequest usps) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Usps; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountUSPSCreateRequest = carrierAccountUSPSCreateRequest; + res.CarrierAccountUSPSCreateRequest = usps; return res; } - - public static RegisterCarrierAccountRequestBody CreateCarrierAccountSendleCreateRequest(CarrierAccountSendleCreateRequest carrierAccountSendleCreateRequest) { - RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.CarrierAccountSendleCreateRequest; - + public static RegisterCarrierAccountRequestBody CreateSendle(CarrierAccountSendleCreateRequest sendle) { + RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Sendle; + RegisterCarrierAccountRequestBody res = new RegisterCarrierAccountRequestBody(typ); - res.CarrierAccountSendleCreateRequest = carrierAccountSendleCreateRequest; + res.CarrierAccountSendleCreateRequest = sendle; return res; } - public static RegisterCarrierAccountRequestBody CreateNull() { RegisterCarrierAccountRequestBodyType typ = RegisterCarrierAccountRequestBodyType.Null; return new RegisterCarrierAccountRequestBody(typ); @@ -286,332 +257,82 @@ public class RegisterCarrierAccountRequestBodyConverter : JsonConverter public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) { - var json = JRaw.Create(reader).ToString(); - if (json == "null") - { - return null; - } - - var fallbackCandidates = new List<(System.Type, object, string)>(); - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountCanadaPostCreateRequest) - { - CarrierAccountCanadaPostCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountCanadaPostCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountCanadaPostCreateRequest), "CarrierAccountCanadaPostCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountChronopostCreateRequest) - { - CarrierAccountChronopostCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountChronopostCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountChronopostCreateRequest), "CarrierAccountChronopostCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountColissimoCreateRequest) - { - CarrierAccountColissimoCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) + JObject jo = JObject.Load(reader); + string discriminator = jo.GetValue("carrier")?.ToString() ?? throw new ArgumentNullException("Could not find discriminator field."); + if (discriminator == RegisterCarrierAccountRequestBodyType.CanadaPost.ToString()) { - fallbackCandidates.Add((typeof(CarrierAccountColissimoCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountColissimoCreateRequest), "CarrierAccountColissimoCreateRequest")); + CarrierAccountCanadaPostCreateRequest? carrierAccountCanadaPostCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateCanadaPost(carrierAccountCanadaPostCreateRequest!); } - catch (ResponseBodyDeserializer.DeserializationException) + if (discriminator == RegisterCarrierAccountRequestBodyType.Chronopost.ToString()) { - // try next option + CarrierAccountChronopostCreateRequest? carrierAccountChronopostCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateChronopost(carrierAccountChronopostCreateRequest!); } - catch (Exception) + if (discriminator == RegisterCarrierAccountRequestBodyType.Colissimo.ToString()) { - throw; + CarrierAccountColissimoCreateRequest? carrierAccountColissimoCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateColissimo(carrierAccountColissimoCreateRequest!); } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountCorreosCreateRequest) - { - CarrierAccountCorreosCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountCorreosCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountCorreosCreateRequest), "CarrierAccountCorreosCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDeutschePostCreateRequest) - { - CarrierAccountDeutschePostCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountDeutschePostCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDeutschePostCreateRequest), "CarrierAccountDeutschePostCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDHLExpressCreateRequest) - { - CarrierAccountDHLExpressCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountDHLExpressCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDHLExpressCreateRequest), "CarrierAccountDHLExpressCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDpdDeCreateRequest) - { - CarrierAccountDpdDeCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountDpdDeCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDpdDeCreateRequest), "CarrierAccountDpdDeCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try + if (discriminator == RegisterCarrierAccountRequestBodyType.Correos.ToString()) { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDPDUKCreateRequest) - { - CarrierAccountDPDUKCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; + CarrierAccountCorreosCreateRequest? carrierAccountCorreosCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateCorreos(carrierAccountCorreosCreateRequest!); } - catch (ResponseBodyDeserializer.MissingMemberException) + if (discriminator == RegisterCarrierAccountRequestBodyType.DeutschePost.ToString()) { - fallbackCandidates.Add((typeof(CarrierAccountDPDUKCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountDPDUKCreateRequest), "CarrierAccountDPDUKCreateRequest")); + CarrierAccountDeutschePostCreateRequest? carrierAccountDeutschePostCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateDeutschePost(carrierAccountDeutschePostCreateRequest!); } - catch (ResponseBodyDeserializer.DeserializationException) + if (discriminator == RegisterCarrierAccountRequestBodyType.DhlExpress.ToString()) { - // try next option + CarrierAccountDHLExpressCreateRequest? carrierAccountDHLExpressCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateDhlExpress(carrierAccountDHLExpressCreateRequest!); } - catch (Exception) + if (discriminator == RegisterCarrierAccountRequestBodyType.DpdDe.ToString()) { - throw; + CarrierAccountDpdDeCreateRequest? carrierAccountDpdDeCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateDpdDe(carrierAccountDpdDeCreateRequest!); } - - try + if (discriminator == RegisterCarrierAccountRequestBodyType.DpdUk.ToString()) { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountFedExCreateRequest) - { - CarrierAccountFedExCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; + CarrierAccountDPDUKCreateRequest? carrierAccountDPDUKCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateDpdUk(carrierAccountDPDUKCreateRequest!); } - catch (ResponseBodyDeserializer.MissingMemberException) + if (discriminator == RegisterCarrierAccountRequestBodyType.Fedex.ToString()) { - fallbackCandidates.Add((typeof(CarrierAccountFedExCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountFedExCreateRequest), "CarrierAccountFedExCreateRequest")); + CarrierAccountFedExCreateRequest? carrierAccountFedExCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateFedex(carrierAccountFedExCreateRequest!); } - catch (ResponseBodyDeserializer.DeserializationException) + if (discriminator == RegisterCarrierAccountRequestBodyType.HermesUk.ToString()) { - // try next option + CarrierAccountHermesUKCreateRequest? carrierAccountHermesUKCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateHermesUk(carrierAccountHermesUKCreateRequest!); } - catch (Exception) + if (discriminator == RegisterCarrierAccountRequestBodyType.MondialRelay.ToString()) { - throw; + CarrierAccountMondialRelayCreateRequest? carrierAccountMondialRelayCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateMondialRelay(carrierAccountMondialRelayCreateRequest!); } - - try + if (discriminator == RegisterCarrierAccountRequestBodyType.PosteItaliane.ToString()) { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountHermesUKCreateRequest) - { - CarrierAccountHermesUKCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; + CarrierAccountPosteItalianeCreateRequest? carrierAccountPosteItalianeCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreatePosteItaliane(carrierAccountPosteItalianeCreateRequest!); } - catch (ResponseBodyDeserializer.MissingMemberException) + if (discriminator == RegisterCarrierAccountRequestBodyType.Ups.ToString()) { - fallbackCandidates.Add((typeof(CarrierAccountHermesUKCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountHermesUKCreateRequest), "CarrierAccountHermesUKCreateRequest")); + CarrierAccountUPSCreateRequest? carrierAccountUPSCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateUps(carrierAccountUPSCreateRequest!); } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try + if (discriminator == RegisterCarrierAccountRequestBodyType.Usps.ToString()) { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountMondialRelayCreateRequest) - { - CarrierAccountMondialRelayCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; + CarrierAccountUSPSCreateRequest? carrierAccountUSPSCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateUsps(carrierAccountUSPSCreateRequest!); } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountMondialRelayCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountMondialRelayCreateRequest), "CarrierAccountMondialRelayCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountPosteItalianeCreateRequest) - { - CarrierAccountPosteItalianeCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountPosteItalianeCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountPosteItalianeCreateRequest), "CarrierAccountPosteItalianeCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountUPSCreateRequest) - { - CarrierAccountUPSCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountUPSCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountUPSCreateRequest), "CarrierAccountUPSCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountUSPSCreateRequest) - { - CarrierAccountUSPSCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountUSPSCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountUSPSCreateRequest), "CarrierAccountUSPSCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - try - { - return new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountSendleCreateRequest) - { - CarrierAccountSendleCreateRequest = ResponseBodyDeserializer.DeserializeUndiscriminatedUnionMember(json) - }; - } - catch (ResponseBodyDeserializer.MissingMemberException) - { - fallbackCandidates.Add((typeof(CarrierAccountSendleCreateRequest), new RegisterCarrierAccountRequestBody(RegisterCarrierAccountRequestBodyType.CarrierAccountSendleCreateRequest), "CarrierAccountSendleCreateRequest")); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next option - } - catch (Exception) - { - throw; - } - - if (fallbackCandidates.Count > 0) + if (discriminator == RegisterCarrierAccountRequestBodyType.Sendle.ToString()) { - fallbackCandidates.Sort((a, b) => ResponseBodyDeserializer.CompareFallbackCandidates(a.Item1, b.Item1, json)); - foreach(var (deserializationType, returnObject, propertyName) in fallbackCandidates) - { - try - { - return ResponseBodyDeserializer.DeserializeUndiscriminatedUnionFallback(deserializationType, returnObject, propertyName, json); - } - catch (ResponseBodyDeserializer.DeserializationException) - { - // try next fallback option - } - catch (Exception) - { - throw; - } - } + CarrierAccountSendleCreateRequest? carrierAccountSendleCreateRequest = ResponseBodyDeserializer.Deserialize(jo.ToString()); + return CreateSendle(carrierAccountSendleCreateRequest!); } throw new InvalidOperationException("Could not deserialize into any supported types."); diff --git a/Shippo/Orders.cs b/Shippo/Orders.cs index 1ae51c0..22f8f0d 100644 --- a/Shippo/Orders.cs +++ b/Shippo/Orders.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// An order is a request from a customer to purchase goods from a merchant.
@@ -93,10 +93,10 @@ public class Orders: IOrders { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -171,7 +171,11 @@ public async Task ListAsync(ListOrdersRequest? request = nul throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -253,7 +257,11 @@ public async Task CreateAsync(OrderCreateRequest orderCreateRequest, stri throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -328,7 +336,11 @@ public async Task GetAsync(string orderId, string? shippoApiVersion = nul throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Parcels.cs b/Shippo/Parcels.cs index 35de370..8d1546d 100644 --- a/Shippo/Parcels.cs +++ b/Shippo/Parcels.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A parcel is an item you are shipping. The parcel object includes details about its physical make-up of the parcel. It includes dimensions and weight that Shippo uses to calculate rates.
@@ -43,7 +43,7 @@ public interface IParcels /// Returns a list of all parcel objects. /// ///
- Task ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null); + Task ListAsync(long? page = 1, long? results = 25, string? shippoApiVersion = null); /// /// Create a new parcel @@ -79,10 +79,10 @@ public class Parcels: IParcels { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -95,7 +95,7 @@ public Parcels(ISpeakeasyHttpClient client, Func ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null) + public async Task ListAsync(long? page = 1, long? results = 25, string? shippoApiVersion = null) { var request = new ListParcelsRequest() { @@ -163,7 +163,11 @@ public async Task ListAsync(long? page = null, long? result throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -245,7 +249,11 @@ public async Task CreateAsync(CreateParcelRequestBody requestBody, strin throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -320,7 +328,11 @@ public async Task GetAsync(string parcelId, string? shippoApiVersion = n throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Pickups.cs b/Shippo/Pickups.cs index 61e9941..e8137f4 100644 --- a/Shippo/Pickups.cs +++ b/Shippo/Pickups.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A pickup is when you schedule a carrier to collect a package for delivery.
@@ -55,10 +55,10 @@ public class Pickups: IPickups { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -145,7 +145,11 @@ public async Task CreateAsync(PickupBase pickupBase, string? shippoApiVe throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Rates.cs b/Shippo/Rates.cs index 644b075..5d34968 100644 --- a/Shippo/Rates.cs +++ b/Shippo/Rates.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A rate is the cost to ship a parcel from a carrier. The rate object details the service level including the cost and transit time.
@@ -77,10 +77,10 @@ public class Rates: IRates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -160,7 +160,11 @@ public async Task GetAsync(string rateId, string? shippoApiVersion = null) throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -234,7 +238,11 @@ public async Task ListShipmentRatesAsync(ListShipmentRatesReq throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -308,7 +316,11 @@ public async Task ListShipmentRatesByCurrencyCodeAsync(ListSh throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/RatesAtCheckout.cs b/Shippo/RatesAtCheckout.cs index 7a61f2b..1b4fd9e 100644 --- a/Shippo/RatesAtCheckout.cs +++ b/Shippo/RatesAtCheckout.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Rates at checkout is a tool for merchants to display up-to-date shipping estimates based on what's in their customers cart and where they’re shipping to.
@@ -97,10 +97,10 @@ public class RatesAtCheckout: IRatesAtCheckout { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -187,7 +187,11 @@ public async Task CreateAsync(LiveRateCreateRequest liveR throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -262,7 +266,11 @@ public async Task GetDefaultParcelTemplateAsync(string? s throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -344,7 +352,11 @@ public async Task UpdateDefaultParcelTemplateAsync(string throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -413,7 +425,11 @@ public async Task DeleteDefaultParcelTemplateAsync(string? shippoApiVersion = nu { return; } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Refunds.cs b/Shippo/Refunds.cs index 63228ed..856b763 100644 --- a/Shippo/Refunds.cs +++ b/Shippo/Refunds.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Refunds are reimbursements for successfully created but unused shipping labels or other charges.
@@ -71,10 +71,10 @@ public class Refunds: IRefunds { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -161,7 +161,11 @@ public async Task CreateAsync(RefundRequestBody refundRequestBody, strin throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -236,7 +240,11 @@ public async Task ListAsync(string? shippoApiVersion = null throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -311,7 +319,11 @@ public async Task GetAsync(string refundId, string? shippoApiVersion = n throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/ServiceGroups.cs b/Shippo/ServiceGroups.cs index ae19393..accf78c 100644 --- a/Shippo/ServiceGroups.cs +++ b/Shippo/ServiceGroups.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A service group is a set of service levels grouped together.
@@ -82,10 +82,10 @@ public class ServiceGroups: IServiceGroups { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -165,7 +165,11 @@ public async Task> ListAsync(string? shippoApiVersion = null) throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -247,7 +251,11 @@ public async Task CreateAsync(ServiceGroupCreateRequest serviceGro throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -329,7 +337,11 @@ public async Task UpdateAsync(string? shippoApiVersion = null, Ser throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -398,7 +410,11 @@ public async Task DeleteAsync(string serviceGroupId, string? shippoApiVersion = { return; } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Shipments.cs b/Shippo/Shipments.cs index 19c4df5..a9cde7a 100644 --- a/Shippo/Shipments.cs +++ b/Shippo/Shipments.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A shipment is the act of transporting goods. A shipment object contains **to** and **from** addresses, and the parcel details that you are shipping. You can use the shipment object to retrieve shipping rates and purchase a shipping label.
@@ -96,10 +96,10 @@ public class Shipments: IShipments { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -174,7 +174,11 @@ public async Task ListAsync(ListShipmentsRequest? request throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -256,7 +260,11 @@ public async Task CreateAsync(ShipmentCreateRequest shipmentCreateRequ throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -331,7 +339,11 @@ public async Task GetAsync(string shipmentId, string? shippoApiVersion throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Shippo.csproj b/Shippo/Shippo.csproj index 031724d..f7fed1c 100644 --- a/Shippo/Shippo.csproj +++ b/Shippo/Shippo.csproj @@ -3,10 +3,10 @@ true Shippo - 5.0.0-beta.9 + 5.0.0-beta.10 net6.0 Shippo - Copyright (c) Shippo 2024 + Copyright (c) Shippo 2025 https://github.com/goshippo/shippo-csharp-sdk.git git USPS Fedex UPS API Shippo diff --git a/Shippo/ShippoAccounts.cs b/Shippo/ShippoAccounts.cs index a0001a9..7331bd3 100644 --- a/Shippo/ShippoAccounts.cs +++ b/Shippo/ShippoAccounts.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Shippo Accounts are used by Shippo Platform Accounts to create and manage Managed Shippo Accounts.
@@ -41,7 +41,7 @@ public interface IShippoAccounts /// Returns a list of Shippo Managed Accounts objects. /// ///
- Task ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null); + Task ListAsync(long? page = 1, long? results = 25, string? shippoApiVersion = null); /// /// Create a Shippo Account @@ -84,10 +84,10 @@ public class ShippoAccounts: IShippoAccounts { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -100,7 +100,7 @@ public ShippoAccounts(ISpeakeasyHttpClient client, Func ListAsync(long? page = null, long? results = null, string? shippoApiVersion = null) + public async Task ListAsync(long? page = 1, long? results = 25, string? shippoApiVersion = null) { var request = new ListShippoAccountsRequest() { @@ -168,7 +168,11 @@ public async Task ListAsync(long? page = null, long? throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -250,7 +254,11 @@ public async Task CreateAsync(ShippoAccountUpdateRequest shippoAc throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -325,7 +333,11 @@ public async Task GetAsync(string shippoAccountId, string? shippo throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -407,7 +419,11 @@ public async Task UpdateAsync(string shippoAccountId, string? shi throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/ShippoSDK.cs b/Shippo/ShippoSDK.cs index 36df9b7..a1865e7 100644 --- a/Shippo/ShippoSDK.cs +++ b/Shippo/ShippoSDK.cs @@ -13,12 +13,12 @@ namespace Shippo using Shippo.Hooks; using Shippo.Models.Components; using Shippo.Models.Errors; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; using System.Net.Http; using System.Threading.Tasks; - using System; /// /// Shippo external API.: Use this API to integrate with the Shippo service @@ -316,10 +316,10 @@ public class ShippoSDK: IShippoSDK public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _client; diff --git a/Shippo/TrackingStatus.cs b/Shippo/TrackingStatus.cs index b24fb82..65ed66c 100644 --- a/Shippo/TrackingStatus.cs +++ b/Shippo/TrackingStatus.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// <p style="text-align: center; background-color: #F2F3F4;"></br>
@@ -80,10 +80,10 @@ public class TrackingStatus: ITrackingStatus { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -170,7 +170,11 @@ public async Task CreateAsync(TracksRequest tracksRequest, string? shippo throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -246,7 +250,11 @@ public async Task GetAsync(string trackingNumber, string carrier, string? throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Transactions.cs b/Shippo/Transactions.cs index 55b6d60..7999f51 100644 --- a/Shippo/Transactions.cs +++ b/Shippo/Transactions.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A transaction is the purchase of a shipping label from a shipping provider for a specific service. You can print purchased labels and used them to ship a parcel with a carrier, such as USPS or FedEx.
@@ -71,10 +71,10 @@ public class Transactions: ITransactions { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -149,7 +149,11 @@ public async Task ListAsync(ListTransactionsRequest? r throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -231,7 +235,11 @@ public async Task CreateAsync(CreateTransactionRequestBody requestB throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -306,7 +314,11 @@ public async Task GetAsync(string transactionId, string? shippoApiV throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/UserParcelTemplates.cs b/Shippo/UserParcelTemplates.cs index c0a5f7a..8850fcb 100644 --- a/Shippo/UserParcelTemplates.cs +++ b/Shippo/UserParcelTemplates.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// A user parcel template represents a package used for shipping that has preset dimensions and attributes defined
@@ -106,10 +106,10 @@ public class UserParcelTemplates: IUserParcelTemplates { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -189,7 +189,11 @@ public async Task ListAsync(string? shippoApiVersion = n throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -271,7 +275,11 @@ public async Task CreateAsync(UserParcelTemplateCreateReques throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -340,7 +348,11 @@ public async Task DeleteAsync(string userParcelTemplateObjectId, string? shippoA { return; } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -415,7 +427,11 @@ public async Task GetAsync(string userParcelTemplateObjectId throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -497,7 +513,11 @@ public async Task UpdateAsync(string userParcelTemplateObjec throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode == 400 || responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/Shippo/Utils/RequestBodySerializer.cs b/Shippo/Utils/RequestBodySerializer.cs index 1b5ecf5..fc44af9 100644 --- a/Shippo/Utils/RequestBodySerializer.cs +++ b/Shippo/Utils/RequestBodySerializer.cs @@ -276,7 +276,7 @@ private static HttpContent SerializeMultipart(object request, string mediaType) byte[]? content = null; string fileName = ""; - string fieldName = ""; + string fieldName = metadata.Name; foreach (var fileProp in fileProps) { @@ -297,12 +297,11 @@ private static HttpContent SerializeMultipart(object request, string mediaType) } else { - fieldName = fileMetadata.Name ?? fileProp.Name; fileName = fileProp.GetValue(value)?.ToString() ?? ""; } } - if (fieldName == "" || fileName == "" || content == null) + if (fileName == "" || content == null) { throw new Exception("Invalid multipart/form-data file"); } diff --git a/Shippo/Webhooks.cs b/Shippo/Webhooks.cs index 442d0f7..0ce65bc 100644 --- a/Shippo/Webhooks.cs +++ b/Shippo/Webhooks.cs @@ -14,13 +14,13 @@ namespace Shippo using Shippo.Models.Components; using Shippo.Models.Errors; using Shippo.Models.Requests; - using Shippo.Utils.Retries; using Shippo.Utils; + using Shippo.Utils.Retries; + using System; using System.Collections.Generic; - using System.Net.Http.Headers; using System.Net.Http; + using System.Net.Http.Headers; using System.Threading.Tasks; - using System; /// /// Webhooks are a way for Shippo to notify your application when a specific event occurs. For example, when a label is purchased or when a shipment tracking status has changed. You can use webhooks to trigger actions in your application, such as sending an email or updating a database.
@@ -97,10 +97,10 @@ public class Webhooks: IWebhooks { public SDKConfig SDKConfiguration { get; private set; } private const string _language = "csharp"; - private const string _sdkVersion = "5.0.0-beta.9"; - private const string _sdkGenVersion = "2.463.0"; + private const string _sdkVersion = "5.0.0-beta.10"; + private const string _sdkGenVersion = "2.522.1"; private const string _openapiDocVersion = "2018-02-08"; - private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.9 2.463.0 2018-02-08 Shippo"; + private const string _userAgent = "speakeasy-sdk/csharp 5.0.0-beta.10 2.522.1 2018-02-08 Shippo"; private string _serverUrl = ""; private ISpeakeasyHttpClient _client; private Func? _securitySource; @@ -179,7 +179,11 @@ public async Task CreateWebhookAsync(WebhookUpdateRequest request) throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -247,7 +251,11 @@ public async Task ListWebhooksAsync() throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -318,7 +326,11 @@ public async Task GetWebhookAsync(string webhookId) throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -396,7 +408,11 @@ public async Task UpdateWebhookAsync(string webhookId, WebhookUpdateReq throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } @@ -461,7 +477,11 @@ public async Task DeleteWebhookAsync(string webhookId) { return; } - else if(responseStatusCode >= 400 && responseStatusCode < 500 || responseStatusCode >= 500 && responseStatusCode < 600) + else if(responseStatusCode >= 400 && responseStatusCode < 500) + { + throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); + } + else if(responseStatusCode >= 500 && responseStatusCode < 600) { throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse); } diff --git a/ShippoTests/Integration/TestShipments.cs b/ShippoTests/Integration/TestShipments.cs index 7ade832..6275693 100644 --- a/ShippoTests/Integration/TestShipments.cs +++ b/ShippoTests/Integration/TestShipments.cs @@ -112,12 +112,12 @@ public async void TestInternationalShipment() [Fact] public async void TestListAllShipments() { - ListShipmentsRequest request = new ListShipmentsRequest() {}; + ListShipmentsRequest request = new ListShipmentsRequest() { }; ShipmentPaginatedList response = await sdkFixture.SDK.Shipments.ListAsync(request); response.Should().NotBeNull(); response.Results.Should().NotBeNull(); - + if (response.Results != null) { AssertShipmentResults(response.Results); diff --git a/USAGE.md b/USAGE.md index e3c9d9b..97a4733 100644 --- a/USAGE.md +++ b/USAGE.md @@ -1,7 +1,6 @@ ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/Models/Components/CarrierAccountCanadaPostCreateRequest.md b/docs/Models/Components/CarrierAccountCanadaPostCreateRequest.md index 87fe6e6..0b49a9b 100644 --- a/docs/Models/Components/CarrierAccountCanadaPostCreateRequest.md +++ b/docs/Models/Components/CarrierAccountCanadaPostCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | canada_post | -| `Parameters` | [CarrierAccountCanadaPostCreateParameters](../../Models/Components/CarrierAccountCanadaPostCreateParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountCanadaPostCreateParameters](../../Models/Components/CarrierAccountCanadaPostCreateParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountChronopostCreateRequest.md b/docs/Models/Components/CarrierAccountChronopostCreateRequest.md index 63026cf..5dea014 100644 --- a/docs/Models/Components/CarrierAccountChronopostCreateRequest.md +++ b/docs/Models/Components/CarrierAccountChronopostCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | chronopost | -| `Parameters` | [CarrierAccountChronopostCreateRequestParameters](../../Models/Components/CarrierAccountChronopostCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountChronopostCreateRequestParameters](../../Models/Components/CarrierAccountChronopostCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountColissimoCreateRequest.md b/docs/Models/Components/CarrierAccountColissimoCreateRequest.md index d5555d4..83d0f68 100644 --- a/docs/Models/Components/CarrierAccountColissimoCreateRequest.md +++ b/docs/Models/Components/CarrierAccountColissimoCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | colissimo | -| `Parameters` | [CarrierAccountColissimoCreateRequestParameters](../../Models/Components/CarrierAccountColissimoCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountColissimoCreateRequestParameters](../../Models/Components/CarrierAccountColissimoCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountCorreosCreateRequest.md b/docs/Models/Components/CarrierAccountCorreosCreateRequest.md index ce8b373..78c4d65 100644 --- a/docs/Models/Components/CarrierAccountCorreosCreateRequest.md +++ b/docs/Models/Components/CarrierAccountCorreosCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | correos | -| `Parameters` | [CarrierAccountCorreosCreateRequestParameters](../../Models/Components/CarrierAccountCorreosCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountCorreosCreateRequestParameters](../../Models/Components/CarrierAccountCorreosCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountDHLExpressCreateRequest.md b/docs/Models/Components/CarrierAccountDHLExpressCreateRequest.md index 6340ee5..d086928 100644 --- a/docs/Models/Components/CarrierAccountDHLExpressCreateRequest.md +++ b/docs/Models/Components/CarrierAccountDHLExpressCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | dhl_express | -| `Parameters` | [CarrierAccountDHLExpressCreateRequestParameters](../../Models/Components/CarrierAccountDHLExpressCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountDHLExpressCreateRequestParameters](../../Models/Components/CarrierAccountDHLExpressCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountDPDUKCreateRequest.md b/docs/Models/Components/CarrierAccountDPDUKCreateRequest.md index 451a895..52b2f70 100644 --- a/docs/Models/Components/CarrierAccountDPDUKCreateRequest.md +++ b/docs/Models/Components/CarrierAccountDPDUKCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | dpd_uk | -| `Parameters` | [CarrierAccountDPDUKCreateRequestParameters](../../Models/Components/CarrierAccountDPDUKCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountDPDUKCreateRequestParameters](../../Models/Components/CarrierAccountDPDUKCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountDeutschePostCreateRequest.md b/docs/Models/Components/CarrierAccountDeutschePostCreateRequest.md index 318bc07..87af172 100644 --- a/docs/Models/Components/CarrierAccountDeutschePostCreateRequest.md +++ b/docs/Models/Components/CarrierAccountDeutschePostCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | deutsche_post | -| `Parameters` | [CarrierAccountDeutschePostCreateRequestParameters](../../Models/Components/CarrierAccountDeutschePostCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountDeutschePostCreateRequestParameters](../../Models/Components/CarrierAccountDeutschePostCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountDpdDeCreateRequest.md b/docs/Models/Components/CarrierAccountDpdDeCreateRequest.md index 7351d01..79fff90 100644 --- a/docs/Models/Components/CarrierAccountDpdDeCreateRequest.md +++ b/docs/Models/Components/CarrierAccountDpdDeCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | dpd_de | -| `Parameters` | [CarrierAccountDpdDeCreateRequestParameters](../../Models/Components/CarrierAccountDpdDeCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountDpdDeCreateRequestParameters](../../Models/Components/CarrierAccountDpdDeCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountFedExCreateRequest.md b/docs/Models/Components/CarrierAccountFedExCreateRequest.md index d970a5e..900298b 100644 --- a/docs/Models/Components/CarrierAccountFedExCreateRequest.md +++ b/docs/Models/Components/CarrierAccountFedExCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | fedex | -| `Parameters` | [CarrierAccountFedExCreateRequestParameters](../../Models/Components/CarrierAccountFedExCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountFedExCreateRequestParameters](../../Models/Components/CarrierAccountFedExCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountHermesUKCreateRequest.md b/docs/Models/Components/CarrierAccountHermesUKCreateRequest.md index 9e0865b..b06badf 100644 --- a/docs/Models/Components/CarrierAccountHermesUKCreateRequest.md +++ b/docs/Models/Components/CarrierAccountHermesUKCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | hermes_uk | -| `Parameters` | [CarrierAccountHermesUKCreateRequestParameters](../../Models/Components/CarrierAccountHermesUKCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountHermesUKCreateRequestParameters](../../Models/Components/CarrierAccountHermesUKCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountMondialRelayCreateRequest.md b/docs/Models/Components/CarrierAccountMondialRelayCreateRequest.md index fa06aaf..74b5079 100644 --- a/docs/Models/Components/CarrierAccountMondialRelayCreateRequest.md +++ b/docs/Models/Components/CarrierAccountMondialRelayCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | mondialrelay | -| `Parameters` | [CarrierAccountMondialRelayCreateRequestParameters](../../Models/Components/CarrierAccountMondialRelayCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountMondialRelayCreateRequestParameters](../../Models/Components/CarrierAccountMondialRelayCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountPosteItalianeCreateRequest.md b/docs/Models/Components/CarrierAccountPosteItalianeCreateRequest.md index b01314c..d9666c2 100644 --- a/docs/Models/Components/CarrierAccountPosteItalianeCreateRequest.md +++ b/docs/Models/Components/CarrierAccountPosteItalianeCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | poste_italiane | -| `Parameters` | [CarrierAccountPosteItalianeCreateRequestParameters](../../Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountPosteItalianeCreateRequestParameters](../../Models/Components/CarrierAccountPosteItalianeCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountSendleCreateRequest.md b/docs/Models/Components/CarrierAccountSendleCreateRequest.md index 080b699..0e2025f 100644 --- a/docs/Models/Components/CarrierAccountSendleCreateRequest.md +++ b/docs/Models/Components/CarrierAccountSendleCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | sendle | -| `Parameters` | [CarrierAccountSendleCreateRequestParameters](../../Models/Components/CarrierAccountSendleCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountSendleCreateRequestParameters](../../Models/Components/CarrierAccountSendleCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountUPSCreateRequest.md b/docs/Models/Components/CarrierAccountUPSCreateRequest.md index 8c41fb0..4ea1e0a 100644 --- a/docs/Models/Components/CarrierAccountUPSCreateRequest.md +++ b/docs/Models/Components/CarrierAccountUPSCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | ups | -| `Parameters` | [CarrierAccountUPSCreateRequestParameters](../../Models/Components/CarrierAccountUPSCreateRequestParameters.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountUPSCreateRequestParameters](../../Models/Components/CarrierAccountUPSCreateRequestParameters.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarrierAccountUSPSCreateRequest.md b/docs/Models/Components/CarrierAccountUSPSCreateRequest.md index dd4e9dd..f08782d 100644 --- a/docs/Models/Components/CarrierAccountUSPSCreateRequest.md +++ b/docs/Models/Components/CarrierAccountUSPSCreateRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | -| `Carrier` | *string* | :heavy_check_mark: | N/A | usps | -| `Parameters` | [CarrierAccountUSPSCreateRequestParameters](../../Models/Components/CarrierAccountUSPSCreateRequestParameters.md) | :heavy_check_mark: | N/A | | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `Carrier` | *string* | :heavy_check_mark: | N/A | +| `Parameters` | [CarrierAccountUSPSCreateRequestParameters](../../Models/Components/CarrierAccountUSPSCreateRequestParameters.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Components/CarriersEnum.md b/docs/Models/Components/CarriersEnum.md index c9a8e1f..06aeb06 100644 --- a/docs/Models/Components/CarriersEnum.md +++ b/docs/Models/Components/CarriersEnum.md @@ -19,7 +19,6 @@ | collect_plus | CollectPlus| | correios_br | CorreiosBR| | correos_espana | Correos España | -| couriersplease | Couriers Please| | colissimo | Colissimo| | deutsche_post | Deutsche Post| | dhl_benelux | DHL Benelux| @@ -45,7 +44,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| @@ -87,7 +85,6 @@ | `CollectPlus` | collect_plus | | `CorreiosBr` | correios_br | | `CorreosEspana` | correos_espana | -| `Couriersplease` | couriersplease | | `Colissimo` | colissimo | | `DeutschePost` | deutsche_post | | `DhlBenelux` | dhl_benelux | @@ -113,7 +110,6 @@ | `NewZealandPost` | new_zealand_post | | `NipponExpress` | nippon_express | | `Ontrac` | ontrac | -| `Orangeds` | orangeds | | `Parcelforce` | parcelforce | | `Passport` | passport | | `Pcf` | pcf | diff --git a/docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md b/docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md deleted file mode 100644 index 0e860b5..0000000 --- a/docs/Models/Components/ParcelTemplateCouriersPleaseEnum.md +++ /dev/null @@ -1,19 +0,0 @@ -# ParcelTemplateCouriersPleaseEnum - -|Token | Name | Dimensions| -|:---|:---|:---| -| couriersplease_500g_satchel | 500g Satchel | 22.00 x 33.50 x 0.10 cm| -| couriersplease_1kg_satchel | 1kg Satchel | 28.00 x 35.00 x 0.10 cm| -| couriersplease_3kg_satchel | 3kg Satchel | 34.00 x 42.00 x 0.10 cm| -| couriersplease_5kg_satchel | 5kg Satchel | 43.70 x 59.70 x 0.10 cm| - - - -## Values - -| Name | Value | -| --------------------------- | --------------------------- | -| `Couriersplease500gSatchel` | couriersplease_500g_satchel | -| `Couriersplease1kgSatchel` | couriersplease_1kg_satchel | -| `Couriersplease3kgSatchel` | couriersplease_3kg_satchel | -| `Couriersplease5kgSatchel` | couriersplease_5kg_satchel | \ No newline at end of file diff --git a/docs/Models/Components/ParcelTemplateEnumSet.md b/docs/Models/Components/ParcelTemplateEnumSet.md index 24375b6..4da6578 100644 --- a/docs/Models/Components/ParcelTemplateEnumSet.md +++ b/docs/Models/Components/ParcelTemplateEnumSet.md @@ -35,12 +35,6 @@ ParcelTemplateEnumSet.CreateParcelTemplateDHLeCommerceEnum(/* values here */); ParcelTemplateEnumSet.CreateParcelTemplateDPDUKEnum(/* values here */); ``` -### ParcelTemplateCouriersPleaseEnum - -```csharp -ParcelTemplateEnumSet.CreateParcelTemplateCouriersPleaseEnum(/* values here */); -``` - ### ParcelTemplateAramexAustraliaEnum ```csharp diff --git a/docs/Models/Components/ServiceLevelCouriersPleaseEnum.md b/docs/Models/Components/ServiceLevelCouriersPleaseEnum.md deleted file mode 100644 index 2c5cdef..0000000 --- a/docs/Models/Components/ServiceLevelCouriersPleaseEnum.md +++ /dev/null @@ -1,33 +0,0 @@ -# ServiceLevelCouriersPleaseEnum - -|Token | Service name| -|:---|:---| -| couriersplease_domestic_priority_auth_to_leave | Domestic Priority - Authority To Leave/POPPoints| -| couriersplease_domestic_priority_sign_required | Domestic Priority - Signature Required| -| couriersplease_gold_domestic_auth_to_leave | Gold Domestic - Authority To Leave/POPPoints| -| couriersplease_gold_domestic_sign_required | Gold Domestic - Signature Required| -| couriersplease_off_peak_auth_to_leave | Off Peak - Authority To Leave/POPPoints| -| couriersplease_off_peak_sign_required | Off Peak - Signature Required| -| couriersplease_parcel_auth_to_leave | Parcel - Authority To Leave| -| couriersplease_parcel_sign_required | Parcel - Signature Required| -| couriersplease_road_express | Road Express| -| couriersplease_satchel_auth_to_leave | Satchel - Authority To Leave| -| couriersplease_satchel_sign_required | Satchel - Signature Required| - - - -## Values - -| Name | Value | -| ---------------------------------------------- | ---------------------------------------------- | -| `CourierspleaseDomesticPriorityAuthToLeave` | couriersplease_domestic_priority_auth_to_leave | -| `CourierspleaseDomesticPrioritySignRequired` | couriersplease_domestic_priority_sign_required | -| `CourierspleaseGoldDomesticAuthToLeave` | couriersplease_gold_domestic_auth_to_leave | -| `CourierspleaseGoldDomesticSignRequired` | couriersplease_gold_domestic_sign_required | -| `CourierspleaseOffPeakAuthToLeave` | couriersplease_off_peak_auth_to_leave | -| `CourierspleaseOffPeakSignRequired` | couriersplease_off_peak_sign_required | -| `CourierspleaseParcelAuthToLeave` | couriersplease_parcel_auth_to_leave | -| `CourierspleaseParcelSignRequired` | couriersplease_parcel_sign_required | -| `CourierspleaseRoadExpress` | couriersplease_road_express | -| `CourierspleaseSatchelAuthToLeave` | couriersplease_satchel_auth_to_leave | -| `CourierspleaseSatchelSignRequired` | couriersplease_satchel_sign_required | \ No newline at end of file diff --git a/docs/Models/Components/ServiceLevelEnumSet.md b/docs/Models/Components/ServiceLevelEnumSet.md index 850e120..ac73191 100644 --- a/docs/Models/Components/ServiceLevelEnumSet.md +++ b/docs/Models/Components/ServiceLevelEnumSet.md @@ -75,12 +75,6 @@ ServiceLevelEnumSet.CreateServiceLevelCDLEnum(/* values here */); ServiceLevelEnumSet.CreateServiceLevelChronopostEnum(/* values here */); ``` -### ServiceLevelCouriersPleaseEnum - -```csharp -ServiceLevelEnumSet.CreateServiceLevelCouriersPleaseEnum(/* values here */); -``` - ### ServiceLevelCorreosEspanaEnum ```csharp diff --git a/docs/Models/Requests/RegisterCarrierAccountRequest.md b/docs/Models/Requests/RegisterCarrierAccountRequest.md index 7744e7c..7d500b3 100644 --- a/docs/Models/Requests/RegisterCarrierAccountRequest.md +++ b/docs/Models/Requests/RegisterCarrierAccountRequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `RequestBody` | [RegisterCarrierAccountRequestBody](../../Models/Requests/RegisterCarrierAccountRequestBody.md) | :heavy_check_mark: | Examples. | | +| `RequestBody` | [RegisterCarrierAccountRequestBody](../../Models/Requests/RegisterCarrierAccountRequestBody.md) | :heavy_check_mark: | The body of the request. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | Optional string used to pick a non-default API version to use. See our API version guide. | 2018-02-08 | \ No newline at end of file diff --git a/docs/Models/Requests/RegisterCarrierAccountRequestBody.md b/docs/Models/Requests/RegisterCarrierAccountRequestBody.md index cf3c048..f0d1425 100644 --- a/docs/Models/Requests/RegisterCarrierAccountRequestBody.md +++ b/docs/Models/Requests/RegisterCarrierAccountRequestBody.md @@ -1,96 +1,96 @@ # RegisterCarrierAccountRequestBody -Examples. +The body of the request. ## Supported Types -### CarrierAccountCanadaPostCreateRequest +### CanadaPost ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountCanadaPostCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateCanadaPost(/* values here */); ``` -### CarrierAccountChronopostCreateRequest +### Chronopost ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountChronopostCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateChronopost(/* values here */); ``` -### CarrierAccountColissimoCreateRequest +### Colissimo ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountColissimoCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateColissimo(/* values here */); ``` -### CarrierAccountCorreosCreateRequest +### Correos ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountCorreosCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateCorreos(/* values here */); ``` -### CarrierAccountDeutschePostCreateRequest +### DeutschePost ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountDeutschePostCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateDeutschePost(/* values here */); ``` -### CarrierAccountDHLExpressCreateRequest +### DhlExpress ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountDHLExpressCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateDhlExpress(/* values here */); ``` -### CarrierAccountDpdDeCreateRequest +### DpdDe ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountDpdDeCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateDpdDe(/* values here */); ``` -### CarrierAccountDPDUKCreateRequest +### DpdUk ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountDPDUKCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateDpdUk(/* values here */); ``` -### CarrierAccountFedExCreateRequest +### Fedex ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountFedExCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateFedex(/* values here */); ``` -### CarrierAccountHermesUKCreateRequest +### HermesUk ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountHermesUKCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateHermesUk(/* values here */); ``` -### CarrierAccountMondialRelayCreateRequest +### MondialRelay ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountMondialRelayCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateMondialRelay(/* values here */); ``` -### CarrierAccountPosteItalianeCreateRequest +### PosteItaliane ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountPosteItalianeCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreatePosteItaliane(/* values here */); ``` -### CarrierAccountUPSCreateRequest +### Ups ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountUPSCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateUps(/* values here */); ``` -### CarrierAccountUSPSCreateRequest +### Usps ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountUSPSCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateUsps(/* values here */); ``` -### CarrierAccountSendleCreateRequest +### Sendle ```csharp -RegisterCarrierAccountRequestBody.CreateCarrierAccountSendleCreateRequest(/* values here */); +RegisterCarrierAccountRequestBody.CreateSendle(/* values here */); ``` diff --git a/docs/sdks/addresses/README.md b/docs/sdks/addresses/README.md index 7727e3b..366e15c 100644 --- a/docs/sdks/addresses/README.md +++ b/docs/sdks/addresses/README.md @@ -21,7 +21,6 @@ Returns a list of all address objects that have been created in this account. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -64,7 +63,6 @@ Creates a new address object. You can use address objects to create new shipment ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -120,7 +118,6 @@ Returns an existing address using an object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -161,7 +158,6 @@ Validates an existing address using an object ID ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/batches/README.md b/docs/sdks/batches/README.md index bdeebdb..cfabc72 100644 --- a/docs/sdks/batches/README.md +++ b/docs/sdks/batches/README.md @@ -30,7 +30,6 @@ Creates a new batch object for purchasing shipping labels for many shipments at ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; using System.Collections.Generic; @@ -43,7 +42,7 @@ var res = await sdk.Batches.CreateAsync( batchCreateRequest: new BatchCreateRequest() { DefaultCarrierAccount = "078870331023437cb917f5187429b093", DefaultServicelevelToken = "usps_priority", - LabelFiletype = Shippo.Models.Components.LabelFileTypeEnum.Pdf4x6, + LabelFiletype = LabelFileTypeEnum.Pdf4x6, Metadata = "BATCH #1", BatchShipments = new List() { new BatchShipmentCreateRequest() { @@ -70,7 +69,7 @@ var res = await sdk.Batches.CreateAsync( Cod = new Cod() { Amount = "5.5", Currency = "USD", - PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + PaymentMethod = PaymentMethod.Cash, }, CodNumber = new UPSReferenceFields() { Prefix = "ABC", @@ -195,13 +194,13 @@ var res = await sdk.Batches.CreateAsync( ), CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateCustomsDeclarationCreateRequest( new CustomsDeclarationCreateRequest() { - B13aFilingOption = Shippo.Models.Components.CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, + B13aFilingOption = CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, Certify = true, CertifySigner = "Shawn Ippotle", ContentsExplanation = "T-Shirt purchase", DutiesPayor = new DutiesPayor() { Account = "2323434543", - Type = Shippo.Models.Components.CustomsDeclarationCreateRequestType.ThirdParty, + Type = CustomsDeclarationCreateRequestType.ThirdParty, Address = new CustomsDeclarationCreateRequestAddress() { Name = "Patrick Kavanagh", Zip = "80331", @@ -212,7 +211,7 @@ var res = await sdk.Batches.CreateAsync( EoriNumber = "PL123456790ABCDE", TaxId = new CustomsTaxIdentification() { Number = "123456789", - Type = Shippo.Models.Components.CustomsTaxIdentificationType.Ein, + Type = CustomsTaxIdentificationType.Ein, }, }, Invoice = "#123123", @@ -231,13 +230,13 @@ var res = await sdk.Batches.CreateAsync( Email = "shippotle@shippo.com", IsResidential = true, }, - ContentsType = Shippo.Models.Components.CustomsDeclarationContentsTypeEnum.Merchandise, - EelPfc = Shippo.Models.Components.CustomsDeclarationEelPfcEnum.Noeei3037A, - Incoterm = Shippo.Models.Components.CustomsDeclarationIncotermEnum.Ddp, + ContentsType = CustomsDeclarationContentsTypeEnum.Merchandise, + EelPfc = CustomsDeclarationEelPfcEnum.Noeei3037A, + Incoterm = CustomsDeclarationIncotermEnum.Ddp, Items = new List() { new CustomsItemCreateRequest() { Description = "T-Shirt", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + MassUnit = WeightUnitEnum.Lb, Metadata = "Order ID \"123454\"", NetWeight = "5", OriginCountry = "", @@ -248,7 +247,7 @@ var res = await sdk.Batches.CreateAsync( ValueCurrency = "USD", }, }, - NonDeliveryOption = Shippo.Models.Components.CustomsDeclarationNonDeliveryOptionEnum.Return, + NonDeliveryOption = CustomsDeclarationNonDeliveryOptionEnum.Return, Test = true, } ), @@ -263,19 +262,19 @@ var res = await sdk.Batches.CreateAsync( Cod = new Cod() { Amount = "5.5", Currency = "USD", - PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + PaymentMethod = PaymentMethod.Cash, }, Insurance = new ParcelInsurance() { Amount = "5.5", Content = "Laptop", Currency = "USD", - Provider = Shippo.Models.Components.ParcelInsuranceProvider.Ups, + Provider = ParcelInsuranceProvider.Ups, }, }, Metadata = "Customer ID 123456", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + MassUnit = WeightUnitEnum.Lb, Weight = "1", - DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + DistanceUnit = DistanceUnitEnum.In, Height = "1", Length = "1", Width = "1", @@ -320,8 +319,8 @@ For more details on filtering results, see our guide on ", @@ -361,9 +360,8 @@ Adds batch shipments to an existing batch. ```csharp using Shippo; -using Shippo.Models.Requests; -using System.Collections.Generic; using Shippo.Models.Components; +using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -397,7 +395,7 @@ var res = await sdk.Batches.AddShipmentsAsync( Cod = new Cod() { Amount = "5.5", Currency = "USD", - PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + PaymentMethod = PaymentMethod.Cash, }, CodNumber = new UPSReferenceFields() { Prefix = "ABC", @@ -570,7 +568,6 @@ When all the shipments are purchased, the status will change to `PURCHASED` and ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -611,9 +608,8 @@ Removes shipments from an existing batch shipment. ```csharp using Shippo; -using Shippo.Models.Requests; -using System.Collections.Generic; using Shippo.Models.Components; +using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", diff --git a/docs/sdks/carrieraccounts/README.md b/docs/sdks/carrieraccounts/README.md index 1d0a09b..813f064 100644 --- a/docs/sdks/carrieraccounts/README.md +++ b/docs/sdks/carrieraccounts/README.md @@ -29,8 +29,8 @@ By default, if the query parameter is omitted, the `service_levels` property wil ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -68,9 +68,7 @@ Creates a new carrier account or connects an existing carrier account to the Shi ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; -using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -127,7 +125,6 @@ Returns an existing carrier account using an object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -168,9 +165,7 @@ Updates an existing carrier account object. The account_id and carrier can't be ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; -using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -241,8 +236,8 @@ Used by client applications to setup or reconnect an existing carrier account wi ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -286,7 +281,6 @@ Adds a Shippo carrier account ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -295,9 +289,8 @@ var sdk = new ShippoSDK( ); var res = await sdk.CarrierAccounts.RegisterAsync( - requestBody: RegisterCarrierAccountRequestBody.CreateCarrierAccountCorreosCreateRequest( + requestBody: RegisterCarrierAccountRequestBody.CreateCorreos( new CarrierAccountCorreosCreateRequest() { - Carrier = "correos", Parameters = new CarrierAccountCorreosCreateRequestParameters() {}, } ), @@ -311,7 +304,7 @@ var res = await sdk.CarrierAccounts.RegisterAsync( | Parameter | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `RequestBody` | [RegisterCarrierAccountRequestBody](../../Models/Requests/RegisterCarrierAccountRequestBody.md) | :heavy_check_mark: | Examples. | | +| `RequestBody` | [RegisterCarrierAccountRequestBody](../../Models/Requests/RegisterCarrierAccountRequestBody.md) | :heavy_check_mark: | The body of the request. | | | `ShippoApiVersion` | *string* | :heavy_minus_sign: | Optional string used to pick a non-default API version to use. See our API version guide. | 2018-02-08 | ### Response @@ -332,8 +325,8 @@ Returns the registration status for the given account for the given carrier ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -341,7 +334,7 @@ var sdk = new ShippoSDK( ); var res = await sdk.CarrierAccounts.GetRegistrationStatusAsync( - carrier: Shippo.Models.Requests.Carrier.Usps, + carrier: Carrier.Usps, shippoApiVersion: "2018-02-08" ); diff --git a/docs/sdks/carrierparceltemplates/README.md b/docs/sdks/carrierparceltemplates/README.md index 386dcad..73ed771 100644 --- a/docs/sdks/carrierparceltemplates/README.md +++ b/docs/sdks/carrierparceltemplates/README.md @@ -26,8 +26,8 @@ List all carrier parcel template objects.
Use the following query string pa ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -35,7 +35,7 @@ var sdk = new ShippoSDK( ); var res = await sdk.CarrierParcelTemplates.ListAsync( - include: Shippo.Models.Requests.Include.Enabled, + include: Include.Enabled, carrier: "fedex", shippoApiVersion: "2018-02-08" ); @@ -69,7 +69,6 @@ Fetches the parcel template information for a specific carrier parcel template, ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/customsdeclarations/README.md b/docs/sdks/customsdeclarations/README.md index ea71c35..349529b 100644 --- a/docs/sdks/customsdeclarations/README.md +++ b/docs/sdks/customsdeclarations/README.md @@ -21,7 +21,6 @@ Returns a a list of all customs declaration objects ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -64,7 +63,6 @@ Creates a new customs declaration object ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; using System.Collections.Generic; @@ -75,13 +73,13 @@ var sdk = new ShippoSDK( var res = await sdk.CustomsDeclarations.CreateAsync( customsDeclarationCreateRequest: new CustomsDeclarationCreateRequest() { - B13aFilingOption = Shippo.Models.Components.CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, + B13aFilingOption = CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, Certify = true, CertifySigner = "Shawn Ippotle", ContentsExplanation = "T-Shirt purchase", DutiesPayor = new DutiesPayor() { Account = "2323434543", - Type = Shippo.Models.Components.CustomsDeclarationCreateRequestType.ThirdParty, + Type = CustomsDeclarationCreateRequestType.ThirdParty, Address = new CustomsDeclarationCreateRequestAddress() { Name = "Patrick Kavanagh", Zip = "80331", @@ -92,7 +90,7 @@ var res = await sdk.CustomsDeclarations.CreateAsync( EoriNumber = "PL123456790ABCDE", TaxId = new CustomsTaxIdentification() { Number = "123456789", - Type = Shippo.Models.Components.CustomsTaxIdentificationType.Ein, + Type = CustomsTaxIdentificationType.Ein, }, }, Invoice = "#123123", @@ -111,13 +109,13 @@ var res = await sdk.CustomsDeclarations.CreateAsync( Email = "shippotle@shippo.com", IsResidential = true, }, - ContentsType = Shippo.Models.Components.CustomsDeclarationContentsTypeEnum.Merchandise, - EelPfc = Shippo.Models.Components.CustomsDeclarationEelPfcEnum.Noeei3037A, - Incoterm = Shippo.Models.Components.CustomsDeclarationIncotermEnum.Ddp, + ContentsType = CustomsDeclarationContentsTypeEnum.Merchandise, + EelPfc = CustomsDeclarationEelPfcEnum.Noeei3037A, + Incoterm = CustomsDeclarationIncotermEnum.Ddp, Items = new List() { new CustomsItemCreateRequest() { Description = "T-Shirt", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + MassUnit = WeightUnitEnum.Lb, Metadata = "Order ID \"123454\"", NetWeight = "5", OriginCountry = "", @@ -128,7 +126,7 @@ var res = await sdk.CustomsDeclarations.CreateAsync( ValueCurrency = "USD", }, }, - NonDeliveryOption = Shippo.Models.Components.CustomsDeclarationNonDeliveryOptionEnum.Return, + NonDeliveryOption = CustomsDeclarationNonDeliveryOptionEnum.Return, Test = true, }, shippoApiVersion: "2018-02-08" @@ -162,7 +160,6 @@ Returns an existing customs declaration using an object ID ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/customsitems/README.md b/docs/sdks/customsitems/README.md index 205ac88..8752f62 100644 --- a/docs/sdks/customsitems/README.md +++ b/docs/sdks/customsitems/README.md @@ -20,7 +20,6 @@ Returns a list all customs items objects. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -63,7 +62,6 @@ Creates a new customs item object. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -74,7 +72,7 @@ var sdk = new ShippoSDK( var res = await sdk.CustomsItems.CreateAsync( customsItemCreateRequest: new CustomsItemCreateRequest() { Description = "T-Shirt", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + MassUnit = WeightUnitEnum.Lb, Metadata = "Order ID \"123454\"", NetWeight = "5", OriginCountry = "", @@ -115,7 +113,6 @@ Returns an existing customs item using an object ID ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/manifests/README.md b/docs/sdks/manifests/README.md index c431003..c9a991d 100644 --- a/docs/sdks/manifests/README.md +++ b/docs/sdks/manifests/README.md @@ -26,7 +26,6 @@ Returns a list of all manifest objects. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -69,7 +68,6 @@ Creates a new manifest object. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; using System.Collections.Generic; @@ -135,7 +133,6 @@ Returns an existing manifest using an object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/orders/README.md b/docs/sdks/orders/README.md index 8f74c69..47013ef 100644 --- a/docs/sdks/orders/README.md +++ b/docs/sdks/orders/README.md @@ -31,9 +31,9 @@ Returns a list of all order objects. ```csharp using Shippo; +using Shippo.Models.Components; using Shippo.Models.Requests; using System.Collections.Generic; -using Shippo.Models.Components; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -42,9 +42,9 @@ var sdk = new ShippoSDK( ListOrdersRequest req = new ListOrdersRequest() { OrderStatus = new List() { - Shippo.Models.Components.OrderStatusEnum.Paid, + OrderStatusEnum.Paid, }, - ShopApp = Shippo.Models.Components.OrderShopAppEnum.Shippo, + ShopApp = OrderShopAppEnum.Shippo, }; var res = await sdk.Orders.ListAsync(req); @@ -76,8 +76,8 @@ Creates a new order object. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using System; using System.Collections.Generic; var sdk = new ShippoSDK( @@ -90,7 +90,7 @@ var res = await sdk.Orders.CreateAsync( Currency = "USD", Notes = "This customer is a VIP", OrderNumber = "#1068", - OrderStatus = Shippo.Models.Components.OrderStatusEnum.Paid, + OrderStatus = OrderStatusEnum.Paid, PlacedAt = "2016-09-23T01:28:12Z", ShippingCost = "12.83", ShippingCostCurrency = "USD", @@ -99,7 +99,7 @@ var res = await sdk.Orders.CreateAsync( TotalPrice = "24.93", TotalTax = "0.0", Weight = "0.4", - WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + WeightUnit = WeightUnitEnum.Lb, FromAddress = new AddressCreateRequest() { Name = "Shwan Ippotle", Company = "Shippo", @@ -144,7 +144,7 @@ var res = await sdk.Orders.CreateAsync( TotalPrice = "12.1", VariantTitle = "June Edition", Weight = "0.4", - WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + WeightUnit = WeightUnitEnum.Lb, }, }, }, @@ -179,7 +179,6 @@ Retrieves an existing order using an object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/parcels/README.md b/docs/sdks/parcels/README.md index 2da8b8e..51801d7 100644 --- a/docs/sdks/parcels/README.md +++ b/docs/sdks/parcels/README.md @@ -24,7 +24,6 @@ Returns a list of all parcel objects. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -67,7 +66,6 @@ Creates a new parcel object. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -82,19 +80,19 @@ var res = await sdk.Parcels.CreateAsync( Cod = new Cod() { Amount = "5.5", Currency = "USD", - PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + PaymentMethod = PaymentMethod.Cash, }, Insurance = new ParcelInsurance() { Amount = "5.5", Content = "Laptop", Currency = "USD", - Provider = Shippo.Models.Components.ParcelInsuranceProvider.Ups, + Provider = ParcelInsuranceProvider.Ups, }, }, Metadata = "Customer ID 123456", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + MassUnit = WeightUnitEnum.Lb, Weight = "1", - DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + DistanceUnit = DistanceUnitEnum.In, Height = "1", Length = "1", Width = "1", @@ -131,7 +129,6 @@ Returns parcel details using an existing parcel object ID (this will not return ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/pickups/README.md b/docs/sdks/pickups/README.md index 11de673..88cb040 100644 --- a/docs/sdks/pickups/README.md +++ b/docs/sdks/pickups/README.md @@ -19,8 +19,8 @@ Creates a pickup object. This request is for a carrier to come to a specified lo ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using System; using System.Collections.Generic; var sdk = new ShippoSDK( @@ -48,12 +48,12 @@ var res = await sdk.Pickups.CreateAsync( Metadata = "Customer ID 123456", Validate = true, }, - BuildingLocationType = Shippo.Models.Components.BuildingLocationType.FrontDoor, - BuildingType = Shippo.Models.Components.BuildingType.Apartment, + BuildingLocationType = BuildingLocationType.FrontDoor, + BuildingType = BuildingType.Apartment, Instructions = "Behind screen door", }, - RequestedEndTime = System.DateTime.Parse("2023-06-18T07:14:55.338Z"), - RequestedStartTime = System.DateTime.Parse("2023-12-01T17:06:07.804Z"), + RequestedEndTime = System.DateTime.Parse("2024-06-17T07:14:55.338Z"), + RequestedStartTime = System.DateTime.Parse("2024-11-30T17:06:07.804Z"), Transactions = new List() { "adcfdddf8ec64b84ad22772bce3ea37a", }, diff --git a/docs/sdks/rates/README.md b/docs/sdks/rates/README.md index 579538f..1201810 100644 --- a/docs/sdks/rates/README.md +++ b/docs/sdks/rates/README.md @@ -20,7 +20,6 @@ Returns an existing rate using a rate object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -61,8 +60,8 @@ Returns a paginated list of rates associated with a shipment ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -108,8 +107,8 @@ Note: re-requesting the rates with a different currency code will re-queue the s ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", diff --git a/docs/sdks/ratesatcheckout/README.md b/docs/sdks/ratesatcheckout/README.md index f36baa5..36aeb59 100644 --- a/docs/sdks/ratesatcheckout/README.md +++ b/docs/sdks/ratesatcheckout/README.md @@ -31,8 +31,8 @@ template or a fully formed user parcel template object as the parcel value. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using System; using System.Collections.Generic; var sdk = new ShippoSDK( @@ -75,7 +75,7 @@ var res = await sdk.RatesAtCheckout.CreateAsync( TotalPrice = "12.1", VariantTitle = "June Edition", Weight = "0.4", - WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + WeightUnit = WeightUnitEnum.Lb, ObjectId = "abf7d5675d744b6ea9fdb6f796b28f28", }, }, @@ -114,7 +114,6 @@ Retrieve and display the currently configured default parcel template for live r ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -151,7 +150,6 @@ Update the currently configured default parcel template for live rates. The obje ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -194,7 +192,6 @@ Clears the currently configured default parcel template for live rates. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/refunds/README.md b/docs/sdks/refunds/README.md index b0ac173..01574c4 100644 --- a/docs/sdks/refunds/README.md +++ b/docs/sdks/refunds/README.md @@ -20,7 +20,6 @@ Creates a new refund object. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -64,7 +63,6 @@ Returns a list all refund objects. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -101,7 +99,6 @@ Returns an existing rate using a rate object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/servicegroups/README.md b/docs/sdks/servicegroups/README.md index 4c24d23..ad7c177 100644 --- a/docs/sdks/servicegroups/README.md +++ b/docs/sdks/servicegroups/README.md @@ -22,7 +22,6 @@ Returns a list of service group objects. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -59,7 +58,6 @@ Creates a new service group. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; using System.Collections.Generic; @@ -77,7 +75,7 @@ var res = await sdk.ServiceGroups.CreateAsync( FreeShippingThresholdMin = "5", Name = "USPS Shipping", RateAdjustment = 15, - Type = Shippo.Models.Components.ServiceGroupTypeEnum.FlatRate, + Type = ServiceGroupTypeEnum.FlatRate, ServiceLevels = new List() { new ServiceGroupAccountAndServiceLevel() { AccountObjectId = "80feb1633d4a43c898f0058506cfd82d", @@ -116,7 +114,6 @@ Updates an existing service group object.
The object_id cannot be updated as ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; using System.Collections.Generic; @@ -135,7 +132,7 @@ var res = await sdk.ServiceGroups.UpdateAsync( FreeShippingThresholdMin = "5", Name = "USPS Shipping", RateAdjustment = 15, - Type = Shippo.Models.Components.ServiceGroupTypeEnum.FlatRate, + Type = ServiceGroupTypeEnum.FlatRate, ObjectId = "80feb1633d4a43c898f005850", IsActive = true, ServiceLevels = new List() { @@ -175,7 +172,6 @@ Deletes an existing service group using an object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/shipments/README.md b/docs/sdks/shipments/README.md index 5af38f2..23b6386 100644 --- a/docs/sdks/shipments/README.md +++ b/docs/sdks/shipments/README.md @@ -41,8 +41,8 @@ Optional path parameters:
```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; +using Shippo.Models.Requests; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -80,7 +80,6 @@ Creates a new shipment object. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; using System.Collections.Generic; @@ -110,7 +109,7 @@ var res = await sdk.Shipments.CreateAsync( Cod = new Cod() { Amount = "5.5", Currency = "USD", - PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + PaymentMethod = PaymentMethod.Cash, }, CodNumber = new UPSReferenceFields() { Prefix = "ABC", @@ -235,13 +234,13 @@ var res = await sdk.Shipments.CreateAsync( ), CustomsDeclaration = ShipmentCreateRequestCustomsDeclaration.CreateCustomsDeclarationCreateRequest( new CustomsDeclarationCreateRequest() { - B13aFilingOption = Shippo.Models.Components.CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, + B13aFilingOption = CustomsDeclarationB13AFilingOptionEnum.FiledElectronically, Certify = true, CertifySigner = "Shawn Ippotle", ContentsExplanation = "T-Shirt purchase", DutiesPayor = new DutiesPayor() { Account = "2323434543", - Type = Shippo.Models.Components.CustomsDeclarationCreateRequestType.ThirdParty, + Type = CustomsDeclarationCreateRequestType.ThirdParty, Address = new CustomsDeclarationCreateRequestAddress() { Name = "Patrick Kavanagh", Zip = "80331", @@ -252,7 +251,7 @@ var res = await sdk.Shipments.CreateAsync( EoriNumber = "PL123456790ABCDE", TaxId = new CustomsTaxIdentification() { Number = "123456789", - Type = Shippo.Models.Components.CustomsTaxIdentificationType.Ein, + Type = CustomsTaxIdentificationType.Ein, }, }, Invoice = "#123123", @@ -271,13 +270,13 @@ var res = await sdk.Shipments.CreateAsync( Email = "shippotle@shippo.com", IsResidential = true, }, - ContentsType = Shippo.Models.Components.CustomsDeclarationContentsTypeEnum.Merchandise, - EelPfc = Shippo.Models.Components.CustomsDeclarationEelPfcEnum.Noeei3037A, - Incoterm = Shippo.Models.Components.CustomsDeclarationIncotermEnum.Ddp, + ContentsType = CustomsDeclarationContentsTypeEnum.Merchandise, + EelPfc = CustomsDeclarationEelPfcEnum.Noeei3037A, + Incoterm = CustomsDeclarationIncotermEnum.Ddp, Items = new List() { new CustomsItemCreateRequest() { Description = "T-Shirt", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + MassUnit = WeightUnitEnum.Lb, Metadata = "Order ID \"123454\"", NetWeight = "5", OriginCountry = "", @@ -288,7 +287,7 @@ var res = await sdk.Shipments.CreateAsync( ValueCurrency = "USD", }, }, - NonDeliveryOption = Shippo.Models.Components.CustomsDeclarationNonDeliveryOptionEnum.Return, + NonDeliveryOption = CustomsDeclarationNonDeliveryOptionEnum.Return, Test = true, } ), @@ -303,19 +302,19 @@ var res = await sdk.Shipments.CreateAsync( Cod = new Cod() { Amount = "5.5", Currency = "USD", - PaymentMethod = Shippo.Models.Components.PaymentMethod.Cash, + PaymentMethod = PaymentMethod.Cash, }, Insurance = new ParcelInsurance() { Amount = "5.5", Content = "Laptop", Currency = "USD", - Provider = Shippo.Models.Components.ParcelInsuranceProvider.Ups, + Provider = ParcelInsuranceProvider.Ups, }, }, Metadata = "Customer ID 123456", - MassUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + MassUnit = WeightUnitEnum.Lb, Weight = "1", - DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + DistanceUnit = DistanceUnitEnum.In, Height = "1", Length = "1", Width = "1", @@ -354,7 +353,6 @@ Returns an existing shipment using an object ID ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/shippoaccounts/README.md b/docs/sdks/shippoaccounts/README.md index ddc8364..5588fb6 100644 --- a/docs/sdks/shippoaccounts/README.md +++ b/docs/sdks/shippoaccounts/README.md @@ -23,7 +23,6 @@ Returns a list of Shippo Managed Accounts objects. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -66,7 +65,6 @@ Creates a new ", @@ -29,8 +29,8 @@ var sdk = new ShippoSDK( ); ListTransactionsRequest req = new ListTransactionsRequest() { - ObjectStatus = Shippo.Models.Components.TransactionStatusEnum.Success, - TrackingStatus = Shippo.Models.Components.TrackingStatusEnum.Delivered, + ObjectStatus = TransactionStatusEnum.Success, + TrackingStatus = TrackingStatusEnum.Delivered, }; var res = await sdk.Transactions.ListAsync(req); @@ -62,9 +62,7 @@ Creates a new transaction object and purchases the shipping label using a rate o ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; -using System.Collections.Generic; var sdk = new ShippoSDK( apiKeyHeader: "", @@ -74,8 +72,7 @@ var sdk = new ShippoSDK( var res = await sdk.Transactions.CreateAsync( requestBody: CreateTransactionRequestBody.CreateTransactionCreateRequest( new TransactionCreateRequest() { - Async = false, - LabelFileType = Shippo.Models.Components.LabelFileTypeEnum.Pdf4x6, + LabelFileType = LabelFileTypeEnum.Pdf4x6, Metadata = "Order ID #12345", Rate = "ec9f0d3adc9441449c85d315f0997fd5", Order = "adcfdddf8ec64b84ad22772bce3ea37a", @@ -112,7 +109,6 @@ Returns an existing transaction using an object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( diff --git a/docs/sdks/userparceltemplates/README.md b/docs/sdks/userparceltemplates/README.md index 31de37e..e820588 100644 --- a/docs/sdks/userparceltemplates/README.md +++ b/docs/sdks/userparceltemplates/README.md @@ -27,7 +27,6 @@ Returns a list all of all user parcel template objects. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -70,7 +69,6 @@ and depth, as well as their units." ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -82,7 +80,7 @@ var res = await sdk.UserParcelTemplates.CreateAsync( userParcelTemplateCreateRequest: UserParcelTemplateCreateRequest.CreateUserParcelTemplateWithCarrierTemplateCreateRequest( new UserParcelTemplateWithCarrierTemplateCreateRequest() { Weight = "12", - WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + WeightUnit = WeightUnitEnum.Lb, } ), shippoApiVersion: "2018-02-08" @@ -116,7 +114,6 @@ Deletes a user parcel template using an object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -154,7 +151,6 @@ template, identified by the object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -195,7 +191,6 @@ Updates an existing user parcel template. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -207,12 +202,12 @@ var res = await sdk.UserParcelTemplates.UpdateAsync( userParcelTemplateObjectId: "", shippoApiVersion: "2018-02-08", userParcelTemplateUpdateRequest: new UserParcelTemplateUpdateRequest() { - DistanceUnit = Shippo.Models.Components.DistanceUnitEnum.In, + DistanceUnit = DistanceUnitEnum.In, Height = "6", Length = "10", Name = "My Custom Template", Weight = "12", - WeightUnit = Shippo.Models.Components.WeightUnitEnum.Lb, + WeightUnit = WeightUnitEnum.Lb, Width = "8", } ); diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 66cc37f..6386027 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -34,7 +34,7 @@ var sdk = new ShippoSDK( ); WebhookUpdateRequest req = new WebhookUpdateRequest() { - Event = Shippo.Models.Components.WebhookEventTypeEnum.BatchCreated, + Event = WebhookEventTypeEnum.BatchCreated, Url = "https://example.com/shippo-webhook", Active = true, IsTest = false, @@ -99,7 +99,6 @@ Returns the details of a specific webhook using the webhook object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -136,7 +135,6 @@ Updates an existing webhook using the webhook object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK( @@ -147,7 +145,7 @@ var sdk = new ShippoSDK( var res = await sdk.Webhooks.UpdateWebhookAsync( webhookId: "", webhookUpdateRequest: new WebhookUpdateRequest() { - Event = Shippo.Models.Components.WebhookEventTypeEnum.BatchCreated, + Event = WebhookEventTypeEnum.BatchCreated, Url = "https://example.com/shippo-webhook", Active = true, IsTest = false, @@ -182,7 +180,6 @@ Deletes a specific webhook using the webhook object ID. ```csharp using Shippo; -using Shippo.Models.Requests; using Shippo.Models.Components; var sdk = new ShippoSDK(